/* ==========================================================================
   Arabella Pamoleras — E-commerce Virtual Assistant Portfolio
   Design system: Apple / Linear / Framer inspired, premium & minimal
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --primary: #3F4A3C;
  --secondary: #5F7F63;
  --accent: #7A9E7E;
  /* Darker sage reserved for small text on white — #7A9E7E only scores 2.99:1 (fails WCAG AA). */
  --accent-text: #5A7A5E;
  --highlight: #5F7F63;
  --bg: #FFFFFF;
  --bg-alt: #EEF4EC;
  --border: #D7E4D3;
  --text-primary: #3F4A3C;
  --text-secondary: #6B7A67;
  --card: #FFFFFF;
  --btn-hover: #5F7F63;
  --gradient: linear-gradient(135deg, #7A9E7E, #A8C3A1);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(63, 74, 60, 0.04), 0 1px 3px rgba(63, 74, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(63, 74, 60, 0.08);
  --shadow-lg: 0 24px 64px rgba(63, 74, 60, 0.14);
  --shadow-glow: 0 0 0 1px rgba(122, 158, 126, 0.10), 0 18px 36px rgba(122, 158, 126, 0.18);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

[data-theme="dark"] {
  --primary: #F1F4EF;
  --secondary: #C3D2BE;
  --bg: #1B211A;
  --bg-alt: #222A21;
  --border: #333D31;
  --text-primary: #F1F4EF;
  --text-secondary: #A3B29E;
  --card: #232B22;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }
section { position: relative; }
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(122,158,126,.18);
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); }
.section-head p { color: var(--text-secondary); font-size: 18px; margin-top: 14px; }

section { padding: 120px 0; }
.alt-bg { background: var(--bg-alt); }
@media (max-width: 768px){ section { padding: 80px 0; } }

/* ---------- Loading screen ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.loader-bar {
  width: 140px; height: 3px; border-radius: 3px;
  background: var(--border); overflow: hidden;
}
.loader-bar::after {
  content: ""; display: block; height: 100%; width: 40%;
  background: var(--gradient); border-radius: 3px;
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient); z-index: 1001; transition: width .1s linear;
}

/* ---------- Cursor glow (desktop only) ---------- */
#cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(122,158,126,.12), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .3s ease;
  opacity: 0;
}

/* ---------- Navigation ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
#navbar.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
/* Logo removed from the header — nav takes the leading space instead. */
.nav-links { flex: 1; justify-content: center; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.logo-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--gradient); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--text-secondary);
  padding: 6px 0; transition: color .25s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0%;
  background: var(--gradient); border-radius: 2px; transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); border: 1px solid var(--border);
  transition: all .25s ease;
}
.icon-btn:hover { color: var(--text-primary); border-color: var(--accent); transform: translateY(-2px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 18px; font-weight: 600; font-size: 15px;
  white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s ease;
}
.btn-primary {
  /* Deeper than --gradient so white label clears WCAG AA. */
  background: linear-gradient(135deg, #557456, #7A9E7E);
  color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(95,127,99,.30); }
.btn-secondary {
  background: var(--card); color: var(--text-primary); border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 14px; }
.btn svg { width: 17px; height: 17px; }

.hamburger { display: none; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; border: 1px solid var(--border); }
.hamburger span { display: block; width: 18px; height: 1.6px; background: var(--text-primary); position: relative; transition: all .3s ease; }
.hamburger span::before, .hamburger span::after { content:""; position:absolute; left:0; width:18px; height:1.6px; background: var(--text-primary); transition: all .3s ease; }
.hamburger span::before { top: -6px; } .hamburger span::after { top: 6px; }
.hamburger.open span { background: transparent; }
.hamburger.open span::before { transform: rotate(45deg); top: 0; }
.hamburger.open span::after { transform: rotate(-45deg); top: 0; }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--bg); padding: 32px 24px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: all .35s var(--ease);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a { font-size: 22px; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid var(--border); font-family: 'Space Grotesk',sans-serif; }
.mobile-menu .btn { margin-top: 20px; }

/* ---------- Reveal animation base ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-scale.in { opacity: 1; transform: scale(1); }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 100px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35;
}
.hero-bg .blob-1 { width: 480px; height: 480px; background: #A8C3A1; top: -160px; right: -120px; }
.hero-bg .blob-2 { width: 420px; height: 420px; background: #D7E4D3; bottom: -160px; left: -140px; opacity: .28; }
.hero-bg .grid-texture {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, black 40%, transparent 100%);
  opacity: .5;
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 60px;
}
.hero-copy h1.hero-name {
  font-size: clamp(42px, 5.6vw, 72px);
  margin-bottom: 14px;
}
.hero-copy .hero-tagline {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-primary);
  max-width: 560px;
  margin-bottom: 18px;
}
.hero-copy .accent-word { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p.lead { font-size: 19px; color: var(--text-secondary); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats { display: flex; gap: 40px; }
.hero-stats .stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; }
.hero-stats .stat-label { font-size: 13.5px; color: var(--text-secondary); margin-top: 2px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-photo-wrap {
  position: relative; width: 100%; max-width: 400px; aspect-ratio: 3/4;
  border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,23,42,.35));
}

.floating-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 10px 16px; box-shadow: var(--shadow-md);
  font-size: 13.5px; font-weight: 600; z-index: 2;
  animation: floatY 5s ease-in-out infinite;
}
.floating-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink:0; }
.badge-1 { top: 6%; left: -8%; animation-delay: 0s; }
.badge-2 { top: 32%; right: -12%; animation-delay: .6s; }
.badge-3 { bottom: 20%; left: -12%; animation-delay: 1.2s; }
.badge-4 { bottom: -2%; right: -6%; animation-delay: 1.8s; }
.badge-5 { top: 62%; left: -4%; animation-delay: 2.4s; display:none; }
@keyframes floatY { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .floating-badge { display: none; }
  .floating-badge.badge-2 { display: flex; top: auto; bottom: 8%; right: 4%; }
  .floating-badge.badge-1 { display: flex; top: 8%; left: 4%; }
}

.scroll-cue { display: flex; justify-content: center; margin-top: 90px; }
.scroll-cue span { display:flex; flex-direction:column; align-items:center; gap:8px; font-size:12px; color:var(--text-secondary); letter-spacing:.08em; text-transform:uppercase;}
.mouse { width: 24px; height: 38px; border: 1.5px solid var(--border); border-radius: 14px; position: relative; }
.mouse::after { content:""; position:absolute; top:6px; left:50%; width:3px; height:6px; background:var(--accent); border-radius:2px; transform:translateX(-50%); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { top:6px; opacity:1;} 70% { top:20px; opacity:0;} 100% { top:6px; opacity:0;} }

/* ---------- About ---------- */
/* Photo removed — the section is now a centered, measure-limited text block. */
.about-copy { max-width: 780px; margin: 0 auto; }
.about-copy p { color: var(--text-secondary); font-size: 17px; margin-bottom: 20px; text-align: left; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy p strong { color: var(--text-primary); font-weight: 600; }

.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 780px; margin: 48px auto 0;
}
.about-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 24px; box-shadow: var(--shadow-sm); text-align: center;
}
.about-stat .stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; }
.about-stat .stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.skill-chip-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 780px; margin: 34px auto 0;
}
.skill-chip {
  padding: 9px 16px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  transition: all .3s var(--ease);
}
/* Hover keeps a dark earthy label on a soft sage tint. White text here scored only
   1.9–3.0:1 against the sage gradient, which made the tool name unreadable. */
.skill-chip:hover,
.skill-chip:focus-visible {
  background: #C3D8BE; color: #2F3A2D; border-color: #8FAF87; transform: translateY(-3px);
}

.about-cta { text-align: center; margin-top: 40px; }

@media (max-width: 640px) {
  .about-stats { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 32px 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #8FAF87; }
.service-card:hover .service-icon { background: var(--gradient); color: #fff; transform: scale(1.08) rotate(-4deg); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  transition: all .4s var(--ease); color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card > p.desc { color: var(--text-secondary); font-size: 15px; margin-bottom: 18px; }
.service-list { display: flex; flex-direction: column; gap: 9px; }
.service-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--text-secondary); }
.service-list svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Skills / Tools ---------- */
.skills-pill-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto 70px; }
.skills-pill-grid .skill-chip { background: var(--card); box-shadow: var(--shadow-sm); }

.tools-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.tools-track { display: flex; gap: 20px; width: max-content; animation: marquee 26s linear infinite; }
.tools-track:hover { animation-play-state: paused; }
.tool-logo-card {
  width: 148px; height: 96px; flex-shrink: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tool-logo-card:hover, .tool-logo-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #8FAF87; }
.tool-logo-card:hover span, .tool-logo-card:focus-within span { color: #2F3A2D; }
.tool-logo-card img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
.tool-logo-card span { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Portfolio: project tiles ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.project-card:hover, .project-card:focus-visible {
  transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #8FAF87;
}
.project-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Fixed-ratio stage: slides are absolutely stacked so cycling never shifts layout. */
.project-media {
  position: relative; aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden;
}
.project-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; transition: opacity .55s var(--ease);
}
.project-slide.active { opacity: 1; }

.project-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.project-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); transition: background .3s ease, width .3s ease;
}
.project-dot.active { background: var(--accent); width: 16px; border-radius: 3px; }

.project-count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: color-mix(in srgb, var(--card) 84%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--text-secondary);
}

.project-body { padding: 22px 24px 24px; }
.project-title { font-size: 20px; margin-bottom: 8px; }
.project-desc { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 16px; }
.project-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--accent-text);
}
.project-cta svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.project-card:hover .project-cta svg { transform: translateX(4px); }

@media (max-width: 980px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .projects-grid { grid-template-columns: 1fr; } }

/* Touch devices: no hover, so surface the tap affordance permanently. */
@media (hover: none) {
  .project-dots { opacity: 1; }
  .project-cta { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- Gallery modal ---------- */
body.no-scroll { overflow: hidden; }

.gallery {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(35, 43, 34, .74);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.gallery.open { opacity: 1; visibility: visible; }

.gallery-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  width: 100%; max-width: 940px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(.96); transition: transform .3s var(--ease);
}
.gallery.open .gallery-panel { transform: scale(1); }

.gallery-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.gallery-head h3 { font-size: 20px; margin-bottom: 4px; }
.gallery-head p { font-size: 14px; color: var(--text-secondary); max-width: 640px; }
.gallery-close {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  border: 1px solid var(--border); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.gallery-close:hover { color: var(--text-primary); border-color: var(--accent); }
.gallery-close svg { width: 18px; height: 18px; }

.gallery-stage {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); padding: 20px;
}
.gallery-stage img {
  max-width: 100%; max-height: 58vh; width: auto; height: auto;
  object-fit: contain; border-radius: 12px;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: all .25s ease; z-index: 2;
}
.gallery-nav:hover { background: var(--gradient); color: #fff; border-color: transparent; }
.gallery-nav[hidden] { display: none; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-nav svg { width: 19px; height: 19px; }

.gallery-foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.gallery-counter { font-size: 13px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.gallery-thumb {
  width: 56px; height: 44px; border-radius: 9px; overflow: hidden; flex-shrink: 0;
  border: 2px solid transparent; opacity: .55; transition: all .25s ease; background: var(--bg-alt);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: .85; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }

@media (max-width: 640px) {
  .gallery { padding: 12px; }
  .gallery-head { padding: 18px 18px; }
  .gallery-head p { display: none; }
  .gallery-stage { padding: 12px; }
  .gallery-stage img { max-height: 52vh; }
  .gallery-nav { width: 36px; height: 36px; }
  .gallery-nav.prev { left: 8px; } .gallery-nav.next { right: 8px; }
  .gallery-foot { padding: 12px 18px; }
}

/* ---------- Experience Timeline ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 46px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -36px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gradient); box-shadow: 0 0 0 5px var(--bg-alt), 0 0 0 6px var(--border);
}
.timeline-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px 30px; box-shadow: var(--shadow-sm); }
.timeline-card .role-title { font-size: 21px; margin-bottom: 4px; }
.timeline-card .role-meta { font-size: 13.5px; color: var(--accent-text); font-weight: 600; margin-bottom: 18px; }
.timeline-card ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.timeline-card ul li { display: flex; gap: 10px; font-size: 15px; color: var(--text-secondary); }
.timeline-card ul svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.timeline-card .reflection { font-size: 15px; color: var(--text-secondary); border-top: 1px solid var(--border); padding-top: 18px; font-style: italic; }

/* ---------- Why work with me ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 30px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-num { font-family:'Space Grotesk',sans-serif; font-size: 13px; font-weight: 700; color: var(--accent-text); margin-bottom: 16px; }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 18px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--text-secondary); }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Availability ---------- */
.availability-card {
  max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 26px; padding: 44px 44px; box-shadow: var(--shadow-md);
  background-image: radial-gradient(circle at top right, rgba(122,158,126,.08), transparent 60%);
}
.avail-list { display: flex; flex-direction: column; gap: 18px; }
.avail-item { display: flex; align-items: center; gap: 16px; font-size: 16.5px; font-weight: 500; }
.avail-check {
  width: 26px; height: 26px; border-radius: 8px; background: var(--gradient); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: var(--shadow-glow);
}
.avail-check svg { width: 15px; height: 15px; }
.avail-tz { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--border); display:flex; align-items:center; gap:12px; color: var(--text-secondary); font-size: 14.5px; }

/* ---------- Testimonial ---------- */
.testimonial-card {
  max-width: 780px; margin: 0 auto; text-align: center; position: relative;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border); border-radius: 30px; padding: 60px 52px; box-shadow: var(--shadow-lg);
}
.quote-mark { font-family: 'Space Grotesk', serif; font-size: 90px; line-height: 1; color: var(--accent); opacity: .25; margin-bottom: -20px; }
.testimonial-card .stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 22px; color: #F59E0B; }
.testimonial-card .stars svg { width: 18px; height: 18px; }
.testimonial-card blockquote { font-size: 20px; font-weight: 500; color: var(--text-primary); line-height: 1.65; margin-bottom: 30px; }
.testimonial-person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.testimonial-person .name { font-weight: 700; font-size: 15px; }
.testimonial-person .role { font-size: 13.5px; color: var(--text-secondary); }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 820px; margin: 0 auto 40px; }
.cert-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); cursor: pointer; }
.cert-img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.cert-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cert-card:hover img { transform: scale(1.06); }
.cert-label { padding: 16px 20px; font-weight: 700; font-size: 14.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--text-primary); }
.cert-more { text-align: center; }
@media (max-width: 620px) { .cert-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 38px 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); position: relative;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.popular { border: 1.5px solid var(--accent); box-shadow: var(--shadow-glow); transform: scale(1.03); }
.price-card.popular:hover { transform: scale(1.03) translateY(-8px); }
.popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #557456, #7A9E7E); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow-glow);
  white-space: nowrap;
}
.price-card h3 { font-size: 21px; margin-bottom: 6px; }
.price-card .tier-desc { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 22px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-amount .amt { font-family:'Space Grotesk',sans-serif; font-size: 36px; font-weight: 700; }
.price-amount .per { color: var(--text-secondary); font-size: 14px; }
.price-card .starting { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 26px; }
.price-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.price-features svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { width: 100%; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .price-card.popular { transform: none; } .price-card.popular:hover { transform: translateY(-8px); } }

/* ---------- Contact ---------- */
/* Form removed — contact is now a list of icon + platform-name links.
   The destination URL is never printed as visible text. */
.contact-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 820px; margin: 0 auto; list-style: none; padding: 0;
}
.contact-link {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 34px 24px; text-align: center; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.contact-link:hover, .contact-link:focus-visible {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #8FAF87;
}
.contact-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.cl-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--bg-alt); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.cl-icon svg { width: 24px; height: 24px; }
.contact-link:hover .cl-icon, .contact-link:focus-visible .cl-icon {
  background: var(--gradient); color: #fff; transform: scale(1.06);
}
.cl-name { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; }
.cl-arrow {
  width: 17px; height: 17px; color: var(--text-secondary);
  transition: transform .3s var(--ease), color .3s ease;
}
.contact-link:hover .cl-arrow { transform: translate(3px, -3px); color: var(--accent); }

@media (max-width: 700px) {
  .contact-links { grid-template-columns: 1fr; gap: 14px; }
  .contact-link { flex-direction: row; justify-content: flex-start; text-align: left; padding: 20px 22px; }
  .cl-icon { width: 46px; height: 46px; border-radius: 13px; }
  .cl-arrow { margin-left: auto; }
}

/* ---------- Footer ---------- */
footer { padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 14.5px; color: var(--text-secondary); transition: color .25s ease; }
.footer-nav a:hover { color: var(--text-primary); }
.footer-social { display: flex; gap: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-secondary); }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; color: var(--text-primary); z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .35s var(--ease);
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--gradient); color: #fff; border-color: transparent; }
#back-to-top svg { width: 20px; height: 20px; }

/* ---------- Count-up numbers util ---------- */
.count-num { font-variant-numeric: tabular-nums; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 60px; }

::selection { background: rgba(168,195,161,.45); }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
