/* CSS Variables for Corporate Design System */
:root {
  /* Primary Colors - Monochromatic Blue Theme */
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --primary-dark: #1e40af;
  --primary-darker: #1d4ed8;
  
  /* Secondary Colors */
  --secondary-color: #64748b;
  --secondary-light: #94a3b8;
  --secondary-dark: #475569;
  
  /* Accent Colors */
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --black: #000000;
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #1e293b;
  --bg-light: #f1f5f9;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);
  --gradient-dark-overlay: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  
  /* Shadows - Volumetric UI Elements */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(30, 58, 138, 0.15);
  --shadow-lg: 0 8px 25px rgba(30, 58, 138, 0.2);
  --shadow-xl: 0 15px 35px rgba(30, 58, 138, 0.25);
  --shadow-2xl: 0 25px 50px rgba(30, 58, 138, 0.3);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Typography */
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.35s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Global Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 300;
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-light);
}

.text-decoration-none {
  text-decoration: none !important;
}

/* Global Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  border-color: var(--primary-dark);
  color: var(--white);
}

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

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--primary-color);
}

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

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
}

/* Rounded buttons */
.rounded-pill {
  border-radius: var(--radius-full) !important;
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-fixed);
  transition: var(--transition-base);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  color: var(--primary-color) !important;
  font-weight: 400;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  padding: var(--space-xs) var(--space-sm) !important;
  margin: 0 var(--space-xs);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: var(--gray-100);
}

/* Particle Animation Background */
@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
    opacity: 1;
  }
  66% {
    transform: translateY(-10px) rotate(240deg);
    opacity: 0.5;
  }
}

@keyframes particlePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.9;
  }
}

.particle-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.2) 0%, transparent 50%);
  animation: particleFloat 6s ease-in-out infinite;
  pointer-events: none;
}

.particle-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 60% 70%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 30% 30%, rgba(30, 58, 138, 0.2) 0%, transparent 50%);
  animation: particlePulse 4s ease-in-out infinite;
  animation-delay: -2s;
  pointer-events: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: var(--gradient-overlay);
  color: var(--white);
  overflow: hidden;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.hero-background {
  top: 0;
  left: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-lg);
}

.hero-content p {
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-size: var(--font-size-lg);
  font-weight: 300;
  margin-bottom: var(--space-xl);
}

.hero-buttons {
  gap: var(--space-sm);
}

.stats-widget {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-base);
}

.stats-widget:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stats-number {
  color: var(--white) !important;
  font-family: var(--font-heading);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-label {
  color: var(--white) !important;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Fade up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out;
}

/* Section Spacing */
section {
  padding: var(--space-3xl) 0;
  position: relative;
}

section.bg-light {
  background-color: var(--bg-secondary);
}

/* Card Styles - Volumetric UI */
.card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-base);
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  margin: 0 auto;
}

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

.card-content {
  text-align: center;
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Features Section */
.features-section {
  background: var(--white);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.feature-card {
  height: 100%;
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover::after {
  transform: translateX(0);
}

/* Instructors Section */
.instructors-section {
  background: var(--bg-secondary);
  position: relative;
}

.instructor-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: var(--transition-base);
  text-align: center;
}

.instructor-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.instructor-card .card-image {
  height: 300px;
  position: relative;
  overflow: hidden;
}

.instructor-card .card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: var(--transition-base);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  filter: invert(1) grayscale(100%) brightness(0%);
}

/* Success Stories Section */
.success-stories-section {
  background: var(--white);
  position: relative;
}

.success-story-card {
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: none;
  position: relative;
  overflow: hidden;
}

.success-story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-accent);
}

.success-story-card .card-image {
  height: 250px;
  position: relative;
}

.success-story-card .card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: var(--transition-base);
}

.success-story-card:hover .card-image::after {
  opacity: 1;
}

/* Case Studies Section */
.case-studies-section {
  background: var(--bg-secondary);
  position: relative;
}

.case-study-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: none;
}

.case-study-card .card-image {
  height: 300px;
  position: relative;
}

/* Resources Section */
.resources-section {
  background: var(--white);
}

.resource-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: var(--transition-base);
  text-align: center;
}

.resource-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Contact Section */
.contact-section {
  background: var(--bg-secondary);
  position: relative;
}

.contact-form-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.form-floating {
  position: relative;
}

.form-control {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 16px;
  font-size: var(--font-size-base);
  transition: var(--transition-base);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  outline: none;
}

.form-floating label {
  color: var(--text-muted);
  font-weight: 500;
}

.form-select {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--white);
  transition: var(--transition-base);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.contact-info h5 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.footer-brand h4 {
  color: var(--white);
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
}

.footer h5 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.footer ul li {
  margin-bottom: var(--space-xs);
}

.footer ul li a {
  color: var(--gray-300);
  transition: var(--transition-base);
  font-weight: 400;
}

.footer ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.text-light {
  color: var(--gray-300) !important;
}

/* Success Page Styles */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
}

.success-content {
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-2xl);
}

.success-content h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.success-content p {
  color: var(--white);
  font-size: var(--font-size-lg);
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Privacy and Terms Pages */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
}

.content-page h1,
.content-page h2,
.content-page h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.content-page p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.content-page ul {
  margin-bottom: var(--space-lg);
}

.content-page li {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

/* Read More Links */
.read-more {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: var(--transition-base);
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition-base);
}

.read-more:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* Social Media Icons Styles */
.social-links {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-base);
  font-size: var(--font-size-lg);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Utility Classes */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--white) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
  }
  
  section {
    padding: var(--space-2xl) 0;
  }
  
  .hero-section {
    padding: var(--space-2xl) 0 var(--space-xl);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    position: static;
    width: auto;
    height: auto;
    margin: var(--space-md) var(--space-xs);
    opacity: 0.7;
  }
  
  .stats-widget {
    margin-bottom: var(--space-md);
  }
  
  .card-image {
    height: 200px;
  }
  
  .instructor-card .card-image {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: var(--font-size-base);
  }
  
  .btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-base);
  }
  
  .card-content {
    padding: var(--space-md);
  }
}

/* High DPI Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-background {
    background-size: cover !important;
  }
}

/* Animation Performance */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
  
  body {
    color: black !important;
    background: white !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}