/* Global styles */

/* Global font setup */
:root {
    --color-primary: #001f3f;    ;
    --color-background: #fbf4db;
    --color-accent: #f51aa4;
    --color-accent-hover: #ca0a83;
    --color-text: #333333;
    --color-border: #e0e0e0;
    --color-success: #2ecc71;
    --color-error: #e74c3c;
    --color-blue-accent: #38bdf8;
  
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Varela Round', sans-serif;

    --color-overlay-dark: rgba(0, 31, 63, 0.92);
    --color-card-shadow: rgba(0, 0, 0, 0.1);
  }

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

  body {
    font-family: 'Poppins', sans-serif;
    background: 
      linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(0, 31, 63, 0.5) 60%, rgba(0, 31, 63, 0) 100%);
    background-color: #001f3f;
    background-repeat: repeat;
    background-size: auto, cover;
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .reveal-delay {
    transition-delay: 0.3s;
  }

  .section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-blue-accent);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    margin-top: 5%;
    margin-bottom: 5rem;
  }

  /* Nav */
  header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
  }

  nav {
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 10vh;
  }

  #navbar.scrolled {
    background: 
    linear-gradient(to right, rgba(0, 0, 0, 0.9) 30%, rgba(0, 31, 63, 0.6) 60%, rgba(0, 31, 63, 0.6) 100%);
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-items {
    display: flex;
    list-style: none;
    gap: 1.5rem;
  }

  .nav-items a {
    position: relative;
    text-decoration: none;
    color: var(--color-background);
    transition: transform 0.2s ease;
  }

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

  .nav-items a:hover {
    transform: scale(1.05);
  }

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

  .menu-toggle {
    display: none;
    z-index: 2001;
    flex-direction: column;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 25px;
    background-color: var(--color-text);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: center;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: var(--color-accent);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 2000;
    overflow: auto;
  }  

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu a {
    color: #fff;
    margin: 1rem 0;
    font-size: 1.2rem;
    text-decoration: none;
  }
  

  .scrolled header {
    background-color: var(--color-primary);
  }

  .menu-toggle span {
    display: block; /* Needed for transform to work */
  }
  
  .mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1049;
    display: none;
    transition: opacity 0.3s ease;
  }
  
  .mobile-backdrop.show {
    display: block;
  }
  

  @media (max-width: 1115px) {
    .nav-item-container {
      display: none;
    }

    .menu-toggle {
      display: flex;
    }

    .menu-toggle span {
        background-color: var(--color-background);
    }
  }

  @media(max-width: 576px) {
    .mobile-menu {
      width: 200px;
      padding: 3rem 1.5rem;
    }

    .mobile-menu a {
      font-size: 1rem;
    }
  }

  /* Hero */
  .hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    min-height: 90vh;
    background: 
      linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(0, 31, 63, 0.5) 60%, rgba(0, 31, 63, 0) 100%);
    background-color: #001f3f;
    background-repeat: repeat;
    background-size: auto, cover;
    overflow: hidden;
    position: relative;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/circuit-blue.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-background);
  }

  .blue-accent {
    color: var(--color-blue-accent);
    font-weight: 700;
  }
  
  .hero-text p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--color-background);
  }
  
  .cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .cta {
    position: relative;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--color-accent, #00ffff);
    color: var(--color-accent, #00ffff);
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    border-radius: 6px;
  }
  
  @keyframes border-glow {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }
  
  .cta.secondary {
    border-color: var(--color-blue-accent);
    color: var(--color-blue-accent);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  }

  .cta.secondary:hover {
    background-color: var(--color-blue-accent);
    color: var(--color-background);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  }

  .cta.primary {
    background-color: var(--color-accent);
    color: var(--color-background);
    transition: background-color 0.3s ease-in-out;
  }

  .cta.primary:hover {
    background-color: var(--color-accent-hover);
    transition: background-color 0.3s ease-in-out;
  }
  
  .hero-image {
    flex: 1 1 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
  }
  
  .hero-image img {
    max-width: 100%;
    height: auto;
    z-index: 2;
    position: relative;
  }

  .accent-word {
    color: var(--color-blue-accent);
    font-weight: 700;
  }

  @media (max-width: 1200px) {
    .hero-text h1 {
      font-size: 2.5rem;
    }
  }

  @media (max-width: 768px) {
    .hero {
      flex-direction: column;
      text-align: center;
    }
  
    .hero-text {
      max-width: 100%;
    }
  
    .hero-image {
      margin-top: 4rem;
    }
  
    .cta-buttons {
      justify-content: center;
    }
  }

  /*Upcoming Courses*/
  /* Upcoming section background (subtle image + gradient) */
.upcoming-section {
  background-size: cover;
  background-position: center;
}

/* Glassy course card */

.upcoming-section {
  color: var(--color-background);
}

.course-card {
  background-color: var(--color-primary);
  border: 1px solid var(--color-blue-accent);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: scale(1.05);
}

/* Bullets */
.course-bullets li {
  padding-left: 0.25rem;
  margin-bottom: .5rem;
}

/* Age badges (neutral style that works on light/dark) */
.age-badge {
  background: rgba(0,0,0,0.08);
  color: inherit;
}

/* Optional: dark mode polish if you use a dark theme somewhere */
@media (prefers-color-scheme: dark) {
  .course-card {
    background: rgba(20, 24, 28, 0.65);
    border-color: rgba(255,255,255,0.08);
  }
  .age-badge {
    background: rgba(255,255,255,0.12);
    color: #eaecef;
  }
}

  /* Our vision */
  /* Base styling */
.our-vision-section {
  color: #e0eafc;
  padding: 4rem 2rem;
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0% 95%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.vision-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

/* Text styles */
.vision-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
  transform: translateY(30px);
}

.vision-text strong {
  color: #38bdf8;
  font-weight: 600;
}

@media (max-width: 768px) {
  .vision-container::before {
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    opacity: 0.4;
    display: none;
  }
}

/* Courses */
.our-courses-section {
  background: 
  linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(0, 31, 63, 0.5) 60%, rgba(0, 31, 63, 0) 100%);
  background-color: #001f3f;
  background-repeat: repeat;
  background-size: auto, cover;
  color: var(--color-text);
  position: relative;
  font-family: var(--font-body);
}

.our-courses-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/circuit-pink.png');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}

/* Course Card Layout */
.course-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid var(--color-border);
}

.course-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  border-radius: 12px;
}

.course-card:hover img {
  transform: scale(1.05);
}

/* Hover Overlay */
.course-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 31, 63, 0.92);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  border-radius: 12px;
}

.course-card:hover .course-overlay {
  opacity: 1;
}

.course-overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-blue-accent);
  font-family: var(--font-heading);
}

.course-overlay p {
  font-size: 0.95rem;
  color: var(--color-background);
}

@media (max-width: 765px), (hover: none) {
  .course-overlay{
    max-height: 70vh;
    overflow: auto;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .course-overlay h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .course-overlay p {
    font-size: 0.85rem;
  }
}

/* About us section */
.about-section {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(0, 31, 63, 0.5) 60%, rgba(0, 31, 63, 0) 100%);
  background-color: var(--color-primary);
  background-repeat: repeat;
  background-size: auto, cover;
  color: var(--color-background);
  font-family: var(--font-body);
  position: relative;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/circuit-light.png');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent);
  }
  50% {
    text-shadow: 0 0 5px var(--color-blue-accent), 0 0 10px var(--color-blue-accent);
  }
}

.about-description {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-background);
}

/* Base card */
.profile-card.static {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--color-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
}

/* Lift on hover/focus (no overlay needed) */
.profile-card.static:hover,
.profile-card.static:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--color-card-shadow);
}

/* Media */
.profile-media img {
  width: 100%;
  height: 260px;                         /* nice mobile height */
  object-fit: cover;
  display: block;
}

/* Content */
.profile-body {
  padding: 1.25rem 1.25rem 1.5rem;
  color: var(--color-background);        /* assuming dark theme; swap to --color-foreground if light */
  background: var(--color-overlay-dark, rgba(0,0,0,0.35));
  backdrop-filter: blur(4px);
}

.profile-body h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--color-blue-accent);
}

.profile-body p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

/* Side-by-side on md+ */
@media (min-width: 768px) {
  .profile-card.static {
    grid-template-columns: 1fr 1.2fr;    /* image | text */
    min-height: 260px;
  }
  .profile-media img {
    height: 100%;
  }
  .profile-body {
    background: transparent;              /* let your card bg show through */
    backdrop-filter: none;
    padding: 1.5rem;
  }
}

/* Optional subtle zoom on image */
.profile-card.static:hover .profile-media img {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}



/* How it works */
.how-section {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(0, 31, 63, 0.5) 60%, rgba(0, 31, 63, 0) 100%);
  background-color: var(--color-primary);
  background-repeat: repeat;
  background-size: auto, cover;
  color: var(--color-background);
  font-family: var(--font-body);
  position: relative;
}

.sticky-boundary {
  position: relative;
  padding-bottom: 4rem;

}

/* force row to flex columns with equal height */
.sticky-boundary .row {
  display: flex;
  align-items: stretch;
}

.sticky-wrapper {
  position: sticky;
  top: 100px;
}

.how-steps {
  
}

.how-steps:last-child {
  margin-bottom: 0;
}

.step-block {
  margin-bottom: 40vh;
}

.step-block:last-child {
  margin-bottom:25px;
}

.how-steps h1 {
  color: var(--color-blue-accent);
  margin-bottom: 0.5rem;
}

.benefits-btn {
  margin-top: 14px;;
}

.benefits-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: var(--color-background);
  font-size: 1rem;
  line-height: 1.6;
}

.benefits-list li {
  margin-bottom: 0.75rem;
  list-style: none;
}

.image-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 50vh;
  position: sticky;
  top: 100px;
  gap: 1rem
}

.collage-img {
  margin:auto;
  width: 90%;
  padding-top: 50%;
  border-radius: 8px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(0.4) blur(1px);
  transition: all 0.4s ease;
  position: relative;
}

.collage-img.active {
  filter: brightness(1) blur(0);
  transform: scale(1.05);
  z-index: 2;
}

.pink-check {
  color: var(--color-accent);
  height: 5px;
  margin-right: 5px;
}

@media (max-width: 768px) {
  .image-collage {
    position: static;
    grid-template-columns: 1fr 1fr;
    margin-top: 2rem;
    height: 50vh;
    width: 100%;
    gap: 0.5rem;
  }

  .collage-img {
    padding-top: 100%;
    width: 100%;
  }

  .step-block {
    margin-bottom: 25px;
  }
  
  .step-block:last-child {
    margin-bottom:25px;
  }
}


/* Testimonials */
.testimonials-section {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(0, 31, 63, 0.5) 60%, rgba(0, 31, 63, 0) 100%);
  background-color: #001f3f;
  color: var(--color-background);
  font-family: var(--font-body);
  margin-bottom: 2rem;
  position:relative;
}

.testimonials-section:before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/circuit-blue.png');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.testimonial-card {
  background-color: var(--color-primary);
  border: 1px solid var(--color-blue-accent);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.05);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-text::before {
  content: "“";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 2rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.testimonial-author {
  font-weight: bold;
  color: var(--color-blue-accent);
  margin-bottom: 0.25rem;
}

.testimonial-stars {
  color: gold;
  font-size: 1.2rem;
}

/* Quiz */
.quiz-tab {
  border: 1px solid var(--color-blue-accent);
  background: var(--color-primary);
  color: var(--color-background);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 50vw;
}

.quiz-tab.active, .quiz-tab:hover {
  background: var(--color-accent);
}

.quiz-content .card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-background);
}

.quiz-img-container {
  background-image: url('../assets/images/progress2.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  border-radius: 10px;
}

.list-group-item {
  cursor: pointer;
  transition: background-color 0.2s;
}

.list-group-item:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-background)
}

/* Optional: prevent long labels from forcing overflow */
.quiz-tab { white-space: nowrap; }

/* Make buttons wrap nicely on small screens */
@media (max-width: 576px) {
  .quiz-tab {
    /* 2 columns: each button takes ~50% minus the gap */
    flex: 1 1 calc(50% - .5rem);
  }
}

/* Super-narrow devices: one per row */
@media (max-width: 360px) {
  .quiz-tab {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .quiz-tab {
    width: 100%;
  }
}

/* Footer */
.footer-section {
  margin-top: 5rem;
  color: var(--color-background);
  font-family: var(--font-body);
}

.footer-link {
  color: var(--color-background);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--color-accent);
}

/* Contact */
.contact-section {
  color: var(--color-background);
  font-family: var(--font-body);
}
.contact-info a {
  color: var(--color-blue-accent);
  text-decoration: none;
}
.contact-info a:hover {
  color: var(--color-accent);
}

/* Legal */

#tncs, #privacy, #data-protection, #cookies {
  color: var(--color-background);
  margin: 25px 25px
}

#tncs, #privacy, #data-protection, #cookies  > h1 {
  color: var(--color-background);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#tncs, #privacy, #data-protection, #cookies  h2 {
  color: var(--color-background);
  font-size: 1.8rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

#tncs, #privacy, #data-protection, #cookies  p {
  color: var(--color-background);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}