/* ========================================
   M KHAEDIR T — Portfolio Design System
   Vibe: Ethereal Glass | Layout: Bento
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg-void: #050505;
  --bg-card: #0b0b12;
  --bg-card-hover: #10101a;
  --bg-shell: rgba(255,255,255,0.03);
  --accent-1: #10b981;
  --accent-2: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #10b981, #06b6d4);
  --text-primary: #f0f0f5;
  --text-secondary: #8b8fa3;
  --text-muted: #555770;
  --border-hairline: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.625rem;
  --ease-out-expo: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg-void);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Noise overlay — fixed, non-scrolling */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.025;
  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)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* Mesh gradient background */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mesh-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.mesh-bg .orb-1 {
  width: 600px;
  height: 600px;
  background: #10b981;
  top: -200px;
  right: -100px;
}

.mesh-bg .orb-2 {
  width: 500px;
  height: 500px;
  background: #6366f1;
  bottom: -150px;
  left: -100px;
}

.mesh-bg .orb-3 {
  width: 400px;
  height: 400px;
  background: #06b6d4;
  top: 50%;
  left: 40%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 6rem 0;
}

/* ===== NAV — Floating Glass Pill ===== */
.nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(11,11,18,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hairline);
  border-radius: 100px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.7s var(--ease-out-expo);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-right: 1rem;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 100px;
  transition: all 0.5s var(--ease-out-expo);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #050505;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  border-radius: 100px;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: all 0.5s var(--ease-out-expo);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: scale(1.03);
}

.nav-cta .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  font-size: 0.75rem;
  transition: transform 0.5s var(--ease-spring);
}

.nav-cta:hover .arrow {
  transform: translate(2px, -1px) scale(1.1);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  width: 2rem;
  height: 2rem;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.4s var(--ease-out-expo);
}

.nav-toggle span:nth-child(1) { top: 0.6rem; }
.nav-toggle span:nth-child(2) { top: 1rem; }

.nav-toggle.open span:nth-child(1) {
  top: 0.8rem;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  top: 0.8rem;
  transform: translateX(-50%) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-1);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(16,185,129,0.2);
  background: rgba(16,185,129,0.05);
  margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  white-space: nowrap;
}

.hero-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.subtitle-divider {
  opacity: 0.4;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--accent-gradient);
  color: #050505;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.5s var(--ease-out-expo);
}

.btn-primary:hover {
  transform: scale(1.03);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary .arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  transition: transform 0.5s var(--ease-spring);
}

.btn-primary:hover .arrow-circle {
  transform: translate(2px, -1px) scale(1.05);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--border-hairline);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.5s var(--ease-out-expo);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

/* Hero photo — double bezel */
.hero-photo-shell {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-outer {
  background: var(--bg-shell);
  border: 1px solid var(--border-hairline);
  border-radius: 2rem;
  padding: 0.375rem;
  transition: all 0.7s var(--ease-out-expo);
}

.hero-photo-outer:hover {
  border-color: var(--border-hover);
}

.hero-photo-inner {
  border-radius: calc(2rem - 0.375rem);
  overflow: hidden;
  width: 300px;
  height: 420px;
  position: relative;
  background: var(--bg-card);
}

.hero-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.15) contrast(1.05);
  transition: all 0.7s var(--ease-out-expo);
}

.hero-photo-outer:hover img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.03);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-1);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(16,185,129,0.2);
  background: rgba(16,185,129,0.05);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1rem;
}

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

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--bg-shell);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* About details */
.about-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-card {
  background: var(--bg-shell);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.5s var(--ease-out-expo);
}

.detail-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.detail-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.detail-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.detail-card p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PROJECTS — BENTO GRID ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

/* Double-bezel project card */
.project-shell {
  background: var(--bg-shell);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 0.375rem;
  transition: all 0.7s var(--ease-out-expo);
}

.project-shell:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.project-shell:nth-child(1) { grid-column: span 7; }
.project-shell:nth-child(2) { grid-column: span 5; }
.project-shell:nth-child(3) { grid-column: span 12; }

.project-core {
  background: var(--bg-card);
  border-radius: calc(var(--radius-xl) - 0.375rem);
  padding: 2rem;
  height: 100%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-type-badge {
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: rgba(16,185,129,0.1);
  color: var(--accent-1);
  border: 1px solid rgba(16,185,129,0.15);
  width: fit-content;
  margin-bottom: 1rem;
}

.project-core h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.project-img {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-hairline);
  aspect-ratio: 16 / 9;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease-out-expo);
}

.project-shell:hover .project-img img {
  transform: scale(1.04);
}

.project-core .desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tech-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  transition: all 0.4s var(--ease-out-expo);
}

.project-shell:hover .tech-tag {
  border-color: var(--border-hover);
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-hairline);
  aspect-ratio: 16 / 9;
  background: #000;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s var(--ease-out-expo);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-slide video {
  cursor: pointer;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out-expo);
  z-index: 2;
  opacity: 0;
}

.carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.2);
}

.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }

.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.375rem;
  z-index: 2;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s var(--ease-out-expo);
}

.carousel-dot.active {
  background: var(--accent-1);
  width: 18px;
  border-radius: 3px;
}

/* Video play overlay */
.carousel-slide .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: opacity 0.4s var(--ease-out-expo);
}

.carousel-slide .play-overlay span {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #050505;
  transition: transform 0.4s var(--ease-spring);
}

.carousel-slide .play-overlay:hover span {
  transform: scale(1.1);
}

.carousel-slide.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-hairline) 10%, var(--border-hairline) 90%, transparent);
}

.timeline-item {
  padding-left: 2.5rem;
  padding-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 12px rgba(16,185,129,0.4);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-1);
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.timeline-role {
  font-family: 'Syne', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-desc li {
  margin-bottom: 0.25rem;
  padding-left: 0.75rem;
  position: relative;
  list-style: none;
}

.timeline-desc li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-weight: 700;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.skill-group-shell {
  background: var(--bg-shell);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 0.375rem;
  transition: all 0.7s var(--ease-out-expo);
}

.skill-group-shell:hover {
  border-color: var(--border-hover);
}

.skill-group-core {
  background: var(--bg-card);
  border-radius: calc(var(--radius-xl) - 0.375rem);
  padding: 1.5rem;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}

.skill-group-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-1);
  margin-bottom: 1rem;
}

.skill-group-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* ===== CONTACT ===== */
.contact-section {
  text-align: center;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.contact-card {
  background: var(--bg-shell);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.5s var(--ease-out-expo);
  min-width: 240px;
}

.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-info {
  text-align: left;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.125rem;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border-hairline);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  filter: blur(6px);
  transition: all 0.8s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  section { padding: 4rem 0; }

  .nav {
    padding: 0.5rem 0.75rem;
    width: calc(100% - 2rem);
    left: 1rem;
    transform: none;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: rgba(11,11,18,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 1rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { margin-left: 0; width: 100%; justify-content: center; }

  .hero { padding-top: 5rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-photo-shell { order: -1; }
  .hero-photo-inner { width: 220px; height: 280px; }

  .about-content { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

  .bento-grid { grid-template-columns: 1fr; }
  .project-shell:nth-child(1),
  .project-shell:nth-child(2),
  .project-shell:nth-child(3) { grid-column: span 1; }

  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { flex-direction: column; align-items: center; }
}
