/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Work Sans', sans-serif;

  /* Pastel Color Palette */
  --color-primary: #a8c0ff; /* Pastel Blue */
  --color-secondary: #d5b8ff; /* Pastel Lavender */
  --color-accent: #fbc7d4; /* Pastel Pink */
  --color-success: #b5e7a0; /* Pastel Green */
  --color-bg-light: #f8f9fa;
  --color-bg-white: #ffffff;

  /* Text Colors */
  --color-text-dark: #343a40;
  --color-text-muted: #6c757d;
  --color-text-light: #ffffff;
  --color-headings: #212529;

  /* Dynamic Gradients */
  --gradient-dynamic: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));

  /* UI Elements */
  --border-radius: 0.75rem;
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.12);
  --transition-elastic: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: all 0.3s ease-in-out;
}

/*--------------------------------------------------------------
# Global Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-secondary);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-headings);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-headings);
    text-shadow: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Header / Navbar
--------------------------------------------------------------*/
.navbar {
  padding: 1.2rem 0;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  box-shadow: var(--shadow-soft);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-headings) !important;
}

.navbar .nav-link {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text-dark) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-link {
   color: var(--color-text-dark) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background-color: var(--color-primary);
  color: var(--color-text-light) !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  min-height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
  color: var(--color-text-light);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/*--------------------------------------------------------------
# Global Button Styles
--------------------------------------------------------------*/
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: var(--transition-elastic);
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-strong);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-text-light);
}

.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}


/*--------------------------------------------------------------
# Card Styles
--------------------------------------------------------------*/
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-elastic);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.card-image {
  width: 100%;
  height: 220px; /* Fixed height for image containers */
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area without distortion */
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Centering for instructor/team cards */
.card.text-center {
    align-items: center;
}
.card.text-center .card-content {
    text-align: center;
}
.card.text-center .card-image {
    height: auto; /* Allow natural height for circular images */
}
.card.text-center .rounded-circle {
    margin: 0 auto;
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 5rem 0;
  overflow: hidden;
}

#statistics {
    background-image: var(--gradient-dynamic);
}

#contact, #success-stories, #behind-the-scenes, #innovation {
    background-color: var(--color-bg-light);
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.form-control {
    min-height: 50px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: var(--transition-smooth);
    font-family: var(--font-secondary);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(168, 192, 255, 0.3);
}

.form-label {
    font-weight: 500;
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
#resources .list-group-item {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    transition: var(--transition-smooth);
}
#resources .list-group-item:hover {
    border-left: 5px solid var(--color-primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-soft);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background-color: var(--color-text-dark);
  color: rgba(255, 255, 255, 0.7);
}

footer h5 {
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

footer p, footer li {
  font-size: 0.9rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
  padding: 0.2rem 0;
}

.footer-link:hover {
  color: var(--color-text-light);
  text-decoration: none;
  transform: translateX(5px);
}

/*--------------------------------------------------------------
# Specific Page Styles
--------------------------------------------------------------*/
/* For success.html */
.success-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--gradient-dynamic);
}

.success-card {
    background-color: var(--color-bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    max-width: 600px;
}

.success-card h1 {
    color: var(--color-headings);
}

/* For privacy.html & terms.html */
.legal-page, .about-page, .contact-page {
  padding-top: 120px; /* Adjust as needed based on final header height */
  padding-bottom: 60px;
}

.legal-page h1, .about-page h1, .contact-page h1 {
    margin-bottom: 2rem;
}

.legal-page h2, .about-page h2, .contact-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Scroll Animations (to be triggered by JS)
--------------------------------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .navbar-nav {
    background-color: var(--color-bg-white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow-strong);
  }
  .navbar .nav-link {
    padding: 0.8rem 1rem;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}