@import url(https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

/* Design tokens - Enhanced */
:root {
  --primary: #0a65cc;
  --primary-hover: #0856b3;
  --primary-light: #e7f0ff;
  --on-primary: #ffffff;
  --text-1: #0b1630;
  --text-2: #2b2b2b;
  --text-3: #4a5568;
  --muted: #5a6b8c;
  --surface: #ffffff;
  --surface-2: #f6f9ff;
  --surface-3: #f0f4ff;
  --border: #d6e6ff;
  --border-light: #e2e8f0;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 101, 204, 0.15);
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  
  /* Espacement cohérent amélioré */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Typography scale */
  --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;
  
  /* Breakpoints */
  --bp-sm: 600px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1200px;
}

body {
  font-family: "Titillium Web", sans-serif;
  color: var(--text-1);
  background-color: var(--surface-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
    font-size: 17px;
    letter-spacing: 0.01em;
}

/* App Bar - Enhanced responsive */
.app-bar {
  background-color: var(--surface);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-md);
}

.container.narrow {
  max-width: 900px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 18px);
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand img {
  border-radius: 8px;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Navigation - Enhanced */
nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: var(--space-xs);
}

nav ul li {
  margin-left: 0;
}

nav ul li a {
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  font-size: var(--text-sm);
  position: relative;
  overflow: hidden;
}

nav ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

nav ul li a:hover::before {
  left: 100%;
}

nav ul li a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

nav ul li a.active {
  color: var(--primary);
  background-color: var(--primary-light);
  box-shadow: 0 2px 8px rgba(10, 101, 204, 0.15);
}

/* Mobile Menu Toggle - Enhanced */
.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.menu-toggle:hover {
  background-color: var(--surface-3);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.menu-toggle span {
  top: 22px;
}
.menu-toggle::before {
  top: 16px;
}
.menu-toggle::after {
  bottom: 16px;
}

.menu-toggle.is-open span {
  opacity: 0;
  transform: scale(0);
}
.menu-toggle.is-open::before {
  transform: translateY(6px) rotate(45deg);
  background: var(--primary);
}
.menu-toggle.is-open::after {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--primary);
}

/* Drawer + Scrim - Enhanced */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 48, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
}

.nav-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: -12px 0 40px rgba(10, 101, 204, 0.2);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: var(--space-2xl) var(--space-lg);
  z-index: 999;
  overflow-y: auto;
  border-left: 1px solid var(--border-light);
}

.nav-drawer.open {
  transform: translateX(0);
}

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

.nav-drawer .nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.nav-drawer .nav-list li {
  margin-left: 0;
}

.nav-drawer .nav-list a {
  display: block;
  padding: var(--space-md) var(--space-lg);
  color: var(--text-1);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-drawer .nav-list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(10, 101, 204, 0.1), transparent);
  transition: left 0.5s;
}

.nav-drawer .nav-list a:hover::before {
  left: 100%;
}

.nav-drawer .nav-list a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(10, 101, 204, 0.15);
}

.nav-drawer .nav-list a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(10, 101, 204, 0.2);
  border-left: 4px solid var(--primary);
}

/* Hero Section - Enhanced responsive */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  max-height: 900px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.05);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg, 
    rgba(10, 101, 204, 0.4) 0%, 
    rgba(0, 0, 0, 0.3) 50%, 
    rgba(10, 101, 204, 0.2) 100%
  );
  backdrop-filter: blur(1px);
}

.hero-slide .hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-xl);
  max-width: 900px;
  width: 100%;
  animation: fadeInUp 0.8s ease-out;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #0a65cc;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.05);
}

.hero-nav.prev {
  left: 24px;
}
.hero-nav.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(198, 217, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dots .dot:hover {
  background: rgba(198, 217, 255, 0.9);
  transform: scale(1.2);
}

.hero-dots .dot.active {
  background: #0a65cc;
  width: 28px;
  border-radius: 5px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  font-weight: 400;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* Buttons - Enhanced responsive */
.buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.btn {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: var(--text-base);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-width: 140px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--on-primary);
  box-shadow: 0 8px 24px rgba(10, 101, 204, 0.4);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #074a9a 100%);
  box-shadow: 0 12px 32px rgba(10, 101, 204, 0.5);
  transform: translateY(-3px) scale(1.02);
}

.btn.outline {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn.text {
  color: var(--primary);
  padding: 8px 16px;
}

.btn.text:hover {
  background-color: #e7f0ff;
}

.btn.sm {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.btn.lg {
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 16px;
}

.btn.tonal {
  background: #e7f0ff;
  color: var(--primary);
}

.btn.tonal:hover {
  background: #d6e6ff;
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  background: #f6f9ff;
  border-color: var(--primary);
}

/* Stats Section - Enhanced */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.stat {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
}

.stat .value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat .label {
  font-size: clamp(var(--text-sm), 2.5vw, var(--text-lg));
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* About Section - Enhanced */
.about {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--text-2);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(10,101,204,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.about-header h2 {
  color: var(--primary);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-3);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

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

.about-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.about-text h3 {
  color: var(--primary);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.about-text p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-2);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background: var(--surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
}

.about-stat {
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  transition: transform 0.3s ease;
}

.about-stat:hover {
  transform: translateY(-2px);
}

.about-stat .stat-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.about-stat .stat-label {
  font-size: var(--text-sm);
  color: var(--text-3);
  font-weight: 600;
}

.about-values {
  text-align: center;
}

.about-values h3 {
  color: var(--primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-2xl);
  font-weight: 700;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.value-card {
  background: var(--surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
  transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-card h4 {
  color: var(--primary);
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.value-card p {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  line-height: 1.6;
  color: var(--text-3);
}

.about-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  padding: var(--space-3xl);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.about-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="15" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
  opacity: 0.3;
}

.about-cta > * {
  position: relative;
  z-index: 1;
}

.about-cta h3 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.about-cta p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
}

.cta-buttons .btn.outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.cta-buttons .btn.outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* Cards and Grid - Enhanced responsive */
.section {
  padding: var(--space-3xl) 0;
}

.grid {
  display: grid;
  gap: var(--space-xl);
  width: 100%;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
  .grid.three {
    grid-template-columns: 1fr;
  }
  
  .grid.two {
    grid-template-columns: 1fr;
  }
  
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

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

.card.elevate-2 {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card.elevate-2:hover {
  box-shadow: 0 16px 40px rgba(10, 101, 204, 0.2);
}

.card-media {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-media {
  transform: scale(1.05);
}

.card-body {
  padding: var(--space-xl);
  color: var(--text-2);
}

.card-body h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.card-body h4 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 600;
  line-height: 1.4;
}

.card-body p {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  color: var(--text-3);
}

/* Forms - Enhanced responsive */
form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 100%;
}

/* Newsletter form specific */
form[style*="display:flex"] {
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

label {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--text-base);
  display: block;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

input,
textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  font-family: inherit;
  font-size: var(--text-base);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 101, 204, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
  font-weight: 400;
}

/* Newsletter input specific */
input[type="email"] {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

/* Mobile form optimizations */
@media (max-width: 768px) {
  form[style*="display:flex"] {
    flex-direction: column;
    align-items: stretch;
  }
  
  input[type="email"] {
    min-width: auto;
    max-width: none;
  }
  
  input,
  textarea {
    padding: var(--space-lg);
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Footer */
.footer {
  background: #0b1630;
  color: #cfe3ff;
  padding: 32px 0;
}

.footer a {
  color: #cfe3ff;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 1;
}

.footer .container {
  gap: 16px;
  flex-wrap: wrap;
}

.footer .nav-list {
  gap: 20px;
}

/* Typography refinements - Enhanced hierarchy */
h1 {
  color: var(--text-1);
  line-height: 1.1;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

h2 {
  color: var(--text-1);
  line-height: 1.2;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

h3 {
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-md);
}

h4 {
  color: var(--primary);
  line-height: 1.4;
  font-weight: 600;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  margin-bottom: var(--space-sm);
}

p {
  color: var(--text-2);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

small {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

blockquote {
  color: var(--text-2);
  border-left: 4px solid var(--primary);
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  font-style: italic;
  margin: var(--space-lg) 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-lg);
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  font-family: serif;
}

cite {
  font-style: normal;
  font-weight: 600;
  display: block;
  margin-top: var(--space-sm);
  color: var(--primary);
  font-size: var(--text-sm);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Slider - Enhanced */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  padding: var(--space-xl);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.slider-controls .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-controls .dot:hover {
  background: var(--primary-light);
  transform: scale(1.2);
}

.slider-controls .dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 6px;
}

/* Details/Accordion - Enhanced */
details {
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

details summary {
  font-weight: 600;
  padding: var(--space-md) var(--space-lg);
  user-select: none;
  background: var(--surface);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

details summary::after {
  content: '+';
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

details[open] summary {
  background: var(--primary-light);
  border-color: var(--primary);
  margin-bottom: 0;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

details p {
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-2);
  margin: 0;
  border-top: 1px solid var(--border-light);
}

/* Responsive Breakpoints */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .container {
    width: 92%;
    padding: 0 var(--space-lg);
  }

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

  .hero {
    height: 85vh;
    min-height: 500px;
  }

  .hero-content {
    padding: 0 var(--space-lg);
  }

  .hero-nav {
    width: 44px;
    height: 44px;
  }

  .hero-nav.prev {
    left: var(--space-md);
  }
  .hero-nav.next {
    right: var(--space-md);
  }
  
  .stats {
    padding: var(--space-2xl) 0;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    height: 75vh;
    min-height: 450px;
  }

  .hero-content {
    padding: 0 var(--space-md);
  }

  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 2.75rem);
    margin-bottom: var(--space-md);
  }

  .hero-content p {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    margin-bottom: var(--space-xl);
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .hero-nav.prev {
    left: var(--space-sm);
  }
  .hero-nav.next {
    right: var(--space-sm);
  }

  .hero-dots {
    bottom: var(--space-md);
  }

  .card-media {
    height: 200px;
  }

  .stats {
    padding: var(--space-2xl) 0;
  }

  .about {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .about-main {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .about-stats {
    flex-direction: row;
    justify-content: space-around;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .grid {
    gap: var(--space-lg);
  }

  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .buttons {
    gap: var(--space-sm);
  }
}

/* Mobile devices */
@media (max-width: 600px) {
  .container {
    width: 94%;
    padding: 0 var(--space-sm);
  }

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

  .hero {
    height: 70vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 0 var(--space-sm);
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    margin-bottom: var(--space-sm);
  }

  .buttons{
    align-items: center;
  }
  .hero-content p {
    font-size: clamp(0.875rem, 4vw, 1rem);
    margin-bottom: var(--space-lg);
  }

  .hero-nav {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .hero-nav.prev {
    left: var(--space-xs);
  }
  .hero-nav.next {
    right: var(--space-xs);
  }

  .hero-dots {
    bottom: var(--space-sm);
    gap: var(--space-xs);
  }

  .hero-dots .dot {
    width: 8px;
    height: 8px;
  }

  .hero-dots .dot.active {
    width: 20px;
  }

  .kali {
    display: none;
  }

  nav > ul {
    display: none !important;
  }

  .menu-toggle {
    display: block !important;
  }

  .buttons {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }

  .buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .card-media {
    height: 180px;
  }

  .card-body {
    padding: var(--space-md);
  }

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

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

  .stats {
    padding: var(--space-xl) 0;
  }

  .stat {
    padding: var(--space-md);
  }

  .about {
    padding: var(--space-xl) var(--space-sm);
  }
  
  .about-stats {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .value-card {
    padding: var(--space-lg);
  }
  
  .about-cta {
    padding: var(--space-2xl) var(--space-md);
  }

  .grid {
    gap: var(--space-md);
  }

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

  .footer {
    padding: var(--space-lg) 0;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .footer .nav-list {
    flex-direction: column;
    gap: var(--space-xs);
  }

  form {
    gap: var(--space-sm);
  }

  input,
  textarea {
    padding: var(--space-md);
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .container {
    width: 96%;
    padding: 0 var(--space-xs);
  }

  .hero {
    min-height: 350px;
    height: 65vh;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
  }

  .hero-content p {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .card-body {
    padding: var(--space-sm);
  }

  .section {
    padding: var(--space-lg) 0;
  }
  
  .buttons .btn {
    max-width: 280px;
  }
}

/* Landscape mobile optimization */
@media (max-width: 900px) and (max-height: 500px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 15px;
  }
}

