:root {
    --bg: #050816;
    --bg-elevated: #0b1020;
    --bg-muted: #070b17;
    --accent: #7c3aed;
    --accent-soft: rgba(124, 58, 237, 0.15);
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --radius-xl: 18px;
    --radius-lg: 14px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
    --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.6);
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  }
  
  .container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
  }
  
  /* HEADER */
  
  .header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: radial-gradient(circle at top, rgba(55, 65, 81, 0.35), rgba(15, 23, 42, 0.95));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }
  
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
  }
  
  .logo {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e5e7eb;
  }
  
  .nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  
  .nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 0.15rem;
    transition: color 0.2s ease, opacity 0.2s ease;
  }
  
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed, #22d3ee);
    transition: width 0.2s ease;
  }
  
  .nav a:hover {
    color: #e5e7eb;
  }
  
  .nav a:hover::after {
    width: 100%;
  }
  
  .nav a.active {
    color: #e5e7eb;
  }
  
  .nav a.active::after {
    width: 100%;
  }
  
  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
  }
  
  .nav-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
  }
  
  /* SECTIONS — one per viewport, scroll-snap */
  
  .section {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    padding: 4.5rem 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .section-muted {
    background: radial-gradient(circle at top left, #111827 0, #020617 45%, #020617 100%);
  }
  
  .hero {
    padding-top: 5rem;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 3.5rem;
    align-items: center;
  }
  
  .eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.9rem;
  }
  
  .hero-title {
    font-size: clamp(2.3rem, 3.2vw, 2.8rem);
    font-weight: 600;
    margin: 0 0 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
    align-items: baseline;
  }
  
  .hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateX(-28px);
    animation: heroWordIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  
  .hero-word--1 { animation-delay: 0.1s; }
  .hero-word--2 { animation-delay: 0.25s; }
  .hero-word--3 { animation-delay: 0.4s; }
  .hero-word--4 { animation-delay: 0.55s; }
  
  @keyframes heroWordIn {
    from {
      opacity: 0;
      transform: translateX(-28px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .hero-name {
    background: linear-gradient(120deg, #f9fafb, #a855f7, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 540px;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  
  .btn.primary {
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    color: #f9fafb;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.75);
  }
  
  .btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.9);
  }
  
  .btn.ghost {
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.8);
  }
  
  .btn.ghost:hover {
    color: #e5e7eb;
    border-color: #7c3aed;
    background: rgba(15, 23, 42, 0.95);
  }
  
  .btn-resume {
    gap: 0.5rem;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.6);
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.12);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
  }
  
  .btn-resume:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45), 0 0 0 1px rgba(34, 211, 238, 0.2);
    transform: translateY(-2px);
  }
  
  .btn-resume-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }
  
  .btn-resume:hover .btn-resume-icon {
    transform: translateY(2px);
  }
  
  .hero-meta {
    margin-top: 1.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .hero-card {
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.98));
    border-radius: 26px;
    padding: 1.8rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
  }
  
  .hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 220deg, rgba(124, 58, 237, 0.12), transparent, rgba(56, 189, 248, 0.15), transparent);
    opacity: 0.9;
    mix-blend-mode: soft-light;
    pointer-events: none;
  }
  
  .hero-code-card {
    padding: 0;
    overflow: hidden;
    min-height: 340px;
    min-width: 0;
    flex: 1 1 auto;
  }
  
  .code-window {
    position: relative;
    min-height: 320px;
    min-width: 320px;
    background: linear-gradient(165deg, #0a0e14 0%, #0d1117 40%, #0b0f14 100%);
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 50px rgba(0, 0, 0, 0.4);
  }
  
  .code-window-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(180deg, rgba(30, 27, 45, 0.98) 0%, rgba(18, 22, 32, 0.98) 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  }
  
  .code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .code-dot--red { background: #ff5f56; }
  .code-dot--yellow { background: #ffbd2e; }
  .code-dot--green { background: #27c93f; }
  
  .code-window-title {
    margin-left: 0.6rem;
    font-size: 0.8rem;
    color: rgba(203, 213, 225, 0.9);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    letter-spacing: 0.02em;
  }
  
  .code-body {
    padding: 1.35rem 1.35rem 1.5rem;
    min-height: 260px;
  }
  
  .code-block {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.75;
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
    color: #e2e8f0;
    overflow-x: auto;
  }
  
  .code-line {
    display: block;
  }
  
  .code-num {
    display: inline-block;
    width: 1.75rem;
    margin-right: 1rem;
    color: rgba(148, 163, 184, 0.55);
    user-select: none;
  }
  
  .code-keyword { color: #f472b6; }
  .code-string { color: #67e8f9; }
  .code-fn { color: #c4b5fd; }
  .code-export { color: #f472b6; }
  
  .code-comment { color: #94a3b8; }
  
  .code-line--cursor {
    position: relative;
  }
  
  .code-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #22d3ee;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: codeBlink 1s step-end infinite;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
  }
  
  @keyframes codeBlink {
    50% { opacity: 0; }
  }
  
  /* GENERIC SECTION STYLES */
  
  h2 {
    font-size: 1.6rem;
    margin: 0 0 1rem;
    font-weight: 600;
  }
  
  .accent {
    color: var(--accent);
  }
  
  .two-col {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 2.5rem;
    align-items: flex-start;
  }
  
  .two-col p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-muted);
  }
  
  .about-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
  }
  
  .about-intro {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 1rem;
  }
  
  .about-list {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted);
  }
  
  .about-list li + li {
    margin-top: 0.4rem;
  }
  
  .about-list strong {
    color: #e5e7eb;
  }
  
  .about-extra {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
  }
  
  .about-photo {
    justify-self: end;
    align-self: center;
    max-width: 360px;
    padding: 3px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(34, 211, 238, 0.9));
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.9);
  }
  
  .about-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: none;
    object-fit: cover;
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  }
  .about-card {
    background: radial-gradient(circle at top, rgba(55, 65, 81, 0.35), rgba(15, 23, 42, 0.95));
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-subtle);
  }
  
  .about-card h3 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1rem;
  }
  
  .about-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .about-card li + li {
    margin-top: 0.35rem;
  }
  
  .about-card span {
    color: #e5e7eb;
  }
  
  /* TECH STACK / SKILLS CARDS */
  
  .tech-stack-intro {
    margin: -0.4rem 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  
  .tech-group {
    margin-bottom: 2.25rem;
  }
  
  .tech-group:last-child {
    margin-bottom: 0;
  }
  
  .tech-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }
  
  .skills-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }
  
  .skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.1rem 0.75rem;
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-soft);
  }
  
  .skill-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
  
  .skill-icon--light {
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
  
  .skill-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: #e5e7eb;
    text-align: center;
    line-height: 1.2;
  }
  
  /* EXPERIENCE */
  
  .experience-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 2.5rem;
    align-items: center;
  }
  
  
  .experience-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
  
  .experience-card {
    position: relative;
    margin-top: 0;
    padding: 1.75rem 1.6rem 1.6rem 2rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.98));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
  }
  
  .experience-card-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #7c3aed, #22d3ee);
    border-radius: 4px 0 0 4px;
  }
  
  .experience-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(124, 58, 237, 0.12);
  }
  
  .experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .experience-role-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  
  .experience-role {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #e5e7eb;
  }
  
  .experience-company-link {
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
  }
  
  .experience-company-link:hover {
    color: #22d3ee;
  }
  
  .experience-duration {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.25);
    color: #c4b5fd;
    white-space: nowrap;
  }
  
  .experience-summary {
    margin: 1rem 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
  }
  
  .experience-highlights {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
  }
  
  .experience-highlights li + li {
    margin-top: 0.35rem;
  }
  
  .experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
  }
  
  .experience-tags span {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
  }
  
  .experience-photo {
    justify-self: end;
    align-self: center;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    padding: 4px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(34, 211, 238, 0.9));
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.9);
  }
  
  .experience-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    border: none;
    background: #0b1020;
  }
  
  /* ACHIEVEMENTS */
  
  .achievements-intro {
    margin: -0.4rem 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  
  .achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin-top: 1.5rem;
  }
  
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.3rem;
    margin-top: 1.5rem;
  }
  
  .card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-subtle);
  }
  
  .achievement-card {
    position: relative;
    padding: 1.35rem 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .achievement-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: var(--shadow-soft);
  }
  
  .achievement-card--highlight {
    border-color: rgba(124, 58, 237, 0.5);
    background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), rgba(15, 23, 42, 0.95));
  }
  
  .achievement-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    color: #fff;
  }
  
  .achievement-badge--finalist {
    background: rgba(148, 163, 184, 0.35);
    color: #e5e7eb;
  }
  
  .achievement-badge--academic {
    background: rgba(34, 197, 94, 0.25);
    color: #86efac;
  }
  
  .achievement-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #e5e7eb;
  }
  
  .achievement-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
  }
  
  .achievement-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.9;
  }
  
  .achievement-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
  }
  
  .achievement-link:hover {
    color: #22d3ee;
  }
  
  .card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
  }
  
  .card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  /* FOOTER */
  
  .footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.4rem 0 1.7rem;
    background: rgba(3, 7, 18, 0.98);
  }
  
  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer-inner p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  
  /* Back to top (fetch flow: return to hero for next "response") */
  .back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
  }
  
  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .back-to-top:hover {
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
  }
  
  /* Section name toast: blur in, show, blur + fade out */
  .section-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.6);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }
  
  .section-toast.visible {
    opacity: 1;
    visibility: visible;
  }
  
  /* RESPONSIVE */
  
  @media (max-width: 880px) {
    .hero-grid,
    .two-col,
    .experience-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .hero-card {
      order: -1;
    }
  
    .experience-photo {
      justify-self: center;
      max-width: min(360px, 90vw);
    }
  
    .experience-photo img {
      aspect-ratio: 3 / 2;
    }
  }
  
  @media (max-width: 720px) {
    .nav {
      position: fixed;
      inset-inline: 0;
      top: 56px;
      background: rgba(3, 7, 18, 0.97);
      flex-direction: column;
      align-items: flex-start;
      padding: 0.75rem 1.5rem 1rem;
      border-bottom: 1px solid rgba(148, 163, 184, 0.3);
      transform: translateY(-120%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }
  
    .nav.open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
  
    .nav a {
      padding-block: 0.3rem;
    }
  
    .nav-toggle {
      display: flex;
    }
  
    .header {
      position: sticky;
      top: 0;
    }
  
    .hero {
      padding-top: 3.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .hero-code-card .code-body {
      padding: 0.85rem 0.75rem;
    }
  
    .code-block {
      font-size: 0.72rem;
    }
  }
  
  