:root {
      /* High-End Slate & Indigo Palette */
      --cream: #050507;
      --bg-soft: #0c0c0e;
      --ink: #fcfcfc;
      --ink-soft: #94a3b8;
      --muted: #475569;
      --accent: #6366f1;
      /* Indigo Accent */
      --accent-glow: rgba(99, 102, 241, 0.4);
      --accent-soft: rgba(99, 102, 241, 0.1);
      --border: rgba(255, 255, 255, 0.08);
      --ease: cubic-bezier(0.19, 1, 0.22, 1);
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      background-color: var(--cream);
      color: var(--ink);
      line-height: 1.8;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      /* Midnight Azure Dynamic Background */
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 40%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 40%);
      background-size: 80px 80px, 80px 80px, 100% 100%, 100% 100%;
      background-attachment: fixed;
    }

    body.loading {
      overflow: hidden;
    }

    /* ─── CUSTOM SCROLLBAR ─── */
    ::-webkit-scrollbar {
      width: 6px;
    }

    ::-webkit-scrollbar-track {
      background: var(--cream);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--accent);
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: #2563EB;
    }

    /* ─── SCROLL PROGRESS ─── */
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 3px;
      background: linear-gradient(to right, var(--accent), #60A5FA);
      z-index: 10001;
      transition: width 0.1s ease-out;
    }

    /* ─── GRAIN TEXTURE ─── */
    .grain {
      position: fixed;
      top: -50%;
      left: -50%;
      right: -50%;
      bottom: -50%;
      width: 200%;
      height: 200%;
      background: transparent url('http://assets.iceable.com/img/noise-transparent.png') repeat 0 0;
      background-repeat: repeat;
      animation: noise 1s steps(2) infinite;
      opacity: .05;
      visibility: visible;
      pointer-events: none;
      z-index: 9999;
    }

    @keyframes noise {
      0% {
        transform: translate(0, 0)
      }

      10% {
        transform: translate(-5%, -5%)
      }

      20% {
        transform: translate(-10%, 5%)
      }

      30% {
        transform: translate(5%, -10%)
      }

      40% {
        transform: translate(-5%, 15%)
      }

      50% {
        transform: translate(-10%, 5%)
      }

      60% {
        transform: translate(15%, 0)
      }

      70% {
        transform: translate(0, 10%)
      }

      80% {
        transform: translate(-15%, 0)
      }

      90% {
        transform: translate(10%, 5%)
      }

      100% {
        transform: translate(5%, 0)
      }
    }

    /* ─── LOADING SCREEN ─── */
    #loader-wrapper {
      position: fixed;
      inset: 0;
      background: #121418;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10000;
      transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
    }

    #loader-wrapper.hidden {
      opacity: 0;
      visibility: hidden;
    }

    /* Loader SVG CSS from User */
    .loader-container {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    @keyframes bounce {

      0%,
      100% {
        translate: 0px 36px;
      }

      50% {
        translate: 0px 46px;
      }
    }

    @keyframes bounce2 {

      0%,
      100% {
        translate: 0px 46px;
      }

      50% {
        translate: 0px 56px;
      }
    }

    @keyframes umbral {
      0% {
        stop-color: rgba(59, 130, 246, 0.2);
      }

      50% {
        stop-color: rgba(59, 130, 246, 0.5);
      }

      100% {
        stop-color: rgba(59, 130, 246, 0.2);
      }
    }

    @keyframes particles {

      0%,
      100% {
        translate: 0px 16px;
      }

      50% {
        translate: 0px 6px;
      }
    }

    #particles {
      animation: particles 4s ease-in-out infinite;
    }

    #animatedStop {
      animation: umbral 4s infinite;
    }

    #bounce {
      animation: bounce 4s ease-in-out infinite;
      translate: 0px 36px;
    }

    #bounce2 {
      animation: bounce2 4s ease-in-out infinite;
      translate: 0px 46px;
      animation-delay: 0.5s;
    }

    #welcome-overlay {
      position: fixed;
      inset: 0;
      background: #121418;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 11000;
      opacity: 0;
      visibility: hidden;
      transform: scale(1);
      transition: opacity 1s var(--ease), visibility 1s var(--ease), transform 1.2s var(--ease);
    }

    #welcome-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .welcome-text-wrap {
      text-align: center;
      overflow: hidden;
      padding: 2rem;
    }

    .welcome-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(3rem, 10vw, 5rem);
      color: var(--ink);
      transform: translateY(110%);
      transition: transform 1.2s var(--ease);
      margin-bottom: 0.5rem;
    }

    .welcome-title span {
      color: var(--accent);
      font-style: italic;
      margin-left: 0.5rem;
    }

    .welcome-subtitle {
      font-family: 'DM Mono', monospace;
      font-size: 0.8rem;
      color: var(--muted);
      letter-spacing: 0.4em;
      text-transform: uppercase;
      opacity: 0;
      transform: translateY(20px);
      transition: all 1s var(--ease) 0.4s;
    }

    #welcome-overlay.animating .welcome-title {
      transform: translateY(0);
    }

    #welcome-overlay.animating .welcome-subtitle {
      opacity: 1;
      transform: translateY(0);
    }

    .welcome-progress-container {
      position: absolute;
      bottom: 10%;
      left: 10%;
      right: 10%;
      height: 1px;
      background: rgba(255, 255, 255, 0.05);
      overflow: hidden;
    }

    .welcome-progress-bar {
      height: 100%;
      width: 0%;
      background: var(--accent);
      transition: width 2.5s cubic-bezier(0.65, 0, 0.35, 1);
    }

    /* ─── NAV ─── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      padding: 1.5rem 6%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(5, 5, 7, 0.9);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      z-index: 1000;
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 1rem;
      text-decoration: none;
      z-index: 1100;
    }

    .nav-logo-text {
      font-family: 'Playfair Display', serif;
      font-size: 1.4rem;
      font-weight: 600;
      color: var(--ink);
    }

    .nav-logo img {
      height: 28px;
      width: auto;
    }

    .nav-links {
      display: flex;
      gap: 3rem;
      list-style: none;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--ink-soft);
      font-family: 'DM Mono', monospace;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      transition: color 0.3s;
    }

    .nav-links a:hover {
      color: var(--accent);
    }

    /* Mobile Nav Toggle */
    .nav-toggle {
      display: none;
      background: none;
      border: none;
      color: var(--ink);
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 1100;
    }

    @media (max-width: 900px) {
      .nav-toggle {
        display: block;
      }

      .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-soft);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.5s var(--ease);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
      }

      .nav-links.active {
        right: 0;
      }

      .nav-links a {
        font-size: 1.2rem;
      }
    }

    /* ─── HERO ─── */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 10%;
      border-bottom: 1px solid var(--border);
      position: relative;
      overflow: hidden;
    }

    .hero-content {
      position: relative;
      z-index: 10;
    }

    .hero-pre {
      font-family: 'DM Mono', monospace;
      font-size: 0.8rem;
      color: var(--accent);
      letter-spacing: 0.4em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .hero-pre::before {
      content: '';
      width: 40px;
      height: 1px;
      background: var(--accent);
      opacity: 0.5;
    }

    .hero h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(3rem, 10vw, 8rem);
      font-weight: 500;
      line-height: 1;
      margin-bottom: 2rem;
      color: var(--ink);
      letter-spacing: -0.03em;
    }

    @media (max-width: 600px) {
      .hero-pre {
        font-size: 0.7rem;
        gap: 1rem;
      }

      .hero-pre::before {
        width: 25px;
      }

      .hero-actions {
        flex-direction: column;
        width: 100%;
      }

      .btn {
        width: 100%;
        justify-content: center;
      }
    }

    .hero-bio {
      max-width: 680px;
      font-size: clamp(1rem, 3vw, 1.3rem);
      color: var(--ink-soft);
      line-height: 1.7;
      margin-bottom: 3.5rem;
      font-weight: 300;
    }

    .availability-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.6rem 1.25rem;
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(16, 185, 129, 0.15);
      border-radius: 100px;
      color: #10b981;
      font-size: 0.7rem;
      font-family: 'DM Mono', monospace;
      margin-bottom: 2.5rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    .availability-dot {
      width: 8px;
      height: 8px;
      background: #10b981;
      border-radius: 50%;
      box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
      animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: .4;
        transform: scale(1.3);
      }
    }

    /* Scroll Indicator */
    .scroll-indicator {
      position: absolute;
      bottom: 60px;
      right: 6%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      opacity: 0;
      transition: opacity 1s var(--ease) 1s;
    }

    body.loaded .scroll-indicator {
      opacity: 0.4;
    }

    @media (max-width: 900px) {
      .scroll-indicator {
        display: none;
      }
    }

    .scroll-indicator span {
      font-family: 'DM Mono', monospace;
      font-size: 0.6rem;
      text-transform: uppercase;
      letter-spacing: 0.4em;
      writing-mode: vertical-rl;
      color: var(--muted);
    }

    .scroll-line {
      width: 1px;
      height: 60px;
      background: linear-gradient(to bottom, var(--accent), transparent);
      position: relative;
      overflow: hidden;
    }

    .scroll-line::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 40%;
      background: #fff;
      animation: scroll-move 2s infinite;
    }

    @keyframes scroll-move {
      0% {
        transform: translateY(-100%);
      }

      100% {
        transform: translateY(250%);
      }
    }

    .hero h1 span#typewriter {
      color: var(--accent);
      font-style: italic;
    }

    .hero h1 .line {
      display: block;
      overflow: hidden;
      height: 1.2em;
    }

    .hero h1 .line span {
      display: inline-block;
      white-space: nowrap;
      width: 0;
      overflow: hidden;
      border-right: 2px solid var(--accent);
    }

    .hero h1 .line span.typing {
      border-right-color: var(--accent);
    }

    .hero h1 .line span:not(.typing) {
      border-right-color: transparent;
    }

    .cursor {
      display: inline-block;
      width: 3px;
      height: 0.9em;
      background-color: var(--accent);
      margin-left: 8px;
      vertical-align: middle;
      animation: blink-cursor 1s step-end infinite;
    }

    @keyframes blink-cursor {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0;
      }
    }

    /* Glow Cursor */
    .glow-cursor {
      position: fixed;
      top: 0;
      left: 0;
      width: 30px;
      height: 30px;
      background: rgba(59, 130, 246, 0.4);
      border-radius: 50%;
      pointer-events: none;
      transform: translate(-50%, -50%);
      z-index: 9999;
      mix-blend-mode: screen;
      filter: blur(10px);
      transition: width 0.3s, height 0.3s, background 0.3s;
    }

    .glow-cursor.hovering {
      width: 70px;
      height: 70px;
      background: rgba(59, 130, 246, 0.6);
      filter: blur(15px);
    }

    .hero-actions {
      display: flex;
      gap: 2rem;
    }

    .btn {
      position: relative;
      padding: 1rem 2.5rem;
      font-size: 0.85rem;
      text-decoration: none;
      border-radius: 2px;
      transition: all 0.4s var(--ease);
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      overflow: hidden;
    }

    .btn::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      transform: rotate(45deg);
      transition: 0.6s;
      pointer-events: none;
    }

    .btn:hover::after {
      left: 100%;
    }

    .btn-primary {
      background: var(--ink);
      color: var(--cream);
      box-shadow: 0 10px 20px -10px rgba(224, 224, 224, 0.3);
    }

    .btn-primary:hover {
      background: var(--accent);
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 15px 25px -10px rgba(59, 130, 246, 0.4);
    }

    .btn-outline {
      border: 1px solid var(--ink);
      color: var(--ink);
    }

    .btn-outline:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-soft);
    }

    /* ─── SECTIONS ─── */
    section {
      padding: 10vw 10%;
    }

    @media (max-width: 768px) {
      section {
        padding: 80px 6%;
      }

      .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
      }
    }

    /* ─── CLEAN PROJECT GRID ─── */
    .project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
      gap: 4rem;
    }

    @media (max-width: 768px) {
      .project-grid {
        grid-template-columns: 1fr;
      }
    }

    .project-card {
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      transition: transform 0.4s var(--ease);
    }

    .project-card:hover {
      transform: translateY(-8px);
    }

    .project-visual {
      width: 100%;
      background: var(--bg-soft);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      margin-bottom: 2.5rem;
      transition: all 0.8s var(--ease);
      position: relative;
      aspect-ratio: 16/10;
    }

    .project-card:hover .project-visual {
      border-color: var(--accent);
      box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 1), 0 0 40px var(--accent-soft);
      transform: translateY(-12px);
    }

    .project-visual iframe {
      width: 100%;
      height: 100%;
      border: none;
      pointer-events: none;
      transition: transform 1.2s var(--ease);
      opacity: 0.85;
    }

    .project-card:hover .project-visual iframe {
      transform: scale(1.05);
      opacity: 1;
    }

    .project-info {
      padding: 0 1rem;
    }

    .project-category {
      font-family: 'DM Mono', monospace;
      font-size: 0.75rem;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.3em;
      margin-bottom: 1.25rem;
      display: block;
      font-weight: 500;
    }

    .project-info h3 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 5vw, 3rem);
      margin-bottom: 1.5rem;
      font-weight: 500;
      color: var(--ink);
      line-height: 1.1;
    }

    .project-description {
      font-size: 1.1rem;
      color: var(--ink-soft);
      line-height: 1.8;
      margin-bottom: 3rem;
      max-width: 90%;
      font-weight: 300;
    }

    .project-meta {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 3rem;
      margin-bottom: 3rem;
      padding: 2.5rem;
      background: rgba(255, 255, 255, 0.02);
      border-radius: 20px;
      border: 1px solid var(--border);
    }

    .meta-item span:first-child {
      display: block;
      font-family: 'DM Mono', monospace;
      font-size: 0.65rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.2em;
      margin-bottom: 0.75rem;
    }

    .meta-item span:last-child {
      font-size: 1rem;
      color: var(--ink);
      font-weight: 500;
    }

    .project-tech-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
    }

    .tech-pill {
      padding: 0.6rem 1.2rem;
      background: var(--bg-soft);
      border: 1px solid var(--border);
      border-radius: 100px;
      font-family: 'DM Mono', monospace;
      font-size: 0.7rem;
      color: var(--ink-soft);
      transition: all 0.4s var(--ease);
    }

    .project-card:hover .tech-pill {
      border-color: var(--accent);
      color: var(--ink);
      background: var(--accent-soft);
      transform: translateY(-3px);
    }

    /* ─── ABOUT ─── */
    .about-wrap {
      display: grid;
      grid-template-columns: 1.3fr 0.7fr;
      gap: 5rem;
      align-items: center;
      position: relative;
    }

    .about-wrap::before {
      content: 'ABOUT';
      position: absolute;
      top: -100px;
      right: -50px;
      font-size: 15vw;
      font-family: 'Playfair Display', serif;
      font-weight: 900;
      color: rgba(255, 255, 255, 0.02);
      pointer-events: none;
      z-index: -1;
    }

    .about-content {
      padding-right: 2rem;
    }

    .label {
      font-family: 'DM Mono', monospace;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.4em;
      color: var(--accent);
      margin-bottom: 1.5rem;
      display: block;
    }

    .about-text p {
      font-size: 1.2rem;
      color: var(--ink-soft);
      line-height: 1.7;
      margin-bottom: 2.5rem;
      font-weight: 300;
    }

    .about-image {
      position: relative;
      width: 100%;
      max-width: 400px;
      /* Limit size */
      justify-self: end;
      /* Align to right */
      border-radius: 20px;
      transition: all 0.8s var(--ease);
      padding: 0;
    }

    .about-image-inner {
      width: 100%;
      aspect-ratio: 1/1.2;
      /* Slightly more portrait */
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
    }

    .about-image::after {
      content: '';
      position: absolute;
      inset: -20px;
      border: 1px solid var(--accent);
      border-radius: 24px;
      opacity: 0.2;
      z-index: -1;
      transition: all 0.6s var(--ease);
      pointer-events: none;
    }

    .about-image:hover::after {
      inset: -10px;
      opacity: 0.5;
    }

    .about-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(0.2) contrast(1.1);
      transition: transform 0.8s var(--ease), filter 0.6s ease;
    }

    .about-image:hover img {
      filter: grayscale(0) contrast(1);
      transform: scale(1.05);
    }

    .about-image-inner::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, transparent, rgba(18, 20, 24, 0.4));
      pointer-events: none;
    }

    /* ─── SKILLS ─── */
    .skills-flex {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
    }

    .skill-box {
      padding: 1.5rem 2.5rem;
      border: 1px solid var(--border);
      border-radius: 2px;
      font-size: 0.9rem;
      color: var(--ink-soft);
      transition: all 0.3s;
    }

    .skill-box:hover {
      border-color: var(--accent);
      background: var(--accent-soft);
      color: var(--accent);
      transform: translateY(-5px);
    }

    /* ─── SERVICES ─── */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 3rem;
      margin-top: 6rem;
    }

    @media (max-width: 1024px) {
      .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
    }

    .service-card {
      grid-column: span 12;
      padding: 3.5rem 3rem;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border);
      border-radius: 24px;
      transition: all 0.6s var(--ease);
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      position: relative;
      overflow: hidden;
    }

    @media (min-width: 1024px) {
      .service-card:nth-child(1) {
        grid-column: span 5;
      }

      .service-card:nth-child(2) {
        grid-column: span 7;
      }

      .service-card:nth-child(3) {
        grid-column: span 12;
        flex-direction: row;
        align-items: center;
        gap: 4rem;
      }

      .service-card:nth-child(3) i {
        margin-bottom: 0;
      }
    }

    .service-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.6s var(--ease);
    }

    .service-card:hover::before {
      transform: scaleX(1);
    }

    .service-card i {
      font-size: 2.5rem;
      color: var(--accent);
      transition: all 0.6s var(--ease);
    }

    .service-card:hover i {
      transform: scale(1.1) rotate(10deg);
      filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    }

    .service-card h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      font-weight: 500;
      color: var(--ink);
    }

    .service-card p {
      font-size: 1rem;
      color: var(--ink-soft);
      line-height: 1.7;
      max-width: 500px;
    }

    .service-card:hover {
      background: rgba(59, 130, 246, 0.08);
      border-color: rgba(59, 130, 246, 0.4);
      transform: translateY(-12px);
      box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
    }

    .service-card::after {
      content: attr(data-index);
      position: absolute;
      top: 2rem;
      right: 2rem;
      font-family: 'DM Mono', monospace;
      font-size: 3rem;
      font-weight: 900;
      color: rgba(255, 255, 255, 0.03);
      line-height: 1;
      transition: all 0.6s var(--ease);
    }

    .service-card:hover::after {
      color: rgba(59, 130, 246, 0.1);
      transform: scale(1.1);
    }

    /* ─── CONTACT ─── */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 10%;
      align-items: center;
    }

    /* ── Interactive Form Widget ── */
    .cf-checkbox {
      display: none;
    }

    .cf-wrap {
      position: relative;
      width: 100%;
      max-width: 460px;
    }

    /* the card panel */
    .cf-panel {
      background: var(--bg-soft);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2.2rem 2.2rem 1.8rem;
      position: relative;
      box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
      transition: box-shadow 0.4s var(--ease);
    }

    .cf-panel:hover {
      box-shadow: 0 28px 70px -16px rgba(59, 130, 246, 0.15);
    }

    /* ── Trigger button (Notify me pill) ── */
    .cf-trigger {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      cursor: pointer;
      width: fit-content;
      padding: 0.85rem 1.8rem;
      border-radius: 50px;
      border: 1px solid var(--accent);
      background: var(--accent-soft);
      color: var(--accent);
      font-family: 'DM Mono', monospace;
      font-size: 0.8rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      transition: all 0.35s var(--ease);
      user-select: none;
      margin-bottom: 0;
    }

    .cf-trigger:hover {
      background: var(--accent);
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.4);
    }

    .cf-trigger i {
      font-size: 1rem;
      transition: transform 0.35s var(--ease);
    }

    /* ── Fields container — hidden by default ── */
    .cf-fields {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transform: translateY(-10px);
      transition:
        max-height 0.55s var(--ease),
        opacity 0.4s var(--ease),
        transform 0.4s var(--ease);
      pointer-events: none;
    }

    /* ── Checked state: expand fields ── */
    .cf-panel.cf-open .cf-fields {
      max-height: 600px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: all;
    }

    .cf-panel.cf-open .cf-trigger {
      background: var(--accent);
      color: #fff;
      margin-bottom: 1.8rem;
      width: 100%;
    }

    .cf-panel.cf-open .cf-trigger .cf-icon-plus {
      transform: rotate(45deg);
    }

    /* ── Individual fields ── */
    .cf-field {
      margin-bottom: 1.6rem;
      position: relative;
    }

    .cf-field label {
      display: block;
      font-family: 'DM Mono', monospace;
      font-size: 0.68rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.5rem;
    }

    .cf-field input,
    .cf-field textarea {
      width: 100%;
      padding: 0.85rem 0;
      background: none;
      border: none;
      border-bottom: 1px solid var(--border);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.95rem;
      color: var(--ink);
      outline: none;
      transition: border-color 0.3s;
      box-sizing: border-box;
      resize: none;
    }

    .cf-field input::placeholder,
    .cf-field textarea::placeholder {
      color: var(--muted);
    }

    .cf-field input:focus,
    .cf-field textarea:focus {
      border-bottom-color: var(--accent);
    }

    /* ── Send button ── */
    .cf-submit {
      width: 100%;
      padding: 1rem;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.35s var(--ease);
      margin-top: 0.4rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
    }

    .cf-submit:hover {
      background: #2563EB;
      transform: translateY(-2px);
      box-shadow: 0 12px 30px -10px rgba(59, 130, 246, 0.5);
    }

    .cf-submit i {
      font-size: 0.85rem;
    }

    /* ─── FOOTER ─── */
    footer {
      padding: 100px 10% 50px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      color: var(--muted);
      font-family: 'DM Mono', monospace;
      font-size: 0.75rem;
      letter-spacing: 0.1em;
    }

    footer a {
      color: var(--ink);
      text-decoration: none;
      margin-left: 2rem;
      transition: color 0.3s;
    }

    footer a:hover {
      color: var(--accent);
    }

    .project-card:hover .project-info p {
      color: var(--accent);
    }

    /* ─── CERTIFICATES ─── */
    .cert-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
      gap: 3rem;
    }

    .cert-card {
      background: var(--bg-soft);
      border: 1px solid var(--border);
      border-radius: 16px;
      transition: all 0.6s var(--ease);
      position: relative;
      overflow: hidden;
      aspect-ratio: 1.414/1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cert-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 1.2s var(--ease), filter 0.8s ease;
      filter: grayscale(0.2) brightness(0.9);
    }

    .cert-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 50%;
      height: 100%;
      background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
      transform: skewX(-25deg);
      z-index: 5;
      transition: none;
    }

    .cert-card:hover::before {
      left: 150%;
      transition: all 0.8s var(--ease);
    }

    .cert-card:hover {
      transform: translateY(-12px) scale(1.02);
      border-color: var(--accent);
      box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 20px rgba(59, 130, 246, 0.2);
    }

    .cert-card:hover img {
      transform: scale(1.08);
      filter: grayscale(0) brightness(1) contrast(1);
    }

    .cert-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 60%;
      background: linear-gradient(to top, rgba(18, 20, 24, 0.9) 10%, rgba(18, 20, 24, 0.4) 50%, transparent 100%);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 2rem;
      z-index: 10;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.5s var(--ease);
    }

    .cert-card:hover .cert-overlay {
      opacity: 1;
      transform: translateY(0);
    }

    .cert-overlay small {
      font-family: 'DM Mono', monospace;
      color: var(--accent);
      font-size: 0.75rem;
      letter-spacing: 0.3rem;
      text-transform: uppercase;
      margin-bottom: 0.8rem;
      transform: translateY(20px);
      transition: all 0.5s var(--ease) 0.1s;
      display: block;
    }

    .cert-overlay h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      line-height: 1.4;
      font-weight: 500;
      color: #fff;
      transform: translateY(20px);
      transition: all 0.5s var(--ease) 0.2s;
      max-width: 85%;
    }

    .cert-card:hover .cert-overlay small,
    .cert-card:hover .cert-overlay h3 {
      transform: translateY(0);
    }

    .cert-link-btn {
      position: absolute;
      top: 2rem;
      right: 2rem;
      width: 50px;
      height: 50px;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #fff !important;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      text-decoration: none;
      transition: all 0.4s var(--ease);
      opacity: 0;
      transform: translate(10px, -10px);
    }

    .cert-card:hover .cert-link-btn {
      opacity: 1;
      transform: translate(0, 0);
    }

    .cert-link-btn:hover {
      background: var(--accent);
      border-color: var(--accent);
      transform: scale(1.1) rotate(15deg);
      box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    /* ─── MARQUEE LOOP ─── */
    .marquee-container {
      width: 100%;
      overflow: hidden;
      padding: 1.5rem 0;
      margin-bottom: 3rem;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      display: flex;
      user-select: none;
    }

    .marquee-content {
      display: flex;
      flex-shrink: 0;
      gap: 4rem;
      animation: scroll 20s linear infinite;
      min-width: 100%;
      align-items: center;
    }

    .marquee-item {
      font-family: 'DM Mono', monospace;
      font-size: 0.9rem;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.2rem;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 0.8rem;
    }

    .marquee-item i {
      font-size: 1.2rem;
      opacity: 0.8;
    }

    .marquee-item::after {
      content: '';
      width: 6px;
      height: 6px;
      background: var(--border);
      border-radius: 50%;
      margin-left: 4rem;
    }

    @keyframes scroll {
      from {
        transform: translateX(0);
      }

      to {
        transform: translateX(-50%);
      }
    }

    .marquee-container:hover .marquee-content {
      animation-play-state: paused;
    }

    /* ─── FALLING STARS ─── */
    .hero {
      background: transparent !important;
    }

    .stars-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      transform: rotate(-45deg);
      z-index: -1;
      pointer-events: none;
    }

    .star {
      --star-color: var(--accent);
      --star-tail-length: 6em;
      --star-tail-height: 2px;
      --star-width: calc(var(--star-tail-length) / 6);
      --fall-duration: 9s;
      --tail-fade-duration: var(--fall-duration);

      position: absolute;
      top: var(--top-offset);
      left: 0;
      width: var(--star-tail-length);
      height: var(--star-tail-height);
      color: var(--star-color);
      background: linear-gradient(45deg, currentColor, transparent);
      border-radius: 50%;
      filter: drop-shadow(0 0 6px currentColor);
      transform: translate3d(104em, 0, 0);
      animation: fall var(--fall-duration) var(--fall-delay) linear infinite,
        tail-fade var(--tail-fade-duration) var(--fall-delay) ease-out infinite;
    }

    @media screen and (max-width: 750px) {
      .star {
        animation: fall var(--fall-duration) var(--fall-delay) linear infinite;
      }
    }

    .star::before,
    .star::after {
      position: absolute;
      content: '';
      top: 0;
      left: calc(var(--star-width) / -2);
      width: var(--star-width);
      height: 100%;
      background: linear-gradient(45deg, transparent, currentColor, transparent);
      border-radius: inherit;
      animation: blink 2s linear infinite;
    }

    .star::before {
      transform: rotate(45deg);
    }

    .star::after {
      transform: rotate(-45deg);
    }

    @keyframes fall {
      to {
        transform: translate3d(-30em, 0, 0);
      }
    }

    @keyframes tail-fade {

      0%,
      50% {
        width: var(--star-tail-length);
        opacity: 1;
      }

      70%,
      80% {
        width: 0;
        opacity: 0.4;
      }

      100% {
        width: 0;
        opacity: 0;
      }
    }

    @keyframes blink {
      50% {
        opacity: 0.6;
      }
    }

    /* ─── ANIMATION ─── */
    .reveal {
      opacity: 0;
      transform: translateY(40px) scale(0.98);
      transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
      will-change: opacity, transform;
    }

    .reveal.active {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* Hero Load Animations */
    .hero-pre,
    .hero h1,
    .hero-actions {
      opacity: 0;
      transform: translateY(30px);
      transition: all 1.2s var(--ease);
    }

    body.loaded .hero-pre {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.1s;
    }

    body.loaded .hero h1 {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.3s;
    }

    body.loaded .hero-actions {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.5s;
    }

    @media (max-width: 900px) {

      .project-grid,
      .about-wrap,
      .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
      }

      nav {
        padding: 1.5rem 10%;
      }

      .nav-links {
        display: none;
      }
    }

    .cert-actions {
      display: flex;
      justify-content: center;
      margin-top: 3.5rem;
    }

    .btn-next {
      background: rgba(59, 130, 246, 0.1);
      color: var(--accent);
      border: 1px solid var(--accent);
      padding: 1rem 3rem;
      border-radius: 4px;
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      transition: all 0.4s var(--ease);
      display: flex;
      align-items: center;
      gap: 0.8rem;
    }

    .btn-next:hover {
      background: var(--accent);
      color: #fff !important;
      transform: translateY(-5px);
      box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.4);
    }

    .btn-next i {
      transition: transform 0.3s var(--ease);
    }

    .btn-next:hover i {
      transform: translateX(5px);
    }

    .cert-overlay {
      display: flex !important;
      justify-content: space-between;
      align-items: flex-end;
      padding: 2.5rem;
    }

    @media (max-width: 600px) {
      .cert-overlay {
        padding: 1.5rem;
      }

      .cert-info h3 {
        font-size: 1.2rem;
      }

      .cert-grid {
        grid-template-columns: 1fr;
      }
    }

    .cert-link-btn {
      width: 44px;
      height: 44px;
      background: var(--accent);
      color: #fff !important;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      text-decoration: none;
      transition: all 0.3s var(--ease);
      box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    }

    .cert-link-btn:hover {
      transform: scale(1.1) rotate(15deg);
      background: var(--accent);
      color: #fff !important;
    }
