/* ================================
   NEXOMEDIS — Main Stylesheet
   Inspired by Skezi.eu design
   ================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #0066FF;
  --color-primary-dark: #0050CC;
  --color-primary-light: #E8F0FE;
  --color-secondary: #00D4AA;
  --color-secondary-dark: #00B894;
  --color-accent: #7C3AED;
  --color-dark: #0F172A;
  --color-heading: #1E293B;
  --color-text: #475569;
  --color-text-light: #94A3B8;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-dark: #0F172A;
  --color-border: #E2E8F0;
  --color-card-bg: #FFFFFF;
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-hero: linear-gradient(135deg, #0066FF 0%, #7C3AED 50%, #00D4AA 100%);
  --gradient-text: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 40px rgba(0,102,255,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  letter-spacing: -0.01em;
  gap: 8px;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,102,255,0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,102,255,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ---------- Section Common ---------- */
section {
  padding: 100px 0;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================
   NAVIGATION
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-heading);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-link--cta {
  background: var(--gradient-primary);
  color: #fff !important;
  padding: 8px 24px;
}

.nav-link--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,102,255,0.3);
  background: var(--gradient-primary);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5px) translateX(5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.shape--1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -150px;
  right: -100px;
  opacity: 0.12;
  animation-delay: 0s;
}

.shape--2 {
  width: 400px;
  height: 400px;
  background: var(--color-secondary);
  bottom: -100px;
  left: -100px;
  opacity: 0.10;
  animation-delay: 2s;
}

.shape--3 {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  top: 40%;
  left: 50%;
  opacity: 0.08;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 24px;
  animation: slideUp 0.8s ease forwards;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  perspective: 1000px;
}

.hero-visual-glow {
  position: absolute;
  inset: 8% -6% -4%;
  background: radial-gradient(circle at 50% 50%, rgba(0,102,255,0.2) 0%, rgba(124,58,237,0.16) 45%, rgba(0,212,170,0.05) 70%, transparent 100%);
  filter: blur(24px);
  z-index: 0;
  animation: pulseGlow 5.5s ease-in-out infinite;
}

.hero-visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(12px, 2vw, 18px);
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(232,240,254,0.62));
  border: 1px solid rgba(0, 102, 255, 0.16);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.45) inset;
  transform: rotateY(-5deg) rotateX(2deg);
  transform-style: preserve-3d;
  z-index: 1;
}

.hero-visual-grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(0,102,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 50%, black 45%, transparent 100%);
  pointer-events: none;
}

.hero-blueprint-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 102, 255, 0.2);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3;
}

.blueprint-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.blueprint-code {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text);
}

.hero-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(0, 102, 255, 0.45);
  z-index: 3;
  pointer-events: none;
}

.hero-corner--tl {
  top: 10px;
  left: 10px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.hero-corner--tr {
  top: 10px;
  right: 10px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.hero-corner--bl {
  bottom: 10px;
  left: 10px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.hero-corner--br {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.hero-illustration {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
  animation: imgReveal 1s ease forwards, floatVisual 8s ease-in-out infinite 1s;
}

.hero-measure {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.hero-measure span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,102,255,0), rgba(0,102,255,0.6), rgba(0,102,255,0));
}

.hero-measure p {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,102,255,0.15);
  border-radius: 999px;
  padding: 4px 10px;
}

.hero-visual-badge {
  position: absolute;
  left: -24px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,102,255,0.18);
  color: var(--color-heading);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: badgeIn 1s ease forwards 0.35s;
  opacity: 0;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
  box-shadow: 0 0 0 6px rgba(0, 212, 170, 0.18);
}

@keyframes imgReveal {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

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

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--color-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 50%;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { top: -50%; }
  100% { top: 100%; }
}

/* ============================
   MISSION SECTION
   ============================ */
.mission {
  background: var(--color-bg-alt);
  position: relative;
}

.mission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-border), transparent);
}

.mission-hero-block {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
}

.mission-hero-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.mission-badge svg {
  width: 18px;
  height: 18px;
}

.mission-hero-text h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--color-heading);
}

.mission-lead {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 16px;
  color: var(--color-text);
}

.mission-hero-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
}

.mission-hero-text strong {
  color: var(--color-heading);
  font-weight: 600;
}

/* Stats Cards */
.mission-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
  transition: all var(--transition-base);
}

.stat-card:hover .stat-icon {
  background: var(--color-primary);
  color: #fff;
}

.stat-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================
   SERVICES
   ============================ */
.services {
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 0.03;
}

.service-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

/* ============================
   ÉQUIPE
   ============================ */
.equipe {
  background: var(--color-bg-alt);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-info {
  padding: 28px;
}

.team-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.team-info p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.team-email {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.team-email:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============================
   ACTUALITÉS / TIMELINE
   ============================ */
.actualites {
  background: var(--color-bg);
  position: relative;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  position: absolute;
  left: -60px;
  top: 0;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 6px var(--color-primary);
  z-index: 2;
}

.date-month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.date-year {
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.85;
}

.timeline-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.timeline-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.timeline-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.timeline-card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16/9;
}

.timeline-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-badge {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.timeline-badge span {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================
   PARTENAIRES
   ============================ */
.partenaires {
  background: var(--color-bg-alt);
  overflow: hidden;
}

.partners-marquee {
  overflow: hidden;
  padding: 24px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.marquee-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}

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

/* ============================
   CONTACT
   ============================ */
.contact {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
}

.contact-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--color-primary);
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Form */
.contact-form {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-heading);
  background: var(--color-bg);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--color-bg-dark);
  color: #CBD5E1;
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94A3B8;
  max-width: 320px;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-links span {
  font-size: 0.9rem;
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #64748B;
}

/* ============================
   REVEAL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal--delay-1 {
  transition-delay: 0.15s;
}

.reveal--delay-2 {
  transition-delay: 0.3s;
}

.reveal--delay-3 {
  transition-delay: 0.45s;
}

/* Animate on load for hero elements */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   COUNTER ANIMATION (stats)
   ============================ */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Card entry animations */
.stat-card, .service-card, .team-card, .timeline-card {
  will-change: transform;
}

/* Smooth hover transitions for interactive elements */
.btn, .nav-link, .team-card, .service-card, .stat-card, .timeline-card {
  will-change: transform, box-shadow;
}

/* Selection color */
::selection {
  background: var(--color-primary);
  color: #fff;
}
