/* ============================================================
   CYBER.CZR — PORTFOLIO
   Design: Refined Dark · Circuit Board · Climate-Tech
   ============================================================ */

/* ---------- IMPORTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Background */
  --bg-primary: #07080d;
  --bg-secondary: #0e1018;
  --bg-card: #141622;
  --bg-card-hover: #1a1d2e;
  --bg-elevated: #1e2133;
  --bg-glass: rgba(20, 22, 34, 0.7);

  /* Text */
  --text-primary: #eaedf3;
  --text-secondary: #8b90a0;
  --text-muted: #565a6b;
  --text-inverse: #07080d;

  /* Accents */
  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --accent-hover: #00f0c0;
  --accent-warm: #f5a623;
  --accent-warm-glow: rgba(245, 166, 35, 0.15);
  --accent-blue: #4a8eff;
  --accent-rose: #ff6b8a;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #00d4aa, #4a8eff);
  --gradient-warm: linear-gradient(135deg, #f5a623, #ff6b8a);
  --gradient-hero: linear-gradient(135deg, #00d4aa 0%, #4a8eff 50%, #9b59ff 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(0,212,170,0.3), rgba(74,142,255,0.1));

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(0, 212, 170, 0.3);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.1);

  /* Typography */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  /* Spacing */
  --section-pad: 120px;
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 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-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Circuit board pattern overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    /* Horizontal traces */
    linear-gradient(90deg, transparent 95%, rgba(0,212,170,0.025) 95%, rgba(0,212,170,0.025) 95.15%, transparent 95.15%),
    linear-gradient(90deg, transparent 47%, rgba(74,142,255,0.02) 47%, rgba(74,142,255,0.02) 47.1%, transparent 47.1%),
    /* Vertical traces */
    linear-gradient(0deg, transparent 92%, rgba(0,212,170,0.02) 92%, rgba(0,212,170,0.02) 92.1%, transparent 92.1%),
    linear-gradient(0deg, transparent 38%, rgba(74,142,255,0.015) 38%, rgba(74,142,255,0.015) 38.1%, transparent 38.1%),
    /* Grid dots */
    radial-gradient(circle 1px, rgba(0,212,170,0.06) 1px, transparent 1px),
    /* Diagonal traces */
    linear-gradient(45deg, transparent 49.5%, rgba(0,212,170,0.015) 49.5%, rgba(0,212,170,0.015) 50.5%, transparent 50.5%);
  background-size:
    200px 200px,
    300px 300px,
    200px 200px,
    300px 300px,
    60px 60px,
    400px 400px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

body > * { position: relative; z-index: 1; }

/* ---------- CIRCUIT BOARD ANIMATED CANVAS ---------- */
#circuitCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ---------- DATA STREAM PARTICLES ---------- */
.data-stream {
  position: fixed;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  animation: dataFall linear infinite;
}

@keyframes dataFall {
  0% { opacity: 0; transform: translateY(-100vh); }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(100vh); }
}

/* ---------- CLIMATE-TECH FLOATING ICONS ---------- */
.climate-particle {
  position: fixed;
  font-size: 1.2rem;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  animation: climateDrift 25s infinite ease-in-out;
}

.climate-particle:nth-child(2) { animation-delay: -5s; animation-duration: 30s; }
.climate-particle:nth-child(3) { animation-delay: -10s; animation-duration: 22s; }
.climate-particle:nth-child(4) { animation-delay: -15s; animation-duration: 28s; }
.climate-particle:nth-child(5) { animation-delay: -8s; animation-duration: 26s; }
.climate-particle:nth-child(6) { animation-delay: -18s; animation-duration: 32s; }

@keyframes climateDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.04; }
  25% { transform: translate(40px, -60px) rotate(15deg); opacity: 0.08; }
  50% { transform: translate(-30px, -120px) rotate(-10deg); opacity: 0.05; }
  75% { transform: translate(50px, -60px) rotate(20deg); opacity: 0.07; }
}

/* ---------- NODE PULSE INDICATORS ---------- */
.circuit-node {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 0;
  animation: nodePulse 4s infinite ease-in-out;
}

.circuit-node::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: nodeRing 4s infinite ease-in-out;
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes nodeRing {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(3); }
}

/* ---------- SECTION BACKGROUND ENHANCEMENTS ---------- */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0,212,170,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(74,142,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 20%, rgba(155,89,255,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(0,212,170,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(74,142,255,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.page-hero > * { position: relative; z-index: 1; }

/* Hexagonal pattern on secondary sections */
.section[style*="bg-secondary"]::before,
.section:nth-child(even)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 2px at 30px 30px, rgba(0,212,170,0.04) 2px, transparent 2px),
    radial-gradient(circle 2px at 90px 60px, rgba(74,142,255,0.03) 2px, transparent 2px),
    radial-gradient(circle 2px at 60px 90px, rgba(245,166,35,0.02) 2px, transparent 2px);
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 0;
}

/* Climate-tech glow on cards hover */
.skill-card::after,
.project-card::after,
.timeline-card::after,
.edu-card::after,
.award-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: var(--gradient-accent);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--ease-out);
  filter: blur(20px);
}

.skill-card:hover::after,
.project-card:hover::after,
.timeline-card:hover::after,
.edu-card:hover::after,
.award-card:hover::after {
  opacity: 0.08;
}

/* Animated corner accents on cards */
.skill-card,
.timeline-card,
.edu-card {
  position: relative;
  overflow: hidden;
}

.skill-card > .corner-circuit,
.timeline-card > .corner-circuit {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card:hover > .corner-circuit,
.timeline-card:hover > .corner-circuit {
  opacity: 0.3;
}

/* CTA circuit decoration */
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(0,212,170,0.06) 45%, rgba(0,212,170,0.06) 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(74,142,255,0.04) 45%, rgba(74,142,255,0.04) 55%, transparent 55%),
    radial-gradient(circle 3px, rgba(0,212,170,0.1) 3px, transparent 3px);
  background-size: 40px 40px, 40px 40px, 40px 40px;
  border-radius: 0 var(--radius-xl) 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Footer circuit trace */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    repeating-linear-gradient(90deg,
      var(--accent) 0px, var(--accent) 4px,
      transparent 4px, transparent 20px,
      var(--accent-blue) 20px, var(--accent-blue) 22px,
      transparent 22px, transparent 40px
    );
  opacity: 0.2;
}

.footer {
  position: relative;
}

/* Contact section circuit glows */
.contact-info-card {
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,212,170,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.contact-form {
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(74,142,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- SCANNING LINE ANIMATION ---------- */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  animation: scanDown 8s infinite linear;
}

@keyframes scanDown {
  0% { top: -2px; }
  100% { top: 100%; }
}

/* ---------- PORTFOLIO CARD CIRCUIT CORNERS ---------- */
.portfolio-card-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, var(--bg-card), transparent);
  z-index: 1;
}

.portfolio-card-top::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-top: 2px solid rgba(0,212,170,0.3);
  border-right: 2px solid rgba(0,212,170,0.3);
  border-radius: 0 4px 0 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-card-top::before {
  opacity: 1;
}

/* Loading/sending state for contact form */
.contact-form.sending .btn-primary {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.contact-form.sending .btn-primary::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--text-inverse);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form send error state */
.form-error {
  display: none;
  text-align: center;
  padding: 20px;
  margin-top: 16px;
  background: rgba(255,107,138,0.1);
  border: 1px solid rgba(255,107,138,0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-rose);
  font-size: 0.9rem;
}

.form-error.visible {
  display: block;
}

a { color: var(--accent); text-decoration: none; transition: color 0.3s var(--ease-out); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--text-inverse); }

/* ---------- UTILITY ---------- */
.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  padding: 12px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.nav-brand span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  background: var(--gradient-accent) !important;
  color: var(--text-inverse) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  position: absolute;
  left: 0;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.4s var(--ease-out);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    width: 100%;
    font-size: 1.05rem;
    padding: 12px 16px;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
    z-index: 999;
  }

  .mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 var(--section-pad);
  position: relative;
  overflow: hidden;
}

/* Hero ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -100px;
  right: -100px;
  opacity: 0.08;
  animation-delay: -5s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  bottom: -50px;
  left: -100px;
  opacity: 0.06;
  animation-delay: -10s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-warm);
  top: 50%;
  left: 50%;
  opacity: 0.04;
  animation-delay: -15s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

.hero-content {
  max-width: 750px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: var(--accent-glow);
}

.hero-label .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 400;
}

.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
}

/* Value Proposition Line */
.hero-value-prop {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-value-prop .value-metric {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Button Icon */
.btn-icon {
  font-size: 1.1em;
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

/* Current Focus Strip */
.current-focus {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.focus-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.focus-items {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.focus-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  position: relative;
}

.focus-dot.active {
  background: var(--accent);
  animation: focusPulse 2s infinite;
}

@keyframes focusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.focus-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Stat Highlight */
.hero-stat.stat-highlight h3 {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Project Impact Text */
.project-impact {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Problem-Solution Cards */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.problem-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.problem-icon {
  font-size: 1.8rem;
}

.problem-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 100px;
}

.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

.solution-block {
  background: rgba(0, 212, 170, 0.03);
  border: 1px solid rgba(0, 212, 170, 0.1);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.solution-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.solution-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.solution-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.solution-metrics .metric {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border-radius: 100px;
  color: var(--text-secondary);
}

/* Process Timeline */
.process-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-blue), transparent);
}

.process-step {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: 8px;
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.step-deliverables {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-deliverables li {
  font-size: 0.78rem;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.step-deliverables li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

/* Proof Section */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
}

.proof-card:hover {
  border-color: var(--border-hover);
}

.proof-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* Outcomes Card */
.outcome-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outcome-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.outcome-metric {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 80px;
}

.outcome-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Sectors Card */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sector-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.sector-icon {
  font-size: 1.3rem;
}

.sector-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Data Scale Card */
.data-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.data-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.data-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.data-info {
  display: flex;
  flex-direction: column;
}

.data-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.data-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Africa-First Card */
.africa-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.africa-lead {
  margin-bottom: 16px;
  font-weight: 500;
}

.africa-stack {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.africa-stack li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.africa-stack li:last-child {
  border-bottom: none;
}

.africa-stack li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.africa-stack strong {
  color: var(--text-primary);
}

.africa-context {
  font-style: italic;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-quote {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-quote p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.author-org {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Enhanced CTA */
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}

.cta-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.meta-dot.available {
  background: var(--accent);
  animation: focusPulse 2s infinite;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--text-inverse);
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: var(--text-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
  gap: 4px;
}

/* Contact Item with Copy Button */
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item .btn-small {
  margin-left: auto;
  flex-shrink: 0;
}

.contact-item .btn-small.copied {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent);
}

/* Hero stats row */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- SECTION HEADINGS ---------- */
.section { padding: var(--section-pad) 0; }

.section-header {
  margin-bottom: 64px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ---------- SKILLS GRID (Home) ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.skill-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-card:hover::before { opacity: 1; }

.cfo-panel {
  background: rgba(0, 212, 170, 0.09);
  border: 1px solid rgba(0, 212, 170, 0.16);
  border-radius: var(--radius-md);
  padding: 32px;
}

.cfo-panel h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.cfo-panel p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.cfo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cfo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 170, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 170, 0.22);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.cfo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.cfo-card h3 {
  margin-bottom: 14px;
}

.cfo-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cfo-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: var(--text-secondary);
}

.cfo-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.cfo-card li::before {
  content: '•';
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.3;
  margin-top: 3px;
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.skill-icon.teal { background: var(--accent-glow); color: var(--accent); }
.skill-icon.warm { background: var(--accent-warm-glow); color: var(--accent-warm); }
.skill-icon.blue { background: rgba(74,142,255,0.15); color: var(--accent-blue); }
.skill-icon.rose { background: rgba(255,107,138,0.15); color: var(--accent-rose); }

.skill-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.skill-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ---------- FEATURED PROJECTS (Home) ---------- */
.projects-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.project-card-image .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.project-card-image .placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(10,10,14,0.7) 100%);
}

.project-card-image .placeholder-img.climate { background: linear-gradient(135deg, #0a3d2e, #0d5c3f); }
.project-card-image .placeholder-img.climate.bg-agrisense { background-image: url('../assets/images/agrisense.png'); }
.project-card-image .placeholder-img.climate.bg-agrisense2 { background-image: url('../assets/images/agrisense2.png'); }

.project-card-image .placeholder-img.fintech { background: linear-gradient(135deg, #1a1a4e, #2d1b69); }
.project-card-image .placeholder-img.fintech.bg-fintech { background-image: url('../assets/images/fintech.png'); }

.project-card-image .placeholder-img.education { background: linear-gradient(135deg, #1b3a5c, #2a5a8c); }
.project-card-image .placeholder-img.education.bg-stalloyceedu { background-image: url('../assets/images/stalloyceedu.png'); }
.project-card-image .placeholder-img.education.bg-aiq { background-image: url('../assets/images/aiq.png'); }

.project-card-image .placeholder-img.ecommerce { background: linear-gradient(135deg, #4a2c0a, #6d4c1d); }
.project-card-image .placeholder-img.ecommerce.bg-tlcsolar { background-image: url('../assets/images/tlcsolar.png'); }

.project-card-image .placeholder-img.creative { background: linear-gradient(135deg, #2a0a2e, #4a1a5e); }
.project-card-image .placeholder-img.creative.bg-kluxxe { background-image: url('../assets/images/kluxxe.png'); }

.project-card-image .placeholder-img.services { background: linear-gradient(135deg, #0a2e3d, #1a4e6d); }
.project-card-image .placeholder-img.services.bg-wash { background-image: url('../assets/images/wash.png'); }
.project-card-image .placeholder-img.services.bg-zawadi { background-image: url('../assets/images/zawadi.png'); }
.project-card-image .placeholder-img.services.bg-sas { background-image: url('../assets/images/sas.png'); }
.project-card-image .placeholder-img.services.bg-ridograph { background-image: url('../assets/images/ridograph.jpg'); }

.project-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.project-card-body {
  padding: 24px;
}

.project-card-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(0,212,170,0.15);
}

/* ---------- ABOUT PAGE ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-avatar {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  position: relative;
  overflow: hidden;
}

.about-avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Education cards */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
}

.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.edu-card .edu-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.edu-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.edu-card .edu-institution {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.edu-card ul {
  list-style: none;
  padding: 0;
}

.edu-card ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.edu-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* Skills visualization */
.skills-bars { max-width: 700px; }

.skill-bar-item {
  margin-bottom: 24px;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-bar-label span:first-child {
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-bar-label span:last-child {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.skill-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient-accent);
  width: 0;
  transition: width 1.5s var(--ease-out);
}

/* ---------- PORTFOLIO PAGE ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.portfolio-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-card-top {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio-card-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(10,10,14,0.8) 100%);
}

.portfolio-card-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 50%);
}

/* Portfolio page project background images */
.portfolio-card-top.bg-agrisense { background-image: url('../assets/images/agrisense.png'); }
.portfolio-card-top.bg-wash { background-image: url('../assets/images/wash.png'); }
.portfolio-card-top.bg-tlcsolar { background-image: url('../assets/images/tlcsolar.png'); }
.portfolio-card-top.bg-fintech { background-image: url('../assets/images/fintech.png'); }
.portfolio-card-top.bg-stalloyceedu { background-image: url('../assets/images/stalloyceedu.png'); }
.portfolio-card-top.bg-aiq { background-image: url('../assets/images/aiq.png'); }
.portfolio-card-top.bg-kluxxe { background-image: url('../assets/images/kluxxe.png'); }
.portfolio-card-top.bg-zawadi { background-image: url('../assets/images/zawadi.png'); }
.portfolio-card-top.bg-sas { background-image: url('../assets/images/sas.png'); }
.portfolio-card-top.bg-ridograph { background-image: url('../assets/images/ridograph.png'); }
.portfolio-card-top.bg-agrisense2 { background-image: url('../assets/images/agrisense2.png'); }


.portfolio-card-content {
  padding: 24px;
}

.portfolio-card-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-card-content .project-type {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.portfolio-card-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.portfolio-impact {
  padding: 16px;
  background: rgba(0,212,170,0.05);
  border: 1px solid rgba(0,212,170,0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.portfolio-impact span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.portfolio-impact p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- EXPERIENCE TIMELINE ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-blue), var(--border));
}

.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 64px;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg-primary);
  z-index: 2;
}

.timeline-item:first-child .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(0,212,170,0.4);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.timeline-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-card .company {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.timeline-card .industry-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 20px;
}

.timeline-card .details-group {
  margin-bottom: 20px;
}

.timeline-card .details-group h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-warm);
  margin-bottom: 10px;
}

.timeline-card ul {
  list-style: none;
  padding: 0;
}

.timeline-card ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.timeline-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- CONTACT PAGE ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info-card h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-info-card > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-item-text a {
  color: var(--accent);
  text-decoration: none;
}

.contact-item-text a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--accent-rose);
  font-size: 0.85rem;
  margin-top: 12px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  text-align: center;
  padding: 40px;
  display: none;
}

.form-success.visible {
  display: block;
  animation: fadeIn 0.5s ease;
}

.form-success .checkmark {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-brand span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---------- PAGE HERO (Sub-pages) ---------- */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ---------- AWARDS ROW ---------- */
.awards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s var(--ease-out);
}

.award-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.award-card .year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-warm);
  margin-bottom: 8px;
}

.award-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.award-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}

.cta-banner .btn { position: relative; }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

/* ---------- PROJECT DETAIL PAGE ---------- */
.project-hero {
  padding: 140px 0 60px;
  position: relative;
}

.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 60%, rgba(0,212,170,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(74,142,255,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.project-hero > * { position: relative; z-index: 1; }

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.project-breadcrumb a {
  color: var(--text-secondary);
}

.project-breadcrumb a:hover {
  color: var(--accent);
}

.project-breadcrumb .sep {
  color: var(--text-muted);
}

.project-hero-content {
  max-width: 800px;
}

.project-category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  padding: 6px 16px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: var(--accent-glow);
  margin-bottom: 20px;
}

.project-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.project-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
}

/* Project Meta Row */
.project-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-item .meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.project-meta-item .meta-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Project Highlight Banner */
.project-visual-banner {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 80px;
}

.project-visual-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-primary));
  pointer-events: none;
}

/* Project Visual Banner with Images */
.project-visual-banner.climate {
  background: linear-gradient(135deg, #0a3d2e, #0d5c3f),
              url('../assets/images/agrisense.png') center/cover no-repeat;
  background-blend-mode: overlay;
}

.project-visual-banner.fintech {
  background: linear-gradient(135deg, #1a1a4e, #2d1b69),
              url('../assets/images/fintech.png') center/cover no-repeat;
  background-blend-mode: overlay;
}

.project-visual-banner.ecommerce {
  background: linear-gradient(135deg, #4a2c0a, #6d4c1d),
              url('../assets/images/tlcsolar.png') center/cover no-repeat;
  background-blend-mode: overlay;
}

.project-visual-banner.services {
  background: linear-gradient(135deg, #0a2e3d, #1a4e6d),
              url('../assets/images/wash.png') center/cover no-repeat;
  background-blend-mode: overlay;
}

.project-visual-banner.education {
  background: linear-gradient(135deg, #1b3a5c, #2a5a8c),
              url('../assets/images/stalloyceedu.png') center/cover no-repeat;
  background-blend-mode: overlay;
}

.project-visual-banner.creative {
  background: linear-gradient(135deg, #2a0a2e, #4a1a5e),
              url('../assets/images/kluxxe.png') center/cover no-repeat;
  background-blend-mode: overlay;
}

/* Project Content Sections */
.project-section {
  padding: 60px 0;
}

.project-section + .project-section {
  border-top: 1px solid var(--border);
}

.project-section-header {
  margin-bottom: 32px;
}

.project-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.project-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 800px;
}

.project-text + .project-text {
  margin-top: 16px;
}

/* Two-Column Layout */
.project-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li .feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.9rem;
}

/* Impact/Metrics Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.metric-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.metric-card .metric-value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 6px;
}

.metric-card .metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Tech Stack Detail */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tech-stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s var(--ease-out);
}

.tech-stack-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.tech-stack-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-stack-card h4 span {
  font-size: 1.2rem;
}

.tech-stack-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tech-stack-card .tech-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* Architecture Block */
.architecture-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.architecture-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.architecture-layers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
}

.arch-layer:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}

.arch-layer .layer-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
}

.arch-layer .layer-icon.teal { background: var(--accent-glow); }
.arch-layer .layer-icon.blue { background: rgba(74,142,255,0.15); }
.arch-layer .layer-icon.warm { background: var(--accent-warm-glow); }
.arch-layer .layer-icon.rose { background: rgba(255,107,138,0.15); }

.arch-layer .layer-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.arch-layer .layer-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Challenges / Learnings */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.challenge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s var(--ease-out);
}

.challenge-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.challenge-card .challenge-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.challenge-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.challenge-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Security Highlights */
.security-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.security-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0,212,170,0.04);
  border: 1px solid rgba(0,212,170,0.1);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.security-list li .security-check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Project Nav (Next/Prev) */
.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}

.project-nav-link:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-nav-link .nav-direction {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.project-nav-link .nav-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-nav-link.next {
  text-align: right;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-avatar { max-width: 250px; margin: 0 auto; }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .hero { min-height: auto; padding: 120px 0 80px; }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: space-between;
  }

  .hero-stat {
    flex: 1 1 40%;
    min-width: 0;
  }

  .projects-featured,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn { text-align: center; justify-content: center; }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-banner { padding: 40px 24px; }

  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 56px; }
  .timeline-dot { left: 6px; }

  .filter-bar { gap: 6px; }
  .filter-btn { font-size: 0.78rem; padding: 6px 14px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .edu-grid { grid-template-columns: 1fr; }
  .awards-row { grid-template-columns: 1fr; }

  .project-hero { padding: 120px 0 40px; }
  .project-visual-banner { height: 200px; font-size: 4rem; margin-bottom: 48px; }
  .project-meta { gap: 20px; }
  .project-nav { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .tech-stack-grid { grid-template-columns: 1fr; }
  .challenges-grid { grid-template-columns: 1fr; }
  .security-list { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline::before {
    left: 24px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    padding-left: 0;
  }

  .process-timeline::before {
    display: none;
  }

  .process-step {
    flex-direction: column;
    gap: 16px;
  }

  .step-number {
    align-self: flex-start;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-meta {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .current-focus {
    flex-direction: column;
    align-items: flex-start;
  }

  .focus-items {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }

  .container { width: 92%; }

  .hero h1 { font-size: 2.2rem; }

  .section-title { font-size: 1.8rem; }

  .timeline-card { padding: 24px; }

  .nav-brand { font-size: 1.1rem; }

  .outcome-metric {
    font-size: 1.3rem;
    min-width: 70px;
  }
}

/* ---------- ACCESSIBILITY ---------- */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-orb,
  .data-stream,
  .climate-particle,
  .scan-line,
  .circuit-node,
  .focus-dot.active,
  .meta-dot.available {
    animation: none !important;
  }
}

/* Focus Visible Styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav-links a:focus-visible,
.portfolio-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--text-inverse);
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255, 255, 255, 0.3);
    --text-secondary: #a0a8b8;
    --text-muted: #7a8295;
  }

  .btn-outline {
    border-width: 2px;
  }

  .problem-card,
  .proof-card,
  .testimonial-card,
  .process-step .step-number {
    border-width: 2px;
  }
}

/* Screen Reader Only Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
