:root {
  /* Ultra-modern color palette */
  --primary: #5D5FEF; /* Vivid indigo */
  --primary-dark: #4340D4;
  --primary-light: #8C8DFF;
  --secondary: #00CFDD; /* Bright cyan */
  --secondary-dark: #00A6B2;
  --accent: #FF4D6D; /* Vibrant pink */
  --accent-secondary: #FFBD59; /* Warm amber */
  --dark: #0F172A; /* Deep slate */
  --light: #f8fafc; /* Slate 50 */
  --gray: #94a3b8; /* Slate 400 */
  --gray-light: #e2e8f0; /* Slate 200 */
  --success: #0CB46F; /* Vibrant emerald */
  --warning: #FF9F1C; /* Bright amber */
  --error: #FF4757; /* Bright red */
  
  /* Modern gradients */
  --gradient-primary: linear-gradient(135deg, #5D5FEF 0%, #8C8DFF 100%);
  --gradient-accent: linear-gradient(135deg, #FF4D6D 0%, #FFBD59 100%);
  --gradient-cool: linear-gradient(135deg, #00CFDD 0%, #5D5FEF 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  
  /* Glass morphism effect variables */
  --glass-background: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(142, 142, 142, 0.2);
  
  /* Enhanced shadows */
  --shadow-sm: 0 2px 5px -1px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-colored: 0 10px 25px -3px rgba(93, 95, 239, 0.25);
  
  /* Enhanced border radiuses */
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
  
  /* Font stack */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  background:#fff;
  backdrop-filter:none;
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

.nav-links a {
  font-weight: 500;
  position: relative;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-order { position: relative; overflow: visible; }

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
}

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

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-accent {
  background-color: var(--accent);
  color: white;
  border: none;
}

/* Pulsing ring */
.btn-order::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-secondary);
  opacity: 0.6;
  border-radius: inherit;
  transform: translate(-50%, -50%) scale(1);
  animation: btnPulse 1.8s ease-out infinite;
  pointer-events:none;
}

@keyframes btnPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity:0.9; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity:0.9; }
}

.btn-accent:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
  animation: pulse 15s infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 0;
  animation: float 20s infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

/* Hero layout */
.hero-inner{
  display:flex;
  align-items:stretch;
  gap:4rem;
  flex-wrap:wrap;
}

.hero-text{
  flex:1 1 450px;
  z-index:1;
}

.hero-form{
  flex:1 1 450px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding:5.5rem 2.5rem 2.5rem;
  box-shadow:none;
  border:2px solid #000;
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
}

/* Hero points list */
.hero-points {
  list-style: none;
  margin: 2rem 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.hero-points li span {
  color: var(--success);
  font-size: 1.5rem;
}

/* Lead form */
.lead-form {
  width:100%;
  display: flex;
  flex-direction:column;
  gap: 1rem;
}

.lead-form select,
.lead-form input {
  width:100%;
  padding: 0.75rem 1rem;
  border: 2px solid #000;
  border-radius: var(--radius);
  background:#fff;
  color:#000;
  font-size:1rem;
}

.lead-form select{
  appearance:none;
}

.lead-form input::placeholder {
  color: #666;
}

.lead-form button {
  width:100%;
}

.form-heading{
  font-size:1.5rem;
  font-weight:700;
  margin-bottom:2rem;
  text-align:center;
}

.discount-ribbon{
  position:absolute;
  top:-2.5rem;
  left:50%;
  transform:translateX(-50%);
  background:var(--primary);
  color:#fff;
  padding:0.5rem 1.5rem;
  display:flex;
  align-items:center;
  border:2px solid #000;
  border-radius: var(--radius);
}
.discount-main{
  font-weight:700;
  text-transform:uppercase;
  margin-right:0.75rem;
}
.discount-sub{
  background:var(--accent-secondary);
  color:#000;
  padding:0.25rem 0.75rem;
  border-left:2px solid #000;
  font-size:0.8rem;
  text-transform:uppercase;
}

.form-success {
  font-size: 0.95rem;
  color: var(--success);
  text-align:center;
}

/* Better section slider */
.better-slider{overflow:hidden;}
.slider-track{display:grid; grid-auto-flow:column; grid-template-rows:repeat(2,1fr); gap:1rem; animation:scrollSubjects 25s linear infinite;}
.slider-track:hover{animation-play-state:paused;}
@keyframes scrollSubjects{
  0%{transform:translateX(0);}
  100%{transform:translateX(-100%);} }

/* Better section */
.better-grid .subject-item{
  width:160px; height:110px;
  display:flex; align-items:center; justify-content:center;

  border:2px solid var(--gray-light);
  border-radius: var(--radius);
  padding:1.75rem 1.25rem;
  font-weight:600;
  text-align:center;
  transition: transform .2s ease, border-color .2s ease;
}
.better-grid .subject-item:hover{transform:translateY(-4px); border-color: var(--accent-secondary);} 

/* Scroll reveal base */
.animate-on-scroll{opacity:0; transform:translateY(80px) scale(.92); transition:opacity .6s ease-out, transform .9s cubic-bezier(.22,1.61,.36,1);}
.animate-on-scroll.animate{opacity:1; transform:translateY(0) scale(1);}

/* Allow stagger */
.animate-on-scroll[data-delay]{transition-delay:var(--delay,0ms);} 

/* Tilt hover */
.tilt-hover{transform-style:preserve-3d; transition:transform .3s ease, box-shadow .3s ease; will-change:transform;}
.tilt-hover:hover{box-shadow:0 25px 35px -10px rgba(0,0,0,.25);} 

/* Section styling */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

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

/* Features */
.features {
  background-color: white;
}

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

.feature-card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-colored);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  box-shadow: 0 15px 25px -5px rgba(93, 95, 239, 0.3);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background-color: white;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: rgb(5, 2, 2);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 15px 25px -5px rgba(93, 95, 239, 0.3);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Subjects Grid */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.subject-item {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--gray-light);
  font-weight: 500;
}

.subject-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--shadow);
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

/* Services */
.services {
  background-color: var(--light);
}

.service-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Testimonials */
.testimonials {
  background-color: white;
}

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

.testimonial-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
}

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

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.author-info h4 {
  font-weight: 600;
}

.author-info p {
  color: var(--gray);
  font-size: 0.875rem;
}

/* FAQ */
.faq {
  background-color: var(--light);
}

.faq-item {
  background-color: white;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray);
}

/* CTA */
.cta {
  background: var(--gradient-accent);
  color: white;
  text-align: center;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.cta::before {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
}

.cta::after {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -50px;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.countdown-container {
  margin: 2.5rem 0;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.countdown-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-width: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.countdown-number span:first-child {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.countdown-text {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 50px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-lg:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--gray);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0% { transform: scale(1) rotate(0); opacity: 0.8; }
  50% { transform: scale(1.05) rotate(5deg); opacity: 0.6; }
  100% { transform: scale(0.95) rotate(-5deg); opacity: 0.8; }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.animate {
  animation: fadeIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .features-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .subjects-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}