      /* ===== VIEW TRANSITION â€” THEME TOGGLE ===== */
      :root {
        --toggle-x: 50vw;
        --toggle-y: 2rem;
        --expo-out: linear(
          0 0%, 0.1684 2.66%, 0.3165 5.49%,
          0.446 8.52%, 0.5581 11.78%,
          0.6535 15.29%, 0.7341 19.11%,
          0.8011 23.3%, 0.8557 27.93%,
          0.8962 32.68%, 0.9283 38.01%,
          0.9529 44.08%, 0.9711 51.14%,
          0.9833 59.06%, 0.9915 68.74%, 1 100%
        );
      }

      @property --mask-radius {
        syntax: '<length-percentage>';
        inherits: false;
        initial-value: 0px;
      }

      ::view-transition,
      ::view-transition-group(root),
      ::view-transition-image-pair(root),
      ::view-transition-new(root),
      ::view-transition-old(root) {
        pointer-events: none;
      }

      ::view-transition-group(root) {
        animation-duration: 3s;
        animation-timing-function: var(--expo-out);
      }

      ::view-transition-new(root) {
        mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><circle cx="20" cy="20" r="18" fill="white" filter="url(%23blur)"/></svg>') 
              calc(var(--toggle-x) - var(--mask-radius)) 
              calc(var(--toggle-y) - var(--mask-radius)) / 
              calc(var(--mask-radius) * 2) 
              no-repeat;
        -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><circle cx="20" cy="20" r="18" fill="white" filter="url(%23blur)"/></svg>') 
                      calc(var(--toggle-x) - var(--mask-radius)) 
                      calc(var(--toggle-y) - var(--mask-radius)) / 
                      calc(var(--mask-radius) * 2) 
                      no-repeat;
        animation: vt-scale 3s var(--expo-out) both;
      }

      ::view-transition-old(root) {
        animation: none;
        z-index: -1;
      }

      @keyframes vt-scale {
        from {
          --mask-radius: 0px;
        }
        to {
          --mask-radius: 150vmax;
        }
      }
      /* ===== END VIEW TRANSITION ===== */

      /* ===== GLASS NAVBAR ===== */
      .PageHeader {
        position: fixed;
        top: 1rem;
        left: 0;
        right: 0;
        z-index: 200;
        width: fit-content;
        margin: 0 auto;
        pointer-events: none;
      }

      .GlassContainer {
        position: relative;
        overflow: visible;
        border-radius: 999px;
        pointer-events: none;
      }

      .GlassContainer::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: rgba(255, 255, 255, 0.01);
        background-blend-mode: luminosity;
        backdrop-filter: blur(17px) brightness(1.15) contrast(1.2) saturate(1.2);
        -webkit-backdrop-filter: blur(17px) brightness(1.15) contrast(1.2) saturate(1.2);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
        pointer-events: none;
        z-index: 1;
      }

      .GlassContainer::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1.4px;
        background: linear-gradient(135deg,
          rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
          rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
          rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        z-index: 2;
      }

      .GlassContent {
        position: relative;
        z-index: 100;
        border-radius: 999px;
        pointer-events: auto;
        overflow: visible;
        background: linear-gradient(
          145deg,
          rgba(233, 248, 255, 0.16) 0%,
          rgba(130, 166, 191, 0.08) 55%,
          rgba(20, 35, 50, 0.2) 100%
        );
        transition: background 0.5s ease;
      }

      .Navbar {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        min-height: 50px;
        padding: 0.5rem 1rem;
        position: relative;
        font-family: "JetBrains Mono", "Courier New", monospace;
      }

      .NavbarBrand {
        text-decoration: none;
        background: var(--nav-text-bg);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-family: 'Docallisme', sans-serif;
        font-weight: normal;
        font-size: 2rem;
        letter-spacing: 2px;
        padding: 0.3rem 0.5rem;
        display: flex;
        align-items: center;
        transition: opacity 180ms ease, background 0.5s ease;
      }

      .NavbarBrand:hover,
      .NavbarBrand:focus-visible {
        opacity: 0.7;
        outline: none;
      }

      .NavbarLinks {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
        gap: 1.2rem;
        margin: 0;
        padding: 0;
      }

      .NavbarLinks a {
        background: var(--nav-text-bg);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 400;
        padding: 0.4rem 0.6rem;
        transition: opacity 180ms ease, background 0.5s ease;
        position: relative;
        font-family: "JetBrains Mono", "Courier New", monospace;
      }

      .NavbarLinks a:hover,
      .NavbarLinks a:focus-visible {
        opacity: 0.7;
        outline: none;
      }

      .NavbarLinks a[aria-current="page"] {
        font-weight: 700;
        --marker-main: rgba(155, 232, 244, 0.96);
        --marker-alt: rgba(155, 232, 244, 0.62);
        --marker-thickness: 2px;
        --draw-duration-a: 230ms;
        --draw-duration-b: 280ms;
        --draw-delay-b: 70ms;
      }

      .NavbarLinks a[aria-current="page"]::before,
      .NavbarLinks a[aria-current="page"]::after {
        content: "";
        position: absolute;
        pointer-events: none;
        display: block;
        border-radius: 999px;
        background-color: var(--marker-main);
        box-shadow: 0 0 8px calc(var(--marker-thickness) * 0.5) var(--marker-alt);
        height: var(--marker-thickness);
      }

      .NavbarLinks a[aria-current="page"]::before {
        width: var(--underline-width-a, 98%);
        left: var(--underline-left-a, -1%);
        bottom: var(--underline-bottom-a, 0.08rem);
        transform: rotate(var(--underline-tilt-a, -2deg));
        background-color: var(--marker-main);
        transform-origin: left center;
      }

      .NavbarLinks a[aria-current="page"]::after {
        width: var(--underline-width-b, 84%);
        left: var(--underline-left-b, 6%);
        bottom: var(--underline-bottom-b, 0.15rem);
        transform: rotate(var(--underline-tilt-b, 2deg));
        background-color: var(--marker-alt);
        transform-origin: right center;
        opacity: 0.9;
      }

      .NavbarLinks a[aria-current="page"].MarkerDraw::before {
        animation: marker-draw-a var(--draw-duration-a) cubic-bezier(0.34, 1.56, 0.64, 1) both;
      }

      .NavbarLinks a[aria-current="page"].MarkerDraw::after {
        animation: marker-draw-b var(--draw-duration-b) cubic-bezier(0.34, 1.56, 0.64, 1) var(--draw-delay-b) both;
      }

      @keyframes marker-draw-a {
        0% { opacity: 0; clip-path: inset(0 100% 0 0); }
        100% { opacity: 1; clip-path: inset(0 0 0 0); }
      }

      @keyframes marker-draw-b {
        0% { opacity: 0; clip-path: inset(0 0 0 100%); }
        100% { opacity: 1; clip-path: inset(0 0 0 0); }
      }

      @media (prefers-reduced-motion: reduce) {
        .NavbarLinks a[aria-current="page"].MarkerDraw::before,
        .NavbarLinks a[aria-current="page"].MarkerDraw::after {
          animation: none;
        }
      }

      .NavbarIcons {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        margin-left: auto;
      }

      .NavbarIcons label { display: block; }

      .theme-toggle {
        position: relative;
        display: inline-block;
        width: 76px;
        height: 38px;
        cursor: pointer;
        transform: scale(0.65);
        transform-origin: center right;
        margin-left: -26px;
      }

      .theme-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
      }

      .toggle-bg {
        position: absolute;
        cursor: pointer;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: #117AF5;
        transition: 0.4s;
        border-radius: 38px;
        overflow: hidden;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
      }

      .toggle-button {
        position: absolute;
        background-color: #ECCD2D;
        height: 32px; width: 32px;
        left: 3px; bottom: 3px;
        border-radius: 50%;
        transition: 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0px -2px 4px rgba(0,0,0,0.1);
        z-index: 2;
        overflow: hidden;
      }

      .toggle-button::before {
        content: '';
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        width: 80px; height: 80px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
        pointer-events: none;
        transition: opacity 0.4s;
      }

      .crater {
        position: absolute;
        background-color: #889399;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.4s;
      }
      .crater-1 { width: 6px; height: 6px; top: 8px; left: 18px; }
      .crater-2 { width: 4px; height: 4px; top: 16px; left: 22px; }
      .crater-3 { width: 10px; height: 10px; top: 15px; left: 6px; }

      .toggle-clouds {
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 100%;
        transition: transform 0.4s ease, opacity 0.4s;
      }

      .cloud {
        position: absolute;
        background: #FFFFFF;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1), -80px 0 0 #FFFFFF, -80px 1px 3px rgba(0,0,0,0.1);
        animation: drift-cloud 6s linear infinite;
      }

      @keyframes drift-cloud {
        from { transform: translateX(0); }
        to { transform: translateX(80px); }
      }

      .cloud-1 { width: 34px; height: 34px; bottom: -16px; right: -10px; }
      .cloud-2 { width: 28px; height: 28px; bottom: -10px; right: 12px; }
      .cloud-3 { width: 44px; height: 44px; bottom: -20px; right: 28px; }
      .cloud-4 { width: 24px; height: 24px; bottom: -12px; left: 10px; }
      .cloud-5 { width: 30px; height: 30px; bottom: -15px; left: -10px; }

      .toggle-stars {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        opacity: 0;
        transform: translateY(-20px);
        transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.4s;
      }

      .star {
        position: absolute;
        background: #FFFFFF;
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
      }

      @keyframes twinkle {
        0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
        50% { opacity: 0.3; transform: scale(0.6) rotate(15deg); }
      }

      .star-1 { width: 8px; height: 8px; top: 8px; left: 14px; animation: twinkle 3s infinite ease-in-out; }
      .star-2 { width: 5px; height: 5px; top: 20px; left: 24px; animation: twinkle 2.5s infinite ease-in-out 0.5s; }
      .star-3 { width: 6px; height: 6px; top: 12px; left: 34px; animation: twinkle 3.5s infinite ease-in-out 1s; }
      .star-4 { width: 4px; height: 4px; top: 18px; left: 45px; animation: twinkle 2.2s infinite ease-in-out 0.2s; }
      .star-5 { width: 7px; height: 7px; top: 6px; left: 52px; animation: twinkle 4s infinite ease-in-out 0.8s; }
      .star-6 { width: 3px; height: 3px; top: 22px; left: 10px; animation: twinkle 2.8s infinite ease-in-out 1.2s; }

      .theme-toggle input:checked + .toggle-bg { background-color: #252D37; }
      .theme-toggle input:checked + .toggle-bg .toggle-button { transform: translateX(38px); background-color: #C9C9C9; }
      .theme-toggle input:checked + .toggle-bg .toggle-button::before { opacity: 0; }
      .theme-toggle input:checked + .toggle-bg .crater { opacity: 1; }
      .theme-toggle input:checked + .toggle-bg .toggle-clouds { transform: translateY(20px); opacity: 0; }
      .theme-toggle input:checked + .toggle-bg .toggle-stars { transform: translateY(0); opacity: 1; }

      .NavbarToggle {
        display: none;
        width: 44px;
        height: 44px;
        margin-left: auto;
        border-radius: 12px;
        border: 1px solid var(--card-border);
        background: var(--card-bg);
        color: var(--text-main);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
      }

      .NavbarToggle svg {
        width: 22px;
        height: 22px;
        pointer-events: none;
      }

      .NavbarToggle:focus-visible {
        outline: 2px solid #9be8f4;
        outline-offset: 2px;
      }

      @media (max-width: 860px) {
        .Navbar {
          gap: 0.5rem;
        }

        .NavbarToggle {
          display: inline-flex;
        }

        .NavbarLinks {
          position: absolute;
          left: 0;
          right: 0;
          top: calc(100% + 0.8rem);
          margin-left: 0;
          display: flex;
          flex-direction: column;
          gap: 0.4rem;
          padding: 0.8rem;
          border-radius: 20px;
          background:
            linear-gradient(145deg, rgba(233, 248, 255, 0.16) 0%, rgba(130, 166, 191, 0.08) 55%, rgba(20, 35, 50, 0.2) 100%),
            rgba(255, 255, 255, 0.01);
          background-blend-mode: normal, luminosity;
          backdrop-filter: blur(17px) brightness(1.15) contrast(1.2) saturate(1.2);
          -webkit-backdrop-filter: blur(17px) brightness(1.15) contrast(1.2) saturate(1.2);
          border: none;
          box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 24px 48px rgba(0, 0, 0, 0.4);
          opacity: 0;
          transform: translateY(-8px) scale(0.98);
          transform-origin: top center;
          pointer-events: none;
          transition: opacity 250ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .Navbar[data-open="true"] .NavbarLinks {
          opacity: 1;
          transform: translateY(0) scale(1);
          pointer-events: auto;
        }

        .NavbarLinks::after {
          content: '';
          position: absolute;
          inset: 0;
          border-radius: inherit;
          padding: 1.4px;
          background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
          -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          -webkit-mask-composite: xor;
          mask-composite: exclude;
          pointer-events: none;
          z-index: -1;
        }

        .NavbarLinks a {
          width: 100%;
          padding: 0.8rem;
          font-size: 1.15rem;
          letter-spacing: 1px;
          text-align: center;
        }

        .NavbarLinks a[aria-current="page"]::before,
        .NavbarLinks a[aria-current="page"]::after {
          display: none !important;
        }

        .NavbarCta { display: none; }
      }
      /* ===== END GLASS NAVBAR ===== */

      @font-face {
        font-family: "Docallisme";
        src: url("../assets/fonts/docallismeonstreet.otf") format("opentype");
        font-weight: normal;
        font-style: normal;
        font-display: swap;
      }

      :root {
        --bg-1: #f7f2e6;
        --bg-2: #eadfc8;
        --ink: #2a2015;
        --bg-color: #2d2d2d;
        --text-main: #f2f2f2;
        --text-dim: rgba(238, 238, 238, 0.7);
        --card-bg: rgba(255, 255, 255, 0.15);
        --card-border: rgba(255, 255, 255, 0.05);
        --text-shadow: 0 2px 0 rgba(255, 255, 255, 0.34);
        --focus-ring: rgba(255, 255, 255, 0.2);
        --nav-text-bg: linear-gradient(to right, #FFFFF0, #FFFDD0, #F0EAD6, #F5F5F5, #F5F5DC, #FFF5EE, #F9F6EE);
      }

      [data-theme="light"] {
        --bg-color: #f7f2e6;
        --text-main: #2a2015;
        --text-dim: rgba(42, 32, 21, 0.7);
        --card-bg: rgba(0, 0, 0, 0.05);
        --card-border: rgba(0, 0, 0, 0.1);
        --text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
        --focus-ring: rgba(0, 0, 0, 0.2);
        --nav-text-bg: linear-gradient(to right, #1a1a1a, #2a2a2a, #1a1a1a);
      }

      /* â”€â”€ Light-mode glass & component overrides â”€â”€ */
      [data-theme="light"] .GlassContainer::before {
        background: rgba(0, 0, 0, 0.01);
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);
        backdrop-filter: blur(17px) brightness(1.08) contrast(1.05) saturate(1.1);
        -webkit-backdrop-filter: blur(17px) brightness(1.08) contrast(1.05) saturate(1.1);
      }

      [data-theme="light"] .GlassContainer::after {
        background: linear-gradient(135deg,
          rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.05) 20%,
          rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%,
          rgba(0,0,0,0.05) 80%, rgba(0,0,0,0.12) 100%);
      }

      [data-theme="light"] .GlassContent {
        background: linear-gradient(145deg,
          rgba(255, 255, 255, 0.52) 0%,
          rgba(240, 230, 210, 0.35) 55%,
          rgba(220, 210, 190, 0.25) 100%);
      }

      /* Navbar toggle button */
      [data-theme="light"] .NavbarToggle {
        color: #2a2015;
      }

      /* Mobile hero text */
      [data-theme="light"] .mobile-word {
        text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
      }

      /* About: edu card overlay */
      [data-theme="light"] .about-edu-card {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
        background: linear-gradient(rgba(240, 230, 210, 0.75), rgba(240, 230, 210, 0.75)), url('../assets/images/IMG-20241018-WA0012.jpg');
        background-size: cover;
        background-position: center;
      }
      [data-theme="light"] .about-edu-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18), 0 0 40px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.15);
        background: linear-gradient(rgba(240, 230, 210, 0.6), rgba(240, 230, 210, 0.6)), url('../assets/images/IMG-20241018-WA0012.jpg');
        background-size: cover;
        background-position: center;
      }

      /* About image shadow */
      [data-theme="light"] .about-right img {
        filter: drop-shadow(10px 20px 30px rgba(0, 0, 0, 0.2));
      }

      /* Experience cap shadow */
      [data-theme="light"] .experience-cap {
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
      }
      [data-theme="light"] .experience-cap:hover {
        filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.2));
      }

      /* Project card shadows */
      [data-theme="light"] .proj-card {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
      }
      [data-theme="light"] .proj-card:hover {
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
      }

      /* View-all / glass buttons in projects */
      [data-theme="light"] .proj-view-all-btn .LiquidGlass::before,
      [data-theme="light"] .proj-glass-btn .LiquidGlass::before {
        background: rgba(0, 0, 0, 0.01);
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(17px) brightness(1.06) contrast(1.05);
        -webkit-backdrop-filter: blur(17px) brightness(1.06) contrast(1.05);
      }
      [data-theme="light"] .proj-view-all-btn .LiquidGlass__content,
      [data-theme="light"] .proj-glass-btn .LiquidGlass__content {
        background: linear-gradient(145deg,
          rgba(255,255,255,0.45) 0%,
          rgba(240,230,210,0.25) 55%,
          rgba(220,210,190,0.18) 100%);
      }

      /* Footer cloud images â€” invert subtly for light mode */
      [data-theme="light"] .footer-cloud-back,
      [data-theme="light"] .footer-cloud-front {
        filter: brightness(1.3) sepia(0.15);
      }

      /* About description text shadow on mobile */
      @media (max-width: 900px) {
        [data-theme="light"] .about-description {
          text-shadow: 0 2px 10px rgba(255, 255, 255, 0.6);
        }
      }

      * {
        box-sizing: border-box;
      }

      html {
        margin: 0;
        width: 100%;
        min-height: 100%;
        scroll-behavior: smooth;
      }

      body {
        margin: 0;
        width: 100%;
        min-height: 100%;
        font-family: "Instrument Serif", Georgia, serif;
        background: var(--bg-color);
        color: var(--text-main);
        overflow-x: hidden;
        transition: background-color 0.5s ease, color 0.5s ease;
      }

      .viewport {
        position: relative;
        width: 100%;
        min-height: 100dvh;
        height: 100dvh;
        overflow: hidden;
      }

      #scene {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
      }

      .hero-left {
        position: absolute;
        left: clamp(16px, 4vw, 56px);
        top: clamp(20px, 7vh, 74px);
        bottom: clamp(22px, 6vh, 60px);
        width: min(46vw, 580px);
        max-width: calc(100% - 32px);
        z-index: 6;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
        pointer-events: none;
      }

      .hero-mobile-copy {
        display: none;
        pointer-events: none;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
      }

      .mobile-word {
        margin: 0;
        font-family: "Instrument Serif", Georgia, serif;
        font-size: clamp(4rem, 24vw, 9rem);
        line-height: 0.88;
        color: var(--text-main);
        text-shadow: var(--text-shadow);
        font-weight: normal;
      }

      .mobile-subtext {
        margin: 0;
        max-width: 40ch;
        color: var(--text-dim);
        font-size: clamp(1.4rem, 4vw, 2.2rem);
        line-height: 1.25;
        font-weight: normal;
        font-style: italic;
        text-align: center;
      }

      .mobile-cat {
        margin: 0;
        white-space: pre;
        font-family: "Space Mono", monospace;
        font-size: clamp(0.5rem, 1.5vw, 0.9rem);
        line-height: 1.2;
        color: var(--text-dim);
        text-align: left;
      }

              .hero-actions {
          pointer-events: auto;
          margin-top: auto;
          width: min(100%, 480px);
          display: flex;
          flex-direction: column;
          gap: 14px;
          min-height: clamp(180px, 30dvh, 330px);
          justify-content: flex-start;
        }

        .hero-actions-top {
          display: grid;
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 14px;
        }
      .perfect-button {
          --theme-main: #d57e6d;
          --theme-dark: #bc6a5a;
          --theme-light: #e8a89a;
          --theme-border: #a65748;
          --theme-ink: #2d1613;
          --key-top: #bf6b5c;
          --key-bottom: #994638;
          --key-ring: #9a4d41;

          position: relative;
          width: 100%;
          min-height: 72px;
          padding: 12px 14px;
          border: 1px solid var(--theme-border);
          border-radius: 18px 18px 14px 14px;
          display: flex;
          align-items: center;
          gap: 12px;
          color: var(--theme-ink);
          font-family: "Space Mono", monospace;
          text-transform: uppercase;
          font-weight: 700;
          letter-spacing: 0.15em;
          text-decoration: none;
          cursor: pointer;
          user-select: none;
          -webkit-tap-highlight-color: transparent;
          background-image:
              linear-gradient(160deg, var(--theme-dark), var(--theme-main) 24%, var(--theme-light) 48%, var(--theme-main) 72%, var(--theme-dark)),
              linear-gradient(to bottom right, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 50%);
          background-size: 100% 100%, 100% 100%;
          background-repeat: no-repeat;
          box-shadow:
              inset -4px -10px 0 rgba(255, 255, 255, 0.28),
              inset -2px -6px 0 rgba(35, 17, 15, 0.2),
              inset 0 -2px 6px rgba(35, 17, 15, 0.22),
              0 4px 0 var(--theme-border),
              0 9px 16px rgba(23, 17, 25, 0.22);
          transform: translateY(0);
          transition: transform 180ms ease, box-shadow 180ms ease, background-size 180ms ease;
          overflow: hidden;
      }

      .perfect-button.theme-coral {
          --theme-main: #d88a75;
          --theme-dark: #c27663;
          --theme-light: #ed9f8b;
          --theme-border: #b06250;
          --theme-ink: #2d1613;
          --key-top: #c97762;
          --key-bottom: #a35848;
          --key-ring: #a35848;
      }

      .perfect-button.theme-indigo {
          --theme-main: #7478ca;
          --theme-dark: #575c9f;
          --theme-light: #8a8ee3;
          --theme-border: #4b50a3;
          --theme-ink: #121542;
          --key-top: #6469ba;
          --key-bottom: #4a4e8f;
          --key-ring: #4b50a3;
      }

      .perfect-button.theme-sand {
          --theme-main: #d9cb6f;
          --theme-dark: #c2b55b;
          --theme-light: #f0e182;
          --theme-border: #aba047;
          --theme-ink: #2d2a0d;
          --key-top: #c7bc62;
          --key-bottom: #99903e;
          --key-ring: #aba047;
      }

      .perfect-button.theme-linkedin {
          --theme-main: #0A66C2;
          --theme-dark: #084e99;
          --theme-light: #2d8ae0;
          --theme-border: #063d75;
          --theme-ink: #ffffff;
          --key-top: #0959ad;
          --key-bottom: #053568;
          --key-ring: #063d75;
      }

      .perfect-button.theme-linkedin .perfect-icon svg {
          fill: #ffffff;
      }

      .perfect-button.theme-linkedin .perfect-title {
          text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
      }

      .perfect-button.theme-github {
          --theme-main: #2b2b2b;
          --theme-dark: #1a1a1a;
          --theme-light: #444444;
          --theme-border: #111111;
          --theme-ink: #ffffff;
          --key-top: #333333;
          --key-bottom: #1a1a1a;
          --key-ring: #111111;
      }

      .perfect-button.theme-github .perfect-icon svg {
          fill: #ffffff;
      }

      .perfect-button.theme-github .perfect-title {
          text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
      }

      .perfect-button::before {
          content: "";
          position: absolute;
          inset: 0;
          border-radius: inherit;
          background: linear-gradient(to top, rgba(0, 0, 0, 0.32), rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.3));
          mix-blend-mode: soft-light;
          pointer-events: none;
      }

      .perfect-button::after {
          content: "";
          position: absolute;
          top: -120%;
          left: -35%;
          width: 38%;
          height: 320%;
          border-radius: 100%;
          background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
          transform: rotate(20deg);
          transition: left 420ms ease;
          pointer-events: none;
      }

      .perfect-button:hover {
          transform: translateY(-2px);
          background-size: 125% 125%, 100% 100%;
          box-shadow:
              inset -4px -10px 0 rgba(255, 255, 255, 0.3),
              inset -2px -6px 0 rgba(35, 17, 15, 0.2),
              inset 0 -2px 6px rgba(35, 17, 15, 0.22),
              0 6px 0 var(--theme-border),
              0 14px 20px rgba(23, 17, 25, 0.24);
      }

      .perfect-button:hover::after {
          left: 105%;
      }

      .perfect-button:active {
          transform: translateY(1px) scale(0.985);
          box-shadow:
              inset -4px -8px 0 rgba(255, 255, 255, 0.2),
              inset -2px -5px 0 rgba(35, 17, 15, 0.22),
              inset 0 -2px 6px rgba(35, 17, 15, 0.26),
              0 2px 0 var(--theme-border),
              0 5px 10px rgba(23, 17, 25, 0.2);
      }

      .perfect-button:focus-visible {
          outline: 2px solid color-mix(in srgb, var(--theme-main), #ffffff 30%);
          outline-offset: 5px;
      }

      .perfect-title {
          position: relative;
          z-index: 1;
          margin: auto;
          font-size: 0.84rem;
          line-height: 1;
          text-shadow: 0 1px 1px rgba(255, 255, 255, 0.45);
          white-space: nowrap;
      }

      .perfect-icon {
          position: relative;
          z-index: 1;
          display: grid;
          place-items: center;
          flex-shrink: 0;
      }

      .perfect-icon svg {
          width: 24px;
          height: 24px;
          fill: var(--theme-ink);
          filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
      }

      .perfect-button kbd {
          position: relative;
          z-index: 1;
          margin: 0;
          padding: 0 0.5em;
          min-width: 2.2em;
          height: 2.2em;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          border-radius: 0.45rem;
          border: 0;
          border-bottom: 2px solid var(--key-bottom);
          color: var(--theme-ink);
          background: linear-gradient(var(--key-top), var(--key-bottom));
          box-shadow:
              inset 0 3px 3px -2px rgba(255, 255, 255, 0.35),
              inset 0 -3px 3px -2px rgba(0, 0, 0, 0.2),
              0 2px 2px -2px rgba(0, 0, 0, 0.36),
              0 0 0 2px var(--key-ring);
          font-family: inherit;
          font-size: 0.8rem;
          font-weight: 700;
          line-height: 1;
          transition: transform 180ms ease, border-bottom-width 180ms ease;
      }

      .perfect-button:hover kbd {
          transform: translateY(-1px);
          border-bottom-width: 3px;
      }

      .perfect-button:active kbd {
          transform: translateY(0);
          border-bottom-width: 1px;
      }

@media (max-width: 1180px) {
        .hero-left {
          width: min(50vw, 560px);
        }
      }

      @media (max-width: 900px) {
        .hero-left {
          top: max(12px, env(safe-area-inset-top));
          bottom: max(14px, env(safe-area-inset-bottom));
          left: 12px;
          right: 12px;
          width: auto;
          max-width: none;
          align-items: center;
          justify-content: center;
        }

        .hero-mobile-copy {
          display: flex;
          max-width: min(100%, 540px);
        }

        .hero-actions {
          margin-top: 2rem;
          width: min(100%, 520px);
          min-height: 0;
        }
      }

      @media (max-height: 740px) {
        .hero-actions {
          min-height: 0;
        }
      }

      @media (max-width: 560px) {
        .hero-left {
          left: 10px;
          right: 10px;
          width: calc(100% - 20px);
        }

        .hero-actions-top {
          grid-template-columns: 1fr;
        }

        .perfect-button kbd {
            display: none;
        }
      }

      @media (max-width: 360px) {

        .mobile-cat {
          font-size: 0.4rem;
        }
      }

      /* ===== ABOUT ME SECTION ===== */
      .about-section {
        position: relative;
        width: 100%;
        min-height: 100dvh;
        background-color: var(--bg-color);
        color: var(--text-main);
        overflow-x: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem;
        transition: background-color 0.5s ease, color 0.5s ease;
      }

      .about-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
        opacity: 0.04;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
      }

      /* Subtle gradient divider between hero and about */
      .about-section::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to bottom, var(--bg-color), transparent);
        pointer-events: none;
        z-index: 2;
      }

      .about-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        width: 100%;
        gap: 40px;
        position: relative;
        z-index: 3;
      }

      .about-left {
        flex: 1;
        max-width: 520px;
      }

      .about-title {
        font-size: clamp(3.2rem, 7vw, 5rem);
        font-weight: normal;
        margin: 0 0 clamp(1rem, 3vh, 2rem) 0;
        letter-spacing: -2px;
        line-height: 1;
        color: var(--text-main);
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .about-title.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .about-description {
        font-size: clamp(1.1rem, 2.2vw, 1.4rem);
        line-height: 1.5;
        color: var(--text-dim);
        margin: 0 0 clamp(1.5rem, 4vh, 3rem) 0;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
      }

      .about-description.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .about-education h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
        font-weight: normal;
        margin: 0 0 clamp(0.5rem, 1.5vh, 1rem) 0;
        letter-spacing: 1px;
        color: var(--text-main);
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
      }

      .about-education h2.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .about-card-wrapper {
        position: relative;
        width: fit-content;
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
      }

      .about-card-wrapper.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .about-ascii-cat {
        font-family: 'Courier New', Courier, monospace;
        font-size: clamp(0.55rem, 1.1vw, 0.8rem);
        line-height: 1.3;
        color: var(--text-main);
        opacity: 0.85;
        white-space: pre;
        user-select: none;
        position: absolute;
        top: -4.5em;
        right: 0;
        z-index: 10;
      }

      .about-edu-card {
        display: flex;
        align-items: center;
        gap: clamp(15px, 2.5vw, 24px);
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/IMG-20241018-WA0012.jpg');
        background-size: cover;
        background-position: center;
        border: 1px solid var(--card-border);
        border-radius: 36px;
        padding: clamp(12px, 2vh, 16px) clamp(24px, 4vw, 60px);
        width: fit-content;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border 0.6s ease, background 0.6s ease-in-out;
        cursor: crosshair;
      }

      .about-edu-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 255, 255, 0.05);
        background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('../assets/images/IMG-20241018-WA0012.jpg');
        background-size: cover;
        background-position: center;
        border: 1px solid rgba(255, 255, 255, 0.2);
      }

      .about-edu-card svg {
        width: clamp(32px, 5vw, 48px);
        height: clamp(32px, 5vw, 48px);
        fill: var(--text-main);
        opacity: 0.8;
      }

      .about-edu-card p {
        font-size: clamp(1.1rem, 2vw, 1.4rem);
        line-height: 1.2;
        color: var(--text-main);
        opacity: 0.9;
        margin: 0;
      }

      .about-right {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transform: translateX(50px) rotate(5deg);
        transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
      }

      .about-right.visible {
        opacity: 1;
        transform: translateX(0) rotate(5deg);
      }

      .about-right img {
        max-height: 75vh;
        max-width: 100%;
        height: auto;
        filter: drop-shadow(10px 20px 30px rgba(0,0,0,0.5));
        object-fit: contain;
      }

      @media (max-width: 900px) {
        .about-container {
          flex-direction: column;
          text-align: left;
          justify-content: center;
          align-items: flex-start;
          padding: 2rem 0;
        }

        .about-left {
          z-index: 2;
          max-width: 100%;
        }

        .about-description {
          font-size: clamp(1rem, 2vw, 1.2rem);
          max-width: 100%;
          text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
        }

        .about-right {
          position: absolute;
          bottom: -5vh;
          right: -15vw;
          width: auto;
          height: 55vh;
          z-index: 0;
          opacity: 0;
          pointer-events: none;
          transform: translateX(30px) rotate(5deg);
        }

        .about-right.visible {
          opacity: 0.3;
          transform: translateX(0) rotate(5deg);
        }

        .about-right img {
          height: 100%;
          width: auto;
          max-height: none;
          max-width: none;
        }

        .about-edu-card {
          width: auto;
          justify-content: flex-start;
        }
      }
      /* ===== END ABOUT ME SECTION ===== */

      /* ===== EXPERIENCE SECTION ===== */
      .experience-section {
        position: relative;
        width: 100%;
        min-height: 100dvh;
        background-color: var(--bg-color);
        color: var(--text-main);
        overflow-x: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 6rem 2rem 4rem;
        transition: background-color 0.5s ease, color 0.5s ease;
      }

      .experience-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
        opacity: 0.04;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
      }

      /* Subtle gradient divider between about and experience */
      .experience-section::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 120px;
        /* background: linear-gradient(to bottom, var(--bg-color), transparent); */
        pointer-events: none;
        z-index: 2;
      }

      .experience-inner {
        max-width: 1400px;
        width: 100%;
        position: relative;
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .experience-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: clamp(2rem, 4vh, 3.5rem);
      }

      .experience-title {
        font-size: clamp(3.2rem, 7vw, 5rem);
        font-weight: normal;
        margin: 0;
        letter-spacing: -2px;
        line-height: 1;
        color: var(--text-main);
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .experience-title.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .experience-ascii {
        font-family: monospace;
        font-size: clamp(0.7rem, 1.5vw, 1.1rem);
        line-height: 1.1;
        color: var(--text-dim);
        margin: 0;
        white-space: pre;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
      }

      .experience-ascii.visible {
        opacity: 0.8;
        transform: translateY(-2vh);
      }

      .experience-columns {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4vw;
      }

      .experience-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .experience-col.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .experience-col:nth-child(2) {
        transition-delay: 0.12s;
      }

      .experience-col:nth-child(3) {
        transition-delay: 0.24s;
      }

      .experience-cap {
        height: clamp(100px, 18vh, 150px);
        width: auto;
        object-fit: contain;
        margin-bottom: clamp(1rem, 2vh, 1.5rem);
        filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4));
        transition: transform 0.4s ease, filter 0.4s ease;
        flex-shrink: 0;
      }

      .experience-cap:hover {
        transform: translateY(-10px) scale(1.05);
        filter: drop-shadow(0 20px 25px rgba(0,0,0,0.5));
      }

      .experience-role {
        font-family: 'Instrument Serif', Georgia, serif;
        font-size: clamp(1.5rem, 3.5vh, 2rem);
        font-weight: 400;
        letter-spacing: -0.02em;
        margin: 0 0 0.5rem 0;
        color: var(--text-main);
      }

      .experience-company {
        font-family: 'JetBrains Mono', monospace;
        font-size: clamp(0.9rem, 2vh, 1.2rem);
        font-weight: 400;
        letter-spacing: 0.35em;
        color: var(--text-dim);
        text-transform: capitalize;
        margin: 0 0 clamp(1rem, 3vh, 2rem) 0;
      }

      .experience-desc {
        text-align: left;
        font-family: 'Instrument Serif', Georgia, serif;
        font-size: clamp(0.9rem, 2.2vh, 1.15rem);
        line-height: 1.5;
        color: var(--text-dim);
        width: 100%;
      }

      .experience-desc p {
        margin-top: 0;
        margin-bottom: 1rem;
      }

      .experience-swipe-indicator {
        display: none;
      }

      /* Responsive: tablet */
      @media (max-width: 1024px) {
        .experience-columns {
          gap: 3vw;
        }
      }

      /* Responsive: mobile horizontal scroll */
      @media (max-width: 860px) {
        .experience-section {
          padding: 5rem 0 3rem;
        }

        .experience-header {
          flex-direction: row;
          align-items: center;
          padding: 0 5vw;
          margin-bottom: 2vh;
        }

        .experience-ascii {
          font-size: clamp(0.4rem, 0.9vh, 0.8rem);
        }

        .experience-columns {
          display: flex;
          flex-direction: row;
          overflow-x: auto;
          overflow-y: hidden;
          scroll-behavior: smooth;
          -webkit-overflow-scrolling: touch;
          gap: 0;
          width: 100%;
          scrollbar-width: none;
          margin-top: 2vh;
        }

        .experience-columns::-webkit-scrollbar {
          display: none;
        }

        .experience-col {
          min-width: 100%;
          padding: 0 8vw;
        }

        .experience-cap {
          height: 15vh;
        }

        .experience-desc {
          font-size: clamp(0.9rem, 2vh, 1.05rem);
        }

        .experience-swipe-indicator {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 100%;
          margin-top: 1rem;
          color: var(--text-dim, #a0a0a0);
          font-family: 'Space Mono', monospace;
          font-size: 0.75rem;
          text-transform: uppercase;
          letter-spacing: 0.1em;
          opacity: 0.7;
          animation: swipePulse 2s infinite ease-in-out;
        }
      }

      @keyframes swipePulse {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 1; }
      }
      /* ===== END EXPERIENCE SECTION ===== */

      /* ===== PROJECTS SECTION ===== */
      .projects-section {
        position: relative;
        width: 100%;
        min-height: 100dvh;
        background-color: var(--bg-color);
        color: var(--text-main);
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6rem 1rem 4rem;
        transition: background-color 0.5s ease, color 0.5s ease;
      }

      .projects-section::before {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        pointer-events: none;
        z-index: 1;
        opacity: 0.04;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
      }

      .projects-section::after {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 120px;
        /* background: linear-gradient(to bottom, var(--bg-color), transparent); */
        pointer-events: none;
        z-index: 2;
      }

      .projects-inner {
        position: relative;
        z-index: 3;
        width: 100%;
        max-width: 1000px;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .projects-heading-wrapper {
        position: relative;
        width: 100%;
        margin-bottom: 3rem;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .projects-heading-wrapper.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .projects-heading {
        font-size: clamp(3.2rem, 7vw, 5rem);
        font-weight: normal;
        color: var(--text-main);
        margin: 0;
        letter-spacing: -2px;
        line-height: 1;
        user-select: none;
      }

      .projects-ascii {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(15%);
        font-family: 'Courier New', Courier, monospace;
        font-size: clamp(0.55rem, 1.2vw, 0.8rem);
        line-height: 1.1;
        color: var(--text-dim);
        white-space: pre;
        user-select: none;
        pointer-events: none;
      }

      .proj-carousel {
        position: relative;
        width: 100%;
        max-width: 700px;
        height: 460px;
        margin: 0 auto 2.5rem;
        perspective: 1200px;
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
                    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
      }

      .proj-carousel.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .proj-card {
        position: absolute;
        width: 290px;
        height: 440px;
        border-radius: 20px;
        padding: 1.2rem;
        display: flex;
        flex-direction: column;
        color: #fff;
        cursor: pointer;
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                    box-shadow 0.4s ease,
                    z-index 0s;
        transform-origin: center bottom;
        user-select: none;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
      }

      .proj-card:hover {
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
      }

      .proj-card--coral { background: linear-gradient(160deg, #d98e8e 0%, #c06b6b 100%); }
      .proj-card--purple { background: linear-gradient(160deg, #9b96d1 0%, #7a73bf 100%); }
      .proj-card--yellow { background: linear-gradient(160deg, #e0d06a 0%, #c9b84e 100%); }

      .proj-card[data-position="left"] {
        left: 0; top: 20px;
        transform: rotate(-8deg) translateX(0px);
        z-index: 1;
      }

      .proj-card[data-position="center"] {
        left: 50%; top: 0;
        transform: translateX(-50%) rotate(0deg);
        z-index: 3;
      }

      .proj-card[data-position="right"] {
        right: 0; top: 20px;
        transform: rotate(8deg) translateX(0px);
        z-index: 1;
      }

      .proj-card[data-position="center"]:hover {
        transform: translateX(-50%) rotate(0deg) scale(1.03);
      }

      .proj-card[data-position="left"]:hover {
        transform: rotate(-6deg) scale(1.03);
        z-index: 4;
      }

      .proj-card[data-position="right"]:hover {
        transform: rotate(6deg) scale(1.03);
        z-index: 4;
      }

      .proj-card-image {
        width: 100%;
        height: 160px;
        background: rgba(220, 220, 220, 0.85);
        border-radius: 14px;
        flex-shrink: 0;
        overflow: hidden;
      }

      .proj-card-image img {
        width: 100%; height: 100%;
        object-fit: cover;
        border-radius: inherit;
        opacity: 0.75;
      }

      .proj-card-title {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 1.45rem;
        font-weight: 400;
        font-style: italic;
        margin-top: 0.9rem;
        letter-spacing: 0.02em;
      }

      .proj-card-desc {
        font-family: 'Inter', sans-serif;
        font-size: 0.82rem;
        font-weight: 300;
        line-height: 1.55;
        margin-top: 0.45rem;
        opacity: 0.88;
        flex-grow: 1;
      }

      .proj-card-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: 0.6rem;
      }

      .proj-tech-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-family: 'Inter', sans-serif;
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        padding: 0.35rem 0.65rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
      }
      
      .proj-tech-tag svg {
        flex-shrink: 0;
        opacity: 0.9;
      }

      .proj-card-actions {
        display: flex;
        gap: 0.75rem;
        margin-top: auto;
        padding-top: 0.8rem;
      }

      /* Liquid Glass Button (projects) */
      .proj-glass-btn {
        flex: 1;
        border: none;
        cursor: pointer;
        font-family: 'Inter', sans-serif;
        font-size: 0.82rem;
        font-weight: 500;
        letter-spacing: 0.03em;
        color: rgba(255, 255, 255, 0.92);
        text-decoration: none;
        text-align: center;
      }

      .proj-glass-btn .LiquidGlass {
        --lg-radius: 999px;
        position: relative;
        overflow: visible;
        border-radius: var(--lg-radius);
        pointer-events: none;
      }

      .proj-glass-btn .LiquidGlass::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: rgba(255, 255, 255, 0.01);
        background-blend-mode: luminosity;
        backdrop-filter: blur(17px) brightness(1.15) contrast(1.2) saturate(1.2);
        -webkit-backdrop-filter: blur(17px) brightness(1.15) contrast(1.2) saturate(1.2);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
        pointer-events: none;
        z-index: 1;
      }

      .proj-glass-btn .LiquidGlass::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1.4px;
        background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        z-index: 2;
      }

      .proj-glass-btn .LiquidGlass__content {
        position: relative;
        z-index: 100;
        border-radius: inherit;
        pointer-events: auto;
        overflow: visible;
        background: linear-gradient(145deg, rgba(233,248,255,0.16) 0%, rgba(130,166,191,0.08) 55%, rgba(20,35,50,0.2) 100%);
        display: block;
        padding: 0.55rem 1.2rem;
        transition: background 0.2s ease, transform 0.15s ease;
      }

      .proj-glass-btn:hover .LiquidGlass__content {
        background: linear-gradient(145deg, rgba(233,248,255,0.28) 0%, rgba(130,166,191,0.14) 55%, rgba(20,35,50,0.32) 100%);
      }

      .proj-glass-btn:active .LiquidGlass__content {
        transform: scale(0.96);
      }

      /* Swipe/Click Indicator */
      .proj-swipe-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        color: var(--text-dim, #a0a0a0);
        font-family: 'Space Mono', monospace;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
      }
      
      .proj-swipe-indicator.visible {
        transform: translateY(0);
        animation: swipePulse 2s infinite ease-in-out;
        /* opacity is managed by swipePulse animation */
      }

      /* View All Button */
      .proj-view-all-wrapper {
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
      }

      .proj-view-all-wrapper.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .proj-view-all-btn {
        display: inline-block;
        border: none;
        cursor: pointer;
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        color: var(--text-main);
        text-decoration: none;
      }

      .proj-view-all-btn .LiquidGlass {
        --lg-radius: 999px;
        position: relative;
        overflow: visible;
        border-radius: var(--lg-radius);
        pointer-events: none;
      }

      .proj-view-all-btn .LiquidGlass::before {
        content: "";
        position: absolute; inset: 0;
        border-radius: inherit;
        background: rgba(255, 255, 255, 0.01);
        background-blend-mode: luminosity;
        backdrop-filter: blur(17px) brightness(1.15) contrast(1.2) saturate(1.2);
        -webkit-backdrop-filter: blur(17px) brightness(1.15) contrast(1.2) saturate(1.2);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
        pointer-events: none;
        z-index: 1;
      }

      .proj-view-all-btn .LiquidGlass::after {
        content: "";
        position: absolute; inset: 0;
        border-radius: inherit;
        padding: 1.4px;
        background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        z-index: 2;
      }

      .proj-view-all-btn .LiquidGlass__content {
        position: relative;
        z-index: 100;
        border-radius: inherit;
        pointer-events: auto;
        overflow: visible;
        background: linear-gradient(145deg, rgba(233,248,255,0.16) 0%, rgba(130,166,191,0.08) 55%, rgba(20,35,50,0.2) 100%);
        display: block;
        padding: 0.65rem 2.2rem;
        transition: background 0.2s ease, transform 0.15s ease;
      }

      .proj-view-all-btn:hover .LiquidGlass__content {
        background: linear-gradient(145deg, rgba(233,248,255,0.28) 0%, rgba(130,166,191,0.14) 55%, rgba(20,35,50,0.32) 100%);
      }

      .proj-view-all-btn:active .LiquidGlass__content {
        transform: scale(0.96);
      }

      /* Projects Responsive: tablet */
      @media (max-width: 780px) {
        .proj-carousel {
          height: 480px;
          max-width: 500px;
        }
        .proj-card {
          width: 240px;
          height: 410px;
        }
        .proj-card-image { height: 130px; }
        .proj-card[data-position="left"] { left: -20px; transform: rotate(-10deg); }
        .proj-card[data-position="right"] { right: -20px; transform: rotate(10deg); }
      }

      /* Projects Responsive: mobile stacked deck */
      @media (max-width: 520px) {
        .proj-carousel {
          height: 480px;
          max-width: 100%;
        }
        .proj-card {
          width: 260px;
          height: 410px;
          transform-origin: center top;
        }
        .proj-card-image { height: 120px; }
        .proj-card-title { font-size: 1.3rem; }
        .proj-card-desc { font-size: 0.8rem; }
        .projects-ascii { display: none; }

        .proj-card[data-position="left"] {
          left: 50%; top: 0;
          transform: translateX(-50%) translateY(0) scale(0.86);
          z-index: 1; opacity: 0.45;
        }
        .proj-card[data-position="right"] {
          left: 50%; right: auto; top: 0;
          transform: translateX(-50%) translateY(25px) scale(0.93);
          z-index: 2; opacity: 0.85;
        }
        .proj-card[data-position="center"] {
          left: 50%; top: 0;
          transform: translateX(-50%) translateY(55px) scale(1);
          z-index: 3; opacity: 1;
        }
        .proj-card[data-position="left"]:hover {
          transform: translateX(-50%) translateY(-10px) scale(0.88);
          z-index: 4; opacity: 0.9;
        }
        .proj-card[data-position="right"]:hover {
          transform: translateX(-50%) translateY(15px) scale(0.95);
          z-index: 4; opacity: 1;
        }
        .proj-card[data-position="center"]:hover {
          transform: translateX(-50%) translateY(50px) scale(1.02);
        }
      }
      /* ===== END PROJECTS SECTION ===== */

      /* ===== CONTACT SECTION ===== */
      .contact-section {
        position: relative;
        width: 100%;
        min-height: 100dvh;
        background-color: var(--bg-color);
        color: var(--text-main);
        overflow-x: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6rem 1rem 4rem;
        transition: background-color 0.5s ease, color 0.5s ease;
      }

      .contact-section::before {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        pointer-events: none;
        z-index: 1;
        opacity: 0.04;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
      }

      .contact-section::after {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 120px;
        /* background: linear-gradient(to bottom, var(--bg-color), transparent); */
        pointer-events: none;
        z-index: 2;
      }

      .contact-inner {
        position: relative;
        z-index: 3;
        width: 100%;
        max-width: 1100px;
        display: flex;
        gap: 6vw;
        align-items: center;
      }

      /* Contact Left Column */
      .contact-left {
        flex: 0 0 320px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .contact-left.visible {
        opacity: 1;
        transform: translateX(0);
      }

      .contact-heading {
        font-size: clamp(3.2rem, 7vw, 5rem);
        font-weight: normal;
        letter-spacing: -2px;
        margin: 0 0 3vh 0;
        color: var(--text-main);
        line-height: 1;
      }

      .contact-socials {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 2vh;
        width: 100%;
        max-width: 380px;
      }

      .contact-ascii {
        font-family: monospace;
        font-size: clamp(0.45rem, 1.1vh, 0.8rem);
        line-height: 1.15;
        color: var(--text-dim);
        white-space: pre;
        margin-top: 0;
        align-self: center;
        transform: translateX(-20px);
        user-select: none;
      }

      /* Contact Right Column â€” Form */
      .contact-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
      }

      .contact-right.visible {
        opacity: 1;
        transform: translateX(0);
      }

      /* â”€â”€ Contact Card Container â”€â”€ */
      .contact-card {
        position: relative;
        border-radius: 24px;
        padding: clamp(28px, 4vw, 44px);
        background:
          linear-gradient(145deg,
            rgba(255, 255, 255, 0.07) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(0, 0, 0, 0.05) 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px) saturate(1.3);
        -webkit-backdrop-filter: blur(20px) saturate(1.3);
        box-shadow:
          0 8px 32px rgba(0, 0, 0, 0.25),
          inset 0 1px 0 rgba(255, 255, 255, 0.06);
        overflow: hidden;
      }

      .contact-card::before {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        border-radius: inherit;
        opacity: 0.03;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        pointer-events: none;
      }

      .contact-card__header {
        margin-bottom: clamp(24px, 3.5vh, 36px);
      }

      .contact-card__title {
        font-family: 'Instrument Serif', Georgia, serif;
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        font-weight: normal;
        color: var(--text-main);
        margin: 0 0 6px 0;
        letter-spacing: -0.5px;
      }

      .contact-card__subtitle {
        font-family: 'Inter', sans-serif;
        font-size: clamp(0.85rem, 1.4vw, 0.95rem);
        color: var(--text-dim);
        margin: 0;
        font-weight: 300;
        letter-spacing: 0.02em;
      }

      .contact-form {
        display: flex;
        flex-direction: column;
        gap: clamp(20px, 3vh, 28px);
        width: 100%;
      }

      .contact-form-row {
        display: flex;
        gap: clamp(14px, 2vw, 20px);
      }

      .contact-form-group {
        display: flex;
        flex-direction: column;
        flex: 1;
      }

      /* â”€â”€ Floating Label Input System â”€â”€ */
      .ct-input-wrap {
        position: relative;
        width: 100%;
      }

      .ct-input-wrap input,
      .ct-input-wrap textarea {
        width: 100%;
        padding: 20px 16px 8px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: var(--text-main);
        font-family: 'Inter', sans-serif;
        font-size: clamp(0.9rem, 1.5vw, 1rem);
        font-weight: 400;
        outline: none;
        resize: none;
        transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
      }

      .ct-input-wrap textarea {
        height: clamp(110px, 18vh, 160px);
        padding-top: 24px;
      }

      .ct-input-wrap label {
        position: absolute;
        top: 50%;
        left: 16px;
        transform: translateY(-50%);
        font-family: 'Inter', sans-serif;
        font-size: clamp(0.9rem, 1.5vw, 1rem);
        font-weight: 400;
        color: var(--text-dim);
        pointer-events: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: left center;
      }

      .ct-input-wrap--textarea label {
        top: 20px;
        transform: translateY(0);
      }

      /* Floating state â€” when focused or has content */
      .ct-input-wrap input:focus + label,
      .ct-input-wrap input:not(:placeholder-shown) + label {
        top: 8px;
        transform: translateY(0) scale(0.75);
        color: rgba(200, 180, 130, 0.9);
      }

      .ct-input-wrap textarea:focus + label,
      .ct-input-wrap textarea:not(:placeholder-shown) + label {
        top: 6px;
        transform: translateY(0) scale(0.75);
        color: rgba(200, 180, 130, 0.9);
      }

      /* Focus glow */
      .ct-input-wrap input:focus,
      .ct-input-wrap textarea:focus {
        border-color: rgba(200, 180, 130, 0.35);
        background: rgba(255, 255, 255, 0.06);
        box-shadow: 0 0 0 3px rgba(200, 180, 130, 0.08), 0 4px 16px rgba(0, 0, 0, 0.1);
      }

      /* Animated underline bar */
      .ct-input-bar {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(200, 180, 130, 0.6), transparent);
        border-radius: 0 0 12px 12px;
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
      }

      .ct-input-wrap input:focus ~ .ct-input-bar,
      .ct-input-wrap textarea:focus ~ .ct-input-bar {
        width: 100%;
        left: 0;
      }


      /* â”€â”€ Light Mode Overrides â”€â”€ */
      [data-theme="light"] .contact-card {
        background:
          linear-gradient(145deg,
            rgba(255, 255, 255, 0.65) 0%,
            rgba(245, 240, 225, 0.45) 50%,
            rgba(240, 235, 220, 0.35) 100%);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow:
          0 8px 32px rgba(0, 0, 0, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.5);
      }

      [data-theme="light"] .ct-input-wrap input,
      [data-theme="light"] .ct-input-wrap textarea {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.1);
      }

      [data-theme="light"] .ct-input-wrap input:focus,
      [data-theme="light"] .ct-input-wrap textarea:focus {
        border-color: rgba(160, 130, 70, 0.4);
        background: rgba(255, 255, 255, 0.5);
        box-shadow: 0 0 0 3px rgba(160, 130, 70, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05);
      }

      [data-theme="light"] .ct-input-wrap input:focus + label,
      [data-theme="light"] .ct-input-wrap input:not(:placeholder-shown) + label,
      [data-theme="light"] .ct-input-wrap textarea:focus + label,
      [data-theme="light"] .ct-input-wrap textarea:not(:placeholder-shown) + label {
        color: rgba(140, 110, 50, 0.9);
      }

      [data-theme="light"] .ct-input-bar {
        background: linear-gradient(90deg, transparent, rgba(160, 130, 70, 0.5), transparent);
      }


      /* Contact Responsive */
      @media (max-width: 860px) {
        .contact-inner {
          flex-direction: column;
          align-items: center;
          gap: 6vh;
        }
        .contact-left {
          flex: none;
          align-items: center;
          text-align: center;
          width: 100%;
          transform: translateY(40px);
        }
        .contact-left.visible {
          transform: translateY(0);
        }
        .contact-heading {
          font-size: 3.5rem;
          margin: 0 0 3vh 0;
        }
        .contact-socials {
          width: 100%;
          max-width: 400px;
          flex-direction: column;
          flex-wrap: nowrap;
          justify-content: center;
          gap: 14px;
          margin-bottom: 3vh;
        }
        .contact-ascii {
          font-size: 0.55rem;
          transform: none;
        }
        .contact-right {
          width: 100%;
          transform: translateY(40px);
        }
        .contact-right.visible {
          transform: translateY(0);
        }
        .contact-card {
          padding: clamp(20px, 5vw, 32px);
        }
        .contact-form {
          gap: 20px;
        }
        .contact-form-row {
          flex-direction: column;
          gap: 20px;
        }
      }
      /* ===== END CONTACT SECTION ===== */

      /* ===== FORM TOAST NOTIFICATIONS ===== */
      .form-toast {
        position: fixed;
        bottom: 32px;
        left: 50%;
        transform: translateX(-50%) translateY(24px);
        z-index: 99999;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 24px;
        border-radius: 16px;
        font-family: 'Inter', sans-serif;
        font-size: 0.92rem;
        font-weight: 450;
        color: var(--text-main, #f3f3f3);
        background: linear-gradient(145deg,
          rgba(255, 255, 255, 0.1) 0%,
          rgba(255, 255, 255, 0.03) 50%,
          rgba(0, 0, 0, 0.08) 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(24px) saturate(1.4);
        -webkit-backdrop-filter: blur(24px) saturate(1.4);
        box-shadow:
          0 8px 32px rgba(0, 0, 0, 0.3),
          inset 0 1px 0 rgba(255, 255, 255, 0.08);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        max-width: min(90vw, 480px);
      }

      .form-toast--visible {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
      }

      .form-toast__icon {
        display: flex;
        align-items: center;
        flex-shrink: 0;
      }

      .form-toast__text {
        line-height: 1.4;
      }

      .form-toast--success {
        border-color: rgba(72, 199, 142, 0.25);
      }

      .form-toast--success .form-toast__icon svg {
        stroke: #48c78e;
      }

      .form-toast--error {
        border-color: rgba(241, 70, 104, 0.25);
      }

      .form-toast--error .form-toast__icon svg {
        stroke: #f14668;
      }

      /* Light mode toast */
      [data-theme="light"] .form-toast {
        color: #2a2015;
        background: linear-gradient(145deg,
          rgba(255, 255, 255, 0.75) 0%,
          rgba(250, 245, 235, 0.6) 50%,
          rgba(240, 235, 220, 0.5) 100%);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow:
          0 8px 32px rgba(0, 0, 0, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.5);
      }

      /* Submit button spinner */
      .form-spinner {
        animation: formSpin 0.8s linear infinite;
      }

      @keyframes formSpin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
      }

      /* Disabled submit button state */
      #contact-submit:disabled {
        cursor: not-allowed;
      }
      /* ===== END FORM TOAST NOTIFICATIONS ===== */

      /* ===== FOOTER SECTION ===== */
      .footer-section {
        position: relative;
        width: 100%;
        height: 100dvh;
        min-height: 600px;
        background-color: var(--bg-color);
        color: var(--text-main);
        overflow: hidden;
        font-family: 'Times New Roman', Times, serif;
        transition: background-color 0.5s ease, color 0.5s ease;
      }

      .footer-section::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
        opacity: 0.04;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
      }

      .footer-cloud-back {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65vh;
        object-fit: cover;
        object-position: center bottom;
        z-index: 1;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
      }

      .footer-swar-text {
        position: absolute;
        bottom: 15vh;
        left: 50%;
        transform: translateX(-50%);
        font-family: 'Instrument Serif', Georgia, serif;
        font-size: 15vw;
        z-index: 2;
        white-space: nowrap;
        line-height: 0.8;
        letter-spacing: 0.1em;
        color: var(--text-main);
        user-select: none;
        opacity: 0;
        transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, color 0.5s ease;
      }

      .footer-swar-text.visible {
        opacity: 1;
      }

      .footer-cloud-front {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60vh;
        object-fit: cover;
        object-position: center bottom;
        z-index: 3;
        pointer-events: none;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
      }

      .footer-content {
        position: absolute;
        top: 15%;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        z-index: 4;
        padding: 0 10%;
        box-sizing: border-box;
      }

      .footer-cat-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        text-decoration: none;
        color: inherit;
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .footer-cat-container.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .footer-cat-container:nth-child(2) {
        transition-delay: 0.12s;
      }

      .footer-cat-container:nth-child(3) {
        transition-delay: 0.24s;
      }

      .footer-ascii-art {
        font-family: monospace;
        white-space: pre;
        line-height: 1.2;
        font-size: 16px;
        margin: 0;
        color: var(--text-main);
      }

      .footer-title-text {
        font-size: 4.5vw;
        letter-spacing: 0.08em;
        font-family: 'Instrument Serif', Georgia, serif;
        cursor: pointer;
        transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }

      .footer-title-text:hover {
        opacity: 0.75;
        transform: translateY(-3px);
      }

      .footer-cat-container#footer-more-stuff .footer-title-text {
        margin-top: 10px;
      }

      .footer-cat-container#footer-hackathons .footer-title-text {
        margin: 5px 0;
      }

      .footer-cat-container#footer-socials {
        flex-direction: column-reverse;
      }

      .footer-cat-container#footer-socials .footer-title-text {
        margin-bottom: 10px;
      }

      /* Gradient divider from contact to footer */
      .footer-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 120px;
        /* background: linear-gradient(to bottom, var(--bg-color), transparent); */
        pointer-events: none;
        z-index: 5;
      }

      /* Footer Responsive */
      @media (max-width: 1024px) {
        .footer-content {
          top: 5%;
          padding: 0 5%;
        }
        .footer-swar-text {
          font-size: 25vw;
          bottom: 10vh;
        }
      }

      @media (max-width: 768px) {
        .footer-cat-container#footer-more-stuff .footer-ascii-art,
        .footer-cat-container#footer-hackathons .footer-ascii-art {
          display: none;
        }
        .footer-content {
          flex-direction: column;
          align-items: center;
          justify-content: center;
          gap: 2vh;
          top: 10vh;
          height: 50vh;
        }
        .footer-ascii-art {
          font-size: 1.8vh;
        }
        .footer-title-text {
          font-size: 10vw;
        }
        .footer-cat-container#footer-more-stuff .footer-title-text,
        .footer-cat-container#footer-hackathons .footer-title-text,
        .footer-cat-container#footer-socials .footer-title-text {
          margin: 10px 0;
        }
        .footer-swar-text {
          font-size: 35vw;
          bottom: 8vh;
        }
        .footer-cloud-front, .footer-cloud-back {
          height: 50vh;
        }
      }
      /* ===== END FOOTER SECTION ===== */

      /* ===== YIN YANG FISH PRELOADER ===== */
      #preloader {
        background-color: var(--bg-color);
        min-height: 100vh;
        display: grid;
        place-items: center;
        background-image: radial-gradient(circle, var(--text-main) 5em, transparent 0);
        overflow: hidden;
        position: fixed;
        inset: 0;
        z-index: 99999;
        transition: opacity 0.5s ease-out;
        font-size: min(16px, 3vmin); /* scoping from html */
      }
      
      #preloader.fade-out {
        opacity: 0;
        pointer-events: none;
      }
      
      #preloader .koi-container {
        position: relative;
      }
      
      #preloader .koi {
        position: absolute;
        inset: -25em;
        filter: blur(0.5em) contrast(15);
        animation: koiRotate 24s var(--rotateDelay, 0s) infinite linear;
        
        &:nth-child(1) {
          --linkColor: white;
          --duration: 3s;
          background-color: black;
          mix-blend-mode: lighten;
        }
      
        &:nth-child(2) {
          --linkColor: black;
          --duration: 3.5s;
          --rotateDelay: -12s;
          background-color: white;
          mix-blend-mode: darken;
        }
      }
      
      @keyframes koiRotate {
        to { rotate: 1turn; }
      }
      
      #preloader .koi-links {
        position: absolute;
        left: 50%; top: 50%;
      }
      
      #preloader .koi-link {
        --w: calc(pow(var(--i) / 12, 2) * -2em - 0.25em);
        --delay: calc(var(--i) * var(--duration) * -0.15 - 20s);
        
        position: absolute;
        inset: var(--w) -3em;
        background-color: var(--linkColor);
        border-radius: 50%;
        animation: link var(--duration) var(--delay) infinite ease-in-out alternate;
      }
      
      @keyframes link {
        from { transform: rotate(calc(var(--i) * 10deg)) translateY(-8.5em); }
        to { transform: rotate(calc(var(--i) * 10deg)) translateY(-11.5em); }
      }
      
      #preloader .koi-fins {
        --i: 10;
        --delay: calc(var(--i) * var(--duration) * -0.15 - 20s);
        
        position: absolute;
        left: 50%; top: 50%;
        animation: link var(--duration) var(--delay) infinite ease-in-out alternate;
      }
      
      #preloader .koi-fin {
        position: absolute;
        inset: -3em -1.5em;
        background-color: var(--linkColor);
        border-radius: 50%;
        transform-origin: bottom;
        animation: fin var(--duration) infinite ease-in-out;
      
        &:nth-child(2) {
          --rz: 180deg;
        }
      }
      
      @keyframes fin {
        0%, 100% { transform: translateY(-3em) rotateX(var(--rz, 0deg)) rotate(10deg); }
        40% { transform: translateY(-3em) rotateX(var(--rz, 0deg)) rotate(-30deg); }
      }
      
      #preloader .koi-tails {
        --i: 1;
        --delay: calc(var(--i) * var(--duration) * -0.15 - 20s);
        
        position: absolute;
        left: 50%; top: 50%;
        animation: link var(--duration) var(--delay) infinite ease-in-out alternate;
      }
      
      #preloader .koi-tail {
        position: absolute;
        inset: -2em -1em;
        background-color: var(--linkColor);
        border-radius: 50%;
        transform-origin: bottom;
        animation: tail var(--duration) infinite ease-in-out;
      
        &:nth-child(2) {
          --rz: 180deg;
        }
      }
      
      @keyframes tail {
        0%, 100% { transform: translateY(-2em) rotateX(var(--rz, 0deg)) rotate(-60deg); }
        50% { transform: translateY(-2em) rotateX(var(--rz, 0deg)) rotate(-40deg); }
      }

      /* ===== PROJECT MODAL ===== */
      .project-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        padding: 2rem;
      }

      .project-modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
      }

      .project-modal-container {
        position: relative;
        width: 100%;
        max-width: 800px;
        max-height: 90vh;
        border-radius: 20px;
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        transform: translateY(20px) scale(0.95);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        color: var(--text-main);
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        
        /* Hide scrollbar for a cleaner look */
        scrollbar-width: none;
      }
      .project-modal-container::-webkit-scrollbar {
        display: none;
      }

      [data-theme="light"] .project-modal-container {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
      }

      .project-modal-overlay.active .project-modal-container {
        transform: translateY(0) scale(1);
      }

      /* Modal Themes - matching project cards */
      .project-modal-container.theme-coral {
        background: linear-gradient(160deg, rgba(217, 142, 142, 0.95) 0%, rgba(192, 107, 107, 0.95) 100%);
        border-color: rgba(255, 255, 255, 0.3);
        color: #fff;
      }
      .project-modal-container.theme-purple {
        background: linear-gradient(160deg, rgba(155, 150, 209, 0.95) 0%, rgba(122, 115, 191, 0.95) 100%);
        border-color: rgba(255, 255, 255, 0.3);
        color: #fff;
      }
      .project-modal-container.theme-yellow {
        background: linear-gradient(160deg, rgba(224, 208, 106, 0.95) 0%, rgba(201, 184, 78, 0.95) 100%);
        border-color: rgba(255, 255, 255, 0.3);
        color: #2a2015;
      }

      /* Close Button */
      .project-modal-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: inherit;
        transition: background 0.2s ease, transform 0.2s ease;
        z-index: 2;
      }

      .project-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
      }

      .project-modal-image {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        max-height: 400px;
        background: rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
      }

      .project-modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .project-modal-title {
        font-family: 'Instrument Serif', serif;
        font-size: 3rem;
        margin: 0;
        line-height: 1.1;
      }

      .project-modal-desc {
        font-size: 1.1rem;
        line-height: 1.6;
        opacity: 0.9;
      }

      .project-modal-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
      }

      .project-modal-tech .proj-tech-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.3);
      }
      
      .project-modal-tech .proj-tech-tag svg {
        width: 14px;
        height: 14px;
      }

      .project-modal-container.theme-yellow .project-modal-tech .proj-tech-tag {
        background: rgba(0, 0, 0, 0.05);
        color: #2a2015;
        border: 1px solid rgba(0, 0, 0, 0.15);
      }

      .project-modal-actions {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
      }

      .project-modal-container.theme-yellow .perfect-button.theme-sand {
        --btn-border: rgba(0, 0, 0, 0.1);
        --btn-bg: rgba(255, 255, 255, 0.3);
        --btn-color: #2a2015;
      }
      .project-modal-container.theme-yellow .perfect-button.theme-sand .perfect-icon svg {
        fill: #2a2015;
      }

      @media (max-width: 768px) {
        .project-modal-overlay {
          padding: 1rem;
        }
        .project-modal-container {
          padding: 1.5rem;
          gap: 1rem;
        }
        .project-modal-title {
          font-size: 2.2rem;
        }
        .project-modal-close {
          top: 1rem;
          right: 1rem;
          width: 32px;
          height: 32px;
        }
      }
