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

  :root {
    --bg: #080c10;
    --bg2: #0d1117;
    --surface: #111820;
    --surface2: #161e28;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(99,202,183,0.35);
    --text: #e8edf2;
    --text-muted: #6b7a8d;
    --text-dim: #9eaab8;
    --accent: #63cab7;
    --accent2: #7eb8f7;
    --accent3: #c77dff;
    --glow: rgba(99,202,183,0.15);
    --glow2: rgba(126,184,247,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --font-display: 'Syne', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --font-mono: 'DM Mono', monospace;
  }

  html { scroll-behavior: smooth; }

  body {
    background-color: var(--bg);
    background-image:
      linear-gradient(rgba(99,202,183,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(99,202,183,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* NOISE TEXTURE */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
  }

  /* ─── NAV ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 max(24px, 5vw);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8,12,16,0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
  }

  .nav-logo {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-decoration: none;
  }

  .nav-logo span { color: var(--text-muted); }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
  }

  .nav-links a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.2s;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
  }

  .nav-links a:hover { color: var(--accent); }
  .nav-links a:hover::after { width: 100%; }

  .nav-cta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 7px 18px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: all 0.25s;
  }

  .nav-cta:hover {
    background: var(--accent);
    color: var(--bg);
  }

  /* ─── HAMBURGER ─── */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dim);
    border-radius: 2px;
    transition: all 0.3s;
  }

  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(8,12,16,0.97);
    backdrop-filter: blur(20px);
    padding: 24px max(24px,5vw);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 20px;
    z-index: 99;
  }

  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.2s;
  }
  .mobile-menu a:hover { color: var(--accent); }

  /* ─── HERO ─── */
  #hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px max(24px, 8vw) 80px;
    overflow: hidden;
  }

  /* gradient orbs */
  #hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -100px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(99,202,183,0.08) 0%, transparent 60%);
    pointer-events: none;
  }

  #hero::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(126,184,247,0.07) 0%, transparent 60%);
    pointer-events: none;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.1s forwards;
  }

  .hero-tag::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--accent);
  }

  .hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 0;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
  }

  .hero-name-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(3.5rem, 9vw, 8rem);
    color: var(--accent);
    display: block;
    line-height: 1.05;
  }

  .hero-desc {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: var(--text-muted);
    max-width: 540px;
    margin: 32px 0 48px;
    line-height: 1.75;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
  }

  .hero-desc strong {
    color: var(--text-dim);
    font-weight: 500;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.55s forwards;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--bg);
    background: var(--accent);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
  }

  .btn-primary:hover {
    background: #7de0cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,202,183,0.3);
  }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s;
  }

  .btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--accent);
    transform: translateY(-2px);
  }

  /* HERO STATS */
  .hero-stats {
    position: absolute;
    right: max(24px, 8vw);
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
  }

  .stat {
    text-align: right;
  }

  .stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
  }

  .stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 4px;
  }

  /* SCROLL INDICATOR */
  .scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
  }

  .scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease infinite;
  }

  /* ─── SECTIONS ─── */
  section { position: relative; z-index: 1; }

  .section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px max(24px, 5vw);
  }

  .section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 64px;
  }

  .section-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
  }

  .section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
  }

  .section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 300px;
  }

  /* ─── PROJECTS GRID ─── */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .project-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    group: true;
  }

  .project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,202,183,0.1);
  }

  .project-card.featured {
    grid-column: span 2;
  }

  /* SCREENSHOT */
  .project-screenshot {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    background: var(--surface2);
  }

  .project-card.featured .project-screenshot {
    height: 340px;
  }

  .screenshot-frame {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
    border: none;
    display: block;
  }

  .project-card:hover .screenshot-frame {
    transform: scale(1.03);
  }

  /* iframe screenshot approach */
  .iframe-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }

  .iframe-container iframe {
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: top left;
    pointer-events: none;
    border: none;
  }

  .screenshot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--surface) 100%);
    z-index: 1;
  }

  .screenshot-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(8,12,16,0.75);
    border: 1px solid rgba(99,202,183,0.2);
    border-radius: 4px;
    padding: 4px 10px;
    backdrop-filter: blur(8px);
  }

  /* CARD BODY */
  .project-body {
    padding: 28px;
  }

  .project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .project-category {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .project-stack {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .stack-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent2);
    background: rgba(126,184,247,0.08);
    border: 1px solid rgba(126,184,247,0.15);
    border-radius: 4px;
    padding: 3px 8px;
    letter-spacing: 0.05em;
  }

  .project-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    transition: color 0.2s;
  }

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

  .project-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .project-links {
    display: flex;
    gap: 10px;
  }

  .link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    padding: 9px 18px;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid;
  }

  .link-btn.demo {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
  }

  .link-btn.demo:hover {
    background: #7de0cc;
    border-color: #7de0cc;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,202,183,0.3);
  }

  .link-btn.github {
    color: var(--text-dim);
    border-color: var(--border);
    background: transparent;
  }

  .link-btn.github:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.2);
    background: var(--surface2);
  }

  .link-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  /* ─── DIVIDER SECTION ─── */
  .section-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 max(24px,5vw);
    margin: 0 auto;
    max-width: 1200px;
  }

  .divider-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .divider-line { flex: 1; height: 1px; background: var(--border); }

  /* ─── ABOUT ─── */
  #about { background: var(--bg2); }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .about-text p {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.85;
    margin-bottom: 20px;
  }

  .about-text p strong {
    color: var(--text);
    font-weight: 600;
  }

  .about-highlight {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent);
    display: block;
    margin: 32px 0;
    line-height: 1.4;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
  }

  /* SKILLS */
  .skills-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
  }

  .skill-group {
    margin-bottom: 32px;
  }

  .skill-group-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .chip {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 14px;
    transition: all 0.2s;
    letter-spacing: 0.03em;
  }

  .chip:hover {
    border-color: var(--border-hover);
    color: var(--accent);
    background: rgba(99,202,183,0.05);
  }

  /* ─── GLASS CARD ─── */
  .glass-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px;
    transition: border-color 0.3s;
  }

  .glass-card:hover { border-color: var(--border-hover); }

  /* ─── CONTACT ─── */
  #contact {
    text-align: center;
    padding: 120px max(24px, 5vw);
    position: relative;
    overflow: hidden;
  }

  #contact::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(99,202,183,0.07) 0%, transparent 70%);
    pointer-events: none;
  }

  .contact-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

  .contact-pre {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .contact-pre::before, .contact-pre::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--accent);
  }

  .contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.1;
  }

  .contact-title em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
  }

  .contact-sub {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
  }

  .contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(99,202,183,0.2);
    border-radius: 10px;
    padding: 16px 32px;
    background: rgba(99,202,183,0.05);
    transition: all 0.3s;
    margin-bottom: 40px;
  }

  .contact-email:hover {
    background: rgba(99,202,183,0.12);
    border-color: rgba(99,202,183,0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99,202,183,0.15);
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 7px;
    transition: all 0.2s;
  }

  .social-link:hover {
    color: var(--accent);
    border-color: var(--border-hover);
    background: rgba(99,202,183,0.05);
  }

  /* ─── FOOTER ─── */
  footer {
    padding: 28px max(24px,5vw);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  footer p {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
  }

  footer a { color: var(--accent); text-decoration: none; }

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

  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  @keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.7); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .hero-stats { display: none; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.featured { grid-column: span 1; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
  }

  @media (max-width: 600px) {
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
    .section-header { flex-wrap: wrap; }
    .section-line { display: none; }
  }

  /* GRADIENT ACCENT LINES */
  .gradient-bar {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0.3;
  }

  /* FEATURED BADGE */
  .featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--accent3);
    background: rgba(199,125,255,0.08);
    border: 1px solid rgba(199,125,255,0.2);
    border-radius: 4px;
    padding: 3px 9px;
    text-transform: uppercase;
  }

  /* TERMINAL LINE */
  .terminal-line {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.65s forwards;
  }

  .terminal-line::before {
    content: '>';
    color: var(--accent);
    font-weight: 600;
  }

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

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
