/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; min-width: 0; }
*, *::before, *::after { min-width: 0; }

:root {
  --bg: #ffffff;
  --bg-2: #f7f7f9;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #111827;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

.bg-glow { display: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  gap: 0.75rem;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn-ghost, .btn-primary {
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.btn-ghost {
  background: #fff;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-2);
  border-color: #d1d5db;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  width: 100%;
}

.hero-text { flex: 1 1 0; max-width: 640px; min-width: 0; }

.hero-text h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.grad { color: var(--primary); }

.tagline {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.tagline strong { color: var(--primary); font-weight: 600; }

.sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero-avatar {
  position: relative;
  flex-shrink: 0;
}
.avatar-ring {
  width: clamp(220px, 30vw, 340px);
  height: clamp(220px, 30vw, 340px);
  border-radius: 50%;
  padding: 6px;
  
  position: relative;
}
.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  display: block;
}

.status-dot {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  background: #22c55e;
  border: 4px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ===== Sections ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  width: 100%;
}

.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.section-head .sub { margin: 1rem auto 0; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.about-text strong { color: var(--text); font-weight: 600; }
.about-text a {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border 0.2s;
}
.about-text a:hover { border-color: var(--primary); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 14px;
  text-align: center;
  transition: all 0.25s ease;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: #fff;
}
.stat h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}
.stat p { font-size: 0.85rem; color: var(--muted); }

/* ===== Projects ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 16px;
  transition: all 0.25s ease;
  display: block;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.project-card:hover .arrow {
  transform: translate(4px, -4px);
  color: var(--primary);
}

.project-card.featured {
  background: var(--bg-2);
  border-color: var(--primary);
  grid-column: span 2;
}

.project-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.project-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.tech {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tech span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background: var(--bg-2);
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.arrow {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-size: 1.2rem;
  color: var(--muted);
  transition: all 0.25s;
}

/* ===== Project Cover Image ===== */
.project-card.has-cover { padding: 0; overflow: hidden; }
.project-card.has-cover .project-cover {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center top;
  background-color: var(--bg-2);
  border-bottom: 1px solid var(--border);
  transition: filter 0.3s ease;
}
.project-card.has-cover.featured .project-cover { height: 280px; }
.project-card.has-cover .project-body { padding: 1.5rem 1.75rem 1.75rem; }
.project-card.has-cover .project-body h3 { margin-top: 0.4rem; }
.project-card.has-cover .arrow {
  top: 1rem; right: 1rem;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.project-card.has-cover:hover .project-cover { filter: brightness(1.05); }

/* ===== Journey Gallery ===== */
.journey {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1rem;
  max-width: 1100px;
}
.journey-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.journey-item.tall { grid-row: span 2; aspect-ratio: auto; min-height: 320px; }
.journey-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.journey-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); }
.journey-item:hover img { transform: scale(1.05); }
.journey-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .journey { grid-template-columns: 1fr 1fr; }
  .journey-item.tall { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (max-width: 480px) {
  .journey { grid-template-columns: 1fr; }
  .journey-item.tall { grid-column: span 1; }
}

/* ===== Skills ===== */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.skill-group {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.6rem;
  border-radius: 14px;
  transition: all 0.25s ease;
}
.skill-group:hover {
  transform: translateY(-3px);
  border-color: var(--text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.skill-group h4 {
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.skill-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.skill-group li {
  color: var(--text);
  font-size: 0.95rem;
  padding-left: 1.2rem;
  position: relative;
}
.skill-group li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===== Education ===== */
.education { max-width: 900px; }

.edu-card {
  position: relative;
  padding: 1.75rem 2rem 1.75rem 2.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), #7c3aed);
}
.edu-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.08);
}

.edu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.edu-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 600;
}
.edu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}

.edu-side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}
.edu-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}
.edu-pill {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}

.edu-body { min-width: 0; }
.edu-degree {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.edu-school {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.edu-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.edu-link:hover { background: var(--primary); color: #fff; }

.edu-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.edu-about {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 1.25rem;
}
.edu-about strong { color: var(--text); font-weight: 600; }

.edu-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.edu-tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background: var(--bg-2);
  color: var(--muted);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .edu-card { padding: 1.5rem 1.5rem 1.5rem 1.75rem; }
  .edu-top { margin-bottom: 1rem; }
  .edu-side { gap: 0.5rem; }
  .edu-year { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .edu-school { font-size: 1.25rem; }
  .edu-link { font-size: 0.72rem; padding: 0.15rem 0.5rem; }
}

/* ===== Contact (refined) ===== */
.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f9 100%);
  padding: 5rem 1.25rem 0;
  margin-top: 2rem;
}
@media (min-width: 640px) { .contact-section { padding: 6rem 2rem 0; } }
@media (min-width: 960px) { .contact-section { padding: 7rem 2rem 0; } }

.contact-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 30px 60px -30px rgba(37, 99, 235, 0.18),
    0 12px 30px -12px rgba(0, 0, 0, 0.08);
}

.contact-block .eyebrow {
  display: inline-block;
  margin-bottom: 1.2rem;
}

.contact-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}
.contact-title .grad {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.contact-lede {
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}

/* Primary CTA pill */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.5rem 1rem 1.75rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 12px 30px -8px rgba(17, 24, 39, 0.4);
  word-break: break-word;
  max-width: 100%;
}
.btn-cta:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(37, 99, 235, 0.45);
}
.btn-cta .cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}
.btn-cta:hover .cta-arrow { transform: translateX(3px); }

/* Secondary pills */
.contact-pills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2.5rem auto 2rem;
  max-width: 640px;
}
.contact-pills li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  text-align: center;
}
.contact-pills li a:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  background: #fff;
}
.pill-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}
.pill-value {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

/* Socials */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.socials a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.socials a:hover { color: var(--primary); }

/* ===== Footer ===== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
.footer p { margin: 0; }
.footer-brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.footer-brand span { color: var(--primary); }

/* Contact section responsive */
@media (max-width: 560px) {
  .contact-pills {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  .btn-cta {
    padding: 0.9rem 1.25rem 0.9rem 1.4rem;
    font-size: 0.92rem;
  }
  .socials { gap: 1rem; }
  .socials a { font-size: 0.85rem; }
  .footer { justify-content: center; text-align: center; padding: 1.25rem 1rem; }
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
    padding: 7rem 1.5rem 3rem;
    gap: 2.5rem;
  }
  .hero-text {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero-avatar { align-self: center; max-width: 100%; }
  .hero-actions, .hero-meta { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-card.featured { grid-column: span 1; }
}

@media (max-width: 860px) {
  .nav { padding: 0.55rem 0.6rem 0.55rem 1rem; top: 0.75rem; }
  .nav-toggle { display: inline-flex; }

  /* nav-links become a slide-down dropdown */
  .nav-links {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0.6rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.95rem;
  }
  .nav-links a:hover { background: var(--bg-2); }

  .nav .btn-cta-nav { padding: 0.5rem 1rem; font-size: 0.82rem; }
  .section { padding: 4rem 1.25rem; }
  .hero { padding: 6.5rem 1.25rem 3rem; }
  .hero-text h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .tagline { font-size: 1rem; }
  .sub { font-size: 0.98rem; }
  .stat h3 { font-size: 1.8rem; }
}

@media (max-width: 420px) {
  .nav { padding: 0.5rem 0.55rem 0.5rem 0.85rem; }
  .nav .btn-cta-nav { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
  .nav-toggle { width: 34px; height: 34px; }
  .logo { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 1.6rem; }
  .arrow { top: 1rem; right: 1rem; }
  .project-card.has-cover .project-cover { height: 160px; }
  .project-card.has-cover.featured .project-cover { height: 200px; }
  .project-card.has-cover .project-body { padding: 1.25rem 1.25rem 1.5rem; }
}
