/* 
 * PREXIM CO. LTD - Modern Web Styling System
 * Futuristic Medical Aesthetic Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Color Design System (HSL Variables) */
:root {
  /* Dark Theme Default Palette */
  --bg-base: 224 25% 6%;
  --bg-surface: 224 20% 10%;
  --bg-surface-glow: 224 20% 14%;
  
  --text-primary: 0 0% 98%;
  --text-secondary: 224 10% 70%;
  --text-muted: 224 8% 50%;
  
  --accent-teal: 184 100% 47%;       /* #00f2fe - Clinical trust & tech */
  --accent-violet: 260 95% 66%;      /* #7f56f8 - Premium luxury */
  --accent-success: 142 70% 45%;     /* Available / CE Certified */
  --accent-error: 350 80% 55%;       /* Warning indicators */

  --border-color: 224 20% 16%;
  --border-glow: 184 100% 47% / 0.15;
  --shadow-glow: 184 100% 47% / 0.1;
  --glass-blur: 16px;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Light Theme Overrides */
.light-theme {
  --bg-base: 220 30% 97%;
  --bg-surface: 0 0% 100%;
  --bg-surface-glow: 220 20% 93%;
  
  --text-primary: 224 25% 12%;
  --text-secondary: 224 12% 38%;
  --text-muted: 224 10% 55%;
  
  --border-color: 220 20% 87%;
  --border-glow: 210 100% 35% / 0.12;
  --shadow-glow: 210 100% 35% / 0.05;

  /* Premium clinical blue corporate brand colors for light theme */
  --accent-teal: 210 100% 35%;       /* #0f59a7 - corporate brand blue */
  --accent-violet: 260 85% 48%;      /* deep violet */
}

/* Global placeholders contrast */
::placeholder {
  color: hsla(var(--text-primary) / 0.45) !important;
  opacity: 1;
}

::-webkit-input-placeholder {
  color: hsla(var(--text-primary) / 0.45) !important;
}

/* Softer glows for light theme background */
.light-theme .hero::after {
  background: radial-gradient(circle, hsla(var(--accent-teal) / 0.08) 0%, transparent 70%) !important;
}

.light-theme .hero::before {
  background: radial-gradient(circle, hsla(var(--accent-violet) / 0.05) 0%, transparent 70%) !important;
}

/* Global resets & styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: hsl(var(--bg-base));
  color: hsl(var(--text-primary));
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition-smooth);
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--bg-base));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--border-color));
  border-radius: 5px;
  border: 2px solid hsl(var(--bg-base));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, hsl(var(--accent-teal)), hsl(var(--accent-violet)));
}

/* Common Layout Components */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* Typography styles */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--accent-teal)), hsl(var(--accent-violet)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-subtitle {
  color: hsl(var(--accent-teal));
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.section-desc {
  color: hsl(var(--text-secondary));
  max-width: 650px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
}

/* Glassmorphism Panels */
.glass-card {
  background: hsla(var(--bg-surface) / 0.65);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid hsla(var(--text-primary) / 0.06);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsla(var(--accent-teal) / 0.05), hsla(var(--accent-violet) / 0.05));
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 0;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: hsla(var(--accent-teal) / 0.3);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3), 0 0 20px 0 hsla(var(--accent-teal) / 0.05);
}

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

.glass-card > * {
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: hsla(var(--bg-base) / 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(var(--text-primary) / 0.06);
  transition: var(--transition-smooth);
}

.navbar-scrolled {
  height: 70px;
  background: hsla(var(--bg-surface) / 0.85);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  transition: var(--transition-smooth);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--text-primary));
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--accent-teal)), hsl(var(--accent-violet)));
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Action Controls (Theme switch, Mobile Menu Trigger) */
.action-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsla(var(--text-primary) / 0.1);
  color: hsl(var(--text-primary));
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: hsla(var(--text-primary) / 0.05);
  border-color: hsl(var(--accent-teal));
  color: hsl(var(--accent-teal));
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
.light-theme .theme-toggle-btn .sun-icon { display: block; }
.light-theme .theme-toggle-btn .moon-icon { display: none; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: hsl(var(--text-primary));
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Slider/Banner Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(var(--accent-teal) / 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(var(--accent-violet) / 0.12) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(var(--accent-teal) / 0.1);
  border: 1px solid hsla(var(--accent-teal) / 0.2);
  color: hsl(var(--accent-teal));
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge .live-dot {
  width: 8px;
  height: 8px;
  background-color: hsl(var(--accent-teal));
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px hsl(var(--accent-teal));
  animation: pulse 1.8s infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: hsl(var(--text-secondary));
  margin-bottom: 3rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--accent-teal)), hsl(var(--accent-violet)));
  color: #000;
  box-shadow: 0 8px 30px hsla(var(--accent-teal) / 0.25);
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px hsla(var(--accent-teal) / 0.4);
}

.btn-secondary {
  background: hsla(var(--text-primary) / 0.05);
  color: hsl(var(--text-primary));
  border: 1px solid hsla(var(--text-primary) / 0.1);
}

.btn-secondary:hover {
  background: hsla(var(--text-primary) / 0.1);
  border-color: hsl(var(--accent-teal));
  transform: translateY(-3px);
}

.hero-image-wrap {
  position: relative;
  z-index: 2;
  animation: slideInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-image-border {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid hsla(var(--text-primary) / 0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.hero-image-border:hover .hero-img {
  transform: scale(1.03);
}

/* Showcase & Stats Section combined overlay */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: -4rem;
  z-index: 10;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-title);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, hsl(var(--accent-teal)), hsl(var(--accent-violet)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
  font-weight: 600;
}

/* Category Filter & Device Showcase Section */
.showcase-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
}

.filter-bar {
  display: flex;
  background: hsla(var(--bg-surface-glow) / 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid hsla(var(--text-primary) / 0.08);
  padding: 0.4rem;
  border-radius: 100px;
  gap: 0.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: none;
  border: none;
  color: hsl(var(--text-secondary));
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: hsl(var(--text-primary));
}

.filter-btn.active {
  background: linear-gradient(135deg, hsl(var(--accent-teal)), hsl(var(--accent-violet)));
  color: #000;
  box-shadow: 0 4px 15px hsla(var(--accent-teal) / 0.2);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.device-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.device-img-wrap {
  width: 100%;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-color: rgba(0,0,0,0.15);
  border: 1px solid hsla(var(--text-primary) / 0.05);
  margin-bottom: 1.5rem;
}

.device-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.device-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: hsla(var(--bg-base) / 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: hsl(var(--accent-teal));
  border: 1px solid hsla(var(--accent-teal) / 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.device-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.device-desc {
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.device-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid hsla(var(--text-primary) / 0.06);
  padding-top: 1.25rem;
}

.device-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.avail-dot.green { background-color: hsl(var(--accent-success)); }
.avail-dot.orange { background-color: #f7941d; }

.device-link {
  color: hsl(var(--accent-teal));
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.device-link:hover {
  color: hsl(var(--accent-violet));
  gap: 0.5rem;
}

/* Service / Maintenance Estimator Section */
.estimator-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.estimator-info-img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid hsla(var(--text-primary) / 0.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.estimator-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--text-secondary));
}

.form-control {
  background: hsla(var(--bg-base) / 0.5);
  border: 1px solid hsla(var(--text-primary) / 0.1);
  padding: 1.1rem;
  border-radius: 12px;
  color: hsl(var(--text-primary));
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: hsl(var(--accent-teal));
  background: hsla(var(--bg-base) / 0.8);
  box-shadow: 0 0 15px hsla(var(--accent-teal) / 0.1);
}

select.form-control {
  cursor: pointer;
}

.calc-output {
  margin-top: 1rem;
  border-top: 1px solid hsla(var(--text-primary) / 0.1);
  padding-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.output-box {
  background: hsla(var(--bg-surface-glow) / 0.4);
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid hsla(var(--text-primary) / 0.05);
}

.output-label {
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.output-value {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: hsl(var(--accent-teal));
}

/* Interactive Training Seats Booker */
.training-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
}

.courses-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 16px;
  background: hsla(var(--bg-surface) / 0.4);
  border: 1px solid hsla(var(--text-primary) / 0.05);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.course-item:hover,
.course-item.active {
  border-color: hsla(var(--accent-teal) / 0.3);
  background: hsla(var(--bg-surface) / 0.8);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.course-item.active {
  box-shadow: 0 8px 30px hsla(var(--accent-teal) / 0.08);
}

.course-date {
  background: linear-gradient(135deg, hsl(var(--accent-teal)), hsl(var(--accent-violet)));
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #000;
  font-family: var(--font-title);
}

.course-date .day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.course-date .month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.course-info {
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.course-meta {
  color: hsl(var(--text-muted));
  font-size: 0.85rem;
  display: flex;
  gap: 1rem;
}

.course-seats {
  font-size: 0.9rem;
  font-weight: 700;
  color: hsl(var(--accent-success));
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.course-seats.limited {
  color: hsl(var(--accent-error));
}

.booking-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-summary-header {
  border-bottom: 1px solid hsla(var(--text-primary) / 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
}

.booking-course-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.booking-course-details {
  font-size: 0.9rem;
  color: hsl(var(--text-secondary));
  display: flex;
  gap: 1.5rem;
}

/* FAQ Accordion */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border-radius: 16px;
  background: hsla(var(--bg-surface) / 0.5);
  border: 1px solid hsla(var(--text-primary) / 0.05);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 1.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: hsl(var(--accent-teal));
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  color: hsl(var(--text-secondary));
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.faq-item.active {
  border-color: hsla(var(--accent-teal) / 0.2);
  background: hsla(var(--bg-surface) / 0.85);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.8rem;
}

.faq-chevron {
  transition: var(--transition-smooth);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: hsl(var(--accent-teal));
}

/* Elegant Contact & Live Assist Section */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-meta-list {
  list-style: none;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: hsla(var(--accent-teal) / 0.1);
  border: 1px solid hsla(var(--accent-teal) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--accent-teal));
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-text-box p {
  color: hsl(var(--text-secondary));
}

.interactive-map {
  width: 100%;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid hsla(var(--text-primary) / 0.08);
}

.interactive-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(1.2); /* elegant dark map blend */
}

.light-theme .interactive-map iframe {
  filter: none;
}

/* Modals System styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 650px;
  background: hsl(var(--bg-surface));
  border: 1px solid hsla(var(--text-primary) / 0.1);
  border-radius: 24px;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: hsl(var(--text-muted));
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: hsl(var(--text-primary));
}

.modal-body {
  padding: 3rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* Success Animations */
.success-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: hsla(var(--accent-success) / 0.1);
  border: 2px solid hsl(var(--accent-success));
  color: hsl(var(--accent-success));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: pulse 1.8s infinite;
}

/* Footer structure */
.footer {
  background: hsla(var(--bg-surface) / 0.95);
  border-top: 1px solid hsla(var(--text-primary) / 0.06);
  padding: 5rem 0 2rem 0;
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--text-muted));
}

.footer-links-col h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: hsl(var(--text-primary));
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: hsl(var(--text-muted));
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: hsl(var(--accent-teal));
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid hsla(var(--text-primary) / 0.06);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
}

/* Keyframe animations definition */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 hsla(var(--accent-teal) / 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px hsla(var(--accent-teal) / 0);
  }
  100% {
    box-shadow: 0 0 0 0 hsla(var(--accent-teal) / 0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Media Queries */
@media screen and (max-width: 1024px) {
  .hero-grid, .estimator-layout, .training-grid, .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-image-wrap {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile drawer toggle in final script */
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .stats-bar {
    grid-template-columns: 1fr;
  }
  
  .calc-output {
    grid-template-columns: 1fr;
  }
  
  .course-item {
    grid-template-columns: 60px 1fr;
  }
  
  .course-seats {
    grid-column: 1 / span 2;
    margin-top: 0.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
