  :root {
    --bg:        #0a0c12;
    --bg2:       #0f1219;
    --card:      #131720;
    --border:    rgba(255,255,255,0.07);
    --cyan:      #00e5ff;
    --green:     #39ff85;
    --orange:    #ff7b39;
    --purple:    #c084fc;
    --pink:      #ff4fa3;
    --text:      #e8ecf4;
    --muted:     #6b7280;
    --font-head: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

  /* ─── RESET ───────────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  ul { list-style: none; }

  /* ─── NOISE OVERLAY ───────────────────────────────────── */
  body::before {
    content: '';
    position: fixed; inset: 0;
    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='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
  }

  /* ─── SCROLLBAR ───────────────────────────────────────── */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

  /* ─── NAV ─────────────────────────────────────────────── */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    height: 64px;
    background: rgba(10,12,18,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    animation: slideDown .6s ease both;
  }
  @keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } }

  .nav-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -.02em;
    color: var(--text);
  }
  .nav-logo span { color: var(--cyan); }

  .nav-links {
    display: flex; align-items: center; gap: 2rem;
  }
  .nav-links a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .25s;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute; left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--cyan);
    transition: width .3s ease;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { width: 100%; }

  .btn-resume {
    display: flex; align-items: center; gap: .4rem;
    padding: .45rem 1rem;
    border: 1px solid var(--cyan);
    color: var(--cyan) !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .25s, box-shadow .25s, color .25s;
  }
  .btn-resume:hover {
    background: var(--cyan);
    color: var(--bg) !important;
    box-shadow: 0 0 18px rgba(0,229,255,.35);
  }
  .btn-resume::after { display: none !important; }
  .btn-resume svg { flex-shrink: 0; }

  /* ─── HERO ────────────────────────────────────────────── */
  #hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 0 clamp(1.5rem, 8vw, 7rem);
    overflow: hidden;
  }

  /* Grid lines bg */
  #hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
  }

  /* Glow orbs */
  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite alternate;
  }
  .orb-1 { width: 500px; height: 500px; background: rgba(0,229,255,.12); top: -100px; right: -100px; animation-delay: 0s; }
  .orb-2 { width: 350px; height: 350px; background: rgba(57,255,133,.08); bottom: 0; left: 10%; animation-delay: 2s; }
  .orb-3 { width: 250px; height: 250px; background: rgba(255,123,57,.08); top: 40%; right: 20%; animation-delay: 4s; }
  @keyframes pulse {
    from { transform: scale(1); opacity: .7; }
    to   { transform: scale(1.15); opacity: 1; }
  }

  .hero-content { position: relative; z-index: 1; max-width: 780px; }

  .hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .3rem .75rem;
    border: 1px solid rgba(0,229,255,.25);
    border-radius: 100px;
    color: var(--cyan);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp .6s .2s ease both;
  }
  .hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    animation: blink 1.5s ease infinite;
  }
  @keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: .2; }
  }

  .hero-name {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.03em;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeUp .7s .35s ease both;
  }
  .hero-name .line { display: block; }
  .hero-name .accent { color: transparent; -webkit-text-stroke: 1px var(--cyan); }

  .hero-tagline {
    font-size: 1rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp .7s .5s ease both;
  }
  .hero-tagline em { color: var(--green); font-style: normal; }

  .hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .7s .65s ease both;
  }

  .btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.6rem;
    background: var(--cyan);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: box-shadow .25s, transform .2s;
  }
  .btn-primary:hover {
    box-shadow: 0 0 28px rgba(0,229,255,.5);
    transform: translateY(-2px);
  }

  .btn-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.6rem;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: border-color .25s, transform .2s;
  }
  .btn-secondary:hover { border-color: var(--cyan); transform: translateY(-2px); }

  .hero-stack {
    position: absolute;
    right: clamp(1.5rem, 8vw, 7rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .6rem;
    opacity: 0;
    animation: fadeIn 1s .9s ease both;
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .stack-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .5rem .75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    color: var(--muted);
    transition: border-color .3s, color .3s, transform .3s;
    cursor: default;
    white-space: nowrap;
  }
  .stack-item:hover { border-color: rgba(0,229,255,.3); color: var(--text); transform: translateX(-4px); }
  .stack-item .dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  }

  @keyframes fadeUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  /* ─── SECTION WRAPPER ─────────────────────────────────── */
  section { padding: 5rem clamp(1.5rem, 8vw, 7rem); position: relative; }
  section + section { border-top: 1px solid var(--border); }

  .section-label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: .6rem;
    display: flex; align-items: center; gap: .5rem;
  }
  .section-label::before {
    content: '';
    display: inline-block;
    width: 24px; height: 1px;
    background: var(--cyan);
  }

  .section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
  }

  /* ─── ABOUT ───────────────────────────────────────────── */
  #about .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
  }
  .about-text p {
    color: #9aa0ae;
    font-size: 14px;
    margin-bottom: 1rem;
    line-height: 1.85;
  }
  .about-text p strong { color: var(--text); font-weight: 400; }
  .about-text .highlight { color: var(--cyan); }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    height: fit-content;
  }
  .stat {
    background: var(--card);
    padding: 1.5rem;
    text-align: center;
  }
  .stat-num {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: .25rem;
  }
  .stat-num span { color: var(--cyan); }
  .stat-label { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

  /* ─── SKILLS ──────────────────────────────────────────── */
  #skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
  }

  .skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
  }
  .skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
  }
  .skill-card.c1::before { background: linear-gradient(90deg, var(--cyan), transparent); }
  .skill-card.c2::before { background: linear-gradient(90deg, var(--green), transparent); }
  .skill-card.c3::before { background: linear-gradient(90deg, var(--orange), transparent); }
  .skill-card.c4::before { background: linear-gradient(90deg, var(--purple), transparent); }
  .skill-card.c5::before { background: linear-gradient(90deg, var(--pink), transparent); }

  .skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
  }
  .skill-card.c1:hover { border-color: rgba(0,229,255,.3); }
  .skill-card.c2:hover { border-color: rgba(57,255,133,.3); }
  .skill-card.c3:hover { border-color: rgba(255,123,57,.3); }
  .skill-card.c4:hover { border-color: rgba(192,132,252,.3); }
  .skill-card.c5:hover { border-color: rgba(255,79,163,.3); }

  .skill-icon {
    font-size: 1.5rem;
    margin-bottom: .75rem;
  }
  .skill-name {
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .4rem;
  }
  .skill-desc { font-size: 12px; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
  .skill-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
  .tag {
    font-size: 10px;
    padding: .2rem .55rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: .05em;
  }

  /* ─── EXPERIENCE ──────────────────────────────────────── */
  #experience .exp-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
  }
  .exp-list::before {
    content: '';
    position: absolute;
    left: 12px; top: 16px; bottom: 16px;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), var(--purple), var(--green));
    opacity: .25;
  }

  .exp-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .exp-item:last-child { border-bottom: none; }

  .exp-dot-wrap {
    display: flex;
    justify-content: center;
    padding-top: 6px;
  }
  .exp-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    background: var(--bg);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
  .exp-item:nth-child(2) .exp-dot { border-color: var(--green); }
  .exp-item:nth-child(3) .exp-dot { border-color: var(--purple); }
  .exp-item:nth-child(4) .exp-dot { border-color: var(--orange); }

  .exp-body {}
  .exp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .25rem;
  }
  .exp-role {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
  }
  .exp-period {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .06em;
    white-space: nowrap;
  }
  .exp-company {
    font-size: 12px;
    color: var(--cyan);
    margin-bottom: .75rem;
    letter-spacing: .04em;
  }
  .exp-desc { color: #9aa0ae; font-size: 13px; line-height: 1.8; margin-bottom: .75rem; }
  .exp-techs { display: flex; flex-wrap: wrap; gap: .4rem; }
  .exp-tech {
    font-size: 10px;
    padding: .2rem .6rem;
    background: rgba(0,229,255,.06);
    border: 1px solid rgba(0,229,255,.18);
    border-radius: 100px;
    color: var(--cyan);
    letter-spacing: .04em;
  }

  /* ─── PROJECTS ────────────────────────────────────────── */
  #projects .proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .proj-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
  }
  .proj-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(0,229,255,.05), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
  }
  .proj-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
  .proj-card:hover::after { opacity: 1; }

  .proj-card.featured {
    grid-column: span 2;
    border-color: rgba(0,229,255,.2);
  }
  @media (max-width: 900px) { .proj-card.featured { grid-column: span 1; } }

  .proj-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .proj-icon {
    font-size: 1.6rem;
    line-height: 1;
  }
  .proj-links { display: flex; gap: .5rem; }
  .proj-link {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    transition: border-color .25s, color .25s;
  }
  .proj-link:hover { border-color: var(--cyan); color: var(--cyan); }

  .proj-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: 10px;
    color: var(--cyan);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .1rem;
  }
  .proj-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--cyan);
  }

  .proj-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .4rem;
    line-height: 1.2;
  }
  .proj-desc { font-size: 13px; color: var(--muted); line-height: 1.75; flex: 1; }

  .proj-stack { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
  .proj-tag {
    font-size: 10px;
    padding: .25rem .6rem;
    border-radius: 100px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    color: var(--muted);
  }

  /* ─── CONTACT ─────────────────────────────────────────── */
  #contact {
    text-align: center;
  }
  #contact .section-label { justify-content: center; }
  #contact .section-label::before { display: none; }
  .contact-sub {
    color: var(--muted);
    font-size: 14px;
    max-width: 460px;
    margin: 0 auto 2.5rem;
  }

  .contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .contact-link {
    display: flex; align-items: center; gap: .5rem;
    padding: .7rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .06em;
    transition: border-color .25s, color .25s, transform .2s;
  }
  .contact-link:hover { border-color: var(--cyan); color: var(--text); transform: translateY(-3px); }
  .contact-link svg { flex-shrink: 0; }

  .contact-email {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 2rem;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: var(--bg);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: box-shadow .25s, transform .2s;
    margin-right: 1rem;
  }
  .contact-email:hover {
    box-shadow: 0 0 30px rgba(0,229,255,.4);
    transform: translateY(-3px);
  }

  /* ─── FOOTER ──────────────────────────────────────────── */
  footer {
    border-top: 1px solid var(--border);
    padding: 2rem clamp(1.5rem, 8vw, 7rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }
  footer p { font-size: 12px; color: var(--muted); }
  .footer-brand {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .9rem;
  }
  .footer-brand span { color: var(--cyan); }

  /* ─── SCROLL REVEAL ───────────────────────────────────── */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .65s ease, transform .65s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ─── RESPONSIVE ──────────────────────────────────────── */
  @media (max-width: 900px) {
    #about .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-stack { display: none; }
    .exp-item { grid-template-columns: 40px 1fr; }
  }
  @media (max-width: 640px) {
    .nav-links { display: none; }
    .hero-name { font-size: 2.8rem; }
    .about-stats { grid-template-columns: 1fr 1fr; }
  }
