/* High-End Vibrant Styles for Full Prep Academy Frontend */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #417690;
  --primary-dark: #3d5a6a;
  --primary-vibrant: #5fa8d3; /* Softened from #03a4ed */
  --primary-light: rgba(95, 168, 211, 0.1);
  --secondary: #e07a5f; /* Softened from #fe3f40 */
  --secondary-dark: #c1664d;
  --secondary-vibrant: #eb9486;
  --accent-gold: #d4a574;
  --text-dark: #4a5568;
  --text-body: #5a647a;
  --white: #fffdfa;
  --bg-light: #f9f7f2;
  --bg-alt: #f4f6f8;
  --shadow-soft: 0 10px 30px rgba(65, 118, 144, 0.08);
  --shadow-med: 0 15px 45px rgba(65, 118, 144, 0.12);
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-body);
  background: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
  animation: fadeIn 1.2s ease-out forwards;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  color: var(--primary-dark);
}

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

/* Navbar */
header {
  background: var(--white);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid var(--primary-vibrant);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.6rem; /* Slightly reduced from 1.8rem */
  color: var(--primary-vibrant);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap; /* Prevent logo text from wrapping */
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
  position: relative; /* Needed for absolute positioning of ::after */
}

.nav-links a:not(.nav-btn)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:not(.nav-btn):hover::after,
.nav-links a:not(.nav-btn).active::after {
  width: 100%;
}

.nav-links a:not(.nav-btn):hover { color: var(--secondary); }

.nav-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--primary-vibrant);
  color: var(--primary-vibrant) !important;
  font-weight: 700;
}

.nav-btn:hover {
  background: var(--primary-vibrant);
  color: var(--white) !important;
}

.btn-signup {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white) !important;
}

/* Hero Section - Redesigned */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Account for fixed header */
  background: radial-gradient(circle at 10% 20%, rgba(65, 118, 144, 0.05) 0%, rgba(255, 255, 255, 0) 40%),
              radial-gradient(circle at 90% 80%, rgba(224, 122, 95, 0.08) 0%, rgba(255, 255, 255, 0) 40%),
              var(--white);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  text-align: left;
  z-index: 2;
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero .text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-body);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 90%;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(65, 118, 144, 0.05);
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.hero-trust {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.hero-trust i {
  color: var(--secondary);
  margin-right: 0.5rem;
}

/* Hero Visual & Image Styling */
.hero-visual {
  position: relative;
  perspective: 1200px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px; /* Ensure enough space for variable height cards */
}

.visual-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  transform-style: preserve-3d;
  animation: floatHero 8s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes floatHero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25px); }
}

/* Base Card Styles - Using CSS Variables for flexible transforms */
.hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  /* Default variables */
  --tx: -50%;
  --ty: -50%;
  --s: 1;
  --r: 0deg;
  --scale-multiplier: 1; /* Default multiplier */
  
  /* Apply transform using variables */
  transform: translate(var(--tx), var(--ty)) scale(calc(var(--s) * var(--scale-multiplier))) rotate(var(--r));
  
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}

.hero-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Specific Positions - Defining the variables for each slot */
.card-study-plan {
  z-index: 1;
  --tx: -65%;
  --ty: -42%;
  --s: 0.85;
  --r: -8deg;
  opacity: 0.7;
}

.card-ai {
  z-index: 2;
  --tx: -35%;
  --ty: -58%;
  --s: 0.85;
  --r: 8deg;
  opacity: 0.7;
}

.card-test {
  z-index: 10;
  --tx: -50%;
  --ty: -50%;
  --s: 1;
  --r: 0deg;
  box-shadow: 0 30px 60px rgba(65, 118, 144, 0.25);
  border: 4px solid rgba(255, 255, 255, 1);
  opacity: 1;
}

/* Interaction */
.visual-card-wrapper:hover .card-test {
  --ty: -53%;
  --s: 1.02;
  box-shadow: 0 35px 70px rgba(65, 118, 144, 0.3);
}

.visual-card-wrapper:hover .card-ai,
.visual-card-wrapper:hover .card-study-plan {
  opacity: 0.8;
}

/* Floating Badges */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  animation: floatBadge 5s ease-in-out infinite alternate;
  border: 1px solid rgba(255,255,255,0.5);
}

.float-grade {
  top: 10%;
  right: -20px;
  animation-delay: 0.5s;
}

.float-status {
  bottom: 15%;
  left: -30px;
  animation-delay: 1s;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.float-card .icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(224, 122, 95, 0.15);
  color: var(--secondary);
}

.float-card .icon-box.success {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.float-card .text-box {
  display: flex;
  flex-direction: column;
}

.float-card .label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.float-card .value {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero h1 { font-size: 3rem; }
  
  .hero-visual {
    width: 80%;
    margin: 0 auto;
  }
  
  .float-grade { right: -10px; }
  .float-status { left: -10px; }
}

@media (max-width: 768px) {
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn-primary, .hero-btns .btn-outline { width: 100%; text-align: center; }
  .float-card { display: none; /* Hide floating cards on small screens to reduce clutter */ }
}

.btn-primary {
  padding: 1.2rem 3rem;
  background: var(--secondary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-5px);
  background: var(--secondary-vibrant);
}

/* Common Section Titles */
section { padding: 100px 0; }

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2 span { color: var(--secondary); }

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-vibrant);
  border-radius: 2px;
}

/* About Section - Redesigned */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrapper {
  position: relative;
  z-index: 1;
}

.about-img-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(var(--secondary-vibrant) 20%, transparent 20%);
  background-size: 15px 15px;
  z-index: -1;
  opacity: 0.5;
}

.about-main-img {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow-med);
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  border: 1px solid rgba(0,0,0,0.05);
}

.experience-badge .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 5px;
}

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

.about-text-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.lead-text {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

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

.about-feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.about-feature-item i {
  font-size: 1.5rem;
  color: var(--secondary);
  background: rgba(224, 122, 95, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.about-feature-item h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.about-feature-item p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 0;
}

.about-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

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

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  .about-feature-item { text-align: left; }
  .about-stats { justify-content: center; }
  .experience-badge { right: 0; bottom: -20px; }
}

/* Services / Subjects */
.services { background: var(--bg-alt); }

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

.service-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  border-top: 5px solid var(--primary-vibrant);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.service-card:hover { transform: translateY(-10px); }

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-vibrant);
  margin-bottom: 1.5rem;
  background: var(--bg-alt);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 15px;
  display: inline-block;
}

.service-card h3 { margin-bottom: 1rem; }

.service-card ul {
  list-style: none;
  text-align: left;
  margin-top: 1.5rem;
}

.service-card li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-vibrant);
}

/* Specific Styling for Features Section (New) */
#features .service-card {
  text-align: left;
  padding: 2.5rem;
  border-top: none;
  border-left: 5px solid var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(to right, var(--white), var(--bg-alt));
}

#features .service-card i {
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  line-height: 60px;
  text-align: center;
  background: rgba(224, 122, 95, 0.1);
  color: var(--secondary);
  margin-bottom: 1.5rem;
  border-radius: 12px;
  transition: var(--transition);
}

#features .service-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-left-color: var(--primary-vibrant);
  box-shadow: var(--shadow-med);
}

#features .service-card:hover i {
  background: var(--primary-vibrant);
  color: var(--white);
  transform: rotateY(180deg);
}

#features .service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

/* Testimonials - Professional Grid */
.testimonials {
  background: radial-gradient(circle at top right, var(--primary-dark), #1a252f);
  color: var(--white);
  padding: 100px 0;
}

.testimonials .section-title h2 { color: var(--white); }

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.stars {
  color: #f1c40f;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial-author h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

/* Menu Toggle - Professional Styling */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  font-size: 1.4rem;
  color: var(--primary-vibrant);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--primary-vibrant);
  color: var(--white);
}

@media (max-width: 1200px) {
  .logo {
    font-size: 1.4rem;
  }
}

@media (max-width: 1200px) {
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    z-index: 1000;
  }
  .nav-links.active { display: flex; }
  .hero-content h2 { font-size: 3rem; }
}

/* Books - Grid and Image size */
.books-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  color: var(--text-body);
}

/* Books Section - Professional */
.books {
  padding: 100px 0;
  background: var(--bg-light);
}

.books-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-body);
}

.book-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  justify-content: center;
}

.book-item { 
  text-align: center; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.book-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(65, 118, 144, 0.15);
  border-color: rgba(65, 118, 144, 0.2);
}

.book-item img {
  max-width: 180px;
  height: auto;
  border-radius: 4px;
  box-shadow: -8px 8px 20px rgba(0,0,0,0.15); /* Realistic book shadow */
  transition: transform 0.4s ease;
  margin-bottom: 1.5rem;
}

.book-item:hover img {
  transform: scale(1.03) rotate(-2deg);
}

.book-item figcaption {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.book-item::after {
  content: 'View on Amazon →';
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.book-item:hover::after {
  transform: translateX(5px);
  color: var(--secondary-vibrant);
}

/* Contact Form - Fully Styled */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 4rem;
  border-radius: 30px;
  box-shadow: var(--shadow-med);
  border-bottom: 8px solid var(--secondary);
}

.contact-container p { text-align: center; margin-bottom: 2rem; }

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

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

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #edf2f7;
  border-radius: 12px;
  font-family: inherit;
  transition: var(--transition);
  background: #f8fafc;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-vibrant);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(3, 164, 237, 0.1);
}

.error-msg {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.success-msg {
  color: #10b981;
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
}

/* Footer Styles (New) */
.site-footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-brand .logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--white);
}

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

.footer-brand .tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--white);
}

/* Responsive adjustment for footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand .tagline {
    margin: 0 auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Newsletter Section Styles */
.newsletter-section {
  padding: 100px 0;
  background: var(--bg-alt);
}

.newsletter-card {
  background: var(--white);
  border-radius: 30px;
  padding: 5rem;
  box-shadow: var(--shadow-med);
  border: 2px solid var(--primary-vibrant);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  width: 100%;
}

.newsletter-visual {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cheatsheet-img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.cheatsheet-img:hover {
  transform: scale(1.05) rotate(-2deg);
}

.newsletter-content {
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.newsletter-info h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.newsletter-info p {
  font-size: 1.2rem;
  color: var(--text-body);
}

.newsletter-form {
  display: flex;
  flex-direction: column; /* Vertical layout */
  gap: 1.2rem;
}

.newsletter-form input {
  width: 100%;
  padding: 1.2rem 2rem;
  border: 2px solid #edf2f7;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1.1rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form .btn-submit {
  width: 100%;
  padding: 1.2rem 2rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form .btn-submit:hover {
  transform: translateY(-3px);
  background: var(--secondary-dark);
}

.newsletter-form .btn-submit:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  transform: none;
}

#newsletter-status {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .newsletter-card {
    padding: 3rem 2rem;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

/* Pricing Section - Enhanced */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  padding: 0;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-med);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(65, 118, 144, 0.15);
}

/* Highlight for Yearly Plan */
.pricing-card.best-value {
  border: 2px solid var(--secondary);
  box-shadow: 0 20px 50px rgba(224, 122, 95, 0.15);
}

.badge-best-value {
  background: var(--secondary);
  color: var(--white);
  position: absolute;
  top: 32px;
  right: -32px;
  transform: rotate(45deg);
  padding: 8px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-blue {
  background: var(--primary) !important;
}

.pricing-header {
  background: linear-gradient(135deg, rgba(65, 118, 144, 0.05) 0%, rgba(95, 168, 211, 0.1) 100%);
  padding: 3.5rem 2rem 1.5rem; /* Reduced bottom padding */
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.pricing-body {
  padding: 1.5rem 3rem 3rem; /* Reduced top padding */
}

.pricing-title {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-amount {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-amount span {
  font-size: 1rem;
  color: var(--text-body);
  font-weight: 500;
}

.pricing-subtitle {
  margin-bottom: 0;
  color: var(--text-body);
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2.5rem;
  padding: 0;
}

.pricing-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-weight: 500;
}

.pricing-features li i {
  color: #10b981; /* Green checkmark */
  font-size: 1.1rem;
}

.pricing-btn {
  width: 100%;
  display: block;
  box-shadow: 0 4px 15px rgba(224, 122, 95, 0.3);
}

.pricing-btn:hover {
  box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
}

/* Course Preview / Platform Section */
.course-preview {
  background: var(--bg-light);
  padding: 120px 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.platform-text h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.platform-text h2 span { color: var(--secondary); }

.platform-text p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-body);
}

.course-list-mini {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.course-list-mini li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.course-list-mini i {
  color: var(--secondary);
  font-size: 1.2rem;
}

.ai-feature {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--primary-vibrant);
}

.ai-feature i {
  font-size: 2rem;
  color: var(--primary-vibrant);
}

.ai-feature h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.ai-feature p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.platform-img img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-med);
}

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

.floating-img {
  animation: float 5s ease-in-out infinite;
}

@media (max-width: 992px) {
  .platform-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .ai-feature { text-align: left; }
}

/* How It Works Section - Enhanced */
.how-it-works {
  background: var(--white);
  position: relative;
  overflow: hidden; /* For absolute positioned lines */
}

.steps-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  position: relative;
}

/* Connecting Line (Desktop) - Curvier and Darker */
@media (min-width: 1200px) {
  .steps-container::before {
    content: '';
    position: absolute;
    top: -30px; /* Aligns with center of numbers (-30px) */
    left: 10%;
    right: 10%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='60' viewBox='0 0 400 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q 100 0 200 30 T 400 30' stroke='%23417690' stroke-width='3' fill='none' stroke-dasharray='12 15' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 400px 60px;
    z-index: 0;
    opacity: 0.4;
  }
}

.step-card {
  flex: 1 1 220px;
  background: var(--white);
  padding: 3rem 1.5rem 2rem;
  border-radius: 20px;
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
  text-align: center;
  z-index: 1; /* Above the line */
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-med);
  border-color: var(--primary-light);
}

.step-number {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-vibrant) 100%);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 15px rgba(224, 122, 95, 0.3);
  border: 4px solid var(--white); /* White ring to separate from line */
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  font-family: 'DM Serif Display', serif;
  color: var(--primary-dark);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Social Proof Notification */
.signup-notification {
  position: fixed;
  bottom: 50px;
  left: 30px;
  background: var(--white);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--secondary);
  max-width: 350px;
  font-family: 'Poppins', sans-serif;
}

.signup-notification.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

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

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(224, 122, 95, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notification-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.notification-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.notification-action {
  font-size: 0.85rem;
  color: var(--text-body);
}

.notification-time {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .signup-notification { display: none !important; }
}