            .project-section-flex {
              display: grid;
              grid-template-columns: 340px 1fr;
              gap: 2.2rem;
              align-items: flex-start;
              justify-content: center;
              width: 100%;
              max-width: 800px;
              min-width: 0;
            }
            .project-gallery-slideshow {
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: center;
              width: 100%;
              max-width: 340px;
              min-width: 180px;
              gap: 1.1rem;
            }
            .gallery-slide {
              width: 100%;
              aspect-ratio: 4/3;
              object-fit: cover;
              border-radius: 1.1rem;
              box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
              background: #eaf2ff;
              margin-bottom: 0.7rem;
              transition: transform 0.18s, box-shadow 0.18s;
            }
            .gallery-slide:hover {
              transform: scale(1.03) rotate(-1deg);
              box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
            }
            .gallery-prev, .gallery-next {
              background: rgba(30,40,60,0.10);
              border: none;
              border-radius: 50%;
              width: 2.2rem;
              height: 2.2rem;
              font-size: 1.5rem;
              color: #1e283c;
              cursor: pointer;
              margin: 0.2rem 0;
              box-shadow: 0 1px 6px 0 rgba(0,0,0,0.08);
              transition: background 0.18s, color 0.18s;
            }
            .gallery-prev:hover, .gallery-next:hover {
              background: #7fd7ff;
              color: #fff;
            }
            .project-section-info {
              flex: 1 1 0;
              display: flex;
              flex-direction: column;
              justify-content: flex-start;
              align-items: flex-start;
              min-width: 0;
              max-width: 340px;
              padding-top: 0.2rem;
            }
            @media (max-width: 900px) {
              .project-section-flex {
                grid-template-columns: 1fr;
                gap: 1.2rem;
                max-width: 98vw;
              }
              .project-gallery-slideshow {
                max-width: 100vw;
                min-width: 0;
                flex-direction: row;
                gap: 1.1rem;
                justify-content: flex-start;
                align-items: flex-start;
              }
              .gallery-slide {
                max-width: 48vw;
                min-width: 120px;
                height: auto;
              }
              .project-section-info {
                max-width: 100vw;
              }
            }
          .project-section-flex {
            display: flex;
            flex-direction: row;
            gap: 2.2rem;
            align-items: flex-start;
            justify-content: center;
          }
          .project-section-gallery-large {
            display: flex;
            flex-direction: column;
            gap: 1.1rem;
            align-items: flex-start;
            justify-content: flex-start;
            min-width: 220px;
            max-width: 320px;
          }
          .project-section-gallery-img-large {
            width: 100%;
            max-width: 320px;
            min-width: 180px;
            aspect-ratio: 4/3;
            object-fit: cover;
            border-radius: 1.1rem;
            box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
            background: #eaf2ff;
            transition: transform 0.18s, box-shadow 0.18s;
          }
          .project-section-gallery-img-large:hover {
            transform: scale(1.03) rotate(-1deg);
            box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
          }
          .project-section-info {
            flex: 1 1 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            min-width: 0;
            max-width: 340px;
            padding-top: 0.2rem;
          }
          .project-section-info h2 {
            margin: 0 0 0.7rem 0;
            font-size: 2rem;
            color: #1e283c;
            font-weight: 700;
            letter-spacing: 0.01em;
          }
          .project-section-info p {
            color: #1e283c;
            font-size: 1.08rem;
            margin-bottom: 1.1rem;
            line-height: 1.7;
          }
          @media (max-width: 900px) {
            .project-section-flex {
              flex-direction: column;
              gap: 1.2rem;
              align-items: stretch;
            }
            .project-section-gallery-large {
              flex-direction: row;
              gap: 1.1rem;
              min-width: 0;
              max-width: 100vw;
              justify-content: flex-start;
              align-items: flex-start;
            }
            .project-section-gallery-img-large {
              max-width: 48vw;
              min-width: 120px;
              height: auto;
            }
            .project-section-info {
              max-width: 100vw;
            }
          }
          /* Hide tags in expanded view */
          .project-square.expanded .project-square-tags {
            display: none !important;
          }
        .project-square.expanded > .project-square-img {
          display: none !important;
        }
      display: none;
    .project-section-gallery {
      display: flex;
      gap: 1.2rem;
      margin: 1.2rem 0 0.7rem 0;
      justify-content: flex-start;
      flex-wrap: wrap;
    }
    .project-section-gallery-img {
      width: 140px;
      height: 100px;
      object-fit: cover;
      border-radius: 0.7rem;
      box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
      background: #eaf2ff;
      transition: transform 0.18s, box-shadow 0.18s;
    }
    .project-section-gallery-img:hover {
      transform: scale(1.04) rotate(-1deg);
      box-shadow: 0 4px 24px 0 rgba(0,0,0,0.16);
    }
    .project-section-body {
      color: #1e283c;
      font-size: 1.1rem;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
    }
    .project-section-list {
      margin: 1.1rem 0 0 0;
      padding-left: 1.2rem;
      color: #1e283c;
      font-size: 1rem;
      opacity: 0.85;
    }
    .project-section-list li {
      margin-bottom: 0.4rem;
      line-height: 1.5;
    }
  .project-square-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2vw;
    width: 80vw;
    max-width: 700px;
    height: 70vw;
    max-height: 600px;
    margin: 4vw auto 0 auto;
    min-height: 340px;
    min-width: 320px;
  }
  .project-square {
    position: relative;
    background: rgba(255,255,255,0.18);
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s, z-index 0s;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    outline: none;
    aspect-ratio: 4/3;
  }
      position: relative;
      overflow: hidden;
    }

    .project-square::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.35s cubic-bezier(.4,1.4,.6,1);
      background: linear-gradient(120deg, rgba(200,220,255,0.18) 60%, rgba(120,180,255,0.22) 100%);
      backdrop-filter: blur(8px) saturate(1.2);
    }

    .project-square:hover::before,
    .project-square:focus-visible::before {
      opacity: 1;
    }
    font-weight: 600;
    text-align: center;
    pointer-events: none;
    z-index: 2;
    margin-top: 1.2rem;
  }
    .project-square-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 1.2rem;
      z-index: 0;
      pointer-events: none;
      transition: filter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .project-square:hover .project-square-img,
    .project-square:focus-visible .project-square-img {
      filter: blur(2.5px) brightness(0.92);
    }
  .project-square-tags {
      display: flex;
      gap: 0.5rem;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 1.1rem;
      justify-content: center;
      z-index: 2;
      pointer-events: none;
  }
  .project-pill {
    background: rgba(30,40,60,0.82);
    color: #fff;
    border-radius: 1.1em;
    padding: 0.28em 1.1em;
    font-size: 0.98em;
    font-weight: 600;
    box-shadow: 0 2px 10px 0 rgba(0,0,0,0.18);
    backdrop-filter: blur(3px) saturate(1.2);
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border: 1.5px solid rgba(255,255,255,0.18);
    transition: background 0.25s, color 0.25s;
  }
  @media (max-width: 700px) {
    .project-square-grid {
      width: 98vw;
      height: auto;
      max-width: 98vw;
      max-height: none;
      gap: 3vw;
      min-width: 0;
      min-height: 0;
    }
    .project-square {
      aspect-ratio: 4/3;
      min-height: 120px;
    }
  }
  @media (max-width: 480px) {
    .project-square-grid {
      grid-template-columns: 1fr;
      grid-template-rows: repeat(4, 1fr);
      width: 100vw;
      height: auto;
      gap: 4vw;
    }
    .project-square {
      aspect-ratio: 4/3;
      min-height: 80px;
    }
  }
  .project-square-title {
    color: #1e283c;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
    z-index: 2;
  }
  .project-square-expand {
    display: none;
  }
  .project-square.expanded {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    z-index: 3000;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 8px 48px 0 rgba(0,0,0,0.18);
    animation: growFromSquare 0.38s cubic-bezier(.4,1.4,.6,1);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .project-square.expanded .project-square-expand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    z-index: 3100;
  }
  .project-square.expanded .project-square-title {
    display: none;
  }
  .project-square:not(.expanded) {
    transition: opacity 0.32s cubic-bezier(.4,1.4,.6,1);
  }
  .project-square.hide {
    opacity: 0;
    pointer-events: none;
  }
  .project-square-close {
    position: absolute;
    top: 2.2rem;
    right: 2.8rem;
    font-size: 2.2rem;
    color: #1e283c;
    background: rgba(30,40,60,0.10);
    border: none;
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    cursor: pointer;
    z-index: 3200;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    transition: background 0.18s;
  }
  .project-square-close:hover,
  .project-square-close:focus-visible {
    background: rgba(30,40,60,0.22);
  }
  .project-square-content {
    background: rgba(255,255,255,0.98);
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
    padding: 2.2rem 2.2rem 1.5rem 2.2rem;
    max-width: 700px;
    margin: 0 auto;
    width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
  }
  @keyframes growFromSquare {
    0% {
      transform: scale(0.25) translateY(40vh);
      opacity: 0.2;
    }
    100% {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
  }
  @media (max-width: 700px) {
    .project-square-grid {
      width: 98vw;
      height: 98vw;
      max-width: 98vw;
      max-height: 98vw;
      gap: 3vw;
      min-width: 0;
      min-height: 0;
    }
    .project-square-content {
      padding: 1.1rem 0.5rem 1.1rem 0.5rem;
      border-radius: 1.1rem;
      max-width: 98vw;
    }
    .project-square-close {
      top: 1.2rem;
      right: 1.2rem;
    }
  }
  @media (max-width: 480px) {
    .project-square-grid {
      grid-template-columns: 1fr;
      grid-template-rows: repeat(4, 1fr);
      width: 100vw;
      height: auto;
      gap: 4vw;
    }
    .project-square-content {
      padding: 0.5rem 0.2rem 0.5rem 0.2rem;
      border-radius: 0.7rem;
      max-width: 99vw;
    }
  }
  .project-section-glass {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(18px) saturate(1.2);
    border-radius: 1.6rem;
    box-shadow: 0 8px 48px 0 rgba(0,0,0,0.10);
    padding: 2.2rem 2.2rem 1.5rem 2.2rem;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
  }
  .project-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
  }
  .project-section-img {
    width: 120px;
    height: 120px;
    border-radius: 1.1rem;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
    flex-shrink: 0;
  }
  .project-section-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  .project-section-title-group h2 {
    margin: 0;
    color: #1e283c;
    font-size: 2rem;
    font-weight: 700;
  }
  .project-card-tiles {
    display: flex;
    gap: 0.7rem;
  }
  .project-tile {
    background: rgba(30,40,60,0.08);
    color: #1e283c;
    border-radius: 0.7rem;
    padding: 0.5rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.08);
    backdrop-filter: blur(2px);
  }
  .project-section-body {
    color: #1e283c;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .project-section-body p {
    margin-bottom: 1.2rem;
  }
  .project-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent, #7fd7ff);
    background: rgba(30,40,60,0.08);
    padding: 0.5rem 1.2rem;
    border-radius: 1.2rem;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.08);
    transition: background 0.18s, color 0.18s;
  }
  .project-link:hover,
  .project-link:focus-visible {
    background: var(--accent, #7fd7ff);
    color: #fff;
  }
  @media (max-width: 700px) {
    .project-section-glass {
      padding: 1.1rem 0.5rem 1.1rem 0.5rem;
      border-radius: 1.1rem;
      max-width: 98vw;
    }
    .project-section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.7rem;
    }
    .project-section-img {
      width: 80px;
      height: 80px;
      border-radius: 0.7rem;
    }
    .project-section-title-group h2 {
      font-size: 1.3rem;
    }
  }
  .project-card.expanded {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    z-index: 2000;
    background: transparent;
    animation: growFromCard 0.38s cubic-bezier(.4,1.4,.6,1);
    box-shadow: 0 8px 48px 0 rgba(0,0,0,0.18);
  }

  @keyframes growFromCard {
    0% {
      transform: scale(0.25) translateY(40vh);
      opacity: 0.2;
    }
    100% {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
  }
  .project-card.expanded .project-card-expand {
    opacity: 1;
    pointer-events: auto;
    display: flex;
  }
  .project-card:not(.expanded) .project-card-expand {
    display: none;
  }
  .project-menu-grid {
    transition: filter 0.32s cubic-bezier(.4,1.4,.6,1), opacity 0.32s cubic-bezier(.4,1.4,.6,1);
  }
  .project-menu-grid.blur {
    filter: blur(8px) brightness(0.92);
    opacity: 0.5;
    pointer-events: none;
  }
  .project-card {
    transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), box-shadow 0.18s cubic-bezier(.4,1.4,.6,1), opacity 0.32s cubic-bezier(.4,1.4,.6,1);
  }
  .project-card.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(.4,1.4,.6,1);
  }
  @media (max-width: 700px) {
    .project-menu-grid {
      grid-template-columns: 1fr 1fr;
      gap: 3vw;
      padding: 3vw 1vw 1vw 1vw;
    }
    .project-card-expand {
      width: 98vw;
      height: 98vh;
      max-width: 100vw;
      max-height: 100vh;
      padding: 0.5rem;
      border-radius: 1.2rem;
    }
    .project-card-expand-content {
      flex-direction: column;
      align-items: center;
      height: 100%;
    }
    .project-card-expand-img-large {
      width: 90vw;
      max-width: 98vw;
      margin: 0 0 1.2rem 0;
    }
    .project-card-expand-img-small {
      position: static;
      margin: 1.2rem auto 0 auto;
      display: block;
    }
  }
  @media (max-width: 480px) {
    .project-menu-grid {
      grid-template-columns: 1fr;
      gap: 4vw;
      padding: 4vw 0.5vw 1vw 0.5vw;
    }
    .project-card-expand {
      width: 100vw;
      height: 100vh;
      max-width: 100vw;
      max-height: 100vh;
      padding: 0.2rem;
      border-radius: 0;
    }
    .project-card-expand-img-large {
      width: 98vw;
      max-width: 98vw;
    }
  }
  .project-card-expand {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vh;
    max-width: 900px;
    max-height: 700px;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,40,60,0.18);
    border-radius: 2.2rem;
    box-shadow: 0 8px 48px 0 rgba(0,0,0,0.18);
    backdrop-filter: blur(16px) saturate(1.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(.4,1.4,.6,1);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
  }
  .project-card.expanded .project-card-expand {
    opacity: 1;
    pointer-events: auto;
  }
  .project-card-expand-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    position: relative;
  }
  .project-card-expand-img-large {
    width: 44%;
    min-width: 180px;
    max-width: 340px;
    aspect-ratio: 1/1;
    border-radius: 1.2rem;
    background-size: cover;
    background-position: center;
    margin-right: 2.2rem;
    box-shadow: 0 2px 24px 0 rgba(0,0,0,0.10);
  }
  .project-card-expand-info {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
  }
  .project-card-expand-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  }
  .project-card-expand-info p {
    color: #e8f0ff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-align: left;
    max-width: 420px;
  }
  .project-card-tiles {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
  }
  .project-tile {
    background: rgba(255,255,255,0.18);
    color: #1e283c;
    border-radius: 0.7rem;
    padding: 0.5rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.08);
    backdrop-filter: blur(2px);
  }
  .project-card-expand-img-small {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    width: 60px;
    height: 60px;
    border-radius: 0.7rem;
    background-size: cover;
    background-position: center;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.10);
    border: 2px solid #fff3;
  }
  .project-card-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2.2rem;
    color: #fff;
    background: rgba(30,40,60,0.22);
    border: none;
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    transition: background 0.18s;
  }
  .project-card-close:hover,
  .project-card-close:focus-visible {
    background: rgba(30,40,60,0.38);
  }
  @media (max-width: 900px) {
    .project-card-expand {
      width: 96vw;
      height: 92vh;
      padding: 1.2rem 0.5rem 1.2rem 0.5rem;
      border-radius: 1.2rem;
    }
    .project-card-expand-content {
      flex-direction: column;
      align-items: center;
      height: 100%;
    }
    .project-card-expand-img-large {
      width: 80vw;
      max-width: 98vw;
      margin: 0 0 1.2rem 0;
    }
    .project-card-expand-img-small {
      position: static;
      margin: 1.2rem auto 0 auto;
      display: block;
    }
  }
  @media (max-width: 600px) {
    .project-card-expand {
      width: 100vw;
      height: 100vh;
      max-width: 100vw;
      max-height: 100vh;
      padding: 0.2rem;
      border-radius: 0;
    }
    .project-card-expand-img-large {
      width: 98vw;
      max-width: 98vw;
    }
  }
  /* Highlight open accordion toggle with accent color */
  .accordion-item.active > .accordion-toggle {
    background: var(--nav-active-bg, #63b8a7) !important;
    color: var(--nav-active-text, #fff) !important;
    box-shadow: 0 0 0 2px var(--nav-active-bg, #63b8a7)22;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  }
/* Make About Me email link inherit text color and remove underline */
.email-link {
  color: inherit !important;
  text-decoration: underline dotted;
  cursor: pointer;
}
/* Portfolio Website Main Styles */
@media (min-width: 801px) {
  .about-desktop .about-grid.about-g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    max-width: 950px;
    margin: 90px auto 0 auto;
    width: 100%;
    align-items: start;
    min-height: 480px;
    box-sizing: border-box;
  }
  .about-desktop .about-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .about-desktop .about-card {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 1em;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .about-desktop .about-section {
    margin-bottom: 8px;
    font-size: 0.99em;
    line-height: 1.45;
    word-break: break-word;
  }
  .about-desktop h1, .about-desktop h2, .about-desktop h3 {
    font-size: 1.08em;
    margin: 0 0 6px 0;
  }
  /* Prevent scroll: fit all cards in one screen */
  #about.page {
    overflow: hidden !important;
    min-height: 0;
    height: calc(100vh - 40px);
  }
}
@media (max-width: 800px) {
  .about-mobile .about-accordion {
    margin: 12px calc(10vw + 10px) 16px calc(10vw + 10px) !important;
    box-sizing: border-box;
    width: auto;
    max-width: calc(80vw - 20px);
  }
}
/* Show/hide About layouts for mobile/desktop */
.about-mobile { display: none; }
.about-desktop { display: block; }
@media (max-width: 800px) {
  .about-mobile { display: block; }
  .about-desktop { display: none; }
}
/* Accordion styles for About Me section */
.about-accordion {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion-item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--glass-bg, #fff);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 1.1em;
  font-weight: bold;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}
.accordion-toggle:hover, .accordion-toggle:focus {
  background: var(--nav-active-bg, #63b8a7);
  color: var(--nav-active-text, #fff);
  box-shadow: 0 0 0 2px var(--nav-active-bg, #63b8a7)22;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
  background: none;
}
.accordion-item.active .accordion-panel {
  max-height: 600px;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
}
.accordion-panel .about-card {
  box-shadow: none;
  margin: 0;
  border-radius: 0;
  padding: 12px 18px;
}
@media (max-width: 600px) {
  .about-accordion {
    max-width: 98vw;
    gap: 6px;
  }
  .accordion-toggle {
    font-size: 1em;
    padding: 10px 10px;
  }
  .accordion-panel .about-card {
    padding: 8px 8px;
    font-size: 0.97em;
  }
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

/* Teal accent theme */
:root {
  --bg: #f0f0f0;
  --text: #222;
  --glass-bg: rgba(255,255,255,0.4);
  --glass-blur: 10px;
  --nav-active-bg: #63b8a7;
  --nav-active-text: #fff;
  --nav-active-shadow: 0 0 8px #63b8a799;
  --snake-body: #63b8a7;
  --snake-head: #4e9385;
}

body.night {
  --bg: #141517;
  --text: #f8f8f8;
  --glass-bg: rgba(30,30,30,0.5);
  --nav-active-bg: #63b8a7;
  --nav-active-text: #f8f8f8;
  --nav-active-shadow: 0 0 8px #63b8a799;
  --snake-body: #63b8a7;
  --snake-head: #4e9385;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
}

.nav-btn, .mode-toggle {
  background: none;
  border: none;
  font-size: 1.2em;
  color: var(--text);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition: background 0.2s;
}

.nav-btn.active {
  background: var(--nav-active-bg);
  font-weight: bold;
  color: var(--nav-active-text);
  box-shadow: var(--nav-active-shadow);
  border: 2px solid var(--nav-active-bg);
  z-index: 1;
}

.nav-btn:hover, .mode-toggle:hover {
  background: rgba(100,100,100,0.15);
  color: var(--nav-active-bg);
}

.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  position: relative;
  pointer-events: none;
}

.page {
  min-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: auto;
  transition: left 0.5s, opacity 0.5s;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
  left: 0;
}


/* --- Project Menu Grid Styles --- */
.project-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.2vw;
  padding: 2.5vw 2vw 2vw 2vw;
  max-width: 1200px;
  margin: 0 auto;
}
.project-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.10);
  transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), box-shadow 0.18s cubic-bezier(.4,1.4,.6,1);
  background: transparent;
  outline: none;
}
.project-card:focus-visible {
  box-shadow: 0 0 0 3px var(--accent, #7fd7ff);
}
.project-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.92) saturate(1.1);
  z-index: 1;
  transition: filter 0.2s;
}
.project-card-frost {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, rgba(255,255,255,0.18) 60%, rgba(200,220,255,0.10) 100%);
  backdrop-filter: blur(8px) saturate(1.2);
  opacity: 0.7;
  transition: opacity 0.2s;
  pointer-events: none;
}
.project-card:hover .project-card-frost,
.project-card:focus-visible .project-card-frost {
  opacity: 1;
}
.project-card-title {
  position: absolute;
  left: 0; right: 0; bottom: 0.7rem;
  z-index: 3;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  background: rgba(30,40,60,0.18);
  border-radius: 0 0 1.2rem 1.2rem;
  padding: 0.5rem 0.2rem 0.3rem 0.2rem;
  pointer-events: none;
  transition: background 0.2s;
}
.project-card:hover .project-card-title,
.project-card:focus-visible .project-card-title {
  background: rgba(30,40,60,0.32);
}
.project-card-expand {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(30,40,60,0.18);
  backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.4,1.4,.6,1);
}
.project-card.expanded .project-card-expand {
  opacity: 1;
  pointer-events: auto;
}
.project-card.expanded {
  z-index: 1001;
  transform: scale(1.04) !important;
  box-shadow: 0 8px 48px 0 rgba(0,0,0,0.18);
}
.project-card-expand-img {
  width: 60vw;
  max-width: 420px;
  aspect-ratio: 1/1;
  border-radius: 1.2rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.10);
}
.project-card-expand h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.project-card-expand p {
  color: #e8f0ff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  text-align: center;
  max-width: 420px;
}
.project-card-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2.2rem;
  color: #fff;
  background: rgba(30,40,60,0.22);
  border: none;
  border-radius: 50%;
  width: 2.8rem;
  height: 2.8rem;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
  transition: background 0.18s;
}
.project-card-close:hover,
.project-card-close:focus-visible {
  background: rgba(30,40,60,0.38);
}
.project-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent, #7fd7ff);
  background: rgba(255,255,255,0.08);
  padding: 0.5rem 1.2rem;
  border-radius: 1.2rem;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.08);
  transition: background 0.18s, color 0.18s;
}
.project-link:hover,
.project-link:focus-visible {
  background: var(--accent, #7fd7ff);
  color: #fff;
}
@media (max-width: 700px) {
  .project-menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
    padding: 3vw 1vw 1vw 1vw;
  }
  .project-card-expand-img {
    width: 90vw;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  .project-menu-grid {
    grid-template-columns: 1fr;
    gap: 4vw;
    padding: 4vw 0.5vw 1vw 0.5vw;
  }
  .project-card-expand-img {
    width: 98vw;
    max-width: 98vw;
  }
}

.download-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  font-size: 1em;
  border-radius: 16px;
  border: none;
  background: var(--glass-bg);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, transform 0.18s;
}

.download-btn:hover {
  background: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  padding: 12px 32px;
  z-index: 2000;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.mode-toggle-bar {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 3000;
  display: flex;
  align-items: center;
}
.mode-toggle {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, background 0.2s;
}
body.night .mode-toggle {
  color: #f8f8f8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.about-g2 {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 32px auto;
  width: 100%;
  box-sizing: border-box;
}

.about-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
  padding: 32px 24px;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-section {
  margin-bottom: 20px;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1em;
  margin-left: 8px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(0,120,215,0.15);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 8px;
  }
  .about-col {
    gap: 12px;
  }
  .about-card {
    padding: 20px 12px;
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 0.85em;
  }
  .navbar {
    padding: 6px 10px;
    gap: 10px;
  }
  .nav-btn, .mode-toggle {
    font-size: 0.95em;
    padding: 4px 8px;
    border-radius: 8px;
  }
  .mode-toggle-bar {
    top: 8px;
    right: 10px;
  }
  .about-card, .about-left, .about-right, .cv, .contacts, .gallery {
    padding: 10px 6px;
    border-radius: 10px;
    font-size: 0.95em;
  }
  .about-g2, .about-grid {
    gap: 8px;
    margin-bottom: 12px;
  }
  .gallery-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
  }
  .download-btn {
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 10px;
  }
  h1, h2, h3 {
    font-size: 1.1em;
  }
}

/* --- 1. Dark mode: lighter UI elements for more contrast --- */
body.night .navbar,
body.night .nav-btn,
body.night .nav-btn.active,
body.night .download-btn {
  background: #232528 !important;
  /* slightly lighter charcoal for contrast */
}

/* --- 2. Standardize green snake color for both mobile and desktop --- */
/* (Handled above in :root and body.night) */

/* --- 4. Pill shape for floating menu, nav buttons, and download button --- */
.navbar, .nav-btn, .nav-btn.active, .download-btn {
  border-radius: 999px !important;
}

@media (max-width: 800px) {
  .mode-toggle-bar {
    position: fixed;
    top: auto;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    z-index: 200;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Shift the icons down by 14px to align with menu text */
    transform: translateY(14px);
  }
}

/* --- Projects coming soon nav button --- */
.nav-btn-soon {
  opacity: 0.38;
  cursor: not-allowed;
  position: relative;
}
.nav-btn-soon::after {
  content: 'Coming soon';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30,40,60,0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}
.nav-btn-soon:hover::after {
  opacity: 1;
}

/* --- Experience / Education timeline entries --- */
.exp-entry {
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(128,128,128,0.12);
}
.exp-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}
.exp-company {
  font-weight: 700;
  font-size: 0.97rem;
}
.exp-date {
  font-size: 0.78rem;
  opacity: 0.5;
  font-weight: 500;
  white-space: nowrap;
}
.exp-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nav-active-bg);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
}
.exp-desc {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.55;
  margin: 0;
}

/* --- About identity card --- */
.about-card-identity {
  gap: 0.6rem;
}
.about-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.2rem;
}
.about-name {
  margin: 0 0 2px 0;
  font-size: 1.3rem;
  font-weight: 700;
}
.about-role {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nav-active-bg);
  opacity: 0.9;
}
.about-bio {
  font-size: 0.92rem;
  line-height: 1.65;
  opacity: 0.82;
  margin: 0.2rem 0 0.6rem 0;
}
.about-contact-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(128,128,128,0.12);
}

/* Last card in the About left column needs bottom spacing */
.about-desktop .about-col-left .about-card:last-child {
  margin-bottom: 18px;
}

/* Center all home page content */
#home {
  text-align: center;
}

/* --- Home page enhancements --- */
.home-tagline {
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0.6;
  margin: 0.1rem 0 0.3rem 0;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.home-sub {
  margin: 0 0 0.2rem 0;
  opacity: 0.75;
}

.home-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.home-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.home-btns .download-btn {
  margin-top: 0;
}

.home-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.download-btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(128,128,128,0.35);
}

.download-btn-secondary:hover {
  background: var(--glass-bg);
  border-color: transparent;
}

.home-socials {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, color 0.2s, transform 0.18s;
  border: 1.5px solid rgba(255,255,255,0.18);
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--nav-active-bg);
  color: #fff;
  transform: translateY(-2px);
}

body.night .social-link {
  background: rgba(40,42,46,0.7);
}

/* --- Skills & Tools pills --- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.skill-pill {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  border-radius: 2em;
  padding: 0.22em 0.85em;
  font-size: 0.84em;
  font-weight: 600;
  opacity: 0.88;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.skill-pill:hover {
  opacity: 1;
}
