
  /* ── RESET & TOKENS ─────────────────────────────── */
  *, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
  :root {
    --bg:        #0a0a0f;
    --bg2:       #10101a;
    --bg3:       #16162a;
    --line:      rgba(255,255,255,.07);
    --accent:    #6ee7b7;
    --accent2:   #818cf8;
    --accent3:   #f472b6;
    --text:      #e2e8f0;
    --muted:     #64748b;
    --card:      rgba(255,255,255,.03);
    --nav-bg:    rgba(10,10,15,.6);
    --radius:    14px;
    --ff-head:   'Syne', sans-serif;
    --ff-body:   'Epilogue', sans-serif;
  }
  /* ── LIGHT THEME ────────────────────────────────── */
  [data-theme="light"] {
    --bg:        #f4f6fb;
    --bg2:       #eaecf4;
    --bg3:       #c4c9e3;
    --line:      rgba(0,0,0,.08);
    --accent:    #059669;
    --accent2:   #4f46e5;
    --accent3:   #db2777;
    --text:      #0f172a;
    --muted:     #64748b;
    --card:      rgba(255,255,255,.7);
    --nav-bg:    rgba(244,246,251,.75);
  }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background .35s ease, color .35s ease;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  ul { list-style: none; }

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

  /* ── SCROLLBAR ──────────────────────────────────── */
  ::-webkit-scrollbar { width:5px; }
  ::-webkit-scrollbar-track { background:var(--bg); }
  ::-webkit-scrollbar-thumb { background:var(--accent2); border-radius:99px; }

  /* ── NAV ────────────────────────────────────────── */
  nav {
    position: fixed; top:0; left:0; right:0; z-index:100;
    display: flex; align-items:center; justify-content:space-between;
    padding: 1.25rem 5%;
    backdrop-filter: blur(18px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line);
    transition: padding .3s;
  }
  nav.scrolled { padding: .85rem 5%; }
  .logo {
    font-family: var(--ff-head);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
  }
  .logo span { color: var(--accent); }
  .nav-links { display:flex; gap:2.5rem; align-items:center; }
  .nav-links a {
    font-size:.85rem; font-weight:500; letter-spacing:.06em;
    text-transform:uppercase; color:var(--muted);
    transition: color .2s;
    position: relative;
  }
  .nav-links a::after {
    content:''; position:absolute; bottom:-4px; left:0;
    width:0; height:1.5px; background:var(--accent);
    transition: width .25s;
  }
  .nav-links a:hover { color:var(--text); }
  .nav-links a:hover::after { width:100%; }
  .nav-cta {
    padding:.5rem 1.4rem; border-radius:99px;
    border:1px solid var(--accent2);
    color: var(--accent2) !important;
    font-size:.8rem !important;
    transition: background .2s, color .2s !important;
  }
  .nav-cta:hover { background:var(--accent2); color:var(--bg) !important; }
  .nav-cta::after { display:none !important; }
  .hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; }
  .hamburger span {
    width:24px; height:2px; background:var(--text); border-radius:2px;
    transition: .3s;
  }

  /* ── HERO ───────────────────────────────────────── */
  #hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 8rem 5% 4rem;
    position: relative; overflow: hidden;
  }
  .hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
    width: 100%; max-width: 1200px; margin: 0 auto;
  }
  .hero-tag {
    display:inline-flex; align-items:center; gap:.5rem;
    padding:.35rem 1rem; border-radius:99px;
    border:1px solid var(--line);
    background:var(--card);
    font-size:.78rem; letter-spacing:.08em; text-transform:uppercase;
    color:var(--accent); margin-bottom:1.5rem;
    animation: fadeUp .6s ease both;
  }
  .hero-tag .dot {
    width:6px; height:6px; border-radius:50%;
    background:var(--accent);
    animation: pulse 1.5s infinite;
  }
  .hero-name {
    font-family: var(--ff-head);
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 800; line-height: 1.05;
    letter-spacing: -.03em;
    animation: fadeUp .6s .1s ease both;
  }
  .hero-name .line2 {
    background: linear-gradient(90deg, var(--accent2), var(--accent3));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-sub {
    font-size: 1.05rem; color: var(--muted); margin: 1.25rem 0 2.5rem;
    max-width: 480px; font-weight:300;
    animation: fadeUp .6s .2s ease both;
  }
  .hero-sub em { color:var(--text); font-style:normal; }
  .hero-actions {
    display:flex; gap:1rem; flex-wrap:wrap;
    animation: fadeUp .6s .3s ease both;
  }
  .btn {
    display:inline-flex; align-items:center; gap:.5rem;
    padding:.8rem 2rem; border-radius:99px;
    font-family:var(--ff-head); font-size:.9rem; font-weight:600;
    cursor:pointer; transition:.25s; border:none;
  }
  .btn-primary {
    background:var(--accent); color:#0a0a0f;
  }
  .btn-primary:hover { filter:brightness(1.1); transform:translateY(-2px); }
  .btn-outline {
    background:transparent; color:var(--text);
    border:1px solid var(--line);
  }
  .btn-outline:hover { border-color:var(--accent2); color:var(--accent2); transform:translateY(-2px); }
  .hero-stats {
    display:flex; gap:2rem; margin-top:3rem;
    animation: fadeUp .6s .4s ease both;
  }
 
  .stat-num {
    font-family:var(--ff-head); font-size:2rem; font-weight:800;
    color:var(--text); line-height:1;
  }
  .stat-num span { color:var(--accent); }
  .stat-label { font-size:.78rem; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }

  /* Hero visual */
  .hero-visual {
    position:relative; display:flex; justify-content:center; align-items:center;
    animation: fadeUp .6s .15s ease both;
  }
 
  .hero-badge {
    position:absolute; top: -230px; right:-10px;
    background:var(--bg3); border:1px solid var(--line);
    border-radius:12px; padding:.75rem 1.1rem;
    display:flex; align-items:center; gap:.6rem;
    font-size:.8rem; white-space:nowrap;
    backdrop-filter:blur(10px); 
    animation: float 3s ease-in-out infinite;
  }
  .hero-badge .icon { font-size:1.2rem; }
  .hero-badge2 {
    position:absolute; top:50px; left:30px;
    animation-delay:.5s !important;
  }

  /* ── BG GLOW ────────────────────────────────────── */
  .glow {
    position:absolute; border-radius:50%; filter:blur(100px);
    pointer-events:none; z-index:-1;
  }
  .glow-1 { width:500px; height:500px; background:rgba(110,231,183,.06); top:-10%; left:-10%; }
  .glow-2 { width:400px; height:400px; background:rgba(129,140,248,.06); bottom:0; right:0; }

  /* ── SECTION BASE ───────────────────────────────── */
  section { padding: 6rem 5%; position:relative; z-index:1; }
  .section-inner { max-width:1200px; margin:0 auto; }
  .section-label {
    font-size:.75rem; letter-spacing:.15em; text-transform:uppercase;
    color:var(--accent); font-weight:600; margin-bottom:.75rem;
    display:flex; align-items:center; gap:.5rem;
  }
  .section-label::before { content:''; width:24px; height:1px; background:var(--accent); }
  .section-title {
    font-family:var(--ff-head); font-size:clamp(1.8rem,3.5vw,2.8rem);
    font-weight:800; letter-spacing:-.03em; line-height:1.1;
    margin-bottom:1rem;
  }
  .section-desc { color:var(--muted); max-width:520px; font-weight:300; }

  .divider {
    width:100%; height:1px; background:var(--line);
    margin:0; position:relative; z-index:1;
  }

  /* ── ABOUT ──────────────────────────────────────── */
  #about { background:var(--bg2); }
  .about-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:5rem; align-items:start; margin-top:3rem;
  }
  .about-text p { color:var(--muted); font-weight:300; margin-bottom:1.2rem; }
  .about-text p em { color:var(--text); font-style:normal; font-weight:400; }
  .about-list { margin-top:2rem; display:grid; grid-template-columns:1fr 1fr; gap:.6rem; }
  .about-list li {
    font-size:.88rem; color:var(--muted);
    display:flex; align-items:center; gap:.5rem;
  }
  .about-list li::before { content:'▸'; color:var(--accent); font-size:.7rem; }
  .about-right { display:flex; flex-direction:column; gap:1.5rem; }
  .info-card {
    background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
    padding:1.5rem; transition:.25s;
  }
  .info-card:hover { border-color:rgba(110,231,183,.3); transform:translateY(-2px); }
  .info-card h4 {
    font-family:var(--ff-head); font-size:.9rem; font-weight:700;
    letter-spacing:.05em; text-transform:uppercase; color:var(--accent); margin-bottom:.75rem;
  }
  .info-card p { font-size:.9rem; color:var(--muted); }
  .info-card p strong { color:var(--text); }

  /* ── SKILLS ─────────────────────────────────────── */
  .skills-grid {
    display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap:1.5rem; margin-top:3rem;
  }
  .skill-group {
    background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
    padding:1.75rem; transition:.25s;
  }
  .skill-group:hover { border-color:rgba(129,140,248,.3); transform:translateY(-3px); }
  .skill-group-head {
    display:flex; align-items:center; gap:.75rem; margin-bottom:1.5rem;
  }
  .skill-icon {
    width:42px; height:42px; border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    font-size:1.3rem;
  }
  .skill-group h3 {
    font-family:var(--ff-head); font-size:1rem; font-weight:700;
  }
  .skill-tags { display:flex; flex-wrap:wrap; gap:.5rem; }
  .skill-tag {
    padding:.3rem .85rem; border-radius:99px;
    font-size:.78rem; font-weight:500;
    border:1px solid var(--line); color:var(--muted);
    transition:.2s; cursor:default;
  }
  .skill-tag:hover { color:var(--text); border-color:var(--accent2); background:rgba(129,140,248,.08); }

  /* ── PROJECTS ───────────────────────────────────── */
  #projects { background:var(--bg2); }
  .projects-grid {
    display:grid; grid-template-columns:repeat(auto-fill, minmax(340px,1fr));
    gap:1.75rem; margin-top:3rem;
  }
  .project-card {
    background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
    overflow:hidden; transition:.3s; display:flex; flex-direction:column;
  }
  .project-card:hover { border-color:rgba(110,231,183,.3); transform:translateY(-5px); }
  .project-thumb {
    height:200px; position:relative; overflow:hidden;
    background: linear-gradient(135deg, var(--bg3), #1a1a2e);
    display:flex; align-items:center; justify-content:center;
  }
  .project-thumb .thumb-label {
    font-family:var(--ff-head); font-size:3.5rem; font-weight:800;
    opacity:.06; letter-spacing:-.05em; user-select:none;
  }
  .project-thumb .thumb-icon {
    position:absolute; font-size:5.5rem;
  } 
  .project-overlay {
    position:absolute; inset:0; background:rgba(10,10,15,.7);
    display:flex; align-items:center; justify-content:center; gap:1rem;
    opacity:0; transition:.3s;
  }
  .project-card:hover .project-overlay { opacity:1; }
  .overlay-btn {
    padding:.3rem 1.2rem; border-radius:10px;
    font-size:.8rem; font-weight:600; cursor:pointer;
    transition:.2s;
  }
  .ob-demo { background:var(--accent); color:#0a0a0f; }
  .ob-code { background:rgb(25, 77, 84); color:var(--text); border:1px solid rgba(255,255,255,.3); }
  .ob-demo:hover { filter:brightness(1.1); }
  .ob-code:hover { border-color:var(--text); }
  .project-body { padding:1.5rem; flex:1; display:flex; flex-direction:column; }
  .project-badge {
    font-size:.7rem; letter-spacing:.1em; text-transform:uppercase;
    color:var(--accent); font-weight:600; margin-bottom:.5rem;
  }
  .project-title {
    font-family:var(--ff-head); font-size:1.2rem; font-weight:700; margin-bottom:.5rem;
  }
  .project-desc { font-size:.88rem; color:var(--muted); flex:1; }
  .project-stack { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1.25rem; }
  .stack-tag {
    font-size:.72rem; padding:.2rem .65rem; border-radius:4px;
    background:rgba(255,255,255,.05); color:var(--muted); font-weight:500;
  }

  /* ── EDUCATION ──────────────────────────────────── */
  .edu-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; margin-top:3rem; }
  .edu-card {
    background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
    padding:2rem; transition:.25s; position:relative; overflow:hidden;
  }
  .edu-card::before {
    content:''; position:absolute; top:0; left:0;
    width:4px; height:100%; background:linear-gradient(var(--accent), var(--accent2));
  }
  .edu-card:hover { border-color:rgba(110,231,183,.3); transform:translateY(-3px); }
  .edu-degree {
    font-family:var(--ff-head); font-size:1.1rem; font-weight:700; margin-bottom:.3rem;
  }
  .edu-institution { color:var(--accent2); font-size:.9rem; margin-bottom:.3rem; }
  .edu-period { font-size:.8rem; color:var(--muted); margin-bottom:.75rem; }
  .edu-detail { font-size:.88rem; color:var(--muted); }

  /* ── CONTACT ────────────────────────────────────── */
  #contact { background:var(--bg2); }
  .contact-wrap {
    display:grid; grid-template-columns:1fr 1fr;
    gap:4rem; align-items:start; margin-top:3rem;
  }
  .contact-left h3 {
    font-family:var(--ff-head); font-size:1.8rem; font-weight:800; line-height:1.2;
    margin-bottom:1rem;
  }
  .contact-left p { color:var(--muted); font-weight:300; margin-bottom:2rem; }
  .contact-links { display:flex; flex-direction:column; gap:.85rem; }
  .contact-link {
    display:flex; align-items:center; gap:1rem;
    padding:1rem 1.2rem; border-radius:var(--radius);
    background:var(--card); border:1px solid var(--line);
    transition:.25s; font-size:.9rem;
  }
  .contact-link:hover { border-color:var(--accent); color:var(--accent); transform:translateX(4px); }
  .contact-link .cl-icon {
    width:36px; height:36px; border-radius:8px;
    background:rgba(255,255,255,.05);
    display:flex; align-items:center; justify-content:center; font-size:1rem;
    flex-shrink:0;
  }
  .contact-form { display:flex; flex-direction:column; gap:1rem; }
  .form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
  .form-group { display:flex; flex-direction:column; gap:.4rem; }
  .form-group label { font-size:.8rem; color:var(--muted); letter-spacing:.05em; text-transform:uppercase; }
  .form-group input, .form-group textarea {
    background:var(--card); border:1px solid var(--line); border-radius:10px;
    padding:.85rem 1.1rem; color:var(--text); font-family:var(--ff-body);
    font-size:.9rem; resize:none; outline:none; transition:.2s;
  }
  .form-group input:focus, .form-group textarea:focus {
    border-color:var(--accent2); background:rgba(129,140,248,.05);
  }
  .form-group textarea { min-height:130px; }
  .btn-send {
    align-self:flex-start; padding:.85rem 2.5rem;
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    border:none; border-radius:99px; color:#0a0a0f;
    font-family:var(--ff-head); font-size:.95rem; font-weight:700;
    cursor:pointer; transition:.25s;
  }
  .btn-send:hover { opacity:.9; transform:translateY(-2px); box-shadow:0 8px 30px rgba(110,231,183,.25); }

  /* ── FOOTER ─────────────────────────────────────── */
  footer {
    padding:2.5rem 5%; text-align:center;
    border-top:1px solid var(--line);
    font-size:.85rem; color:var(--muted);
  }
  footer a { color:var(--accent); }

  /* ── SCROLL TO TOP ──────────────────────────────── */
  #scrollTop {
    position:fixed; bottom:2rem; right:2rem; z-index:200;
    width:44px; height:44px; border-radius:50%;
    background:var(--accent2); color:#0a0a0f;
    border:none; cursor:pointer; font-size:1.1rem;
    display:flex; align-items:center; justify-content:center;
    opacity:0; transform:translateY(10px); pointer-events:none;
    transition:.3s;
  }
  #scrollTop.visible { opacity:1; transform:translateY(0); pointer-events:all; }

  /* ── THEME TOGGLE ───────────────────────────────── */
  #themeToggle {
    width: 48px; height: 26px; border-radius: 99px;
    background: var(--bg3); border: 1.5px solid var(--line);
    position: relative; cursor: pointer;
    transition: background .3s, border-color .3s;
    flex-shrink: 0;
    display: flex; align-items: center; padding: 0 3px;
  }
  #themeToggle:hover { border-color: var(--accent2); }
  #themeToggle .toggle-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    position: absolute; left: 3px;
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .3s;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
  }
  [data-theme="light"] #themeToggle .toggle-thumb {
    transform: translateX(22px);
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 1px 6px rgba(251,191,36,.4);
  }
  .toggle-icon {
    position: absolute; font-size: .6rem; user-select: none; pointer-events: none;
  }
  .toggle-icon.moon { left: 5px; }
  .toggle-icon.sun  { right: 4px; }

  /* light-mode card shadow boost */
  [data-theme="light"] .project-card,
  [data-theme="light"] .skill-group,
  [data-theme="light"] .edu-card,
  [data-theme="light"] .info-card,
  [data-theme="light"] .contact-link {
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
  }
  [data-theme="light"] .hero-badge { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
  [data-theme="light"] .glow-1 { background: rgba(5,150,105,.08); }
  [data-theme="light"] .glow-2 { background: rgba(79,70,229,.07); }

  /* ── MOBILE NAV ─────────────────────────────────── */
  .mobile-menu {
    position:fixed; inset:0; z-index:99;
    background:var(--bg); display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:2.5rem;
    transform:translateX(100%); transition:.35s cubic-bezier(.4,0,.2,1);
  }
  .mobile-menu.open { transform:translateX(0); }
  .mobile-menu a {
    font-family:var(--ff-head); font-size:2rem; font-weight:800; color:var(--text);
  }
  .mobile-menu a:hover { color:var(--accent); }
  .hamburger.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity:0; }
  .hamburger.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

  /* ── ANIMATIONS ─────────────────────────────────── */
  @keyframes fadeUp {
    from { opacity:0; transform:translateY(28px); }
    to   { opacity:1; transform:translateY(0); }
  }
  @keyframes spin { to { transform:rotate(360deg); } }
  @keyframes float {
    0%,100% { transform:translateY(0); }
    50%      { transform:translateY(-10px); }
  }
  @keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(.8); }
  }

  /* Reveal on scroll */
  .reveal { opacity:0; transform:translateY(30px); transition:.7s ease; }
  .reveal.visible { opacity:1; transform:translateY(0); }

  /* ── RESPONSIVE ─────────────────────────────────── */
  @media(max-width:900px) {
    .hero-grid { grid-template-columns:1fr; }
    .hero-visual { display:none; }
    .about-grid { grid-template-columns:1fr; gap:2.5rem; }
    .contact-wrap { grid-template-columns:1fr; }
    .edu-grid { grid-template-columns:1fr; }
    .form-row { grid-template-columns:1fr; }
  }
  @media(max-width:768px) {
    .nav-links { display:none; }
    .hamburger { display:flex; }
    .projects-grid { grid-template-columns:1fr; }
    .hero-stats { gap:1.2rem; }
    .stat-num { font-size:1.5rem; }
  }
