/* ================================================================
   SHALINI MISHRA — Premium Portfolio Stylesheet
   ================================================================ */

/* ─── Design Tokens ─── */
:root {
  /* Backgrounds */
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --surface-warm: #FBF9F5;
  --surface-accent: #F0ECE5;

  /* Text */
  --ink: #1B2438;
  --ink-secondary: #3D4A5C;
  --ink-muted: #6B7A8D;

  /* Brand */
  --navy: #1B365D;
  --navy-light: #264A7A;
  --teal: #1A6B5A;
  --teal-light: #238272;
  --rust: #C4533A;
  --rust-dark: #A8432D;
  --rust-glow: rgba(196, 83, 58, 0.18);

  /* Borders & Lines */
  --border: #E2DCD2;
  --border-light: #EDE8E0;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(27, 36, 56, 0.04);
  --shadow-sm: 0 2px 6px rgba(27, 36, 56, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 36, 56, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 36, 56, 0.10);
  --shadow-xl: 0 24px 48px rgba(27, 36, 56, 0.12);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Spacing scale */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  /* Layout */
  --max-w: 1140px;
  --nav-h: 64px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 40% at 8% 5%, rgba(196, 83, 58, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 45% 35% at 92% 10%, rgba(26, 107, 90, 0.05) 0%, transparent 100%),
    radial-gradient(ellipse 40% 30% at 50% 95%, rgba(27, 54, 93, 0.04) 0%, transparent 100%);
  pointer-events: none;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--teal); }

/* ─── Skip Link ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

/* ─── Typography ─── */
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: var(--sp-sm);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--rust-glow);
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 54, 93, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--navy);
  background: rgba(27, 54, 93, 0.04);
  transform: translateY(-1px);
}

.pulse { animation: pulse 2s infinite; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--rust-glow); }
  70%  { box-shadow: 0 0 0 14px rgba(196, 83, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 83, 58, 0); }
}

/* ─── Focus styles ─── */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.top-nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  max-width: var(--max-w);
  margin: 12px auto var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 12px 20px;
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.top-nav.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 253, 250, 0.95);
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.top-nav nav {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-left: auto;
}

.top-nav nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  position: relative;
}
.top-nav nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.top-nav nav a:hover,
.top-nav nav a.active {
  color: var(--ink);
}
.top-nav nav a:hover::after,
.top-nav nav a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 8px 18px;
  background: var(--rust);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  margin-left: var(--sp-sm);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--rust-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-lg);
  padding: var(--sp-xl) var(--sp-xl);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-xl);
  align-items: center;
  background: linear-gradient(145deg, #FFFBF5 0%, #FFFFFF 50%, #F9F7F3 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(196, 83, 58, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(26, 107, 90, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(26, 107, 90, 0.07);
  border: 1px solid rgba(26, 107, 90, 0.15);
  border-radius: 999px;
  margin-bottom: var(--sp-md);
}

.hero-headline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin: var(--sp-sm) 0 var(--sp-md);
  letter-spacing: 0.02em;
}

.hero-sub {
  color: var(--ink-secondary);
  max-width: 52ch;
  margin-bottom: var(--sp-lg);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hero images */
.hero-images {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-img-wrapper { overflow: hidden; }

.hero-img-primary {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
}
.hero-img-primary img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-img-primary:hover img { transform: scale(1.03); }

.hero-img-secondary {
  position: absolute;
  bottom: -16px;
  left: -24px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-md);
}
.hero-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ═══════════════════════════════════════════
   IMPACT METRICS
   ═══════════════════════════════════════════ */
.impact {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-lg);
  padding: 0 var(--sp-md);
}

.impact .section-label { text-align: center; display: block; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.impact-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-lg) var(--sp-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--teal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.impact-card:hover::before { opacity: 1; }

.impact-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  margin-bottom: var(--sp-sm);
}

.impact-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

.impact-proof {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-lg);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 0;
}

.about-image {
  position: relative;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.about-text {
  padding: var(--sp-xl);
}

.about-text h2 { margin-bottom: var(--sp-md); color: var(--ink); }
.about-text p {
  color: var(--ink-secondary);
  margin-bottom: var(--sp-md);
  max-width: 58ch;
  line-height: 1.7;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.about-highlight {
  padding: var(--sp-md) var(--sp-lg);
  background: var(--surface-warm);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.about-highlight strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.about-highlight span {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════
   EXPERIENCE
   ═══════════════════════════════════════════ */
.experience {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-lg);
  padding: var(--sp-xl) var(--sp-xl);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.experience-header { margin-bottom: var(--sp-xl); }
.experience-header h2 { color: var(--ink); }

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--sp-xl);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--teal);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  border-color: var(--rust);
  background: var(--rust);
  box-shadow: 0 0 0 4px var(--rust-glow);
}

.timeline-content {
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.timeline-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
}
.timeline-badge.current {
  background: rgba(196, 83, 58, 0.1);
  color: var(--rust);
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.timeline-content h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.timeline-org {
  font-size: 0.88rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
}

.timeline-content ul {
  color: var(--ink-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════ */
.skills {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-lg);
  padding: var(--sp-xl);
  background: linear-gradient(145deg, #FFFBF6 0%, #FFFFFF 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.skills-header { margin-bottom: var(--sp-lg); }
.skills-header h2 { color: var(--ink); }

.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
}

.skills-group h3 {
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: var(--sp-sm);
}

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

.chip {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.chip:hover {
  background: rgba(27, 54, 93, 0.06);
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   RESUME PACK
   ═══════════════════════════════════════════ */
.resumes {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-lg);
  padding: var(--sp-xl);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.resumes-header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.resumes-header h2 { color: var(--ink); margin-bottom: var(--sp-sm); }
.resumes-sub {
  color: var(--ink-muted);
  max-width: 50ch;
  margin: 0 auto;
  font-size: 0.95rem;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.resume-card {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.resume-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}

.resume-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 54, 93, 0.06);
  border-radius: var(--r-sm);
  color: var(--navy);
  margin-bottom: var(--sp-md);
}

.resume-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.resume-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: var(--sp-md);
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(27, 54, 93, 0.06);
  border: 1px solid rgba(27, 54, 93, 0.15);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
}
.resume-download:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Guides row */
.guides-row {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border-light);
}

.guides-title {
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: var(--sp-md);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
}

.guide-card {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--surface-accent);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}
.guide-card:hover {
  background: rgba(27, 54, 93, 0.04);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.guide-card svg {
  flex-shrink: 0;
  color: var(--teal);
}

.guide-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.guide-card span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-lg);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info {
  padding: var(--sp-xl);
}

.contact-info h2 { color: var(--ink); margin-bottom: var(--sp-sm); }

.contact-sub {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: var(--sp-lg);
  max-width: 42ch;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.2s ease;
}
a.contact-link:hover {
  background: var(--surface-warm);
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 107, 90, 0.07);
  border-radius: var(--r-sm);
  color: var(--teal);
  flex-shrink: 0;
}

.contact-link span {
  display: flex;
  flex-direction: column;
}
.contact-link strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 700;
}
.contact-link span > :last-child:not(strong) {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  font-weight: 500;
}

.contact-ctas {
  display: flex;
  gap: var(--sp-sm);
}

.contact-map {
  position: relative;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  display: block;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-lg) var(--sp-md) calc(var(--sp-3xl));
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

/* ═══════════════════════════════════════════
   MOBILE CTA BAR
   ═══════════════════════════════════════════ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 253, 250, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-secondary);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color 0.2s ease;
}
.mobile-cta-btn:hover,
.mobile-cta-btn:focus-visible {
  color: var(--teal);
}

.mobile-cta-btn--accent {
  color: var(--rust);
}
.mobile-cta-btn--accent:hover {
  color: var(--rust-dark);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
.anim-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .anim-up {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: var(--sp-lg);
    gap: var(--sp-lg);
  }

  .hero-images {
    max-width: 420px;
    margin: 0 auto;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-image img {
    min-height: 280px;
    max-height: 340px;
  }

  .skills-groups {
    grid-template-columns: 1fr;
  }

  .resume-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }
  .contact-map iframe {
    min-height: 300px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════ */
@media (max-width: 700px) {
  body { padding: 10px; }

  .top-nav {
    border-radius: var(--r-md);
    padding: 10px 14px;
    flex-wrap: wrap;
  }
  .top-nav nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--sp-sm);
    padding-top: var(--sp-sm);
    border-top: 1px solid var(--border-light);
    margin-top: var(--sp-sm);
  }
  .top-nav nav.open { display: flex; }
  .top-nav nav a { padding: 6px 0; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    padding: var(--sp-lg) var(--sp-md);
    margin: 0 0 var(--sp-md);
    border-radius: var(--r-lg);
  }
  h1 { font-size: 1.7rem; }

  .hero-img-secondary {
    width: 90px;
    height: 90px;
    left: -10px;
    bottom: -10px;
    border-width: 3px;
  }

  .impact { padding: 0; margin-bottom: var(--sp-md); }
  .impact-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .impact-card { padding: var(--sp-md); }
  .impact-number { font-size: 2rem; }

  .about { margin-bottom: var(--sp-md); }
  .about-text { padding: var(--sp-lg) var(--sp-md); }

  .experience {
    padding: var(--sp-lg) var(--sp-md);
    margin-bottom: var(--sp-md);
  }

  .skills {
    padding: var(--sp-lg) var(--sp-md);
    margin-bottom: var(--sp-md);
  }

  .resumes {
    padding: var(--sp-lg) var(--sp-md);
    margin-bottom: var(--sp-md);
  }
  .resume-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }

  .contact { margin-bottom: var(--sp-md); }
  .contact-info { padding: var(--sp-lg) var(--sp-md); }
  .contact-ctas { flex-direction: column; }

  .mobile-cta-bar { display: flex; }

  .site-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

/* Very small screens */
@media (max-width: 420px) {
  .impact-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
