: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: #64748b;
  --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: transparent;
  color: var(--surface-color);
}

/* 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: 8rem 0 5rem;
  min-height: 100vh;
  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: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

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

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

.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: 3rem;
  margin-top: 3rem;
}

.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); }
}

/* 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: 6rem 0;
  background: var(--surface-color);
}

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

.contact-info {
  background: var(--primary-color);
  color: white;
  padding: 4rem;
  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: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

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

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

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

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

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

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

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

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

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

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  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: 120px;
}

.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 h4 {
  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; /* Add a little extra space at the very bottom */
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 6rem 0 2rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }
  
  .features-grid, .programs-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* 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; /* Will show on scroll via intersection observer or tap if needed, but lets disable mouse hover */
  }
  
  .contact-form-wrapper, .contact-info {
    padding: 2rem 1.5rem;
  }

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

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

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
    justify-content: center;
  }
  
  .stat-num {
    font-size: 1.5rem;
  }
  
  .contact-info h2 {
    font-size: 1.8rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}
