/* ═══════════════════════════════════════════════════════════════════════════
   AYODEJI AKINOLA — AVIATION & AEROSPACE PORTFOLIO
   Theme: Boeing · Sustainable Aviation · Engineering Excellence
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/Sora.ttf') format('truetype');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Boeing-inspired palette */
  --sky-deep: #0a1628;
  --sky-night: #0d1f3c;
  --sky-dusk: #1a365d;
  --sky-horizon: #2563eb;
  --sky-bright: #3b82f6;
  --sky-glow: #60a5fa;
  
  /* Sustainability greens */
  --eco-dark: #065f46;
  --eco-main: #059669;
  --eco-bright: #10b981;
  --eco-glow: #34d399;
  
  /* Metallic tones */
  --metal-dark: #334155;
  --metal-mid: #64748b;
  --metal-light: #94a3b8;
  --metal-shine: #cbd5e1;
  --metal-bright: #e2e8f0;
  --metal-white: #f1f5f9;
  
  /* Accent colors */
  --accent-gold: #fbbf24;
  --accent-orange: #f97316;
  --accent-red: #ef4444;
  --accent-cyan: #06b6d4;
  
  /* Core colors */
  --bg: var(--sky-deep);
  --bg-secondary: var(--sky-night);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Glass effects */
  --glass-bg: rgba(15, 30, 55, 0.75);
  --glass-border: rgba(148, 163, 184, 0.15);
  --glass-shine: rgba(255, 255, 255, 0.05);
  
  /* Shadows */
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.3);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-button: 0 10px 40px -10px rgba(59, 130, 246, 0.5);
  
  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1400px;
  
  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 6rem;
}

body {
  font-family: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATED BACKGROUND
   ───────────────────────────────────────────────────────────────────────────── */
.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Gradient sky layers */
.scene-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 150% 100% at 50% 0%, var(--sky-dusk) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    var(--bg);
}

/* Grid pattern overlay */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 100%);
}

/* Aircraft container */
.aircraft-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Animated aircraft */
.aircraft {
  position: absolute;
  opacity: 0.15;
  filter: blur(0.5px);
}

.aircraft svg {
  width: 100%;
  height: 100%;
  fill: var(--metal-light);
}

.aircraft-1 {
  width: 120px;
  top: 15%;
  animation: flyRight 45s linear infinite;
}

.aircraft-2 {
  width: 80px;
  top: 35%;
  animation: flyRight 55s linear infinite;
  animation-delay: -15s;
  opacity: 0.1;
}

.aircraft-3 {
  width: 60px;
  top: 55%;
  animation: flyRight 70s linear infinite;
  animation-delay: -30s;
  opacity: 0.08;
}

@keyframes flyRight {
  0% { transform: translateX(-200px) translateY(0); }
  25% { transform: translateX(25vw) translateY(-15px); }
  50% { transform: translateX(50vw) translateY(10px); }
  75% { transform: translateX(75vw) translateY(-5px); }
  100% { transform: translateX(calc(100vw + 200px)) translateY(0); }
}

/* Contrails */
.contrail {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: contrailFade 8s ease-out infinite;
}

.contrail-1 {
  width: 300px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.contrail-2 {
  width: 200px;
  top: 40%;
  left: 30%;
  animation-delay: 3s;
}

.contrail-3 {
  width: 250px;
  top: 60%;
  left: 50%;
  animation-delay: 6s;
}

@keyframes contrailFade {
  0%, 100% { opacity: 0; transform: translateX(-100%) scaleX(0.5); }
  50% { opacity: 0.6; transform: translateX(100%) scaleX(1); }
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: particleFloat 20s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-delay: -5s; }
.particle:nth-child(3) { left: 40%; animation-delay: -10s; }
.particle:nth-child(4) { left: 55%; animation-delay: -15s; }
.particle:nth-child(5) { left: 70%; animation-delay: -3s; }
.particle:nth-child(6) { left: 85%; animation-delay: -8s; }

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 0.5;
    transform: translateY(10vh) scale(0.5);
  }
}

/* Radar sweep effect */
.radar-sweep {
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(59, 130, 246, 0.1) 30deg,
    transparent 60deg
  );
  animation: radarSweep 8s linear infinite;
  opacity: 0.5;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT CONTAINERS
   ───────────────────────────────────────────────────────────────────────────── */
.wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

.main-content {
  flex: 1;
  padding: 40px 0 80px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 150;
  padding: .7rem 1rem;
  border-radius: .4rem;
  background: var(--sky-night);
  color: var(--text);
  transform: translateY(calc(-100% - 1rem));
}
.skip-link:focus { transform: none; }
.main-content:focus { outline: none; }

.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease-out);
}

.nav-header.scrolled {
  padding: 12px 0;
  background: rgba(10, 22, 40, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--sky-horizon), var(--eco-bright));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.3));
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
  position: relative;
  z-index: 1;
}

.logo span {
  background: linear-gradient(135deg, var(--text), var(--sky-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navigation links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all 0.3s var(--ease-out);
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::before {
  opacity: 1;
  transform: scale(1);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.logo span, .nav-link span { white-space: nowrap; }

.nav-link span {
  position: relative;
  z-index: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

@media (max-width: 1170px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
  }
  
  .nav-links { max-height: calc(100dvh - 4.5rem); overflow-y: auto; }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: 14px 20px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.hero {
  padding: 60px 0 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* Hero content */
.hero-content {
  animation: fadeInUp 0.8s var(--ease-out) forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s forwards;
  opacity: 0;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--eco-bright);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
  opacity: 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--sky-bright), var(--eco-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--sky-glow);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s forwards;
  opacity: 0;
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
  opacity: 0;
}

/* Hero tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s var(--ease-out) 0.5s forwards;
  opacity: 0;
}

.tag {
  padding: 8px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-glow);
  transition: all 0.3s var(--ease-out);
}

.tag:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.tag.eco {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--eco-bright);
}

.tag.eco:hover {
  background: rgba(16, 185, 129, 0.2);
}

/* Hero buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky-horizon), var(--sky-bright));
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px -10px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
  opacity: 0;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--sky-bright), var(--eco-bright), var(--sky-horizon));
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.5;
  animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 3px solid rgba(0, 0, 0, 0.3);
}

/* Floating stats cards */
.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 10%;
  left: -7%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 20%;
  right: -2%;
  animation-delay: -2s;
}

.floating-card.card-3 {
  bottom: 5%;
  left: -10%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

.floating-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--metal-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.floating-card-value {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky-glow), var(--eco-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 1024px) {
  .floating-card {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION STYLES
   ───────────────────────────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-glow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky-glow), transparent);
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-description {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CARDS & GRID
   ───────────────────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Glass card */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-card), 0 0 40px rgba(59, 130, 246, 0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  transition: all 0.4s var(--ease-out);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(16, 185, 129, 0.3));
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Stats row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

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

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky-glow), var(--eco-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PAGE HEADER
   ───────────────────────────────────────────────────────────────────────────── */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.page-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.page-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.6s var(--ease-out) 0.1s forwards;
  opacity: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ENTRY / TIMELINE CARDS
   ───────────────────────────────────────────────────────────────────────────── */
.entries-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.entry {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--sky-bright), var(--eco-bright));
  opacity: 0;
  transition: opacity 0.3s;
}

.entry:hover {
  transform: translateX(8px);
  border-color: rgba(59, 130, 246, 0.2);
}

.entry:hover::before {
  opacity: 1;
}

.entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.entry-title {
  font-size: 20px;
  font-weight: 700;
}

.entry-date {
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-glow);
}

.entry-body {
  color: var(--text-secondary);
  font-size: 15px;
}

.entry-body ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.entry-body li {
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROJECT CARDS
   ───────────────────────────────────────────────────────────────────────────── */
.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-card);
}

.project-visual {
  height: 180px;
  background: 
    linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 20px,
      rgba(59, 130, 246, 0.03) 20px,
      rgba(59, 130, 246, 0.03) 21px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 20px,
      rgba(59, 130, 246, 0.03) 20px,
      rgba(59, 130, 246, 0.03) 21px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-visual::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
  animation: projectGlow 4s ease-in-out infinite;
}

@keyframes projectGlow {
  0%, 100% { transform: translate(-30%, -30%); }
  50% { transform: translate(30%, 30%); }
}

.project-visual-icon {
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  z-index: 1;
}

.project-content {
  padding: 24px;
}

.project-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--eco-bright);
}

.project-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--eco-bright);
  border-radius: 50%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TWO COLUMN LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CV EMBED
   ───────────────────────────────────────────────────────────────────────────── */
.cv-embed {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
}

/* Beyond the Lab photo journal */
.life-intro {
  padding: 30px 0 36px;
}

.journal-tools, .wall-links, .wall-controls, .lightbox-toolbar, .content-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.journal-tools, .content-actions {
  justify-content: center;
  margin-top: 1.6rem;
}

.wall-links a, .motion-button, .wall-controls button, .lightbox-toolbar button {
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: .55rem 1rem;
  background: var(--glass-bg);
  color: var(--metal-bright);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}

.motion-button {
  border-color: rgba(52, 211, 153, .4);
  color: var(--eco-glow);
}

.wall-links a:hover, .wall-controls button:hover, .motion-button:hover, .lightbox-toolbar button:hover {
  border-color: var(--sky-glow);
  color: white;
}

.journal { padding-top: 1rem; }

.photo-wall {
  padding: clamp(2rem, 5vw, 4.25rem) 0;
  border-bottom: 1px solid var(--glass-border);
}

.photo-wall:last-child { border-bottom: 0; }

.wall-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.wall-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.wall-heading p {
  max-width: 46rem;
  margin-top: .5rem;
  color: var(--metal-light);
}

.wall-controls { flex-wrap: nowrap; }

.wall-window {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--metal-dark) transparent;
  padding: 4px 0 9px;
}

.wall-track, .wall-set {
  display: flex;
  width: max-content;
}

.wall-set {
  --tile-gap: 1rem;
  flex: none;
  gap: var(--tile-gap);
  padding-right: var(--tile-gap);
}

.photo-tile {
  width: clamp(14rem, 23.5vw, 20rem);
  flex: none;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
}

a.photo-tile { cursor: zoom-in; }
a.photo-tile:hover { border-color: var(--sky-glow); }
a.photo-tile:focus-visible {
  outline-offset: -3px;
  outline: 3px solid var(--eco-glow);
}

.tile-image, .pitch-picture {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.tile-caption {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem 1rem .9rem;
}

.tile-title, .tile-caption small { display: block; }

.tile-title {
  font-size: 1rem;
  color: var(--metal-white);
  line-height: 1.35;
}

.tile-caption small {
  margin-top: .15rem;
  color: var(--metal-light);
  font-size: .85rem;
}

.country-flag {
  width: 1.75rem;
  height: 1.16rem;
  object-fit: contain;
  flex: none;
}

.passport { margin-top: .65rem; color: var(--metal-shine); }

.passport summary {
  width: fit-content;
  padding: .5rem 0;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--sky-glow);
}

.country-list {
  list-style: none;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .55rem;
}

.country-list li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  font-size: .875rem;
}

/* An illustrated pitch accompanies the football entry. */
.pitch-picture {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(90deg, #165847 0 12.5%, #1a614e 12.5% 25%);
}

.pitch-lines {
  position: relative;
  width: 84%;
  height: 76%;
  border: 2px solid #b1dcca;
  background: linear-gradient(90deg, transparent calc(50% - 1px), #b1dcca calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

.pitch-lines::before, .pitch-lines::after {
  content: '';
  position: absolute;
  top: 23%;
  bottom: 23%;
  width: 16%;
  border: 2px solid #b1dcca;
}

.pitch-lines::before { left: -2px; }
.pitch-lines::after { right: -2px; }

.pitch-lines i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  border: 2px solid #b1dcca;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.lightbox {
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(76rem, 96vw);
  max-width: 100%;
  max-height: 94vh;
  max-height: 94dvh;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--sky-deep);
  color: var(--metal-white);
  box-shadow: var(--shadow-card);
}

.lightbox::backdrop { background: rgba(4, 10, 19, .92); }
.lightbox-inner { padding: clamp(.65rem, 2vw, 1.3rem); }
.lightbox-toolbar { flex-wrap: nowrap; padding-bottom: .75rem; }
.lightbox-toolbar button { padding: .45rem .85rem; }
.lightbox-close { margin-left: auto; }

#lightbox-count {
  color: var(--metal-light);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}

.lightbox-image {
  width: 100%;
  height: min(65vh, 52rem);
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #070f1a;
}

.lightbox figcaption { padding: .8rem .2rem 0; }
.lightbox figcaption strong, .lightbox figcaption span { display: block; }
.lightbox figcaption span { color: var(--metal-light); }
body.photo-open { overflow: hidden; }

/* ─────────────────────────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-resume { display: flex; justify-content: center; margin-top: 2rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 80px;
}

.contact-value {
  color: var(--text);
  font-weight: 500;
}

.contact-value a {
  color: var(--sky-glow);
  transition: color 0.3s;
}

.contact-value a:hover {
  color: var(--eco-bright);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 22, 40, 0.5);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
}

.footer-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.footer-info a {
  color: var(--sky-glow);
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-link {
  padding: 12px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
}

.footer-link:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   QUICK LINKS / EXPLORE SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
}

.explore-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  color: var(--text);
  transition: border-color .2s ease;
}

.explore-card:hover, .explore-card:focus-visible { border-color: var(--sky-glow); }

.explore-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.explore-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.explore-title { margin-bottom: .65rem; font-size: 1.3rem; }
.explore-text { color: var(--text-secondary); margin-bottom: 1.25rem; }
.explore-link { color: var(--sky-glow); font-weight: 600; margin-top: auto; }
.explore-link span { margin-left: .2rem; }
.explore-card:hover .explore-link, .stat-card:hover .stat-label, .stat-card:focus-visible .stat-label {
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FIND ME CARD
   ───────────────────────────────────────────────────────────────────────────── */
.find-me-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

.find-me-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--sky-glow);
}

.find-me-content {
  font-size: 14px;
  color: var(--text-secondary);
}

.find-me-content a {
  color: var(--eco-bright);
}

/* ─────────────────────────────────────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--sky-glow), var(--eco-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 40px 0;
}

/* Reveal animations for scroll */
.site-js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

.site-js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
.site-js .stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.visible > * { animation: staggerIn 0.6s var(--ease-out) forwards; }
.stagger-children.visible > *:nth-child(1) { animation: staggerIn 0.6s var(--ease-out) 0.1s forwards; }
.stagger-children.visible > *:nth-child(2) { animation: staggerIn 0.6s var(--ease-out) 0.2s forwards; }
.stagger-children.visible > *:nth-child(3) { animation: staggerIn 0.6s var(--ease-out) 0.3s forwards; }
.stagger-children.visible > *:nth-child(4) { animation: staggerIn 0.6s var(--ease-out) 0.4s forwards; }
.stagger-children.visible > *:nth-child(5) { animation: staggerIn 0.6s var(--ease-out) 0.5s forwards; }
.stagger-children.visible > *:nth-child(6) { animation: staggerIn 0.6s var(--ease-out) 0.6s forwards; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE TWEAKS
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    padding: 40px 0 60px;
    min-height: auto;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
  }
  
  .hero-actions {
    flex-direction: column;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--metal-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--metal-mid);
}

/* Selection color */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text);
}

/* Portfolio content and accessible fallbacks */
[hidden] { display: none !important; }

.text-link {
  display: inline-block;
  margin-top: .75rem;
  color: var(--sky-glow);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .22em;
}

a.text-link:hover { color: var(--eco-glow); }
:focus-visible { outline: 2px solid var(--eco-glow); outline-offset: 3px; }

.career-list { list-style: none; }
.career-list li { padding: 1rem 0; border-bottom: 1px solid var(--glass-border); }
.career-list li:last-child { padding-bottom: 0; border: 0; }
.career-date { color: var(--eco-glow); font-size: .875rem; font-weight: 600; }
.career-list h3 { margin: .2rem 0; font-size: 1rem; }
.career-list p { color: var(--text-secondary); }
.profile-note { margin-top: 1.5rem; }
.profile-note p + p { margin-top: .85rem; }
.card-text, .project-text, .entry-body, .explore-text { font-size: 1rem; }
.project-status::before { display: none; }
.project-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.contact-value { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-inner { gap: .75rem; }
  .nav-links { gap: 2px; }
  .nav-link { padding-inline: .65rem; }
}

@media (max-width: 1170px) {
  html:not(.site-js) .nav-inner { flex-wrap: wrap; }
  html:not(.site-js) .nav-toggle { display: none; }
  html:not(.site-js) .nav-links {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0;
    max-height: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 640px) {
  .journal-tools { gap: .75rem; }
  .wall-links { justify-content: center; }
  .wall-links a { padding: .45rem .75rem; }
  .wall-heading { align-items: start; }
  .contact-card { padding: 1.25rem; }
  .contact-item { flex-wrap: wrap; gap: .4rem .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .site-js .reveal, .site-js .stagger-children > * { opacity: 1; transform: none; }
  .scene-bg .aircraft, .contrail, .particles, .radar-sweep { display: none; }
}

/* Role profiles reuse the existing cards, typography and navigation. */
.role-card { display: block; }
.role-card .card-title { color: var(--sky-glow); }
.role-card:hover .card-title, .role-card:focus-visible .card-title { text-decoration: underline; text-underline-offset: .18em; }
.role-intro { padding-top: 1.85rem; }
.role-back { margin-bottom: 1rem; }
.role-back a { font-size: .9rem; font-weight: 600; color: var(--sky-glow); text-decoration: underline; text-underline-offset: .2em; }
.role-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
.role-detail { padding-top: 2.75rem; }
.role-section-title { margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.role-detail .entry-title { margin-bottom: .5rem; }
.role-skills, .topic-list { padding-left: 1.2rem; color: var(--metal-shine); }
.role-skills { margin-bottom: 1.75rem; }
.role-skills li, .topic-list li { margin-bottom: .55rem; }
.role-skills li::marker, .topic-list li::marker { color: var(--eco-glow); }
.role-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.role-actions .text-link { margin-top: 0; }
.dream-story { max-width: 54rem; margin: auto; padding: clamp(1.75rem, 5vw, 3.25rem); }
.dream-story .card-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.dream-story p { margin-top: 1rem; font-size: 1.065rem; color: var(--metal-shine); }
.dream-plans { padding-top: .5rem; }
.dream-invite { text-align: center; padding: 2.5rem; margin-top: 2.5rem; }
.dream-invite .card-text { max-width: 44rem; margin: 0 auto 1.25rem; }

@media (max-width: 860px) {
  .role-layout { grid-template-columns: minmax(0, 1fr); }
}
