/* General */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f5f7fa;
    color: #333;
    opacity: 0;
    transition: opacity 0.75s ease;
}

/* When page is loaded */
body.fade-in {
  opacity: 1;
}

/* Fade out before leaving */
body.fade-out {
  opacity: 1;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between; /* logo left, links right */
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;  /* initial */
  color: white;
  box-sizing: border-box; /* include padding in width */
}

/* Use a flex container for links */
.nav-links {
  display: flex;
  gap: 20px;          /* spacing between links */
  flex-wrap: wrap;    /* wrap if screen is too small */
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap; /* prevent text from breaking */
}

.nav-links a:hover {
    color: #fbbf24;
}

/* Navbar scrolled state */
.navbar.scrolled {
  background: linear-gradient(135deg, #07162c, #0f215e);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


.logo {
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.logo img {
  height: 80px;
  width: 100px;
}

/* Hover effect: slightly enlarge + change color */
.logo:hover {
  transform: scale(1.1);
}

/* Active/click effect: shrink slightly when clicked */
.logo:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .logo img {
    height: 60px;
    width: auto;
  }
}

/* Hero */
.hero {
    background:#6aa7f1;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 40px; /* space between text and image */
}

.hero-text {
  display: flex;
  flex-direction: column;   /* stack h1, p, button */
  justify-content: center;  /* vertical centering */
  height: 100%;             /* takes full height of hero-content */
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn {
    background: #fbbf24;
    color: #1f2937;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #da8e0c;
    transform: translateY(-2px);
}

.hero-image img {
  width: 400px;      /* fixed width for desktop */
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    width: 100%;
    max-width: 300px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }
}

/* Sections */
section {
    padding: 70px 20px;
    text-align: center;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Benefits Hover Card */
.hover-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding: 20px;
}

/* Image stays normal */
.hover-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

/* TEXT LAYER (hidden initially) */
.card-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(7, 22, 44, 0.9); /* dark overlay */
    color: white;

    transform: translateY(100%); /* push out of view */
    transition: transform 0.4s ease;
}

/* ON HOVER — slide text up */
.hover-card:hover .card-text {
    transform: translateY(0);
}

/* Study Evidence Section */
.study-evidence {
  padding: 50px 25px;        /* space top & bottom */
  max-width: 900px;
  margin: 40px auto;          /* gap from other sections */
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.study-evidence img {
  display: block;             /* make it a block element */
  margin: 0 auto 25px;       /* auto left/right margin centers it */
  width: 100%;               /* keep the size */
  max-height: 200px;
  object-fit: contain;
}

/* Title */
.study-evidence h2 {
  text-align: center;
  margin-bottom: 35px;        /* more space below heading */
  color: #07162c;
  font-weight: bold;
}

/* Paragraphs */
.study-evidence p {
  font-size: 1.1rem;
  line-height: 1.9;           /* more line spacing */
  margin-bottom: 28px;        /* space between text blocks */
}

/* Quote */
.study-evidence blockquote {
  font-style: italic;
  padding: 25px 25px 25px 30px;
  border-left: 4px solid #2563eb;
  background: #f7f9fc;
  margin: 35px 0;             /* big separation above & below */
  border-radius: 10px;
  line-height: 1.8;
  text-align: justify;
}

/* Source line */
.study-evidence .study-source {
  margin-top: 30px;
  font-size: 0.75rem;
  color: #555;
  text-align: right;
}

/* Curriculum Card */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 15px;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

/* Contact Form */
.contact form {
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.contact input, .contact textarea {
    margin: 10px 0;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.contact button {
    background: #2b6cb0;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.contact button:hover {
    background: #0f215e;
}

/* ---------------- PREMIUM FOOTER ---------------- */

.premium-footer {
  background: linear-gradient(135deg, #07162c, #0f215e);
  color: white;
  padding: 50px 20px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-brand h2 {
  font-size: 28px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.footer-brand p {
  color: #cbd5e1;
  max-width: 320px;
  line-height: 1.6;
}

.footer-brand img {
  height: 200px;
  width: auto;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 20px;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fbbf24;
}

.footer-links a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: #fbbf24;
  color: #07162c;
  transform: translateY(-4px);
}

/* Bottom line */
.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .footer-brand p {
    margin: auto;
  }

  .social-icons {
    justify-content: center;
  }
}

.social-icons a:hover {
  box-shadow: 0 0 15px rgba(251,191,36,0.6);
}

.footer-email {
  margin-top: 20px;
}

.footer-email a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
}

.footer-email a:hover {
  color: #fbbf24;
}

.footer-email i {
  font-size: 16px;
}

.videos {
    width: 95%;
    margin: auto;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-radius: 15px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.video iframe {
    width: 100%;
    height: 500px;
    border-radius: 10px;
}

.project-gallery {
    display: flex;
    justify-content: center;   /* centers the images block */
    gap: 30px;
    margin-top: 30px;
}

.project-item {
    width: 300px;              /* controls image width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.project-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.project-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .project-gallery {
    flex-direction: column;
    align-items: center;
  }

  .project-item {
    width: 90%;
  }
}

.wave {
    height: 140px;
    background: url('../assets/wave.svg') no-repeat;
    background-size: cover;
    animation: waveFloat 4s ease-in-out infinite alternate;
}

html {
  scroll-behavior: smooth;
}


/*----------------------------------------------ABOUT PAGE-----------------------------------------*/
/*-------------------------------------------------------------------------------------------------------------------------------------*/

/* HERO */
.about-hero {
  padding: 140px 20px 80px;
  text-align: center;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* SECTION LAYOUT */
.about-section {
  padding: 70px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.about-section.light {
  background: #f4f7ff;
}

/* FEATURE CARDS */
.features {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  width: 280px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  align-items: center;
}

.feature-card img {
    display: block;       /* make it a block element */
    margin: 0 auto 15px;  /* auto left/right margin centers it */
    width: 250px;         /* keep the size */
}

.feature-card:hover {
  transform: translateY(-8px);
}

/* WHY LIST */
.why-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.why-list li {
  margin: 12px 0;
  font-size: 1.1rem;
}

/* CTA */
.about-cta {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #07162c, #0f215e);
  color: white;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #2575fc;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}

/*----------------------------------------------Shop Page-----------------------------------------------------------------------*/
/*-------------------------------------------------------------------------------------------------------------------------------------*/
.shop {
    padding: 60px 10%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    max-width: 300px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #2575fc;
    margin: 10px 0;
}

.product-card button {
    background: #2575fc;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.product-card button:hover {
    background: #073b88;
}

.floating-cart {
    position: fixed;
    bottom: 20px;   /* move to bottom */
    right: 20px;    /* still right */
    background: #2575fc;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    z-index: 2000;  /* stays above other content */
    transition: transform 0.2s ease;
}

.floating-cart:hover {
    transform: scale(1.1);
}

#cart-count {
    font-weight: bold;
    margin-left: 5px;
}

/* Bounce animation */
@keyframes cart-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.floating-cart.bounce {
    animation: cart-bounce 0.75s ease;
}

.mini-cart {
    position: fixed;
    bottom: 70px; /* above floating cart */
    right: 5%;
    width: 50%;
    max-height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    overflow-y: auto;
    padding: 15px;
    display: none; /* hidden by default */
    z-index: 2000;
    font-family: sans-serif;
}

.mini-cart h4 {
    margin-top: 0;
}

.mini-cart ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.mini-cart li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.mini-cart li button {
    margin-left: 5px;
    background: #2575fc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
}

.mini-cart-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

#checkout-btn {
    background: #2575fc;
    color: white;
    border: none;
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

#checkout-btn:hover {
    background: #073b88;
}



/*----------------------------------------------Product Page-----------------------------------------------------------------------*/
/*-------------------------------------------------------------------------------------------------------------------------------------*/
.product-detail-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.product-detail-container img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
  .product-detail-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .product-detail-container img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}

.product-info {
    max-width: 500px;
}

.product-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-info .price {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

.product-info .description {
    font-size: 14px;
    margin-bottom: 15px;
}

.product-info button {
    background: #2575fc;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.product-info button:hover {
    background: #073b88;
}

/* ---------------- MOBILE GLOBAL FIXES ---------------- */

@media (max-width: 768px) {

  section {
    padding: 50px 15px;
  }

  .hero {
    padding: 80px 15px;
  }

  .study-evidence {
    padding: 30px 15px;
  }

  .mini-cart {
    width: 50%;
    right: 5%;
  }

}