@font-face {
    font-family: bnazanin;
    src: url(B-NAZANIN.TTF);
}
body {
      margin: 0;
      font-family: bnazanin;
      background: #f8f9fa;
      color: #222;
    }

    header {
      background: linear-gradient(135deg, #4c6ef5, #9775fa);
      padding: 2rem;
      text-align: center;
      color: #fff;
    }

    header h1 {
      margin: 0;
      font-size: 2.2rem;
    }

    header p {
      margin-top: .5rem;
      opacity: .9;
    }

    .container {
      max-width: 1000px;
      margin: 2rem auto;
      padding: 0 1rem;
    }

    .section-title {
      font-size: 1.6rem;
      margin-bottom: 1rem;
      border-right: 4px solid #4c6ef5;
      padding-right: .5rem;
    }

    .projects {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
    }

    .project-card {
      background: #fff;
      padding: 1rem;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      transition: .3s;
    }

    .project-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .project-card h3 {
      margin-top: 0;
    }

    footer {
      text-align: center;
      padding: 1.5rem;
      margin-top: 2rem;
      background:linear-gradient(135deg, #4c6ef5, #9775fa);
      color: #ffffff;
    }
    #bgCanvas{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* behind all content but above body background */
    display: block;
    pointer-events: none; /* allow interacting with page */
  }
  /* صفحه را کاملاً فلکس عمودی کن */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* بخش محتوا باید خودش فضای خالی را پر کند */
.page-header,
.portfolio-grid {
    flex-shrink: 0;
}

main {
    flex: 1; /* اگر از main استفاده کردی، اما اجباری نیست */
}

/* فوتر */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    color: #fff;
    opacity: 0.75;
    font-size: 0.95rem;
}
.about-contact {
    width: min(1100px, 90%);
    margin: 80px auto;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about-box,
.contact-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: 0.3s;
}

.about-box:hover,
.contact-box:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
}

.about-contact h2 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.about-contact p {
    line-height: 1.8;
    font-size: 1rem;
}

.contact-box a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

.contact-box a:hover {
    text-decoration: underline;
}

.note {
    opacity: 0.85;
    margin-top: 10px;
    font-size: 0.9rem;
}
.see-all-btn-container {
    text-align: center;
    margin-top: 40px;
}

.see-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4c6ef5, #9775fa);
    color: #fff;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

.see-all-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    background: linear-gradient(135deg, #9775fa, #4c6ef5);
}

