/* ============================================
   PACHECO JR. | PERSONAL BRAND SITE
   Premium Design System v5.1
   Palette: Rose · Teal · Off-White · Deep Black
   Font: Zalando Sans (Display) · Rubik 80s Fade (Hero BG) · Inter (Body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Rubik+80s+Fade&display=swap');

/* Zalando Sans via CDN (variable font) */
@font-face {
  font-family: 'Zalando Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/zalando-sans:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
}

/* ---- Design Tokens ---- */
:root {
  /* Primary — brighter rose, much better contrast on dark */
  --accent: #D4515B;
  --accent-bright: #E8636D;
  --accent-deep: #A43B44;
  --accent-glow: rgba(212, 81, 91, 0.5);
  --accent-subtle: rgba(212, 81, 91, 0.12);

  /* Secondary */
  --teal: #3ECDB5;
  --teal-deep: #1A5E56;
  --teal-glow: rgba(62, 205, 181, 0.4);
  --teal-subtle: rgba(62, 205, 181, 0.1);

  /* Neutrals — high contrast */
  --white: #F5F0EB;
  --white-pure: #FFFFFF;
  --text-primary: #F5F0EB;
  --text-secondary: rgba(245, 240, 235, 0.6);
  --text-dim: rgba(245, 240, 235, 0.3);

  /* Surfaces */
  --bg: #08060A;
  --bg-elevated: #110E14;
  --bg-card: rgba(20, 16, 24, 0.6);
  --bg-card-hover: rgba(30, 24, 36, 0.85);

  /* Borders */
  --border: rgba(245, 240, 235, 0.07);
  --border-hover: rgba(245, 240, 235, 0.15);
  --border-accent: rgba(212, 81, 91, 0.3);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-bright), #F06292);
  --gradient-teal: linear-gradient(135deg, var(--teal), #5BEAD5, #2DD4BF);
  --gradient-mesh: linear-gradient(135deg, rgba(212,81,91,0.15) 0%, transparent 40%, rgba(62,205,181,0.1) 70%, transparent 100%);
  --gradient-hero: radial-gradient(ellipse at 20% 50%, rgba(212,81,91,0.12) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(62,205,181,0.08) 0%, transparent 50%);
  --gradient-section: linear-gradient(180deg, transparent 0%, rgba(212,81,91,0.03) 50%, transparent 100%);
  --gradient-card-border: linear-gradient(135deg, var(--accent), var(--teal), var(--accent-bright));
  --gradient-chrome: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(200,200,210,0.8) 20%, rgba(160,160,175,0.6) 45%, rgba(180,180,195,0.7) 65%, rgba(220,220,232,0.85) 80%, rgba(255,255,255,0.9) 100%);

  /* Typography */
  --font-display: 'Zalando Sans', 'Inter', sans-serif;
  --font-hero: 'Rubik 80s Fade', 'Zalando Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-gap: clamp(100px, 12vw, 180px);
  --container: 1200px;
  --pad: clamp(20px, 5vw, 60px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

::selection {
  background: var(--accent);
  color: var(--white-pure);
}

/* ---- Accessibility ---- */
.skip-to-content {
  position: absolute; top: -100%; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: var(--white);
  padding: 0.75rem 1.5rem; border-radius: 0 0 8px 8px;
  z-index: 10000; font-size: 0.85rem; font-weight: 600;
  transition: top 0.3s ease;
}
.skip-to-content:focus { top: 0; }

/* ---- Cursor Glow ---- */
.cursor-glow {
  position: fixed;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 81, 91, 0.05) 0%, transparent 65%);
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform; opacity: 0;
  transition: opacity 0.5s ease;
}
.cursor-glow.active { opacity: 1; }
@media (max-width: 968px) { .cursor-glow { display: none; } }

/* ---- Scroll Progress ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--teal), var(--accent-bright));
  z-index: 10001; border-radius: 0 2px 2px 0;
}

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---- Typography ---- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  background: var(--gradient-chrome);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* ---- Scroll Reveal (Motion) ---- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ============================================
   MARQUEE TICKER
   ============================================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-dim);
  padding: 0 2rem;
  white-space: nowrap;
  transition: all 0.4s ease;
  user-select: none;
}

.marquee-item.filled {
  color: var(--white);
  -webkit-text-stroke: 0;
}

.marquee-item .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 2rem;
  vertical-align: middle;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 1.25rem 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(8, 6, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.nav .container {
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.nav.scrolled .nav-logo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 2.25rem; list-style: none; align-items: center;
}

.nav-links a {
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: transparent;
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-hover);
  transition: all 0.3s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-toggle {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 4px;
  background: none; border: none;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white); transition: all 0.3s ease; display: block;
}

/* Language Toggle */
.lang-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: transparent; cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-left: 0.5rem;
}
.lang-toggle:hover {
  border-color: var(--teal);
  background: var(--teal-subtle);
}
.lang-toggle-label {
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.05em; color: var(--text-secondary);
  pointer-events: none; transition: all 0.3s ease;
}
.lang-toggle:hover .lang-toggle-label { color: var(--white); }
.lang-toggle.switching { animation: toggle-pulse 0.4s var(--ease-spring); }
@keyframes toggle-pulse {
  0% { transform: scale(1); } 50% { transform: scale(0.85); } 100% { transform: scale(1); }
}

/* ============================================
   HERO SECTION — HYPER-STYLE
   Giant transparent text behind + asymmetric layout
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 100px;
  padding-bottom: 40px;
  background: var(--gradient-hero);
}

/* Subtle gradient orbs */
.hero::before {
  content: ''; position: absolute;
  top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212, 81, 91, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  animation: orb-pulse 12s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: ''; position: absolute;
  bottom: -30%; left: -15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(62, 205, 181, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  animation: orb-pulse 16s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes orb-pulse {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(20px, -20px) scale(1.1); opacity: 1; }
}

/* Giant transparent text behind (BLOCKCHAIN effect) */
.hero-giant-text {
  position: absolute;
  top: 8%;
  left: -2%;
  right: -2%;
  font-family: var(--font-hero);
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 240, 235, 0.08);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, rgba(212,81,91,0.06), rgba(62,205,181,0.04), rgba(212,81,91,0.06));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero .container {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 0; align-items: center;
  position: relative; z-index: 1;
  isolation: isolate;
}

.hero-content { max-width: 700px; position: relative; z-index: 10; overflow: visible; }

.hero-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.75rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(62, 205, 181, 0.2);
  border-radius: 50px;
  background: rgba(62, 205, 181, 0.06);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  background: var(--gradient-chrome);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
  z-index: 3;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero-tagline .accent {
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
}

.hero-tagline .accent::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-in 1.2s var(--ease) 0.8s forwards;
}

@keyframes underline-in {
  to { transform: scaleX(1); }
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}

/* Hero Stats Row — Hyper-style (small stats under description) */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-stat-label .stat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white-pure);
  letter-spacing: -0.02em;
}

.hero-cta-group {
  display: flex; gap: 1rem; align-items: center;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--gradient-accent);
  color: var(--white-pure);
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 600;
  border-radius: 50px; border: none; cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
  letter-spacing: -0.01em;
}

.btn-primary::before {
  content: ''; position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: btn-shine 3.5s ease-in-out infinite;
}

@keyframes btn-shine {
  0%, 80%, 100% { left: -100%; }
  90% { left: 150%; }
}

.btn-primary:hover {
  background: var(--gradient-accent);
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow), 0 0 60px rgba(212,81,91,0.2);
}

.btn-primary svg {
  width: 16px; height: 16px;
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 500;
  border-radius: 50px;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  letter-spacing: -0.01em;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}

/* Hero Image — Right side, Hyper-style */
.hero-image-wrapper {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}

.hero-image-wrapper::before {
  content: ''; position: absolute;
  inset: 10px;
  background: transparent;
  border-radius: 28px; opacity: 0.3;
  box-shadow: 0 0 80px 40px rgba(212,81,91,0.15), 0 0 80px 40px rgba(62,205,181,0.1);
  z-index: -1;
}

.hero-photo {
  max-width: 650px;
  border-radius: 20px; object-fit: cover;
  aspect-ratio: 3/4;
  border: 1px solid var(--border);
  transition: transform 0.6s var(--ease);
  margin-left: -80px;
}
.hero-photo:hover { transform: scale(1.02); }

.hero-badge {
  position: absolute;
  bottom: 24px; left: -20px;
  background: rgba(8, 6, 10, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; gap: 0.7rem;
  animation: float-badge 5s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-badge-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.hero-badge-text {
  font-size: 0.72rem; color: var(--text-secondary);
}
.hero-badge-text strong {
  display: block; color: var(--white);
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 700;
}

/* ---- Section Connector (Sugarman) ---- */
.section-connector {
  text-align: center; padding: 2.5rem 0;
}

.section-connector .connector-text {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.15em; text-transform: uppercase;
  position: relative; display: inline-block;
}

.section-connector .connector-text::before,
.section-connector .connector-text::after {
  content: ''; position: absolute; top: 50%;
  width: 50px; height: 1px;
}
.section-connector .connector-text::before {
  right: calc(100% + 16px);
  background: linear-gradient(90deg, transparent, var(--border-hover));
}
.section-connector .connector-text::after {
  left: calc(100% + 16px);
  background: linear-gradient(90deg, var(--border-hover), transparent);
}

/* ============================================
   IMPACT — METRICS (Hyper glassmorphic style)
   ============================================ */
.impact {
  padding: var(--section-gap) 0;
  position: relative;
}

.impact::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-deep), var(--teal-deep), transparent);
}

.impact-header { text-align: center; margin-bottom: 4rem; }
.impact-header .section-subtitle { margin: 0 auto; }

.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 2.25rem 1.75rem;
  text-align: center; position: relative; overflow: hidden;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(10px);
}

.metric-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-card-border);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}

.metric-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 50px rgba(0,0,0,0.4);
}
.metric-card:hover::after { transform: scaleX(1); }

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--white-pure), rgba(245,240,235,0.75));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1; margin-bottom: 0.5rem;
  display: block;
  letter-spacing: -0.03em;
}

.metric-label {
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 600;
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem; display: block;
}

.metric-description {
  font-size: 0.82rem; color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================
   EXPERTISE — Hyper Service Cards (3 across)
   ============================================ */
.expertise {
  padding: var(--section-gap) 0;
  position: relative;
  background: var(--gradient-section);
}

.expertise-header { margin-bottom: 3.5rem; }

.expertise-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 2.25rem;
  position: relative; overflow: hidden;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(8px);
}

/* Gradient border effect on hover */
.expertise-card::before {
  content: ''; position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: var(--gradient-card-border);
  border-radius: 21px;
  opacity: 0; z-index: -1;
  transition: opacity 0.4s var(--ease);
}

.expertise-card:hover::before { opacity: 0.4; }

.expertise-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-card);
  border-radius: 19px;
  z-index: -1;
}

.expertise-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.expertise-card-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.4s var(--ease-spring);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.expertise-card:hover .expertise-card-icon {
  transform: scale(1.08);
  border-color: var(--border-hover);
}

.expertise-card-icon svg {
  width: 22px; height: 22px;
  stroke: var(--text-secondary); stroke-width: 1.5; fill: none;
}

/* Colored icon borders on hover */
.expertise-card:nth-child(1):hover .expertise-card-icon {
  border-color: rgba(212, 81, 91, 0.4);
  background: rgba(212, 81, 91, 0.08);
}
.expertise-card:nth-child(1):hover .expertise-card-icon svg { stroke: var(--accent-bright); }

.expertise-card:nth-child(2):hover .expertise-card-icon {
  border-color: rgba(62, 205, 181, 0.4);
  background: rgba(62, 205, 181, 0.08);
}
.expertise-card:nth-child(2):hover .expertise-card-icon svg { stroke: var(--teal); }

.expertise-card:nth-child(3):hover .expertise-card-icon {
  border-color: rgba(232, 99, 109, 0.4);
  background: rgba(232, 99, 109, 0.08);
}
.expertise-card:nth-child(3):hover .expertise-card-icon svg { stroke: var(--accent-bright); }

.expertise-card:nth-child(4):hover .expertise-card-icon {
  border-color: rgba(62, 205, 181, 0.4);
  background: rgba(62, 205, 181, 0.08);
}
.expertise-card:nth-child(4):hover .expertise-card-icon svg { stroke: var(--teal); }

.expertise-card h3 {
  font-size: 1.2rem; color: var(--white);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.expertise-card p {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7;
}

.expertise-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem;
}

.expertise-tag {
  font-size: 0.7rem; font-weight: 500;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem; border-radius: 50px;
  transition: all 0.3s ease;
}

.expertise-card:hover .expertise-tag {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

/* ============================================
   STORY / ABOUT
   ============================================ */
.story {
  padding: var(--section-gap) 0;
  position: relative;
}

.story::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.story .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4.5rem; align-items: start;
}

.story-content { max-width: 520px; }

.story-text {
  font-size: 1.02rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 1.25rem;
}
.story-text strong {
  color: var(--white); font-weight: 600;
}

.story-highlight {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--accent-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  transition: all 0.4s var(--ease);
}

.story-highlight:hover {
  background: rgba(212, 81, 91, 0.16);
  border-left-color: var(--accent-bright);
  transform: translateX(4px);
}

.story-highlight p {
  font-size: 1rem; color: var(--white);
  font-style: italic; line-height: 1.7;
}

/* ============================================
   JOURNEY TIMELINE — Harmonized & Clean
   ============================================ */
.journey {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
  padding-top: 0.5rem;
}

/* Single clean vertical line */
.journey::before {
  content: ''; position: absolute;
  left: 24px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(245, 240, 235, 0.1);
}

.journey-item {
  display: flex; gap: 1.5rem;
  padding: 1.5rem 0; position: relative;
  transition: all 0.35s var(--ease);
}

.journey-item:hover {
  transform: translateX(4px);
}

/* Uniform dots — all same accent color with ring style */
.journey-dot {
  width: 10px; height: 10px; min-width: 10px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--accent);
  margin-top: 6px; position: relative; z-index: 1;
  margin-left: 20px;
  transition: all 0.35s var(--ease);
}

.journey-item:hover .journey-dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.25);
}

/* First item (current role) — filled + pulse */
.journey-item:first-child .journey-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 81, 91, 0.15);
  animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212, 81, 91, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(212, 81, 91, 0.08); }
}

/* Last item — same accent color */
.journey-item:last-child .journey-dot {
  border-color: var(--accent);
}
.journey-item:last-child:hover .journey-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.journey-info h4 {
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}
.journey-period {
  font-size: 0.72rem; color: var(--teal);
  font-weight: 500; letter-spacing: 0.02em;
}
.journey-role {
  font-size: 0.8rem; color: var(--text-dim); margin-top: 0.15rem;
  letter-spacing: 0.01em;
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.philosophy {
  padding: var(--section-gap) 0;
  text-align: center; position: relative; overflow: hidden;
}

.philosophy::before {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212, 81, 91, 0.08) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}

.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  max-width: 750px;
  margin: 0 auto 3rem;
  position: relative; z-index: 1;
  letter-spacing: -0.02em;
}

.philosophy-quote::before {
  content: '"';
  font-size: 7rem; color: var(--accent);
  position: absolute;
  top: -2.5rem; left: -1rem;
  line-height: 1; opacity: 0.3;
}

.philosophy-values {
  display: flex; justify-content: center;
  gap: 0.75rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}

.philosophy-value {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-secondary);
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  transition: all 0.4s var(--ease);
  cursor: default;
}

.philosophy-value:hover {
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 81, 91, 0.15);
}

/* ============================================
   TECH STACK
   ============================================ */
.stack {
  padding: var(--section-gap) 0;
  position: relative;
}

.stack::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.stack-header { text-align: center; margin-bottom: 2.5rem; }

.stack-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.75rem;
  max-width: 800px; margin: 0 auto;
}

.stack-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: transparent;
  border: none;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.stack-item:hover {
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(62, 205, 181, 0.12);
}

.stack-item-dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--teal);
  transition: transform 0.3s var(--ease-spring);
}
.stack-item:hover .stack-item-dot { transform: scale(1.5); }
.stack-item:nth-child(odd) .stack-item-dot { background: var(--accent); }

/* ============================================
   CONNECT / CTA
   ============================================ */
.connect {
  padding: var(--section-gap) 0;
  text-align: center; position: relative; overflow: hidden;
}

.connect::before {
  content: ''; position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(212,81,91,0.12) 0%, rgba(62,205,181,0.08) 40%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

.connect-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  background: var(--gradient-chrome);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
  letter-spacing: -0.03em;
}

.connect-subtitle {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  position: relative; z-index: 1;
}

.connect-buttons {
  display: flex; justify-content: center;
  gap: 1rem; margin-bottom: 2.5rem;
  position: relative; z-index: 1;
}

.connect-location {
  font-size: 0.82rem; color: var(--text-dim);
  position: relative; z-index: 1;
}
.connect-location svg {
  width: 14px; height: 14px;
  vertical-align: middle; margin-right: 0.3rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  font-size: 0.78rem; color: var(--text-dim);
  font-family: var(--font-display); font-weight: 400;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center; gap: 2.5rem;
  }
  .hero-content { max-width: 100%; order: 2; }
  .hero-image-wrapper { order: 1; }
  .hero-giant-text {
    font-size: clamp(4rem, 12vw, 7rem);
    top: 5%;
  }
  .hero-photo {
    max-width: 260px;
    aspect-ratio: 1;
    border-radius: 50%;
  }
  .hero-badge {
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
  }
  @keyframes float-badge {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
  }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .story .container { grid-template-columns: 1fr; gap: 3rem; }
  .story-content { max-width: 100%; }
  .marquee-item { font-size: clamp(2rem, 5vw, 3.5rem); }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 6, 10, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: center;
    justify-content: center; gap: 2rem;
  }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 1001; }
  .lang-toggle {
    position: absolute; right: 70px;
    top: 50%; transform: translateY(-50%);
    z-index: 1001;
  }
  .lang-toggle:hover { transform: translateY(-50%) translateY(-1px); }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .metrics-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 200px; }
  .hero-badge { display: none; }
  .hero-giant-text { font-size: 4rem; top: 3%; }
  .hero-stats { gap: 1.5rem; }
  .connect-buttons { flex-direction: column; align-items: center; }
  .marquee { padding: 1.25rem 0; }
}

/* ---- Grain Overlay ---- */
body::after {
  content: ''; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02; mix-blend-mode: overlay;
}

/* ---- Smooth Load ---- */
@keyframes page-in {
  from { opacity: 0; } to { opacity: 1; }
}
body { animation: page-in 0.6s ease; }

/* ---- Vignette Overlay ---- */
body::before {
  content: ''; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 9997;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(8,6,10,0.65) 100%);
}

/* ---- Stack Item Glow Animation ---- */
.stack-item {
  position: relative;
  overflow: hidden;
}

.stack-item::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 70%, rgba(62,205,181,0.5) 75%, transparent 80%, transparent 100%);
  animation: stack-border-spin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stack-item:nth-child(1)::before { animation-delay: 0s; animation-duration: 3s; }
.stack-item:nth-child(2)::before { animation-delay: 0.7s; animation-duration: 4.2s; }
.stack-item:nth-child(3)::before { animation-delay: 1.3s; animation-duration: 3.5s; }
.stack-item:nth-child(4)::before { animation-delay: 0.3s; animation-duration: 5s; }
.stack-item:nth-child(5)::before { animation-delay: 2.1s; animation-duration: 3.8s; }
.stack-item:nth-child(6)::before { animation-delay: 1.8s; animation-duration: 4.5s; }
.stack-item:nth-child(7)::before { animation-delay: 0.5s; animation-duration: 3.2s; }
.stack-item:nth-child(8)::before { animation-delay: 2.5s; animation-duration: 4.8s; }
.stack-item:nth-child(9)::before { animation-delay: 1.1s; animation-duration: 3.6s; }
.stack-item:nth-child(10)::before { animation-delay: 0.9s; animation-duration: 5.2s; }
.stack-item:nth-child(11)::before { animation-delay: 1.6s; animation-duration: 4.1s; }
.stack-item:nth-child(12)::before { animation-delay: 2.3s; animation-duration: 3.9s; }

.stack-item::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-card);
  border-radius: 50px;
  z-index: 0;
}

.stack-item > * {
  position: relative;
  z-index: 1;
}

.stack-item .stack-item-dot {
  position: relative;
  z-index: 1;
}

@keyframes stack-border-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Random sparkle blink for tool border glow */
@keyframes stack-sparkle {
  0%, 60%, 100% { opacity: 0; }
  70%, 90% { opacity: 1; }
}

.stack-item:nth-child(odd)::before { animation-name: stack-border-spin; }
.stack-item:nth-child(even)::before { animation-name: stack-border-spin; animation-direction: reverse; }

/* Sparkle visible in viewport */
.stack-grid.reveal.visible .stack-item::before {
  animation-name: stack-border-spin, stack-sparkle;
  animation-duration: inherit, 6s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

.stack-item:nth-child(1)::before { animation: stack-border-spin 3s linear infinite, stack-sparkle 5s ease-in-out 0.2s infinite; }
.stack-item:nth-child(2)::before { animation: stack-border-spin 4.2s linear infinite reverse, stack-sparkle 7s ease-in-out 1.5s infinite; }
.stack-item:nth-child(3)::before { animation: stack-border-spin 3.5s linear infinite, stack-sparkle 4.5s ease-in-out 0.8s infinite; }
.stack-item:nth-child(4)::before { animation: stack-border-spin 5s linear infinite reverse, stack-sparkle 6s ease-in-out 2.3s infinite; }
.stack-item:nth-child(5)::before { animation: stack-border-spin 3.8s linear infinite, stack-sparkle 8s ease-in-out 0.5s infinite; }
.stack-item:nth-child(6)::before { animation: stack-border-spin 4.5s linear infinite reverse, stack-sparkle 5.5s ease-in-out 3.1s infinite; }
.stack-item:nth-child(7)::before { animation: stack-border-spin 3.2s linear infinite, stack-sparkle 6.5s ease-in-out 1.2s infinite; }
.stack-item:nth-child(8)::before { animation: stack-border-spin 4.8s linear infinite reverse, stack-sparkle 7.5s ease-in-out 2.8s infinite; }
.stack-item:nth-child(9)::before { animation: stack-border-spin 3.6s linear infinite, stack-sparkle 4.8s ease-in-out 0.3s infinite; }
.stack-item:nth-child(10)::before { animation: stack-border-spin 5.2s linear infinite reverse, stack-sparkle 6.2s ease-in-out 1.9s infinite; }
.stack-item:nth-child(11)::before { animation: stack-border-spin 4.1s linear infinite, stack-sparkle 5.8s ease-in-out 3.5s infinite; }
.stack-item:nth-child(12)::before { animation: stack-border-spin 3.9s linear infinite reverse, stack-sparkle 7.2s ease-in-out 0.7s infinite; }

/* Mobile fix: hero overlap */
@media (max-width: 968px) {
  .hero-photo { margin-left: 0; }
  .hero .container { gap: 2rem; }
}

