/* ============================================
   iMedPlex — Design System & Global Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --navy: #1B2A4A;
  --navy-light: #243456;
  --royal-blue: #0056B3;
  --cyan: #009FE3;
  --light-cyan: #00D4FF;
  --cyan-glow: #00E5FF;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --gray-100: #EDF1F7;
  --gray-200: #D8DFE9;
  --gray-300: #B0BBC9;
  --gray-400: #8494A7;
  --gray-500: #5A6A7E;
  --gray-600: #3D4F63;
  --dark: #0F1923;

  /* Functional */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--navy) 0%, var(--royal-blue) 50%, var(--cyan) 100%);
  --gradient-brand-h: linear-gradient(90deg, var(--navy) 0%, var(--royal-blue) 40%, var(--cyan) 75%, var(--light-cyan) 100%);
  --gradient-hero: linear-gradient(160deg, var(--navy) 0%, #102040 40%, var(--royal-blue) 100%);
  --gradient-card: linear-gradient(145deg, var(--white) 0%, var(--off-white) 100%);
  --gradient-cta: linear-gradient(135deg, var(--cyan) 0%, var(--light-cyan) 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(27,42,74,0.85) 0%, rgba(0,86,179,0.7) 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing (8px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 50px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27,42,74,0.06), 0 1px 2px rgba(27,42,74,0.04);
  --shadow-md: 0 4px 16px rgba(27,42,74,0.08), 0 2px 4px rgba(27,42,74,0.04);
  --shadow-lg: 0 10px 40px rgba(27,42,74,0.12), 0 4px 8px rgba(27,42,74,0.06);
  --shadow-xl: 0 20px 60px rgba(27,42,74,0.16), 0 8px 16px rgba(27,42,74,0.08);
  --shadow-glow: 0 0 30px rgba(0,159,227,0.25);
  --shadow-glow-strong: 0 0 50px rgba(0,159,227,0.4);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-600);
  background-color: var(--white);
  overflow-x: hidden;
}

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

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin-bottom: var(--space-4); }

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

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

ul { list-style: none; }

button, input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: none;
  outline: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Section --- */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section--gray {
  background-color: var(--off-white);
}

.section--navy {
  background: var(--gradient-hero);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__header h2 {
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
}

.section__header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
  margin: var(--space-4) auto 0;
}

.section__header p {
  color: var(--gray-400);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.section--navy .section__header p {
  color: rgba(255,255,255,0.75);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.btn--primary {
  background: var(--gradient-cta);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.45);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn--secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--royal-blue);
  border: 2px solid var(--royal-blue);
}

.btn--outline:hover {
  background: var(--royal-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn--sm {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(27,42,74,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__logo img {
  height: 120px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.header__menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__menu a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.header__menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.header__menu a:hover,
.header__menu a.active {
  color: var(--white);
}

.header__menu a:hover::after,
.header__menu a.active::after {
  width: 100%;
}

.header__cta .btn {
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
}

/* Mobile Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0,159,227,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero__content {
  max-width: 600px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0,159,227,0.15);
  border: 1px solid rgba(0,159,227,0.3);
  color: var(--light-cyan);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero__title span {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--light-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-10);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--light-cyan);
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-1);
}

.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__image-wrapper img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.hero__image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,159,227,0.2) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Decorative floating elements */
.hero__float {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
}

.hero__float--1 {
  width: 300px;
  height: 300px;
  background: var(--cyan);
  top: 10%;
  right: -5%;
  animation: float 8s ease-in-out infinite;
}

.hero__float--2 {
  width: 200px;
  height: 200px;
  background: var(--light-cyan);
  bottom: 15%;
  left: 5%;
  animation: float 6s ease-in-out infinite 2s;
}

.hero__float--3 {
  width: 150px;
  height: 150px;
  background: var(--royal-blue);
  top: 30%;
  left: 40%;
  animation: float 10s ease-in-out infinite 1s;
}

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

/* --- About --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

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

.about__image:hover img {
  transform: scale(1.03);
}

.about__text h2 {
  margin-bottom: var(--space-6);
  position: relative;
  display: inline-block;
}

.about__text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}

.about__text p {
  color: var(--gray-500);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.about__mvv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-16);
}

.mvv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.mvv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand-h);
}

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

.mvv-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  color: var(--royal-blue);
}

.mvv-card__icon svg {
  width: 32px;
  height: 32px;
}

.mvv-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.mvv-card p {
  color: var(--gray-500);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* --- Services --- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand-h);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.service-card:hover::after {
  opacity: 1;
}

.service-card__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,86,179,0.08) 0%, rgba(0,159,227,0.08) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, rgba(0,86,179,0.15) 0%, rgba(0,159,227,0.15) 100%);
  transform: scale(1.05);
}

.service-card__icon svg {
  width: 36px;
  height: 36px;
  color: var(--royal-blue);
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.service-card:hover h3 {
  color: var(--royal-blue);
}

.service-card p {
  color: var(--gray-400);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Differentials --- */
.differentials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.diff-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.diff-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.diff-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(0,86,179,0.15) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,212,255,0.2);
}

.diff-card__icon svg {
  width: 36px;
  height: 36px;
  color: var(--light-cyan);
}

.diff-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--white);
}

.diff-card p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Research --- */
.research__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.research__content h2 {
  margin-bottom: var(--space-6);
  position: relative;
  display: inline-block;
}

.research__content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}

.research__content > p {
  color: var(--gray-500);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.research__highlights {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.research__highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--off-white);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.research__highlight:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.research__highlight svg {
  width: 24px;
  height: 24px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.research__highlight p {
  margin-bottom: 0;
  color: var(--gray-600);
  font-weight: 500;
}

.research__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

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

.research__image:hover img {
  transform: scale(1.03);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: var(--space-24) auto;
  max-width: var(--container-max);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner h2 {
  color: var(--white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* --- Contact --- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact__info {
  padding-right: var(--space-8);
}

.contact__info h2 {
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
}

.contact__info h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}

.contact__info > p {
  color: var(--gray-500);
  font-size: var(--text-lg);
  margin-bottom: var(--space-10);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact__detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,86,179,0.1) 0%, rgba(0,159,227,0.1) 100%);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact__detail-icon svg {
  width: 22px;
  height: 22px;
  color: var(--royal-blue);
}

.contact__detail-text h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.contact__detail-text p {
  color: var(--gray-400);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.contact__detail-text a {
  color: var(--royal-blue);
  transition: color var(--transition-fast);
}

.contact__detail-text a:hover {
  color: var(--cyan);
}

/* Contact Form */
.contact__form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy);
}

.form-group label span {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--gray-600);
  background: var(--off-white);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,159,227,0.1);
}

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

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

.contact__form .btn {
  width: 100%;
  padding: var(--space-5);
  font-size: var(--text-lg);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand img {
  height: 40px;
  margin-bottom: var(--space-4);
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer__column h4 {
  color: var(--white);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  position: relative;
  display: inline-block;
}

.footer__column h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--cyan);
  margin-top: var(--space-2);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: var(--light-cyan);
  padding-left: var(--space-2);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-base);
}

.footer__social a:hover {
  background: var(--cyan);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  font-size: var(--text-sm);
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}

.footer__bottom a:hover {
  color: var(--light-cyan);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: all var(--transition-base);
  animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* --- Scroll Animations --- */
/* Content is ALWAYS visible. Animations are purely decorative enhancements. */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.reveal.visible {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.reveal-left.visible {
  animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.reveal-right.visible {
  animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.reveal-scale.visible {
  animation: fadeInScale 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Stagger children */
.reveal-children.visible > *:nth-child(1) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
.reveal-children.visible > *:nth-child(2) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
.reveal-children.visible > *:nth-child(3) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both; }
.reveal-children.visible > *:nth-child(4) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both; }
.reveal-children.visible > *:nth-child(5) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both; }
.reveal-children.visible > *:nth-child(6) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both; }

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 2.75rem;
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__image {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about__image {
    order: -1;
  }

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

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

  .research__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .research__image {
    order: -1;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .contact__info {
    padding-right: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2.25rem;
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.375rem;
    --header-height: 70px;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .container {
    padding: 0 var(--space-5);
  }

  /* Mobile Menu */
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-10);
    gap: var(--space-8);
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .header__nav.open {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }

  .header__menu a {
    font-size: var(--text-lg);
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .mobile-overlay.active {
    display: block;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__stats {
    gap: var(--space-6);
  }

  .hero__stat-number {
    font-size: var(--text-2xl);
  }

  .about__mvv {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .differentials__grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .cta-banner {
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-6);
    margin: var(--space-16) var(--space-5);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    --text-6xl: 1.875rem;
    --text-5xl: 1.5rem;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}
