@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --primary: #2563EB;      /* Premium Azure Blue */
  --primary-light: #60A5FA;
  --primary-dark: #1D4ED8;
  --secondary: #1E293B;    /* Space Gray */
  --accent: #F59E0B;       
  
  --bg-main: #F8FAFC;      
  --bg-card: rgba(255, 255, 255, 0.75); /* Translucent glass layer */
  
  --text-main: #475569;
  --text-dark: #0F172A;
  --text-light: #94A3B8;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(37, 99, 235, 0.08), 0 4px 6px -2px rgba(37, 99, 235, 0.04);
  --shadow-xl: 0 25px 35px -5px rgba(37, 99, 235, 0.12), 0 15px 15px -5px rgba(37, 99, 235, 0.05);
  --shadow-popup: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Fluid Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw + 1rem, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw + 0.5rem, 1.5rem); }

p {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.1rem);
  color: var(--text-main);
}

/* Utilities */
.text-primary { color: var(--primary); }
.uppercase { text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.5rem;
  border-radius: 12px; 
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw + 0.2rem, 1rem);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 15px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  color: white;
}

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

.btn-outline:hover {
  background: #f0fdf4;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Header & Mobile Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001; /* Stay above mobile menu */
}

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

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 0.5rem 0;
}

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

/* Hero Section with Mesh Gradient */
.hero {
  padding: clamp(7rem, 10vw, 9rem) 5% 4rem;
  background: 
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 40%),
    linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.hero-label {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-content h1 {
  /* Gradient text fill */
  background: linear-gradient(135deg, var(--text-dark) 40%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero-content p {
  margin-bottom: 2.5rem;
  max-width: 500px;
}

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

.hero-image-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 480px;
  animation: float 6s ease-in-out infinite;
  background: transparent;
  display: block;
  margin: 0 auto;
}

/* Stats Section */
.stats {
  max-width: 1200px;
  margin: -3rem auto 4rem;
  position: relative;
  z-index: 10;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  justify-content: space-around;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.8);
}

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

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* Global Sections */
.section-wrapper {
  padding: clamp(4rem, 8vw, 7rem) 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--primary);
  bottom: -15px;
  left: 25%;
  border-radius: 4px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* Page Headers */
.page-header {
  padding: clamp(7rem, 8vw, 8rem) 5% 4rem;
  background: var(--secondary);
  background-image: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 40%);
  text-align: center;
  color: white;
}

.page-header h1 {
  color: white;
  margin-bottom: 1rem;
  background: none;
  -webkit-text-fill-color: white;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.about-img-container img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  object-fit: cover;
}

/* Services */
.services-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  padding: clamp(5rem, 8vw, 7rem) 5%;
}

.services-grid, .testimonials-grid, .cert-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30vw, 320px), 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

/* High-End Glassmorphism Cards */
.service-card, .testimonial-card, .cert-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.7);
}

.service-card:hover, .testimonial-card:hover, .cert-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: rgba(96, 165, 250, 0.3);
}

.service-icon {
  width: 65px;
  height: 65px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 2rem;
}

.cert-card { text-align: center; border-bottom: 5px solid var(--primary); }
.cert-card i { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }

/* Timeline */
.experience-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  margin-top: 4rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #e2e8f0;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px #dbeafe;
}

.edu-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-popup);
  max-height: 95vh;
  overflow-y: auto;
}

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

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  background: #f1f5f9;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-btn:hover { background: #e2e8f0; color: var(--text-dark); }

/* Contact Container */
.contact-wrapper {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.5);
}

.contact-info {
  background: var(--secondary);
  color: white;
  padding: clamp(2rem, 5vw, 4rem);
}

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.95rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-dark); }

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
  background: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.contact-form { padding: clamp(2rem, 5vw, 4rem); }
.info-icon { font-size: 1.5rem; color: var(--primary-light); width: 40px;}
.info-item { display: flex; text-align: left; margin-bottom: 2rem;}
.info-text h5 { color: white; margin-bottom: 0.25rem; }

/* Mega Footer */
.mega-footer {
  background: var(--secondary);
  color: #cbd5e1;
  padding: 6rem 5% 2rem;
  margin-top: 5rem;
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { color: white; font-size: 2rem; margin-bottom: 1.5rem; display: inline-block; }
.footer-title { color: white; font-size: 1.25rem; margin-bottom: 2rem; font-weight: 600; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.3s; font-size: 1rem; }
.footer-links a:hover { color: white; margin-left: 5px; }

.footer-contact li { display: flex; margin-bottom: 1.5rem; gap: 1rem; font-size: 1rem; }
.footer-contact i { color: var(--primary-light); margin-top: 4px; font-size: 1.2rem; }

/* Reveal Animations */
.reveal-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes pulse-soft {
  0% { transform: scale(1); box-shadow: 0 6px 15px 0 rgba(37, 99, 235, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 25px 0 rgba(37, 99, 235, 0.6); }
  100% { transform: scale(1); box-shadow: 0 6px 15px 0 rgba(37, 99, 235, 0.3); }
}
.pulse-btn { animation: pulse-soft 2.5s infinite; }

/* Mobile Layout Overrides */
@media (max-width: 1024px) {
  .hero-container, .contact-wrapper, .about-grid, .experience-container { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  header { padding: 1rem 5%; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .pulse-btn { display: none; } /* Hide the book button on top if we want, or keep it */
  
  nav {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  }
  
  nav.active { left: 0; }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
    gap: 2rem;
  }
  
  nav ul li a {
    font-size: 1.5rem;
    color: var(--text-dark);
  }
  
  /* Show a mobile book button inside menu */
  .mobile-book-btn {
    display: block !important;
    margin-top: 1rem;
  }
  
  .desktop-lang-btn { display: none !important; }
  .mobile-lang-btn { display: block; width: 80%; max-width: 250px; text-align: center; margin-top: 1rem; }
  
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-contact li { justify-content: center; text-align: left; }
  .hero { padding-top: 8rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .stats { flex-direction: column; gap: 2rem; }
  .contact-wrapper { margin: 0; border-radius: 16px; }
}

.mobile-book-btn { display: none; }
.mobile-lang-btn { display: none; }

/* Page Transitions */
body {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
body.page-entered {
  opacity: 1;
}
body.page-exiting {
  opacity: 0;
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.floating-wa:hover {
  transform: scale(1.15) translateY(-5px);
  background: #20ba5c;
  color: white;
}

/* Hero Floating Elements */
.floating-badge {
  position: absolute;
  background: white;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  font-size: 1.8rem;
  color: #ef4444; 
  animation: float-element 5s ease-in-out infinite;
  z-index: 2;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.5);
  animation: float-element 6s ease-in-out infinite;
  z-index: 2;
  white-space: nowrap;
}

.floating-card .card-icon {
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card .card-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.floating-card .card-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--secondary);
  line-height: 1.2;
}

.floating-card .card-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Positioning & Animation Delays */
.badge-1 {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
}

.card-1 {
  bottom: 20%;
  left: -80px;
  animation-delay: 1.5s;
}

.card-2 {
  top: 40%;
  right: -60px;
  animation-delay: 2.5s;
}

@keyframes float-element {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@media (max-width: 1024px) {
  .floating-card { padding: 0.7rem 1rem; }
  .card-1 { left: -20px; }
  .card-2 { right: -20px; }
}

@media (max-width: 768px) {
  .badge-1 { width: 40px; height: 40px; font-size: 1rem; left: -5%; top: -5%;}
  .card-1 { left: -5%; bottom: 8%; padding: 0.4rem 0.6rem; }
  .card-2 { right: -5%; top: 12%; padding: 0.4rem 0.6rem; }
  .floating-card .card-icon { width: 28px; height: 28px; font-size: 0.9rem; border-radius: 8px; }
  .floating-card .card-num { font-size: 0.8rem; }
  .floating-card .card-desc { font-size: 0.55rem; }
  .floating-card { gap: 0.5rem; border-radius: 10px; }
}
