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

  :root {
    --bg: #0a0a0f;
    --bg2: #10101a;
    --bg3: #16162a;
    --accent: #7c6ff7;
    --accent2: #4fcfab;
    --accent3: #f5a623;
    --text: #e8e6ff;
    --muted: #8884aa;
    --border: rgba(124,111,247,0.18);
    --card: rgba(22,22,42,0.85);
    --glow: 0 0 32px rgba(124,111,247,0.18);
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Syne', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2.5rem;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo { font-family: 'Space Mono', monospace; font-size: 1rem; color: var(--accent); letter-spacing: 2px; }
  .nav-links { display: flex; gap: 2rem; }
  .nav-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s; }
  .nav-links a:hover { color: var(--accent2); }

  /* HERO */
  #hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
  }

  .grid-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image:
      linear-gradient(rgba(124,111,247,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(124,111,247,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  .orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); z-index: 0; pointer-events: none;
  }
  .orb1 { width: 400px; height: 400px; background: rgba(124,111,247,0.12); top: -100px; left: -100px; }
  .orb2 { width: 300px; height: 300px; background: rgba(79,207,171,0.08); bottom: 0; right: -50px; }

  .avatar-wrap {
    position: relative; z-index: 1; margin-bottom: 2rem;
  }
  .avatar-ring {
    width: 140px; height: 140px; border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    animation: spin-ring 8s linear infinite;
    background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent), var(--bg3), var(--bg3));
    padding: 3px;
  }
  @keyframes spin-ring { to { transform: rotate(360deg); } }
  .avatar-inner {
    width: 100%; height: 100%; border-radius: 50%;
    background: var(--bg3);
    display: flex; align-items: center; justify-content: center;
    animation: spin-ring 8s linear infinite reverse;
    font-family: 'Space Mono', monospace;
    font-size: 2.2rem; font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
    border: 2px solid var(--bg);
  }
  .avatar-dot {
    position: absolute; width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent2); bottom: 6px; right: 6px;
    border: 2px solid var(--bg);
    animation: pulse-dot 2s ease-in-out infinite;
  }
  @keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(79,207,171,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(79,207,171,0); }
  }

  .hero-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent2); margin-bottom: 0.75rem; z-index: 1; position: relative;
    animation: fade-up 0.6s ease both;
  }
  .hero-name {
    font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 600;
    line-height: 1.05; z-index: 1; position: relative;
    background: linear-gradient(135deg, #e8e6ff 40%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fade-up 0.6s 0.1s ease both;
  }
  .hero-role {
    font-size: 1.1rem; color: var(--muted); margin-top: 0.5rem; z-index: 1; position: relative;
    animation: fade-up 0.6s 0.2s ease both;
  }
  .hero-desc {
    max-width: 560px; margin: 1.5rem auto 0; line-height: 1.75;
    color: #a8a4cc; font-size: 1rem; z-index: 1; position: relative;
    animation: fade-up 0.6s 0.3s ease both;
  }
  .hero-badges {
    display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
    margin-top: 1.5rem; z-index: 1; position: relative;
    animation: fade-up 0.6s 0.4s ease both;
  }
  .badge {
    font-family: 'Space Mono', monospace; font-size: 0.7rem;
    padding: 0.3rem 0.75rem; border-radius: 2rem;
    border: 1px solid var(--border);
    color: var(--accent); background: rgba(124,111,247,0.06);
    letter-spacing: 1px;
  }
  .say-hi-btn {
    margin-top: 2.5rem; z-index: 1; position: relative;
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 3rem;
    color: var(--text); font-family: 'Syne', sans-serif;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
    animation: fade-up 0.6s 0.5s ease both;
  }
  .say-hi-btn:hover {
    background: rgba(124,111,247,0.12);
    box-shadow: 0 0 24px rgba(124,111,247,0.3);
    transform: translateY(-2px);
  }
  .say-hi-btn svg { width: 16px; height: 16px; }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* SECTION COMMON */
  section { padding: 6rem 2rem; }
  .section-label {
    font-family: 'Space Mono', monospace; font-size: 0.7rem;
    letter-spacing: 4px; text-transform: uppercase; color: var(--accent2);
    margin-bottom: 0.5rem;
  }
  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
    margin-bottom: 3rem; line-height: 1.15;
  }
  .section-inner { max-width: 900px; margin: 0 auto; }

  /* EXPERIENCE */
  #experience { background: var(--bg2); }
  .exp-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
  }
  .exp-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(to bottom, var(--accent), var(--accent2));
    border-radius: 3px 0 0 3px;
  }
  .exp-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.5rem; }
  .exp-company { font-size: 1.4rem; font-weight: 700; color: var(--text); }
  .exp-duration {
    font-family: 'Space Mono', monospace; font-size: 0.75rem;
    color: var(--accent2); background: rgba(79,207,171,0.08);
    border: 1px solid rgba(79,207,171,0.2);
    padding: 0.3rem 0.75rem; border-radius: 2rem;
    white-space: nowrap;
  }
  .exp-role { color: var(--accent); font-weight: 600; margin-bottom: 0.3rem; }
  .exp-client { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; font-family: 'Space Mono', monospace; }
  .exp-points { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
  .exp-points li {
    display: flex; gap: 0.75rem; align-items: flex-start;
    color: #a8a4cc; font-size: 0.95rem; line-height: 1.65;
  }
  .exp-points li::before {
    content: '▸'; color: var(--accent); flex-shrink: 0; margin-top: 1px;
  }
  .exp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
  .exp-tag {
    font-family: 'Space Mono', monospace; font-size: 0.68rem;
    padding: 0.25rem 0.6rem; border-radius: 4px;
    background: rgba(124,111,247,0.08); color: var(--accent);
    border: 1px solid rgba(124,111,247,0.2);
  }

  /* PROJECTS */
  #projects { background: var(--bg); }
  .carousel-wrap { position: relative; }
  .carousel-track-outer { overflow: hidden; }
  .carousel-track {
    display: flex; gap: 1.5rem;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
  }
  .proj-card {
    min-width: 300px; max-width: 300px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex; flex-direction: column; gap: 1rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative; overflow: hidden;
  }
  .proj-card:hover {
    border-color: rgba(124,111,247,0.45);
    box-shadow: 0 0 28px rgba(124,111,247,0.1);
  }
  .proj-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 0%, rgba(124,111,247,0.06) 0%, transparent 65%);
    pointer-events: none;
  }
  .proj-num {
    font-family: 'Space Mono', monospace; font-size: 0.65rem;
    color: var(--accent); letter-spacing: 2px;
  }
  .proj-title { font-size: 1.15rem; font-weight: 700; color: var(--text); }
  .proj-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.65; flex: 1; }
  .proj-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .proj-tech {
    font-family: 'Space Mono', monospace; font-size: 0.65rem;
    padding: 0.2rem 0.55rem; border-radius: 4px;
    background: rgba(79,207,171,0.07); color: var(--accent2);
    border: 1px solid rgba(79,207,171,0.18);
  }
  .proj-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: 'Space Mono', monospace; font-size: 0.72rem;
    color: var(--muted); text-decoration: none; letter-spacing: 1px;
    transition: color 0.2s;
    width: fit-content;
  }
  .proj-link:hover { color: var(--accent2); }

  .carousel-controls {
    display: flex; justify-content: center; gap: 1rem; margin-top: 2.5rem;
  }
  .car-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--text); font-size: 1.1rem;
    cursor: pointer; transition: border-color 0.2s, background 0.2s;
    display: flex; align-items: center; justify-content: center;
  }
  .car-btn:hover { border-color: var(--accent); background: rgba(124,111,247,0.1); }
  .carousel-dots { display: flex; gap: 0.5rem; align-items: center; }
  .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--muted); transition: background 0.2s, width 0.2s;
    cursor: pointer;
  }
  .dot.active { background: var(--accent); width: 18px; border-radius: 3px; }

  /* FOOTER */
  footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 1.25rem;
    text-align: center;
  }
  .footer-links { display: flex; gap: 1.5rem; }
  .footer-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--muted); text-decoration: none;
    font-family: 'Space Mono', monospace; font-size: 0.78rem;
    letter-spacing: 1px; transition: color 0.2s;
    padding: 0.5rem 1rem; border-radius: 2rem;
    border: 1px solid var(--border);
    background: var(--card);
  }
  .footer-link:hover { color: var(--accent2); border-color: rgba(79,207,171,0.3); }
  .footer-copy { font-size: 0.75rem; color: var(--muted); font-family: 'Space Mono', monospace; }