/* ============================================
   CodeBridge Academy — Design System & Styles
   ============================================ */

/* ============================================
   CSS VARIABLES — THEME SYSTEM
   ============================================ */
:root {
  /* --- Brand Colors --- */
  --brand-blue: #163B73;
  --brand-blue-rgb: 22, 59, 115;
  --brand-blue-dark: #0F2A52;
  --brand-blue-light: #E8EFF8;
  --brand-orange: #F28C28;
  --brand-orange-rgb: 242, 140, 40;
  --brand-orange-dark: #D97706;
  --brand-orange-light: #FFF3E0;

  /* --- Light Theme --- */
  --bg-primary: #FFFFFF;
  --bg-section: #F8FAFC;
  --bg-card: #FFFFFF;
  --color-primary: var(--brand-blue);
  --color-primary-rgb: var(--brand-blue-rgb);
  --color-primary-dark: var(--brand-blue-dark);
  --color-primary-light: var(--brand-blue-light);
  --color-text: #0F172A;
  --color-text-secondary: #475569;
  --color-accent: var(--brand-orange);
  --color-accent-rgb: var(--brand-orange-rgb);
  --color-accent-dark: var(--brand-orange-dark);
  --color-border: #E2E8F0;
  --color-white: #FFFFFF;
  --color-success: #10B981;
  --color-error: #EF4444;

  /* --- Shadows (Premium) --- */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 20px 40px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 30px 60px rgba(0,0,0,0.06);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 8px 30px rgba(var(--brand-blue-rgb), 0.12), 0 2px 8px rgba(var(--brand-blue-rgb), 0.06);
  --shadow-btn: 0 4px 14px rgba(var(--brand-blue-rgb), 0.25);
  --shadow-btn-hover: 0 8px 25px rgba(var(--brand-blue-rgb), 0.35);

  /* --- Glass & Effects --- */
  --glass-bg: rgba(255,255,255,0.75);
  --glass-border: rgba(255,255,255,0.3);
  --nav-bg: rgba(255,255,255,0.88);
  --hero-gradient: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 40%, #FFF7ED 100%);
  --cta-gradient: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  --accent-gradient: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
  --card-gradient: linear-gradient(180deg, transparent 0%, rgba(var(--brand-blue-rgb), 0.02) 100%);
  --overlay: rgba(255,255,255,0.5);
  --code-bg: #F1F5F9;
  --input-bg: #FFFFFF;
  --footer-bg: #0F172A;
  --footer-text: #CBD5E1;
  --scrollbar-track: #F1F5F9;
  --scrollbar-thumb: #94A3B8;

  /* --- Typography --- */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* --- Border Radius --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --bg-primary: #0F172A;
  --bg-section: #1E293B;
  --bg-card: #1E293B;
  --color-primary: #60A5FA;
  --color-primary-rgb: 96, 165, 250;
  --color-primary-dark: #3B82F6;
  --color-primary-light: #1E3A5F;
  --color-text: #F8FAFC;
  --color-text-secondary: #94A3B8;
  --color-accent: #FBBF24;
  --color-accent-rgb: 251, 191, 36;
  --color-accent-dark: #F59E0B;
  --color-border: #334155;
  --color-white: #FFFFFF;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.5);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15);
  --shadow-card-hover: 0 8px 30px rgba(96,165,250,0.15);
  --glass-bg: rgba(30,41,59,0.8);
  --glass-border: rgba(96,165,250,0.15);
  --nav-bg: rgba(15,23,42,0.95);
  --hero-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #1E293B 100%);
  --cta-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --card-gradient: linear-gradient(180deg, transparent 0%, rgba(96,165,250,0.03) 100%);
  --overlay: rgba(15,23,42,0.6);
  --code-bg: #1E293B;
  --input-bg: #1E293B;
  --footer-bg: #020617;
  --footer-text: #64748B;
  --scrollbar-track: #1E293B;
  --tag-bg: #1E3A5F;
  --tag-text: #93C5FD;
  --tag-border: #1E40AF;
}

[data-theme="dark"] .nav-logo {
  background: transparent !important;
  padding: 0;
}

[data-theme="dark"] .nav-logo img {
  filter: brightness(1.3) invert(0.85);
}

[data-theme="dark"] .program-tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  border-color: var(--tag-border);
}

[data-theme="dark"] select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul { list-style: none; }

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

::selection {
  background: var(--brand-blue);
  color: white;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding: 0.4rem 1.2rem;
  background: rgba(var(--color-primary-rgb), 0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   BUTTONS (Premium)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.80rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

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

.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn-hover);
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn);
}

.btn-accent {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(var(--brand-orange-rgb), 0.35);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--brand-orange-rgb), 0.4);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* ============================================
   NAVBAR (Premium)
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.35s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  z-index: 1001;
}

.nav-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-section);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text);
  transition: all 0.3s ease;
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: rotate(15deg);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  white-space: nowrap;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: all 0.35s ease;
}

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

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

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

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

/* Decorative grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(var(--brand-blue-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-blue-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--brand-blue-rgb), 0.06) 0%, transparent 60%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

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

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(var(--color-primary-rgb), 0.08);
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slogan {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.stat-item .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-code-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease forwards;
}

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

.hero-code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: #EF4444; }
.code-dot.yellow { background: #F59E0B; }
.code-dot.green { background: #10B981; }

.code-body {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.code-body .keyword { color: var(--color-primary); font-weight: 600; }
.code-body .string { color: var(--color-accent); }
.code-body .comment { color: var(--color-text-secondary); opacity: 0.6; }
.code-body .function { color: var(--color-success); }

/* Floating decorative cards around hero */
.float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  animation: float 6s ease-in-out infinite;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.float-card .fc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.float-card-1 {
  top: 5%;
  right: -10%;
  animation-delay: 0s;
}

.float-card-1 .fc-icon {
  background: rgba(var(--brand-blue-rgb), 0.1);
  color: var(--brand-blue);
}

.float-card-2 {
  bottom: 10%;
  left: -10%;
  animation-delay: -3s;
}

.float-card-2 .fc-icon {
  background: rgba(var(--brand-orange-rgb), 0.1);
  color: var(--brand-orange);
}

.float-card-3 {
  bottom: 35%;
  right: -15%;
  animation-delay: -1.5s;
}

.float-card-3 .fc-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

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

.image-wrapper-creative {
  position: relative;
  display: inline-block;
  padding: 1.5rem;
  z-index: 1;
}

.about-image-custom {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-custom:hover {
  transform: translateY(-10px) scale(1.02);
}

.shape-blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 80%;
  background: linear-gradient(135deg, rgba(var(--brand-blue-rgb), 0.12), rgba(var(--brand-orange-rgb), 0.12));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
  animation: blobShape 8s ease-in-out infinite alternate;
}

.shape-dots {
  position: absolute;
  bottom: -20px;
  left: -10px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(var(--brand-blue) 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.3;
  z-index: 0;
  border-radius: 50%;
}

@keyframes blobShape {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
  50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(10deg); }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.about-text p {
  font-size: 1.02rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: rgba(var(--brand-blue-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.2rem;
  color: var(--brand-blue);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--brand-blue);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   PROGRAMS SECTION (Premium)
   ============================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.program-card:nth-child(1)::before { background: linear-gradient(90deg, #3B82F6, #1D4ED8); }
.program-card:nth-child(2)::before { background: linear-gradient(90deg, #F59E0B, #D97706); }
.program-card:nth-child(3)::before { background: linear-gradient(90deg, #10B981, #059669); }

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

.program-card:hover::before {
  height: 5px;
}

.program-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.program-card:nth-child(1) .program-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.program-card:nth-child(2) .program-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.program-card:nth-child(3) .program-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.program-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.program-card .program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.program-tag {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-section);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
}

.program-card:hover .program-tag {
  background: rgba(var(--brand-blue-rgb), 0.06);
  color: var(--brand-blue);
  border-color: rgba(var(--brand-blue-rgb), 0.2);
}

.program-card .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================
   WHY CHOOSE US (Premium)
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
  position: relative;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.why-card:hover::after {
  width: 60%;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(var(--brand-blue-rgb), 0.2);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(var(--brand-blue-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  color: var(--brand-blue);
  transition: all 0.3s ease;
}

.why-card:hover .why-icon {
  background: var(--brand-blue);
  color: #fff;
  transform: rotate(5deg) scale(1.08);
}

.why-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.why-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   AUDIENCE SECTION
   ============================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.audience-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
}

.audience-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--brand-blue-rgb), 0.3);
}

.audience-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-lg);
  background: rgba(var(--brand-blue-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand-blue);
  transition: all 0.3s ease;
}

.audience-card:hover .audience-icon {
  background: var(--brand-blue);
  color: #fff;
  transform: scale(1.1);
}

.audience-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.audience-card p {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

/* ============================================
   TESTIMONIALS (Premium)
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
  color: #F59E0B;
  font-size: 0.9rem;
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--brand-blue);
  opacity: 0.12;
  margin-bottom: -1rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-author h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* ============================================
   LEARNING JOURNEY
   ============================================ */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.journey-step {
  text-align: center;
  position: relative;
}

.journey-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 28px;
  right: -12px;
  font-size: 1.5rem;
  color: var(--brand-orange);
  font-weight: 700;
  opacity: 0.5;
}

.journey-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 25px rgba(var(--brand-blue-rgb), 0.25);
  transition: transform 0.3s ease;
}

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

.journey-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.journey-step p {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ============================================
   TECH STACK WE TEACH
   ============================================ */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-xs);
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.tech-item i {
  font-size: 1.2rem;
  color: var(--brand-orange);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-map {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  background: var(--bg-card);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 400px;
}

.map-address {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.map-address i {
  color: var(--brand-blue);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.map-address p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-info-header p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-lg);
  background: rgba(var(--brand-blue-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--brand-blue);
}

.contact-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.contact-item a:hover {
  color: var(--brand-blue);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-section);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
  transform: translateY(-3px);
}

.contact-logo {
  margin-top: 1.5rem;
  text-align: center;
}

.contact-logo img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER (Premium)
   ============================================ */
.footer {
  background: var(--footer-bg);
  padding: 4rem 0 1.5rem;
  color: var(--footer-text);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange), var(--brand-blue));
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

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

.footer-brand {
  max-width: 300px;
}

.footer-logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  background: white;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--footer-text);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--brand-orange);
  border-radius: var(--radius-full);
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.86rem;
  color: var(--footer-text);
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.82rem;
  color: var(--footer-text);
}

.footer-bottom a {
  color: var(--brand-blue);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: whatsappPulse 2s ease-in-out infinite;
}

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

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--brand-blue);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-btn);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
  z-index: 998;
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn-hover);
}

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

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    max-width: 100%;
  }

  .float-card {
    display: none;
  }

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

  .programs-grid,
  .why-grid,
  .testimonials-grid,
  .mission-grid,
  .about-features {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

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

  .journey-step:not(:last-child)::after {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-left: 1px solid var(--color-border);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .programs-grid,
  .why-grid,
  .testimonials-grid,
  .mission-grid,
  .about-features {
    grid-template-columns: 1fr !important;
  }

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

  .journey-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .back-to-top {
    bottom: 5rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .tech-item {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.about-grid-spacing { margin-bottom: 3rem; }
.mission-grid-spacing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 4rem; }
.mission-title { font-size: 1.2rem; margin-bottom: 1rem; }
.mission-text { font-size: 0.95rem; line-height: 1.7; }
.section-header-values { margin-bottom: 2rem; }
.title-lg { font-size: 2rem; }
.values-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.icon-sm { width: 50px; height: 50px; font-size: 1.2rem; }
.card-wide { grid-column: 1 / -1; max-width: 600px; margin: 0 auto; }
.program-desc { font-size: 0.88rem; color: var(--color-text-secondary); margin-bottom: 1.5rem; line-height: 1.7; }
.flex-col-card { display: flex; flex-direction: column; }
.flex-grow-desc { margin-bottom: 1.5rem; flex-grow: 1; }
.btn-full-width { width: 100%; justify-content: center; }
.map-iframe { border: 0; border-radius: var(--radius-lg); width: 100%; }
.social-links-header { font-size: 0.9rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.75rem; }

/* Internship Focus Areas CSS */
.focus-areas-container {
  text-align: left;
  background: rgba(var(--brand-blue-rgb), 0.04);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .focus-areas-container {
  background: rgba(var(--color-primary-rgb), 0.06);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.focus-areas-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.why-card p.focus-areas-text {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================
   REGISTRATION MODAL STYLES
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--color-text-rgb, 15, 23, 42), 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  width: 95%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: var(--radius-2xl);
  position: relative;
  padding: 3rem 2.5rem;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  transform: translateY(20px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-section);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Progress Bar */
.progress-container {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.progress-bar {
  position: absolute;
  top: 18px;
  left: 10%;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.step-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-section);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.step-indicator.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(var(--brand-blue-rgb), 0.4);
  transform: scale(1.1);
}

.step-indicator.completed {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: transparent;
  position: relative;
}

.step-indicator.completed::after {
  content: '✓';
  position: absolute;
  color: #fff;
  font-size: 1.2rem;
}

/* Form Groups */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-section);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(var(--brand-blue-rgb), 0.1);
}

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--color-error);
  background: rgba(239, 68, 68, 0.03);
}

.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

input.error, select.error, textarea.error {
  border-color: var(--color-error) !important;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radio-group.vertical {
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label, .checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 500 !important;
  color: var(--color-text-secondary) !important;
  transition: color 0.3s ease;
  margin-bottom: 0 !important;
}

.radio-label:hover, .checkbox-label:hover {
  color: var(--brand-blue) !important;
}

.radio-label input, .checkbox-label input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--brand-blue);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.form-group.inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.form-navigation .btn {
  min-width: 120px;
  justify-content: center;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 3000;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toast i {
  font-size: 1.5rem;
  color: var(--color-success);
}

.toast h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0;
}

.toast p {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 1.5rem;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .form-group.inline {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

.form-description-box.full-step {
  border-left: none;
  background: transparent;
  padding: 0;
}

.form-description-box h4 {
  font-size: 1.5rem;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.form-description-box .subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--brand-orange);
}

.info-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.highlight-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.highlight-item i {
  font-size: 1.25rem;
  color: var(--brand-orange);
}

.highlight-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.highlight-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
  font-weight: 600;
}

.fees-section, .discounts-section, .payment-methods, .gains-section {
  margin-bottom: 1.5rem;
}

.fees-section h5, .discounts-section h5, .payment-methods h5, .gains-section h5 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.4rem;
}

.fee-card {
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.discounts-section ul {
  padding-left: 1.25rem;
}

.discounts-section li {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.payment-methods p {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.payment-methods i {
  width: 1.5rem;
  color: var(--brand-blue);
}

.gains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.gains-grid span {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gains-grid i {
  color: var(--color-success);
}

.final-call {
  text-align: center;
  margin-top: 2rem;
  color: var(--brand-orange);
  font-weight: 700;
}

@media (max-width: 600px) {
  .info-highlight-grid, .gains-grid {
    grid-template-columns: 1fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
