:root {
      --blue: #3ec1ed;
      --blue-light: #29d6f9;
      --blue-dim: rgba(76, 170, 201, 0.292);
      --blue-glow: 0 0 40px rgba(76, 170, 201, 0.3);
      --bg: #080810;
      --bg-2: #0c0c18;
      --bg-glass: rgba(255,255,255,.03);
      --border: rgba(255,255,255,.07);
      --border-blue: rgba(76, 170, 201, 0.25);
      --text: #f0f0f8;
      --text-muted: #c1c1ca;
      --font: 'Outfit', sans-serif;
      --mono: 'JetBrains Mono', 'Courier New', monospace;
      --r: 14px;
      --ease: cubic-bezier(.25,.46,.45,.94);
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font);
      overflow-x: hidden;
      line-height: 1.6;
    }

    /* ── PARTICLES CANVAS ── */
    #particles-canvas {
      position: fixed; inset: 0; pointer-events: none; z-index: 0;
      opacity: .45;
    }

    /* ── CURSOR ── */
    .cur-dot {
      position: fixed; width: 6px; height: 6px; background: var(--blue);
      border-radius: 50%; pointer-events: none; z-index: 10001;
      transform: translate(-50%,-50%); transition: width .2s, height .2s;
    }
    .cur-ring {
      position: fixed; width: 38px; height: 38px;
      border: 1.5px solid rgba(76, 170, 201, 0.5); border-radius: 50%;
      pointer-events: none; z-index: 10001;
      transform: translate(-50%,-50%);
      transition: width .25s, height .25s, border-color .25s, background .25s;
    }
    .cur-ring.hov { width: 56px; height: 56px; border-color: var(--blue); background: rgba(76, 170, 201, 0.07); }
    .cur-dot.hov { width: 10px; height: 10px; }
    @media (hover:none) { .cur-dot, .cur-ring { display: none; } }

    /* ── NOISE TEXTURE ── */
    .noise {
      position: fixed; inset: 0; pointer-events: none; z-index: 9990; opacity: .3;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    }

    /* ── PROGRESS BAR ── */
    #progress-bar {
      position: fixed; top: 0; left: 0; height: 2px;
      background: linear-gradient(90deg, var(--blue), var(--blue-light));
      z-index: 9999; width: 0%; transition: width .1s linear;
      box-shadow: var(--blue-glow);
    }

    /* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      padding: 0 5%; height: 80px;
      display: flex; align-items: center;
      transition: background .5s var(--ease), box-shadow .5s var(--ease);
    }
    nav.scrolled {
      background: rgba(8,8,16,.9);
      backdrop-filter: blur(24px) saturate(150%);
      box-shadow: 0 1px 0 var(--border);
    }
    .nav-inner {
      width: 100%; max-width: 1280px; margin: auto;
      display: flex; align-items: center; justify-content: space-between;
    }
    .logo {
      font-family: var(--mono); font-size: 1.2rem; font-weight: 600;
      color: var(--text); text-decoration: none; letter-spacing: -.5px;
      position: relative;
    }
    .logo-b { color: var(--blue); }
    .nav-links { display: flex; gap: 30px; align-items: center; }
    .nav-link {
      color: var(--text-muted); text-decoration: none; font-size: .85rem;
      font-weight: 500; letter-spacing: .8px; text-transform: uppercase;
      transition: color .3s; position: relative; padding-bottom: 2px;
    }
    .nav-link::after {
      content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
      height: 1px; background: var(--blue); transition: left .3s var(--ease), right .3s var(--ease);
    }
    .nav-link:hover, .nav-link.active { color: var(--text); }
    .nav-link:hover::after, .nav-link.active::after { left: 0; right: 0; }
    .nav-cta {
      background: transparent; border: 1px solid var(--border-blue);
      color: var(--blue) !important; padding: 8px 22px; border-radius: 4px;
      font-size: .82rem; letter-spacing: 1px; transition: background .3s, box-shadow .3s !important;
    }
    .nav-cta::after { display: none !important; }
    .nav-cta:hover { background: var(--blue-dim) !important; box-shadow: var(--blue-glow); }

    /* Hamburger */
    .ham {
      display: none; flex-direction: column; gap: 5px;
      background: rgba(255,255,255,.05); border: 1px solid var(--border);
      border-radius: 10px; padding: 9px 11px; cursor: pointer;
      transition: background .25s, border-color .25s;
    }
    .ham:hover { background: rgba(62,193,237,.08); border-color: var(--border-blue); }
    .ham span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: .35s var(--ease); }
    .ham.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
    .ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .ham.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

    /* Mobile dropdown menu */
    .mob-menu {
      position: fixed;
      top: 82px;
      width: 100%;
      z-index: 9000;
      background: rgba(8,8,18,.97);
      backdrop-filter: blur(40px) saturate(180%);
      -webkit-backdrop-filter: blur(40px) saturate(180%);
      border: 1px solid rgba(62,193,237,.15);
      justify-content: center; 
      align-items: center;
      border-radius: 18px;
      padding: 10px 8px 12px;
      display: flex; flex-direction: column; gap: 2px;
      opacity: 0;
      transform: translateY(-10px) scale(0.98);
      pointer-events: none;
      transition: opacity .25s var(--ease), transform .25s var(--ease);
      box-shadow: 0 20px 60px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04) inset;
      max-height: calc(100vh - 100px);
      overflow-y: auto;
    }
    .mob-menu.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

    /* Thin blue top accent bar inside menu */
    .mob-menu::before {
      content: '';
      display: block;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--blue), transparent);
      border-radius: 999px;
      margin: 0 20px 10px;
      opacity: .6;
    }

    .mob-link {
      display: flex; align-items: center; gap: 14px;
      font-size: 1.2rem; font-weight: 600; color: var(--text-muted);
      text-decoration: none; letter-spacing: .4px;
      padding: 13px 18px; border-radius: 12px;
      transition: background .18s, color .18s, transform .18s;
      font-family: var(--font);
      position: relative;
    }
    /* .mob-link::before {
      content: ''; width: 4px; height: 4px; border-radius: 50%;
      background: rgba(62,193,237,.35); flex-shrink: 0;
      transition: background .2s, box-shadow .2s, transform .2s;
    } */
    .mob-link:hover { background: rgba(255,255,255,.045); color: var(--text); transform: scale(1.1); }
    .mob-link:hover::before { background: var(--blue); box-shadow: 0 0 8px rgba(62,193,237,.75); transform: scale(1.4); }

    /* Divider before last link (Contact) */
    .mob-link:last-child {
      margin-top: 6px;
      background: rgba(62,193,237,.07);
      color: var(--blue);
      border: 1px solid rgba(62,193,237,.18);
      font-weight: 600;
      justify-content: center;
      letter-spacing: 1px;
      text-transform: uppercase;
      font-size: .82rem;
    }
    .mob-link:last-child::before { display: none; }
    .mob-link:last-child:hover { background: rgba(62,193,237,.15); color: var(--blue-light); transform: none; box-shadow: 0 0 20px rgba(62,193,237,.1); }

    /* ── SECTIONS ── */
    section { position: relative; z-index: 1; }
    .section-inner {
      width: 100%; max-width: 1200px; margin: auto;
      padding: 120px 5% 80px;
    }
    .section-tag {
      font-family: var(--mono); font-size: .72rem; color: var(--blue);
      letter-spacing: 3px; text-transform: uppercase; display: flex;
      align-items: center; gap: 12px; margin-bottom: 16px;
    }
    .section-tag::before {
      content: ''; width: 32px; height: 1px; background: var(--blue);
    }
    .section-title {
      font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
      line-height: 1.1; color: var(--text);
    }
    .section-title span { color: var(--blue); }
    .section-head { margin-bottom: 72px; }

    /* ── REVEAL ANIMATION ── */
    .reveal {
      opacity: 0; transform: translateY(40px);
      transition: opacity .9s var(--ease), transform .9s var(--ease);
      transition-delay: var(--d, 0s);
    }
    .reveal.vis { opacity: 1; transform: translateY(0); }
    .reveal-left {
      opacity: 0; transform: translateX(-40px);
      transition: opacity .9s var(--ease), transform .9s var(--ease);
      transition-delay: var(--d, 0s);
    }
    .reveal-left.vis { opacity: 1; transform: translateX(0); }
    .reveal-right {
      opacity: 0; transform: translateX(40px);
      transition: opacity .9s var(--ease), transform .9s var(--ease);
      transition-delay: var(--d, 0s);
    }
    .reveal-right.vis { opacity: 1; transform: translateX(0); }

    /* ── HERO ── */
    .hero {
      min-height: 100vh; display: flex; align-items: center;
      position: relative; overflow: hidden;
    }
    .hero-orb {
      position: absolute; border-radius: 50%; pointer-events: none; filter: blur(120px);
    }
    .orb-1 { width: 600px; height: 600px; background: rgba(76, 170, 201, 0.07); right: -100px; top: -100px; }
    .orb-2 { width: 400px; height: 400px; background: rgba(76, 170, 201, 0.05); left: -80px; bottom: 0; }

    .hero-grid {
      display: grid; grid-template-columns: 1fr 420px;
      gap: 80px; align-items: center;
    }

    /* Hero image panel centering helper */
    .hero-img-panel {
      display: flex; align-items: center; justify-content: center;
    }
    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 10px;
      font-family: var(--mono); font-size: .78rem; color: var(--text-muted);
      margin-bottom: 28px; padding: 8px 16px;
      border: 1px solid var(--border); border-radius: 50px;
      background: var(--bg-glass);
    }
    .status-dot {
      width: 8px; height: 8px; background: #4ade80; border-radius: 50%;
      animation: pulse-green 2s ease-in-out infinite;
    }
    @keyframes pulse-green { 0%,100%{box-shadow:0 0 0 0 rgba(74,222,128,.5);} 50%{box-shadow:0 0 0 8px rgba(74,222,128,0);} }

    .hero-title {
      font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900;
      line-height: 1.05; margin-bottom: 18px; letter-spacing: -2px;
    }
    .hero-title .name {
      display: block; color: var(--blue);
      text-shadow: 0 0 80px rgba(76, 170, 201, 0.25);
    }
    .hero-typerow {
      font-family: var(--mono); font-size: clamp(.95rem, 2vw, 1.25rem);
      color: var(--text-muted); margin-bottom: 28px; height: 1.8em;
      display: flex; align-items: center; gap: 6px;
    }
    #tw { color: var(--blue-light); }
    .tw-cur { color: var(--blue); animation: blink 1s step-end infinite; }
    @keyframes blink { 50%{opacity:0;} }

    .hero-desc { color: var(--text-muted); font-size: 1rem; max-width: 480px; margin-bottom: 40px; line-height: 1.85; }
    .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

    .btn-blue {
      display: inline-flex; align-items: center; gap: 9px;
      background: var(--blue); color: #08080e; font-weight: 700;
      padding: 14px 30px; border-radius: 6px; text-decoration: none;
      font-size: .9rem; border: none; cursor: pointer; letter-spacing: .3px;
      transition: transform .3s, box-shadow .3s, background .3s;
      position: relative; overflow: hidden;
    }
    .btn-blue::before {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(135deg, transparent 40%, rgba(76, 170, 201, 0.2) 60%, transparent 70%);
      transform: translateX(-100%); transition: transform .5s;
    }
    .btn-blue:hover::before { transform: translateX(150%); }
    .btn-blue:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(76, 170, 201, 0.35); }

    .btn-ghost {
      display: inline-flex; align-items: center; gap: 9px;
      border: 1px solid var(--border-blue); color: var(--blue);
      padding: 14px 30px; border-radius: 6px; text-decoration: none;
      font-size: .9rem; font-weight: 500; letter-spacing: .3px;
      transition: background .3s, transform .3s, box-shadow .3s;
    }
    .btn-ghost:hover { background: var(--blue-dim); transform: translateY(-3px); box-shadow: var(--blue-glow); }

    .social-row { display: flex; gap: 10px; }
    .soc {
      width: 42px; height: 42px; border-radius: 8px;
      border: 1px solid var(--border); display: flex; align-items: center;
      justify-content: center; color: var(--text-muted); text-decoration: none;
      font-size: 1rem; transition: all .3s; background: var(--bg-glass);
    }
    .soc:hover { color: var(--blue); border-color: var(--border-blue); transform: translateY(-4px); background: var(--blue-dim); }

    /* Hero image panel — orbital animation system */
    .hero-img-panel { position: relative; }

    .orbit-system {
      position: relative;
      width: 440px; height: 440px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }

    /* Central image */
    .hero-img-wrap {
      position: absolute; z-index: 10;
      width: 240px; height: 240px;
    }
    .hero-img {
      width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
      display: block; position: relative; z-index: 2;
      border: 3px solid rgba(76, 170, 201, 0.5);
      box-shadow: 0 0 0 8px rgba(76, 170, 201, 0.06), 0 0 60px rgba(76, 170, 201, 0.15);
    }
    /* Pulsing glow behind image */
    .img-glow {
      position: absolute; inset: -12px; border-radius: 50%;
      background: radial-gradient(circle, rgb(224, 182, 76) 0%, transparent 70%);
      animation: glow-pulse 3s ease-in-out infinite; z-index: 1;
    }
    @keyframes glow-pulse { 0%,100%{transform:scale(1); opacity:.6;} 50%{transform:scale(1.12); opacity:1;} }

    /* Orbiting rings */
    .orb-ring {
      position: absolute; border-radius: 50%; border-style: solid;
      top: 50%; left: 50%; transform: translate(-50%,-50%);
    }
    .ring-a {
      width: 300px; height: 300px;
      border-width: 1px; border-color: rgba(76, 172, 201, 0.633);
      animation: spin-cw 18s linear infinite;
    }
    .ring-b {
      width: 370px; height: 370px;
      border-width: 1px; border-color: rgba(76, 170, 201, 0.609);
      border-style: dashed;
      animation: spin-ccw 24s linear infinite;
    }
    .ring-c {
      width: 430px; height: 430px;
      border-width: 1px; border-color: rgba(201, 193, 76, 0.255);
      animation: spin-cw 36s linear infinite;
    }
    @keyframes spin-cw  { to { transform: translate(-50%,-50%) rotate(360deg);  } }
    @keyframes spin-ccw { to { transform: translate(-50%,-50%) rotate(-360deg); } }

    /* Orbiting dots on ring-a */
    .orb-dot {
      position: absolute; border-radius: 50%;
      top: 50%; left: 50%;
      transform-origin: 0 0;
    }
    /* We animate the container that positions the dot along the orbit */
    .dot-orbit {
      position: absolute; width: 0; height: 0;
      top: 50%; left: 50%;
    }
    .dot-orbit-a { animation: spin-cw 18s linear infinite; }
    .dot-orbit-b { animation: spin-cw 18s linear infinite; animation-delay: -9s; }
    .dot-orbit-c { animation: spin-ccw 24s linear infinite;}
    .dot-orbit-d { animation: spin-ccw 24s linear infinite; animation-delay: -12s; }

    .dot-on-a {
      position: absolute;
      width: 8px; height: 8px;
      background: var(--blue); border-radius: 50%;
      left: 148px; top: -4px;
      box-shadow: 0 0 10px rgba(76, 170, 201, 0.8), 0 0 20px rgba(76, 170, 201, 0.4);
    }
    .dot-on-b {
      position: absolute;
      width: 5px; height: 5px;
      background: rgba(76, 170, 201, 0.7); border-radius: 50%;
      left: 183px; top: -2.5px;
      box-shadow: 0 0 8px rgba(76, 170, 201, 0.6);
    }
    .dot-on-c {
      position: absolute;
      width: 6px; height: 6px;
      background: var(--blue-light); border-radius: 50%;
      left: -183px; top: -3px;
      box-shadow: 0 0 8px rgba(76, 170, 201, 0.7);
    }
    .dot-on-d {
      position: absolute;
      width: 4px; height: 4px;
      background: rgba(76, 170, 201, 0.5); border-radius: 50%;
      left: 183px; top: -2px;
      box-shadow: 0 0 6px rgba(76, 170, 201, 0.5);
    }

    /* Skill badges orbiting on ring-b */
    .skill-badge-orbit {
      position: absolute; width: 0; height: 0;
      top: 50%; left: 50%;
      opacity: 0.8;
    }
    .sbo-1 { animation: spin-cw 28s linear infinite; }
    .sbo-2 { animation: spin-cw 28s linear infinite; animation-delay: -7s; }
    .sbo-3 { animation: spin-cw 28s linear infinite; animation-delay: -14s; }
    .sbo-4 { animation: spin-cw 28s linear infinite; animation-delay: -21s; }


    .skill-badge {
      position: absolute;
      background: rgba(8,8,16,.92);
      border: 1px solid var(--border-blue);
      padding: 7px 14px;
      border-radius: 50px;
      font-size: .72rem; font-weight: 600;
      display: flex; align-items: center; gap: 7px;
      white-space: nowrap;
      box-shadow: 0 4px 20px rgba(0,0,0,.5);
      /* counter-rotate so badge text stays upright */
    }
    .skill-badge i { color: var(--blue); font-size: .9rem; }

    /* Position each badge at the orbit radius */
    .sbo-1 .skill-badge { left: 183px; top: -18px; animation: spin-ccw 28s linear infinite; }
    .sbo-2 .skill-badge { left: 183px; top: -18px; animation: spin-ccw 28s linear infinite; animation-delay: -7s; }
    .sbo-3 .skill-badge { left: 183px; top: -18px; animation: spin-ccw 28s linear infinite; animation-delay: -14s; }
    .sbo-4 .skill-badge { left: 183px; top: -18px; animation: spin-ccw 28s linear infinite; animation-delay: -21s; }

    /* Arc progress segments */
    .arc-svg {
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none; z-index: 1;
      width: 440px; height: 440px;
    }

    @media (max-width: 1024px) {
      .orbit-system { width: 340px; height: 340px; }
      .hero-img-wrap { width: 190px; height: 190px; }
      .ring-a { width: 240px; height: 240px; }
      .ring-b { width: 295px; height: 295px; }
      .ring-c { width: 335px; height: 335px; }
      .dot-on-a { left: 118px; }
      .dot-on-b, .dot-on-c, .dot-on-d { left: 145px; }
      .sbo-1 .skill-badge, .sbo-2 .skill-badge, .sbo-3 .skill-badge, .sbo-4 .skill-badge { left: 145px; }
      .arc-svg { width: 340px; height: 340px; }
      .scroll-ind { display: none !important; }
      .hero-typerow{justify-content: center;}
    }
    @media (max-width: 768px) {
      /* Allow badges to orbit and be naturally clipped by viewport (no horizontal scroll) */
      .hero { overflow: hidden; }
      .orbit-system { width: 320px; height: 320px; }
      .hero-img-wrap { width: 170px; height: 170px; }
      .ring-a { width: 224px; height: 224px; }
      .ring-b { width: 276px; height: 276px; }
      .ring-c { width: 316px; height: 316px; }
      /* ring-a radius = 112px, ring-b radius = 138px */
      .dot-on-a { left: 110px; top: -4px; }
      .dot-on-b { left: 136px; top: -2.5px; }
      .dot-on-c { left: -136px; top: -3px; }
      .dot-on-d { left: 136px; top: -2px; }
      /* Badges orbit on ring-b: left = 138px (radius), slightly smaller text */
      .skill-badge { padding: 6px 12px; font-size: .68rem; gap: 6px; }
      .skill-badge i { font-size: .82rem; }
      .sbo-1 .skill-badge, .sbo-2 .skill-badge, .sbo-3 .skill-badge, .sbo-4 .skill-badge { left: 138px; top: -17px; }
      .arc-svg { width: 320px; height: 320px; }
      .scroll-ind { display: none !important; }
      .hero-typerow{justify-content: center;}
    }

    /* Hero scroll indicator */
    .scroll-ind {
      position: absolute; bottom: 40px; left: 50%;
      transform: translateX(-50%); display: flex; flex-direction: column;
      align-items: center; gap: 10px;
      font-family: var(--mono); font-size: .65rem; color: var(--text-muted);
      letter-spacing: 2px; text-transform: uppercase;
      animation: fadeInUp 1s .8s both;
    }
    .scroll-mouse {
      width: 24px; height: 36px; border: 1.5px solid var(--border-blue);
      border-radius: 12px; position: relative; opacity: .6;
    }
    .scroll-wheel {
      position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
      width: 3px; height: 6px; background: var(--blue); border-radius: 3px;
      animation: scroll-wheel 2s ease-in-out infinite;
    }
    @keyframes scroll-wheel { 0%{opacity:1;transform:translateX(-50%) translateY(0);} 80%{opacity:0;transform:translateX(-50%) translateY(12px);} 100%{opacity:0;transform:translateX(-50%) translateY(0);} }

    /* ── ABOUT ── */
    .about { background: var(--bg-2); }
    .about-inner { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: center; }

    .about-img-wrap { position: relative; }
    .about-img {
      width: 100%; aspect-ratio: 4/5; object-fit: cover;
      border-radius: var(--r); display: block; filter: grayscale(.25);
      transition: filter .5s;
    }
    .about-img-wrap:hover .about-img { filter: grayscale(0); }
    .about-frame-accent {
      position: absolute; bottom: -14px; right: -14px;
      width: 55%; height: 55%; border: 2px solid var(--blue);
      border-radius: var(--r); opacity: .3; z-index: 0;
    }
    .about-img-wrap { z-index: 1; }

    .about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 20px; }
    .a-stat {
      background: var(--bg-glass); border: 1px solid var(--border);
      border-radius: var(--r); padding: 20px 14px; text-align: center;
      transition: border-color .3s, transform .3s;
    }
    .a-stat:hover { border-color: var(--border-blue); transform: translateY(-4px); }
    .a-stat-n { display: block; font-size: 2rem; font-weight: 900; color: var(--blue); line-height: 1; margin-bottom: 6px; }
    .a-stat-l { font-size: .72rem; color: var(--text-muted); font-family: var(--mono); letter-spacing: 1px; }

    .about-desc { color: var(--text-muted); margin-bottom: 16px; font-size: .97rem; line-height: 1.85; }
    .about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
    .det-item {
      background: var(--bg-glass); border: 1px solid var(--border);
      border-radius: 10px; padding: 16px 20px; transition: border-color .3s;
    }
    .det-item:hover { border-color: var(--border-blue); }
    .det-key { display: block; font-family: var(--mono); font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; }
    .det-val { font-weight: 600; font-size: .92rem; }
    .avail { color: #4ade80; }

    /* ── SKILLS ── */
    .skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; width: 100%; }
    .sk-card {
      display: flex; align-items: center; gap: 22px;
      background: var(--bg-glass); border: 1px solid var(--border);
      border-radius: var(--r); padding: 24px 28px;
      transition: border-color .35s, transform .35s, background .35s;
      cursor: default;
    }
    .sk-card:hover { border-color: var(--border-blue); transform: translateY(-4px); background: rgba(201,168,76,.04); }
    .sk-ico { font-size: 2rem; color: var(--blue); width: 44px; flex-shrink: 0; }
    .sk-body { flex: 1; }
    .sk-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
    .sk-name { font-weight: 700; font-size: .95rem; }
    .sk-pct { font-family: var(--mono); font-size: .8rem; color: var(--blue); }
    .sk-track { height: 4px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
    .sk-fill {
      height: 100%; width: 0%; border-radius: 4px;
      background: linear-gradient(90deg, var(--blue), var(--blue-light));
      transition: width 1.4s cubic-bezier(.25,.46,.45,.94);
      box-shadow: 0 0 12px rgba(201,168,76,.4);
    }
    .sk-fill.run { width: var(--w); }

    /* ── SERVICES — connected node layout ── */
    .services { background: var(--bg-2); }

    .svc-flow {
      position: relative; width: 100%;
    }

    /* SVG connector canvas sits behind cards */
    .svc-svg {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      pointer-events: none; z-index: 0; overflow: visible;
    }

    .svc-nodes {
      display: grid; grid-template-columns: repeat(3,1fr);
      gap: 28px; position: relative; z-index: 1;
    }

    .svc-node {
      background: var(--bg-glass); border: 1px solid var(--border);
      border-radius: var(--r); padding: 44px 32px 52px;
      position: relative; overflow: hidden;
      transition: border-color .35s, transform .35s, background .35s;
      cursor: default;
    }
    .svc-node::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,.07) 0%, transparent 70%);
      opacity: 0; transition: opacity .4s;
    }
    .svc-node:hover { border-color: var(--border-blue); transform: translateY(-6px); background: rgba(201,168,76,.03); }
    .svc-node:hover::before { opacity: 1; }

    /* Node connector dot — the point lines attach to */
    .svc-node-dot {
      position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
      width: 10px; height: 10px; border-radius: 50%;
      background: var(--bg-2); border: 2px solid var(--border-blue);
      z-index: 2; transition: background .3s, box-shadow .3s;
    }
    .svc-node:hover .svc-node-dot {
      background: var(--blue);
      box-shadow: 0 0 12px rgba(76, 170, 201, 0.7);
    }

    /* Top-line accent */
    .svc-node::after {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, transparent, var(--blue), transparent);
      transform: scaleX(0); transition: transform .5s var(--ease);
    }
    .svc-node:hover::after { transform: scaleX(1); }

    .svc-num {
      font-family: var(--mono); font-size: .68rem; color: rgba(201,168,76,.35);
      letter-spacing: 3px; margin-bottom: 24px; display: block;
    }
    .svc-ico { font-size: 2.2rem; color: var(--blue); margin-bottom: 20px; display: block; }
    .svc-node h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 12px; }
    .svc-node p { color: var(--text-muted); font-size: .87rem; line-height: 1.8; }
    .svc-arr {
      position: absolute; bottom: 24px; right: 24px;
      width: 32px; height: 32px; border: 1px solid var(--border);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      color: var(--text-muted); font-size: .85rem; transition: all .3s;
    }
    .svc-node:hover .svc-arr { border-color: var(--blue); color: var(--blue); transform: rotate(45deg); }

    /* Bottom hub node */
    .svc-hub-row {
      display: flex; justify-content: center; margin-top: 0;
      position: relative; z-index: 1; padding-top: 48px;
    }
    .svc-hub {
      background: var(--blue-dim); border: 1px solid var(--border-blue);
      border-radius: 50px; padding: 14px 32px;
      display: flex; align-items: center; gap: 12px;
      font-weight: 700; font-size: .9rem; color: var(--blue);
      position: relative; cursor: default;
      transition: box-shadow .3s, transform .3s;
    }
    .svc-hub:hover { box-shadow: var(--blue-glow); transform: translateY(-2px); }
    .svc-hub i { font-size: 1.1rem; }
    /* Hub dot for line connection */
    .svc-hub-dot {
      position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
      width: 10px; height: 10px; border-radius: 50%;
      background: var(--blue); border: 2px solid var(--bg-2);
      box-shadow: 0 0 10px rgba(76, 170, 201, 0.6);
    }

    /* ── PROJECTS — network connected layout ── */
    .proj-network {
      position: relative; width: 100%;
    }
    .proj-svg {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      pointer-events: none; z-index: 0; overflow: visible;
    }
    .proj-cards {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 28px; position: relative; z-index: 1;
    }
    .proj-card {
      background: var(--bg-glass); border: 1px solid var(--border);
      border-radius: var(--r); padding: 32px 28px;
      display: flex; flex-direction: column; gap: 18px;
      position: relative; overflow: visible;
      transition: border-color .35s, transform .35s, background .35s;
      cursor: default;
    }
    .proj-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
      border-radius: var(--r) var(--r) 0 0;
      background: linear-gradient(90deg, transparent, var(--blue), transparent);
      transform: scaleX(0); transition: transform .5s var(--ease);
    }
    .proj-card:hover { border-color: var(--border-blue); transform: translateY(-8px); background: rgba(201,168,76,.03); }
    .proj-card:hover::before { transform: scaleX(1); }

    /* Node dot at bottom center — for connecting lines */
    .proj-node-dot {
      position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
      width: 12px; height: 12px; border-radius: 50%;
      background: var(--bg); border: 2px solid rgba(76, 170, 201, 0.4);
      z-index: 3; transition: background .3s, border-color .3s, box-shadow .3s;
    }
    .proj-card:hover .proj-node-dot {
      background: var(--blue); border-color: var(--blue);
      box-shadow: 0 0 16px rgba(76, 170, 201, 0.8);
    }
    /* Side dots for horizontal connections */
    .proj-dot-right {
      position: absolute; top: 50%; right: -6px; transform: translateY(-50%);
      width: 12px; height: 12px; border-radius: 50%;
      background: var(--bg); border: 2px solid rgba(76, 170, 201, 0.3);
      z-index: 3; transition: all .3s;
    }
    .proj-dot-left {
      position: absolute; top: 50%; left: -6px; transform: translateY(-50%);
      width: 12px; height: 12px; border-radius: 50%;
      background: var(--bg); border: 2px solid rgba(76, 170, 201, 0.3);
      z-index: 3; transition: all .3s;
    }
    .proj-card:hover .proj-dot-right,
    .proj-card:hover .proj-dot-left {
      background: var(--blue); border-color: var(--blue);
      box-shadow: 0 0 12px rgba(76, 170, 201, 0.7);
    }

    .proj-head { display: flex; justify-content: space-between; align-items: flex-start; }
    .proj-tag {
      font-family: var(--mono); font-size: .67rem; color: var(--blue);
      background: var(--blue-dim); padding: 4px 12px; border-radius: 50px;
      letter-spacing: 1px; text-transform: uppercase; border: 1px solid var(--border-blue);
    }
    .proj-year { font-family: var(--mono); font-size: .72rem; color: var(--text-muted); }
    .proj-card h3 { font-size: 1.12rem; font-weight: 700; }
    .proj-card p { color: var(--text-muted); font-size: .87rem; line-height: 1.75; flex: 1; }
    .proj-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
    .proj-techs { display: flex; gap: 6px; flex-wrap: wrap; }
    .proj-techs span {
      font-family: var(--mono); font-size: .67rem; color: var(--text-muted);
      background: rgba(255,255,255,.04); padding: 3px 10px;
      border-radius: 50px; border: 1px solid var(--border);
    }
    .proj-link {
      width: 38px; height: 38px; border: 1px solid var(--border);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      color: var(--text-muted); text-decoration: none; font-size: .95rem; flex-shrink: 0;
      transition: all .3s;
    }
    .proj-card:hover .proj-link { border-color: var(--blue); color: var(--blue); transform: rotate(45deg); }

    /* Central hub for projects */
    .proj-hub-row {
      display: flex; justify-content: center; padding-top: 52px;
      position: relative; z-index: 1;
    }
    .proj-hub {
      position: relative;
      width: 56px; height: 56px; border-radius: 50%;
      background: var(--blue-dim); border: 2px solid var(--border-blue);
      display: flex; align-items: center; justify-content: center;
      color: var(--blue); font-size: 1.2rem;
      cursor: default; transition: box-shadow .3s, transform .3s;
    }
    .proj-hub:hover { box-shadow: 0 0 28px rgba(76, 170, 201, 0.5); transform: scale(1.08); }
    .proj-hub-pulse {
      position: absolute; inset: -6px; border-radius: 50%;
      border: 1px solid rgba(76, 170, 201, 0.2);
      animation: hub-pulse 2.5s ease-in-out infinite;
    }
    .proj-hub-pulse2 {
      position: absolute; inset: -14px; border-radius: 50%;
      border: 1px solid rgba(201,168,76,.1);
      animation: hub-pulse 2.5s ease-in-out .8s infinite;
    }
    @keyframes hub-pulse { 0%,100%{transform:scale(1);opacity:.7} 50%{transform:scale(1.06);opacity:1} }
    .proj-hub-dot-top {
      position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
      width: 10px; height: 10px; border-radius: 50%;
      background: var(--blue); box-shadow: 0 0 10px rgba(201,168,76,.8);
    }

    @media (max-width: 1024px) {
      .svc-nodes { grid-template-columns: 1fr 1fr; }
      .proj-cards { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      .svc-nodes { grid-template-columns: 1fr; }
      .proj-cards { grid-template-columns: 1fr; }
      .svc-svg, .proj-svg { display: none; }
      .svc-node-dot, .proj-node-dot, .proj-dot-right, .proj-dot-left { display: none; }
    }

    /* ── CONTACT ── */
    .contact { background: var(--bg-2); }
    .contact-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
    .contact-sub { color: var(--text-muted); margin: 20px 0 32px; font-size: .97rem; line-height: 1.8; }
    .clinks { display: flex; flex-direction: column; gap: 12px; }
    .clink {
      display: flex; align-items: center; gap: 16px;
      color: var(--text-muted); text-decoration: none; font-size: .92rem;
      padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px;
      background: var(--bg-glass); transition: all .3s;
      word-break: break-all;
    }
    .clink i { color: var(--blue); font-size: 1.05rem; width: 20px; flex-shrink: 0; }
    .clink:hover { border-color: var(--border-blue); color: var(--text); background: var(--blue-dim); transform: translateX(4px); }

    .contact-form {
      background: var(--bg-glass); border: 1px solid var(--border);
      border-radius: var(--r); padding: 36px; display: flex; flex-direction: column; gap: 20px;
      width: 100%;
    }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .fg { display: flex; flex-direction: column; gap: 8px; }
    .fg label { font-family: var(--mono); font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
    .fg input, .fg textarea {
      background: rgba(255,255,255,.03); border: 1px solid var(--border);
      border-radius: 8px; padding: 13px 16px; color: var(--text);
      font-family: var(--font); font-size: .9rem; outline: none; resize: none;
      width: 100%;
      transition: border-color .3s, box-shadow .3s;
    }
    .fg input:focus, .fg textarea:focus {
      border-color: var(--border-blue);
      box-shadow: 0 0 0 4px rgba(201,168,76,.08);
    }
    .fg input::placeholder, .fg textarea::placeholder { color: rgba(255,255,255,.15); }

    /* ── FOOTER ── */
    footer {
      background: var(--bg); border-top: 1px solid var(--border);
      padding: 32px 5%;
    }
    .footer-inner {
      max-width: 1200px; margin: auto;
      display: flex; align-items: center; justify-content: space-between;
    }
    .footer-logo { font-family: var(--mono); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
    footer p { color: var(--text-muted); font-size: .8rem; font-family: var(--mono); }
    .footer-socs { display: flex; gap: 14px; }
    .footer-socs a { color: var(--text-muted); font-size: .95rem; text-decoration: none; transition: color .3s; }
    .footer-socs a:hover { color: var(--blue); }

    /* ── BACK TO TOP ── */
    #btt {
      position: fixed; bottom: 32px; right: 32px;
      width: 46px; height: 46px; border: 1px solid var(--border-blue);
      border-radius: 50%; background: rgba(8,8,16,.9);
      display: flex; align-items: center; justify-content: center;
      color: var(--blue); text-decoration: none; font-size: 1rem;
      z-index: 500; opacity: 0; pointer-events: none;
      transition: opacity .3s, transform .3s, box-shadow .3s;
      backdrop-filter: blur(10px);
    }
    #btt.show { opacity: 1; pointer-events: auto; }
    #btt:hover { transform: translateY(-4px); box-shadow: var(--blue-glow); }

    /* ── DIVIDER ── */
    .divider {
      width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
      margin: 0;
    }
    /* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #f0f6fb;
  --bg-2: #e5eef7;
  --bg-glass: rgba(255,255,255,0.72);
  --border: rgba(14, 127, 168, 0.15);
  --border-blue: rgba(14, 127, 168, 0.35);
  --text: #0e2a3a;
  --text-muted: #3a6a85;
  --blue: #0a7ba8;
  --blue-light: #12a0cc;
  --blue-dim: rgba(10, 123, 168, 0.12);
  --blue-glow: 0 0 40px rgba(10, 123, 168, 0.22);
}

/* ── LIGHT THEME BODY ── */
[data-theme="light"] body {
  background: linear-gradient(160deg, #e8f4fb 0%, #f0f6fb 40%, #e4eef8 100%);
  background-attachment: fixed;
}

/* ── PARTICLES & EFFECTS ── */
[data-theme="light"] #particles-canvas { opacity: 0.35; filter: invert(1) hue-rotate(180deg); }
[data-theme="light"] .noise { opacity: 0.08; }

/* ── ORBS — soft sky glows ── */
[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(10,123,168,0.12) 0%, rgba(18,160,204,0.06) 60%, transparent 80%); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(10,123,168,0.08) 0%, transparent 70%); }

/* ── NAVIGATION ── */
[data-theme="light"] nav.scrolled {
  background: rgba(234, 244, 251, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(14,127,168,0.12), 0 4px 20px rgba(10,123,168,0.06);
}
[data-theme="light"] .mob-menu {
  background: rgba(232, 244, 251, 0.98);
  backdrop-filter: blur(32px);
}

/* ── HERO ── */
[data-theme="light"] .hero-img {
  border-color: rgba(10,123,168,0.45);
  box-shadow: 0 0 0 8px rgba(10,123,168,0.07), 0 0 60px rgba(10,123,168,0.14);
}
[data-theme="light"] .hero-eyebrow {
  background: rgba(255,255,255,0.8);
  border-color: rgba(10,123,168,0.2);
  box-shadow: 0 2px 12px rgba(10,123,168,0.08);
}
[data-theme="light"] .skill-badge {
  background: rgba(255,255,255,0.92);
  border-color: rgba(10,123,168,0.25);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(10,123,168,0.12);
}
[data-theme="light"] .img-glow {
  background: radial-gradient(circle, rgba(10,123,168,0.2) 0%, transparent 70%);
}
[data-theme="light"] .scroll-mouse { border-color: rgba(10,123,168,0.35); }

/* ── ABOUT SECTION ── */
[data-theme="light"] .about { background: rgba(228,238,248,0.6); }
[data-theme="light"] .a-stat {
  background: rgba(255,255,255,0.82);
  border-color: rgba(10,123,168,0.15);
  box-shadow: 0 2px 12px rgba(10,123,168,0.07);
}
[data-theme="light"] .a-stat:hover {
  border-color: rgba(10,123,168,0.35);
  box-shadow: 0 6px 24px rgba(10,123,168,0.12);
}
[data-theme="light"] .det-item {
  background: rgba(255,255,255,0.82);
  border-color: rgba(10,123,168,0.12);
  box-shadow: 0 2px 8px rgba(10,123,168,0.05);
}
[data-theme="light"] .det-item:hover { border-color: rgba(10,123,168,0.3); }
[data-theme="light"] .about-frame-accent { border-color: var(--blue); opacity: 0.2; }
[data-theme="light"] .about-img { filter: grayscale(0.1) saturate(1.1); }
[data-theme="light"] .about-img-wrap:hover .about-img { filter: grayscale(0) saturate(1.2); }

/* ── SKILLS SECTION ── */
[data-theme="light"] .sk-card {
  background: rgba(255,255,255,0.82);
  border-color: rgba(10,123,168,0.14);
  box-shadow: 0 2px 12px rgba(10,123,168,0.06);
}
[data-theme="light"] .sk-card:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(10,123,168,0.32);
  box-shadow: 0 8px 32px rgba(10,123,168,0.12);
}
[data-theme="light"] .sk-track { background: rgba(10,123,168,0.1); }
[data-theme="light"] .sk-fill { box-shadow: 0 0 12px rgba(10,123,168,0.3); }

/* ── SERVICES SECTION ── */
[data-theme="light"] .services { background: rgba(228,238,248,0.5); }
[data-theme="light"] .svc-node {
  background: rgba(255,255,255,0.82);
  border-color: rgba(10,123,168,0.14);
  box-shadow: 0 2px 16px rgba(10,123,168,0.07);
}
[data-theme="light"] .svc-node:hover {
  background: rgba(255,255,255,0.97);
  border-color: rgba(10,123,168,0.3);
  box-shadow: 0 12px 40px rgba(10,123,168,0.13);
}
[data-theme="light"] .svc-node::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(10,123,168,0.06) 0%, transparent 70%);
}
[data-theme="light"] .svc-hub {
  background: rgba(10,123,168,0.1);
  border-color: rgba(10,123,168,0.3);
  box-shadow: 0 4px 20px rgba(10,123,168,0.1);
}
[data-theme="light"] .svc-node-dot { background: var(--bg-2); }
[data-theme="light"] .svc-num { color: rgba(10,123,168,0.3); }

/* ── PROJECTS ── */
[data-theme="light"] .proj-card {
  background: rgba(255,255,255,0.82);
  border-color: rgba(10,123,168,0.14);
  box-shadow: 0 2px 16px rgba(10,123,168,0.07);
}
[data-theme="light"] .proj-card:hover {
  background: rgba(255,255,255,0.97);
  border-color: rgba(10,123,168,0.3);
  box-shadow: 0 16px 48px rgba(10,123,168,0.14);
}
[data-theme="light"] .proj-node-dot { background: var(--bg); }
[data-theme="light"] .proj-tag {
  background: rgba(10,123,168,0.1);
  color: var(--blue);
  border: 1px solid rgba(10,123,168,0.2);
}

/* ── TIMELINE ── */
[data-theme="light"] .tl-trace-bg { stroke: rgba(10,123,168,0.15); }
[data-theme="light"] .tl-trace { filter: drop-shadow(0 0 5px rgba(10,123,168,0.5)) drop-shadow(0 0 12px rgba(10,123,168,0.2)); }
[data-theme="light"] .tl-node-dot { fill: var(--bg-2); stroke: var(--blue); }
[data-theme="light"] .tl-node-dot.active-dot { fill: var(--blue); }
[data-theme="light"] .tl-card {
  background: rgba(255,255,255,0.82);
  border-color: rgba(10,123,168,0.14);
  box-shadow: 0 2px 16px rgba(10,123,168,0.07);
}
[data-theme="light"] .tl-card:hover {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 8px 32px rgba(10,123,168,0.12);
}

/* ── CONTACT ── */
[data-theme="light"] .contact-form,
[data-theme="light"] .contact-info {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(10,123,168,0.14);
  box-shadow: 0 2px 16px rgba(10,123,168,0.07);
  border-radius: var(--r);
  padding: 40px 36px;
}
[data-theme="light"] .cf-field input,
[data-theme="light"] .cf-field textarea {
  background: rgba(240,246,251,0.8);
  border-color: rgba(10,123,168,0.2);
  color: var(--text);
}
[data-theme="light"] .cf-field input:focus,
[data-theme="light"] .cf-field textarea:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,123,168,0.1);
}
[data-theme="light"] .cf-field label { color: var(--text-muted); }
[data-theme="light"] .ci-item {
  background: rgba(240,246,251,0.8);
  border: 1px solid rgba(10,123,168,0.14);
}
[data-theme="light"] .ci-item:hover { background: rgba(255,255,255,0.97); }

/* ── DIVIDER ── */
[data-theme="light"] .divider::after { background: linear-gradient(90deg, transparent, rgba(10,123,168,0.2), transparent); }

/* ── FOOTER ── */
[data-theme="light"] footer {
  background: rgba(228,238,248,0.8);
  border-top-color: rgba(10,123,168,0.15);
}

/* ── BUTTONS ── */
[data-theme="light"] .btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10,123,168,0.3);
}
[data-theme="light"] .btn-blue:hover { box-shadow: 0 8px 32px rgba(10,123,168,0.4); }
[data-theme="light"] .btn-ghost { color: var(--blue); border-color: rgba(10,123,168,0.35); }
[data-theme="light"] .btn-ghost:hover { background: rgba(10,123,168,0.1); }

/* ── SOCIAL ICONS ── */
[data-theme="light"] .soc {
  background: rgba(255,255,255,0.8);
  border-color: rgba(10,123,168,0.15);
  box-shadow: 0 2px 8px rgba(10,123,168,0.06);
}
[data-theme="light"] .soc:hover {
  background: rgba(10,123,168,0.1);
  border-color: rgba(10,123,168,0.3);
  box-shadow: 0 4px 16px rgba(10,123,168,0.15);
}

/* ── SECTION HEADING ACCENTS ── */
[data-theme="light"] .section-title { color: #0a1e2e; }
[data-theme="light"] .section-title span { color: var(--blue); }
[data-theme="light"] .section-tag { color: var(--blue); }
[data-theme="light"] .section-tag::before { background: var(--blue); }

/* ── THEME TOGGLE ── */
[data-theme="light"] #themeToggle {
  background: rgba(255,255,255,0.85);
  border-color: rgba(10,123,168,0.25);
  box-shadow: 0 2px 12px rgba(10,123,168,0.1);
}
[data-theme="light"] #themeToggle:hover { box-shadow: 0 4px 20px rgba(10,123,168,0.2); }

/* ── BACK TO TOP ── */
[data-theme="light"] #btt {
  background: rgba(255,255,255,0.85);
  border-color: rgba(10,123,168,0.25);
  box-shadow: 0 2px 12px rgba(10,123,168,0.1);
}
[data-theme="light"] #btt:hover { background: var(--blue); color: #fff; }

/* ── PROGRESS BAR ── */
[data-theme="light"] #progress-bar { box-shadow: 0 0 12px rgba(10,123,168,0.4); }

/* ── PRELOADER ── */
[data-theme="light"] #preloader { background: #f0f6fb; }

/* ── CURSOR ── */
[data-theme="light"] .cur-ring { border-color: rgba(10,123,168,0.4); }

/* ── GITHUB STATS / MISC CARDS ── */
[data-theme="light"] .gh-stats {
  border-color: rgba(10,123,168,0.15);
  background: rgba(255,255,255,0.7);
}
[data-theme="light"] .mock-weather,
[data-theme="light"] .about-certs,
[data-theme="light"] [class*="-card"],
[data-theme="light"] [class*="-box"] {
  background: rgba(255,255,255,0.8);
  border-color: rgba(10,123,168,0.15);
}

/* ── NAV LINK ── */
[data-theme="light"] .nav-link { color: #3a6a85; }
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { color: #0a1e2e; }
[data-theme="light"] .logo { color: #0a1e2e; }
[data-theme="light"] .mob-link { color: #1a4a65; }
[data-theme="light"] .mob-link:hover { color: var(--blue); }

/* ── SVG CONNECTORS ── */
[data-theme="light"] .svc-svg path,
[data-theme="light"] .proj-svg path,
[data-theme="light"] .svc-svg line,
[data-theme="light"] .proj-svg line { stroke: rgba(10,123,168,0.25); }
[data-theme="light"] .svc-svg circle,
[data-theme="light"] .proj-svg circle { fill: rgba(10,123,168,0.4); }

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
}
.pre-logo {
  font-family: var(--mono); font-size: 2rem; font-weight: 700;
  letter-spacing: -1px; color: var(--text);
  animation: pre-pulse 1.2s ease-in-out infinite;
}
@keyframes pre-pulse { 0%,100%{opacity:.6;} 50%{opacity:1;} }
.pre-bar {
  width: 200px; height: 2px; background: var(--border);
  border-radius: 2px; overflow: hidden;
}
.pre-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px; transition: width .05s linear;
}
.pre-pct {
  font-family: var(--mono); font-size: .72rem;
  color: var(--text-muted); letter-spacing: 2px;
}

/* ── THEME TOGGLE ── */
#themeToggle {
  position: fixed; bottom: 88px; right: 32px; z-index: 500;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-glass); border: 1px solid var(--border-blue);
  color: var(--blue); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s; backdrop-filter: blur(10px);
}
#themeToggle:hover { box-shadow: var(--blue-glow); transform: translateY(-2px) rotate(20deg); }

/* ── GITHUB STATS ── */
.gh-stats {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  background: var(--bg-glass);
  transition: border-color .3s;
}
.gh-stats:hover { border-color: var(--border-blue); }
.gh-stats-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: .78rem; color: var(--text-muted);
}
.gh-stats-head i { color: var(--text); font-size: 1rem; }
.gh-user {
  margin-left: auto; color: var(--blue); font-size: .72rem;
  text-decoration: none; transition: opacity .2s;
}
.gh-user:hover { opacity: .7; }
.gh-stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
}
.gh-stat-item {
  padding: 18px 12px; text-align: center;
  border-right: 1px solid var(--border);
}
.gh-stat-item:last-child { border-right: none; }
.gh-stat-n {
  display: block; font-size: 1.5rem; font-weight: 800;
  color: var(--blue); line-height: 1; margin-bottom: 6px;
  font-family: var(--mono);
}
.gh-stat-l {
  font-family: var(--mono); font-size: .6rem;
  color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase;
}

/* ── SKILLS LAYOUT (radar + bars) ── */
.skills-layout {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 60px; align-items: center;
}
.radar-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.radar-wrap canvas { max-width: 100%; }

@media (max-width: 1024px) {
  .skills-layout { grid-template-columns: 1fr; }
  .radar-wrap { justify-content: center; }
  .radar-wrap canvas { max-width: 320px; }
}

/* ── PROJECT FILTERS ── */
.proj-filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
}
.pf-btn {
  font-family: var(--mono); font-size: .72rem; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 8px 22px;
  border: 1px solid var(--border); border-radius: 50px;
  background: transparent; color: var(--text-muted); cursor: pointer;
  transition: all .3s;
}
.pf-btn:hover { border-color: var(--border-blue); color: var(--blue); }
.pf-btn.active {
  background: var(--blue); border-color: var(--blue);
  color: #08080e; font-weight: 700;
}
.proj-card { transition: border-color .35s, transform .35s, background .35s, opacity .4s, max-height .4s; }
.proj-card.hidden { opacity: 0; pointer-events: none; transform: scale(0.96); display: none; }

/* ── PROJECT PREVIEW MOCKUPS ── */
.proj-preview {
  border-radius: 10px; overflow: hidden;
  margin-bottom: 4px; flex-shrink: 0;
}
.proj-preview-mock {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; height: 110px;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.mock-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.mock-bar span:nth-child(1) { background: rgba(255,96,96,.4); }
.mock-bar span:nth-child(2) { background: rgba(255,200,50,.4); }
.mock-bar span:nth-child(3) { background: rgba(80,200,120,.4); }
.mock-code { padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; }
.mc-line {
  height: 6px; border-radius: 3px; background: rgba(255,255,255,.1);
}
.mc-line.accent { background: rgba(62,193,237,.35); }

/* Weather mock */
.mock-blue { background: rgba(14,100,180,.07); }
.mock-weather {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0 4px; gap: 4px;
}
.mock-weather-icon { font-size: 1.8rem; color: var(--blue-light); }
.mock-temp {
  font-family: var(--mono); font-weight: 700; font-size: 1.1rem;
  color: var(--text);
}

/* Menu mock */
.mock-warm { background: rgba(220,80,30,.06); }
.mock-menu { padding: 8px 14px; display: flex; flex-direction: column; gap: 8px; }
.mock-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc-pill {
  font-family: var(--mono); font-size: .62rem; font-weight: 700;
  background: rgba(220,100,30,.2); color: #f0a070;
  padding: 2px 8px; border-radius: 50px; flex-shrink: 0;
}

/* POS mock */
.mock-green { background: rgba(30,160,80,.06); }
.mock-pos { padding: 8px 14px; display: flex; flex-direction: column; gap: 7px; }
.mock-pos-row { display: flex; align-items: center; justify-content: space-between; }
.mc-price { font-family: var(--mono); font-size: .65rem; color: var(--text-muted); }
.mock-pos-divider { height: 1px; background: var(--border); margin: 2px 0; }
.mock-pos-total {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  color: #4ade80;
}

/* ── TIMELINE ── */
.timeline-section { background: var(--bg-2); }

/* ── TIMELINE WRAPPER ── */
.timeline {
  position: relative;
  isolation: isolate;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

/* hide old line */
.tl-line { display: none; }

/* ── SVG CIRCUIT TRACE ── */
.tl-snake-svg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: visible;
}
/* glowing animated trace */
.tl-trace-bg {
  fill: none;
  stroke: rgba(62,193,237,0.18);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tl-trace {
  fill: none;
  stroke: url(#traceGrad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(62,193,237,0.6)) drop-shadow(0 0 12px rgba(62,193,237,0.25));
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tl-trace.drawn { stroke-dashoffset: 0; }

/* ── SHIMMER PULSE OVERLAY ── */
.tl-trace-shimmer {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  stroke-dasharray: 80 2000;
  stroke-dashoffset: 0;
  animation: shimmer-ride 3.5s ease-in-out infinite;
}
@keyframes shimmer-ride {
  0%   { stroke-dashoffset: 0;     opacity: 0; }
  5%   { opacity: 0.55; }
  90%  { opacity: 0.3; }
  100% { stroke-dashoffset: -2080; opacity: 0; }
}

/* ── SPARK COMET — animated via JS requestAnimationFrame ── */
#traceSpark { pointer-events: none; }
#sparkCore  { filter: drop-shadow(0 0 6px #ffffff) drop-shadow(0 0 12px #29d6f9); }
#sparkHalo  { filter: drop-shadow(0 0 10px rgba(41,214,249,0.8)); }

/* node dots on path */
.tl-node-dot {
  fill: var(--bg-2);
  stroke: var(--blue);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(62,193,237,0.7));
}
.tl-node-dot.active-dot {
  fill: var(--blue);
  animation: node-pulse 2.5s ease-in-out infinite;
}
@keyframes node-pulse {
  0%,100% { filter: drop-shadow(0 0 6px rgba(62,193,237,0.7)) drop-shadow(0 0 0px rgba(62,193,237,0)); }
  50%      { filter: drop-shadow(0 0 10px rgba(62,193,237,1)) drop-shadow(0 0 20px rgba(62,193,237,0.4)); }
}

@media (max-width: 768px) {
  /* On mobile, trace is a thinner vertical line */
  .tl-trace-bg { stroke-width: 1.5; }
  .tl-trace     { stroke-width: 1.5; }
}

/* ── CARD LAYOUT ── */
.tl-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 56px;
  position: relative;
  z-index: 3;
}
.tl-item:last-child { margin-bottom: 0; }

/* LEFT card: sits on left half, dot on right edge */
.tl-left  { justify-content: flex-start; padding-right: 52%; }
/* RIGHT card: sits on right half, dot on left edge */
.tl-right { justify-content: flex-end;   padding-left: 52%; }

/* dot hidden — replaced by SVG nodes */
.tl-dot { display: none; }

.tl-card {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
  position: relative;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.tl-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(62,193,237,0.08);
}
.tl-card-active {
  border-color: var(--border-blue);
  background: rgba(62,193,237,.04);
}

/* ── CONNECTOR STUB: small horizontal line from card edge to trace ── */
/* Left card: stub exits right side */
.tl-left .tl-card::after {
  content: '';
  position: absolute;
  top: 28px; right: -28px;
  width: 28px; height: 2px;
  background: linear-gradient(to right, var(--blue), rgba(62,193,237,0.3));
}
/* Right card: stub exits left side */
.tl-right .tl-card::after {
  content: '';
  position: absolute;
  top: 28px; left: -28px;
  width: 28px; height: 2px;
  background: linear-gradient(to left, var(--blue), rgba(62,193,237,0.3));
}

/* ── CARD YEAR / TEXT ── */
.tl-year {
  font-family: var(--mono); font-size: .7rem; color: var(--text-muted);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.tl-year-active { color: var(--blue); }
.tl-now {
  font-family: var(--mono); font-size: .6rem; font-weight: 700;
  background: var(--blue); color: #08080e;
  padding: 2px 10px; border-radius: 50px; letter-spacing: 1px;
}
.tl-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.tl-card p   { color: var(--text-muted); font-size: .87rem; line-height: 1.75; margin-bottom: 16px; }
.tl-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-tags span {
  font-family: var(--mono); font-size: .62rem; color: var(--blue);
  background: var(--blue-dim); border: 1px solid var(--border-blue);
  padding: 3px 10px; border-radius: 50px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  /* Keep SVG visible on mobile — JS draws vertical trace */
  .tl-snake-svg { display: block; }
  .tl-line { display: none; }

  /* All cards stacked full-width with left indent for trace */
  .tl-item {
    flex-direction: row !important;
    padding: 0 0 0 44px !important;
    justify-content: flex-start !important;
    margin-bottom: 28px;
    align-items: flex-start;
  }
  .tl-left  { padding-right: 0 !important; }
  .tl-right { padding-left: 44px !important; }

  .tl-card { width: 100%; }
  .tl-card::after { display: none !important; }

  /* Dots: hidden visually — SVG draws the circles perfectly aligned */
  .tl-dot {
    display: block;
    position: absolute;
    left: 20px;
    top: 24px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: transparent;
    border: none;
    z-index: 3;
    transform: translateX(-50%);
    flex-shrink: 0;
    opacity: 0;        /* invisible — only used as anchor for JS */
    pointer-events: none;
  }
  .tl-dot.active {
    opacity: 0;        /* still invisible — SVG handles the glow */
  }
}

/* ── TESTIMONIALS ── */
.testimonials-section { background: var(--bg); }
.testi-wrap { position: relative; overflow: hidden; }
.testi-track {
  display: flex; gap: 0; width: 100%;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.testi-card {
  flex: 0 0 100%;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--r); padding: 48px;
  transition: border-color .3s;
}
.testi-card:hover { border-color: var(--border-blue); }
.testi-stars {
  color: #f59e0b; font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 24px;
}
.testi-text {
  font-size: 1.05rem; line-height: 1.85; color: var(--text);
  font-style: italic; margin-bottom: 32px; max-width: 700px;
}
.testi-author { display: flex; align-items: center; gap: 16px; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-dim); border: 1px solid var(--border-blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: .8rem;
  color: var(--blue); flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: .95rem; margin-bottom: 3px; }
.testi-role { font-family: var(--mono); font-size: .7rem; color: var(--text-muted); letter-spacing: .5px; }
.testi-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-top: 32px;
}
.testi-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-blue); background: transparent;
  color: var(--blue); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.testi-btn:hover { background: var(--blue-dim); box-shadow: var(--blue-glow); }
.testi-dots { display: flex; gap: 8px; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: all .3s; padding: 0;
}
.testi-dot.active { background: var(--blue); width: 24px; border-radius: 4px; }

/* ── CONTACT FORM UPGRADES ── */
.form-submit-btn {
  justify-content: center; border-radius: 8px; width: 100%;
}
.form-note {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .68rem; color: var(--text-muted);
  letter-spacing: .5px; margin-top: -4px;
}
.form-note i { color: #4ade80; }

/* ── RESPONSIVE EXTRAS ── */
@media (max-width: 768px) {
  .gh-stats-grid { grid-template-columns: repeat(2,1fr); }
  .gh-stat-item:nth-child(2) { border-right: none; }
  .testi-card { padding: 28px 24px; }
  #themeToggle { bottom: 88px; right: 20px; }
  #btt { right: 20px; }
}
@media (max-width: 480px) {
  .proj-filters { gap: 8px; }
  .pf-btn { padding: 7px 16px; font-size: .68rem; }
  .testi-card { padding: 24px 18px; }
  .testi-text { font-size: .92rem; }
}


    /* ── RESPONSIVE ── */
    @media (max-width: 1024px) {
      .hero-grid { grid-template-columns: 1fr; justify-items: center; }
      .hero-img-panel { width: 100%; }
      .hero-left { text-align: center; }
      .hero-ctas, .social-row { justify-content: center; }
      .hero-desc { margin-left: auto; margin-right: auto; }
      .about-inner { grid-template-columns: 1fr; }
      .svc-grid { grid-template-columns: 1fr 1fr; }
      .proj-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .ham { display: flex; }
      .section-inner { padding: 90px 5% 60px; }
      .hero-grid { padding: 0; gap: 48px; }
      .svc-grid { grid-template-columns: 1fr; }
      .proj-grid { grid-template-columns: 1fr; }
      .contact-inner { grid-template-columns: 1fr; gap: 32px; }
      .form-row { grid-template-columns: 1fr; gap: 14px; }
      .footer-inner { flex-direction: column; gap: 18px; text-align: center; }
      .about-stats { grid-template-columns: repeat(3,1fr); }
      .skills-grid { grid-template-columns: 1fr; }
      .contact-form { padding: 24px 18px; gap: 16px; }
      .fg input, .fg textarea { padding: 12px 14px; font-size: .88rem; }
      .clink { font-size: .85rem; padding: 12px 14px; }
      .clink:hover { transform: none; }
      .form-submit-btn { padding: 14px; font-size: .9rem; }
      .contact-sub { margin: 14px 0 24px; font-size: .92rem; }
    }
    @media (max-width: 480px) {
      .about-details { grid-template-columns: 1fr; }
      .about-stats { grid-template-columns: repeat(3,1fr); gap: 8px; }
      .a-stat { padding: 14px 8px; }
      .a-stat-n { font-size: 1.5rem; }
      .orbit-system { width: 260px; height: 260px; }
      .hero-img-wrap { width: 140px; height: 140px; }
      .ring-a { width: 180px; height: 180px; }
      .ring-b { width: 222px; height: 222px; }
      .ring-c { width: 256px; height: 256px; }
      .dot-on-a { left: 88px; }
      .dot-on-b, .dot-on-c, .dot-on-d { left: 109px; }
      /* Hide skill badges on very small screens to avoid overflow */
      .skill-badge-orbit { display: none; }
      .arc-svg { width: 260px; height: 260px; }
      .hero-title { letter-spacing: -1px; }
      .contact-form { padding: 18px 14px; gap: 14px; }
      .clink { font-size: .82rem; padding: 11px 12px; gap: 10px; }
      .fg input, .fg textarea { padding: 11px 12px; }
      .mob-link { font-size: .95rem; }
    }

    /* ── ANIMATIONS ── */
    @keyframes fadeInUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
    @keyframes shimmer {
      0%{background-position:-200% 0}
      100%{background-position:200% 0}
    }
    .blue-shimmer {
      background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 40%, var(--blue) 80%);
      background-size: 200% auto;
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: shimmer 4s linear infinite;
    }

    /* Decorative line element */
    .deco-line {
      display: inline-flex; align-items: center; gap: 12px;
      font-family: var(--mono); font-size: .7rem; color: var(--text-muted);
      letter-spacing: 2px; margin-bottom: 16px;
    }
    .deco-line::before, .deco-line::after {
      content: ''; width: 32px; height: 1px; background: var(--border);
    }
/* ════════════════════════════════════════════
   ACHIEVEMENTS & CERTIFICATES SECTION
   ════════════════════════════════════════════ */
.certs-section { background: var(--bg); position: relative; overflow: hidden; isolation: isolate; }
.certs-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(62,193,237,.05) 0%, transparent 70%);
  pointer-events: none;
}

/* NETWORK WRAP */
.certs-network-wrap {
  position: relative;
  margin-top: 0;
}
.certs-net-svg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* GRID */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

/* CERT CARD - enhanced professional look */
.cert-card {
  position: relative;
  z-index: 2;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 24px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  overflow: hidden;
  cursor: default;
}
/* Left accent bar by category */
.cert-card[data-cat="python"]::after  { --cat-color: #3b82f6; }
.cert-card[data-cat="security"]::after { --cat-color: #ef4444; }
.cert-card[data-cat="network"]::after  { --cat-color: #22c55e; }
.cert-card[data-cat="award"]::after   { --cat-color: #f59e0b; }
.cert-card::after {
  content: '';
  position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  background: var(--cat-color, var(--blue));
  border-radius: 0 3px 3px 0;
  opacity: 0.6;
  transition: opacity .3s, height .3s;
}
.cert-card:hover::after { opacity: 1; top: 0; bottom: 0; border-radius: 0; }
.cert-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0; transition: opacity .3s;
}
.cert-card:hover { border-color: var(--border-blue); transform: translateY(-5px); box-shadow: 0 16px 48px rgba(62,193,237,.1); }
.cert-card:hover::before { opacity: 1; }

/* TOP ROW */
.cert-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; gap: 12px; }

/* icon */
.cert-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(62,193,237,.1); border: 1px solid rgba(62,193,237,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; transition: background .3s, transform .3s;
}
.cert-card:hover .cert-icon { background: rgba(62,193,237,.18); transform: scale(1.08); }

/* verified badge */
.cert-verified {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: .62rem; font-weight: 600;
  color: #22c55e; letter-spacing: .5px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25);
  padding: 4px 10px; border-radius: 50px; white-space: nowrap;
}
.cert-verified::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.8); flex-shrink: 0;
}

/* BODY */
.cert-org { font-family: var(--mono); font-size: .68rem; color: var(--blue); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.cert-name { font-size: .98rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 10px; }
.cert-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; }

/* FOOTER */
.cert-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.cert-date {
  font-family: var(--mono); font-size: .68rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.cert-date::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--blue); }
.cert-skills { display: flex; gap: 6px; flex-wrap: wrap; }
.cert-skill {
  font-family: var(--mono); font-size: .6rem; color: var(--text-muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 4px; transition: color .2s, border-color .2s;
}
.cert-card:hover .cert-skill { color: var(--blue); border-color: var(--border-blue); }

/* STATS BAR */
.certs-stats {
  display: flex; gap: 0; margin-top: 48px;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.certs-stat { flex: 1; padding: 24px 20px; text-align: center; position: relative; }
.certs-stat + .certs-stat::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--border); }
.certs-stat-num { font-family: var(--mono); font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 6px; text-shadow: 0 0 30px rgba(62,193,237,.4); }
.certs-stat-label { font-size: .75rem; color: var(--text-muted); letter-spacing: .5px; }

/* LIGHT THEME */
[data-theme="light"] .cert-card { background: rgba(255,255,255,.82); border-color: rgba(10,123,168,.12); }
[data-theme="light"] .cert-card:hover { border-color: rgba(10,123,168,.35); box-shadow: 0 16px 48px rgba(10,123,168,.1); }
[data-theme="light"] .cert-icon { background: rgba(10,123,168,.1); border-color: rgba(10,123,168,.2); }
[data-theme="light"] .cert-skill { background: rgba(255,255,255,.7); }
[data-theme="light"] .certs-stats { background: rgba(255,255,255,.82); }

/* MOBILE */
@media (max-width: 768px) {
  .certs-grid { grid-template-columns: 1fr; gap: 16px; }
  .certs-stats { flex-direction: column; }
  .certs-stat + .certs-stat::before { top: 0; bottom: auto; left: 20%; right: 20%; width: auto; height: 1px; }
}

/* ── CERT FILTER TABS ── */
.certs-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 40px; margin-bottom: 0;
}
.cf-btn {
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .6px; text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-glass); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 50px; cursor: pointer;
  transition: all .2s;
}
.cf-btn:hover { color: var(--blue); border-color: var(--border-blue); }
.cf-btn.active {
  color: var(--bg); background: var(--blue); border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(62,193,237,.3);
}
.cert-card.hidden { display: none; }

/* ── GOLD AWARD CARD ── */
.cert-award {
  background: linear-gradient(135deg, rgba(245,158,11,.06) 0%, var(--bg-glass) 50%, rgba(245,158,11,.04) 100%);
  border-color: rgba(245,158,11,.3) !important;
  position: relative;
}
.cert-award:hover { border-color: rgba(245,158,11,.6) !important; box-shadow: 0 16px 48px rgba(245,158,11,.12) !important; }
.cert-award::before { background: linear-gradient(90deg, transparent, #f59e0b, transparent) !important; }
.cert-award-ribbon {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--mono); font-size: .65rem; font-weight: 700;
  color: #f59e0b; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
  padding: 4px 12px; border-radius: 50px;
}
.cert-icon-gold {
  background: rgba(245,158,11,.15) !important;
  border-color: rgba(245,158,11,.35) !important;
  font-size: 1.8rem !important;
  width: 60px !important; height: 60px !important;
}
.cert-gold {
  color: #f59e0b !important;
  background: rgba(245,158,11,.1) !important;
  border-color: rgba(245,158,11,.3) !important;
}
.cert-award .cert-org { color: #f59e0b; }
.cert-award .cert-name { font-size: 1.1rem; }

/* LIGHT THEME for filters & award */
[data-theme="light"] .cf-btn { background: rgba(255,255,255,.8); }
[data-theme="light"] .cf-btn.active { color: #fff; }
[data-theme="light"] .cert-award { border-color: rgba(217,119,6,.35) !important; }

/* ══════════════════════════════════════════
   CERTIFICATE MODAL
   ══════════════════════════════════════════ */

/* Clickable card */
.cert-card[data-pdf] {
  cursor: pointer;
  user-select: none;
}
.cert-card[data-pdf]:hover .cert-name {
  color: var(--blue);
  transition: color .2s;
}
/* View hint strip at bottom of card */
.cert-card[data-pdf]::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0; transition: opacity .3s;
}
.cert-card[data-pdf]:hover::before { opacity: 1; }

.cert-view-hint {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .65rem; font-weight: 600;
  color: var(--blue); letter-spacing: .4px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.cert-view-hint svg { flex-shrink: 0; }
.cert-card[data-pdf]:hover .cert-view-hint {
  opacity: 1; transform: translateY(0);
}

/* ── MODAL BACKDROP ── */
.cert-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.cert-modal.open {
  opacity: 1; pointer-events: all;
}
.cert-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 6, 14, 0.85);
  backdrop-filter: blur(12px);
}

/* ── MODAL BOX ── */
.cert-modal-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 960px;
  height: 90vh; max-height: 780px;
  background: var(--bg-2);
  border: 1px solid var(--border-blue);
  border-radius: 20px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(62,193,237,.08);
  transform: translateY(20px) scale(0.97);
  transition: transform .3s cubic-bezier(0.34,1.56,0.64,1);
}
.cert-modal.open .cert-modal-box {
  transform: translateY(0) scale(1);
}

/* ── MODAL HEADER ── */
.cert-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.cert-modal-title {
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  color: var(--text); letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: calc(100% - 160px);
}
.cert-modal-actions {
  display: flex; gap: 8px; align-items: center; flex-shrink: 0;
}

/* buttons in header */
.cert-modal-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.cert-modal-download {
  color: var(--blue);
  background: rgba(62,193,237,.08);
  border-color: var(--border-blue);
}
.cert-modal-download:hover {
  background: rgba(62,193,237,.18);
  border-color: var(--blue);
}
.cert-modal-close {
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
}
.cert-modal-close:hover {
  background: rgba(255,60,60,.1);
  border-color: rgba(255,60,60,.3);
  color: #ff6b6b;
}

/* ── MODAL BODY ── */
.cert-modal-body {
  flex: 1; position: relative; overflow: hidden;
  background: #1a1a2e;
}

/* loader */
.cert-modal-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; color: var(--text-muted); font-size: .85rem;
  z-index: 2;
}
.cert-loader-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(62,193,237,.15);
  border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cert-modal-loader.hidden { display: none; }

/* iframe */
.cert-modal-iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

/* ── LIGHT THEME ── */
[data-theme="light"] .cert-modal-backdrop { background: rgba(10,20,40,.7); }
[data-theme="light"] .cert-modal-box {
  background: #f0f6fb;
  border-color: rgba(10,123,168,.35);
  box-shadow: 0 32px 80px rgba(10,40,80,.25);
}
[data-theme="light"] .cert-modal-header { background: rgba(255,255,255,.9); border-color: rgba(10,123,168,.15); }
[data-theme="light"] .cert-modal-body { background: #e8f0f8; }
[data-theme="light"] .cert-modal-close { background: rgba(0,0,0,.04); }
[data-theme="light"] .cert-modal-close:hover { background: rgba(255,50,50,.08); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .cert-modal { padding: 0; align-items: flex-end; }
  .cert-modal-box {
    max-width: 100%; width: 100%;
    height: 92vh; max-height: none;
    border-radius: 20px 20px 0 0;
    transform: translateY(40px);
  }
  .cert-modal.open .cert-modal-box { transform: translateY(0); }
  .cert-modal-title { font-size: .72rem; max-width: calc(100% - 140px); }
  .cert-modal-download span { display: none; }
  .cert-modal-download { padding: 7px 10px; }
  /* Swipe hint bar on mobile */
  .cert-modal-header::before {
    content: '';
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 3px; border-radius: 2px;
    background: rgba(255,255,255,.15);
  }
}
