:root {
  --primary-color: #0f172a;
  --primary-light: #1e293b;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --secondary-accent: #f59e0b;
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Typography & Utilities */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

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

.btn-secondary:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--primary-color);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

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

.nav-links a:hover {
  color: var(--accent-color);
}

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

/* Hero Section */
.hero {
  padding: 7rem 0 3rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

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

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero-content h1 span {
  color: var(--accent-color);
  position: relative;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: var(--primary-color);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  border: none;
}

.hero-eyebrow i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badge-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

/* Inner Page Hero (Course Pages) */
.inner-hero {
  padding: 8rem 0 3rem;
  min-height: 40vh;
}

.inner-hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.inner-hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.inner-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Course Info Box */
.course-info-box {
  margin-top: 3rem;
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 20px;
}

.course-info-box h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.course-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Features/Why Us */
.features {
  padding: 6rem 0;
  background: var(--surface-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  background: #fff;
  border-color: rgba(59,130,246,0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transform: rotate(-5deg);
  transition: var(--transition);
}

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

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Programs */
.programs {
  padding: 6rem 0;
  background: var(--bg-color);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  padding: 2.5rem;
  border-top: 5px solid transparent;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent-color);
}

.program-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.program-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.program-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-light);
  font-size: 0.95rem;
}

.program-features li i {
  color: var(--accent-color);
}

/* Gallery / Success */
.gallery {
  padding: 6rem 0;
  background: var(--primary-color);
  color: white;
}

.gallery .section-title {
  color: white;
}

.gallery .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: white;
  font-size: 1.25rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay h3 {
  transform: translateY(0);
}

/* Contact/Lead Gen */
.contact {
  padding: 4rem 0;
  background: var(--surface-color);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  background: var(--primary-color);
  color: white;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  border-radius: 50%;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.contact-info p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.info-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--secondary-accent);
}

.info-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.info-text span {
  color: rgba(255,255,255,0.7);
}

.contact-form-wrapper {
  padding: 2.5rem;
}

.contact-form-wrapper h3 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary-light);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--surface-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 70px;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  border-radius: 12px;
}

/* Footer */
footer {
  background: #0b1120;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: block;
}

.footer-logo span {
  color: var(--accent-color);
}

.footer-col p {
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
}

/* App-like Page Loader */
.app-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.app-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-left-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s all cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    flex-direction: column;
    padding: 2rem 2rem 5rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }
  
  .nav-links .btn {
    margin-top: auto;
    margin-bottom: 2rem;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 6rem 0 2rem;
    min-height: auto;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
  }
  
  .features-grid, .programs-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Inner page hero (course pages) */
  .inner-hero {
    padding: 5rem 0 2rem;
    min-height: auto;
  }

  .inner-hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .inner-hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .inner-hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .inner-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero .hero-eyebrow {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
  }

  /* Course info mobile */
  .course-info-box {
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .course-info-box h3 {
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
  }

  .course-info-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .course-info-grid h4 {
    font-size: 1.05rem !important;
  }

  /* Section spacing */
  .features, .programs, .gallery, .contact {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Program cards compact */
  .program-card {
    padding: 1.5rem;
  }

  .program-card h3 {
    font-size: 1.2rem;
  }

  /* Contact form compact */
  .contact-container {
    border-radius: 16px;
  }

  .contact-form-wrapper, .contact-info {
    padding: 1.5rem;
  }

  .contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .contact-info p {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
  }

  .contact-form-wrapper h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

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

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .form-control {
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  textarea.form-control {
    min-height: 60px;
  }

  .submit-btn {
    padding: 0.75rem;
    font-size: 1rem;
  }

  /* Footer compact */
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  footer {
    padding: 3rem 0 1.5rem;
  }

  /* Native Mobile Tap Feedback */
  .btn:active, 
  .feature-card:active, 
  .program-card:active, 
  .gallery-item:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
    box-shadow: none !important;
  }
  
  /* Disable hover stuck states on mobile */
  .gallery-item:hover img {
    transform: none;
  }
  .gallery-item:hover .gallery-overlay {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .inner-hero-title {
    font-size: 1.5rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
    justify-content: center;
  }
  
  .stat-num {
    font-size: 1.5rem;
  }
  
  .contact-info h2 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .features, .programs, .gallery, .contact {
    padding: 2.5rem 0;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

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

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Sticky Mobile Bottom CTA */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }

  .sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .sticky-call {
    background: var(--surface-color);
    color: var(--primary-color);
    border-right: 1px solid #e2e8f0;
  }

  .sticky-call i {
    color: #25d366;
    font-size: 1.1rem;
  }

  .sticky-book {
    background: var(--accent-color);
    color: white;
  }

  .sticky-btn:active {
    transform: scale(0.97);
  }

  /* Adjust WhatsApp position above sticky bar */
  .whatsapp-float {
    bottom: 75px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    right: 16px;
  }

  /* Add padding to footer so content isn't hidden */
  footer {
    padding-bottom: 5rem !important;
  }
}

@media (min-width: 769px) {
  .whatsapp-float {
    bottom: 30px;
    right: 30px;
  }
}
