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

  :root {
    --bg: #0b0c0f;
    --bg2: #13151a;
    --bg3: #1c1f27;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.13);
    --text: #f0efe8;
    --muted: #7a7d88;
    --accent: #c8f135;
    --accent2: #5c6bff;
    --accent3: #ff6b4a;
    --tag-bg: rgba(200,241,53,0.08);
    --tag-border: rgba(200,241,53,0.2);
    --tag-text: #c8f135;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4rem;
    background: rgba(11,12,15,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: -0.02em;
    text-decoration: none;
  }

  .author {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--text); }

  .nav-cta {
    background: var(--accent);
    color: #0b0c0f !important;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-weight: 500 !important;
    transition: opacity 0.2s !important;
  }

  .nav-cta:hover { opacity: 0.85; color: #0b0c0f !important; }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
  }

  .hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(200,241,53,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(200,241,53,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }

  .hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92,107,255,0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
  }

  .hero-glow2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,241,53,0.07) 0%, transparent 70%);
    bottom: 50px;
    left: -50px;
    pointer-events: none;
  }

  .hero-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
  }

  .hero-label::before {
    content: '// ';
    color: var(--muted);
  }

  .hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease 0.1s both;
  }

  .hero h1 .accent { color: var(--accent); }
  .hero h1 .dim { color: var(--muted); }

  .hero-desc {
    max-width: 520px;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 3rem;
    animation: fadeUp 0.6s ease 0.2s both;
  }

  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease 0.3s both;
  }

  .btn-primary {
    background: var(--accent);
    color: #0b0c0f;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

  .btn-ghost {
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-weight: 400;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
  }

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

  .hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    animation: fadeUp 0.6s ease 0.4s both;
  }

  .stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
  }

  .stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.1rem;
  }

  /* SECTION BASE */
  section {
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
  }

  .section-tag::before { content: '// '; color: var(--muted); }

  h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .section-sub {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 300;
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 3.5rem;
  }

  /* ABOUT */
  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .about-text p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1.5rem;
  }

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

  .stack-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .stack-category {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
  }

  .stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tag {
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--tag-text);
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.02em;
  }

  .tag.blue {
    background: rgba(92,107,255,0.08);
    border-color: rgba(92,107,255,0.2);
    color: #8b97ff;
  }

  .tag.orange {
    background: rgba(255,107,74,0.08);
    border-color: rgba(255,107,74,0.2);
    color: #ff8a70;
  }

  /* PROJECTS */
  .projects-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 4rem;
  }

  .featured-project {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
  }

  .featured-project:hover { border-color: var(--border2); }

  .fp-visual {
    background: var(--bg3);
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border);
  }

  .fp-visual .mockup {
    width: 80%;
    max-width: 320px;
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 1.2rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.8;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  }

  .mockup .line-green { color: var(--accent); }
  .mockup .line-blue { color: #8b97ff; }
  .mockup .line-orange { color: #ff8a70; }
  .mockup .line-muted { color: var(--muted); opacity: 0.5; }

  .fp-content {
    padding: 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .fp-number {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
  }

  .fp-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

  .fp-desc {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .fp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
  }

  .fp-links {
    display: flex;
    gap: 1rem;
  }

  .fp-link {
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: opacity 0.2s;
  }

  .fp-link:hover { opacity: 0.7; }
  .fp-link .arrow { font-size: 0.9rem; }

  .fp-link.ghost {
    color: var(--muted);
  }

  /* PROJECT GRID */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .project-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    transition: border-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
  }

  .project-card:hover {
    border-color: var(--border2);
    transform: translateY(-3px);
  }

  .pc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
  }

  .pc-icon.green { background: rgba(200,241,53,0.1); }
  .pc-icon.blue { background: rgba(92,107,255,0.1); }
  .pc-icon.orange { background: rgba(255,107,74,0.1); }

  .pc-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
  }

  .pc-desc {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.65;
    font-weight: 300;
    flex: 1;
    margin-bottom: 1.5rem;
  }

  .pc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .pc-stack {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.02em;
  }

  .pc-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
  }

  .pc-link:hover { color: var(--accent); }

  /* EDUCATION */
  .education-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 2rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: border-color 0.3s;
  }
 
  .education-card:hover { border-color: var(--border2); }
 
  .edu-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.25rem;
  }
 
  .edu-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(200,241,53,0.08);
    border: 1px solid rgba(200,241,53,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
  }

  .edu-body { display: flex; flex-direction: column; gap: 0.6rem; }
 
  .edu-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
 
  .edu-period {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.05em;
  }
 
  .edu-badge {
    background: rgba(200,241,53,0.1);
    border: 1px solid rgba(200,241,53,0.2);
    color: var(--accent);
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
  }

  .edu-degree {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text);
  }
 
  .edu-school {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.02em;
  }
 
  .edu-desc {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.75;
    margin-top: 0.4rem;
    max-width: 680px;
  }
 
  .edu-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-top: 0.75rem;
  }

  .edu-highlight {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 300;
  }
 
  .edu-hl-icon {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    flex-shrink: 0;
  }
 

  /* CONTACT */
  .contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 4rem;
    border-top: 1px solid var(--border);
  }

  .contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .contact-headline {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
  }

  .contact-headline .accent { color: var(--accent); }

  .contact-sub {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2.5rem;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.2s, transform 0.2s;
  }

  .contact-link:hover { border-color: var(--accent); transform: translateX(4px); }

  .cl-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .cl-label { font-weight: 500; }
  .cl-value { color: var(--muted); font-size: 0.8rem; margin-top: 0.1rem; font-family: 'DM Mono', monospace; }

  .cl-arrow {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s;
  }

  .contact-link:hover .cl-arrow { color: var(--accent); }

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
  }

  .footer-text span { color: var(--accent); }

  /* DIVIDER */
  .full-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 4rem;
  }

  .featured-project--reverse .fp-content { order: 1; }
  .featured-project--reverse .fp-visual--right {
    order: 2;
    border-right: none;
    border-left: 1px solid var(--border);
  }

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

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

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Floating visual elements in hero */
  .hero-float {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 340px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    line-height: 2;
    color: var(--muted);
    animation: fadeUp 0.8s ease 0.5s both;
  }

  .hf-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
  }

  .hf-dot.green { background: var(--accent); }
  .hf-dot.blue { background: var(--accent2); }
  .hf-dot.orange { background: var(--accent3); }

  .hf-bar {
    height: 2px;
    background: var(--border);
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
  }

  .hf-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
  }

  @media (max-width: 900px) {
    nav { padding: 1rem 1.25rem; }
    .nav-links { display: none; }

    .hero {
      padding: 6rem 1.25rem 3rem;
      min-height: auto;
    }
    .hero h1 {
      font-size: clamp(2rem, 10.5vw, 4rem);
      line-height: 1;
    }
    .hero-float { display: none; }
    .hero-stats {
      gap: 2rem;
      margin-top: 2.5rem;
      padding-top: 2rem;
      flex-wrap: wrap;
    }
    .stat-num { font-size: 1.6rem; }

    section { padding: 3.5rem 1.25rem; }

    .about-inner {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }

    .projects-section { padding: 3.5rem 1.25rem; }

    /* Featured projects: always single column on mobile */
    .featured-project {
      grid-template-columns: 1fr !important;
    }
    .fp-visual {
      border-right: none !important;
      border-left: none !important;
      border-bottom: 1px solid var(--border);
      min-height: 200px;
      order: 0 !important;
    }
    .fp-content {
      order: 1 !important;
      padding: 1.5rem;
    }
    .fp-title { font-size: 1.25rem; }

    /* Project grid: 1 column on small, 2 on medium */
    .project-grid {
      grid-template-columns: 1fr;
    }

    .education-card {
      grid-template-columns: 1fr;
      gap: 1.25rem;
      padding: 1.5rem;
    }
    .edu-left { flex-direction: row; align-items: flex-start; }
    .edu-highlights { grid-template-columns: 1fr; }

    .contact-section { padding: 3.5rem 1.25rem; }
    .contact-inner {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }
    .contact-headline { font-size: clamp(2rem, 10vw, 3rem); }

    .featured-project--reverse .fp-visual--right {
      border-left: none !important;
    }

    footer {
      padding: 1.5rem 1.25rem;
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }
    .full-divider { margin: 0 1.25rem; }
  }

  @media (max-width: 420px) {
    .hero-actions {
      flex-direction: column;
      align-items: flex-start;
    }
    .btn-primary, .btn-ghost { width: 100%; text-align: center; }
    .hero-stats { gap: 1.5rem; }
  }
