/* ---------------------------------
/* Global Styles
---------------------------------- */

/* Modal styles moved to modal-fixes.css for better organization */

/* CSS Variables */
:root {
  --primary-color: #ff6f61;
  --primary-dark: #ff4b7d;
  --secondary-color: #4d9de0;
  --accent-color: #ffd166;
  --neutral-50: #fef8ff;
  --neutral-100: #f9f5ff;
  --neutral-300: #e9e0ff;
  --neutral-900: #1a1c2d;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --shadow-soft: 0 20px 40px rgba(31, 35, 53, 0.18);
}

/* Body and Typography */
body {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--neutral-50) 0%, #ffffff 35%, #f2f6ff 100%);
  color: var(--neutral-900);
  font-family: "Poppins", "Fredoka", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.15vw, 1.1rem);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 176, 189, 0.35), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(133, 193, 255, 0.35), transparent 40%),
    radial-gradient(circle at 50% 75%, rgba(255, 209, 102, 0.25), transparent 45%);
  z-index: -2;
}

main {
  position: relative;
  z-index: 1;
}

/* Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
a:hover {
  text-decoration: none;
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.text-gradient {
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: #fff;
  box-shadow: 0 12px 25px rgba(255, 111, 97, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover,
.btn-gradient:focus {
  box-shadow: 0 18px 35px rgba(77, 157, 224, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-primary,
.btn-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-soft-light {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--primary-color);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-soft-light:hover,
.btn-soft-light:focus {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  color: var(--primary-dark);
}

.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-soft);
}

.brand-badge {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(255, 111, 97, 0.85), rgba(77, 157, 224, 0.9));
  color: #fff;
  font-size: 1.25rem;
}

.auth-hero {
  background: linear-gradient(160deg, rgba(255, 111, 97, 0.08), rgba(77, 157, 224, 0.05));
}

.letter-spacing-sm {
  letter-spacing: 0.08em;
}

#cookie-consent {
  background: rgba(26, 28, 45, 0.95);
  color: #fff;
}

#cookie-consent button {
  background: var(--accent-color);
  border: none;
  color: #1a1c2d;
  font-weight: 600;
}

#cookie-consent button:hover {
  background: #ffe08a;
  color: #1a1c2d;
}
  
  /* ---------------------------------
     Carousel Styles
  ---------------------------------- */
  
  /* Carousel Image */
  .carousel-img {
    height: 650px;
    object-fit: cover;
  }

  /* Ensure signup section columns are at least the same height as the carousel images */
#signup > .col-md-6 {
  min-height: 650px;
}

  /* .c-img{
    opacity: -0.6;
  } */
  
  .carousel-caption h2 {
    margin-top: -30% !important;
  }

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.5rem);
}

  .carousel-caption .overlay {
    background: rgba(0, 0, 0, 0.55);
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
  }

  #hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
  }

  #hero-bg::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 20%, transparent 20%) 0 0/10px 10px;
    animation: moveBG 30s linear infinite;
  }

  @keyframes moveBG {
    0% { transform: translate(0,0); }
    100% { transform: translate(50%,50%); }
  }

  /* Carousel Captions */
  .carousel-caption h2 {
    font-size: 2.5rem !important;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  }
  
  .carousel-caption p {
    font-size: 1.25rem;
    color: #e0e0e0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
  }
  
  .carousel-caption a.btn {
    font-size: 1rem;
  }

/* Mobile adjustments for hero carousel */
@media (max-width: 576px) {
  .carousel-img {
    height: 400px;
  }

  .carousel-caption {
    top: auto;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
  }

  .carousel-caption h2 {
    font-size: 1.5rem !important;
    margin-top: 0 !important;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .carousel-caption a.btn {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
  }

  .carousel-caption .overlay {
    padding: 0.75rem 1rem;
    width: 100%;
  }
}

  /* Copied */

  /* .carousel-caption h2 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  }
  .carousel-caption p {
    font-size: 1.25rem;
    color: #e0e0e0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
  } */
  
  /* ---------------------------------
     About Section
  ---------------------------------- */
  .about-section {
    background: linear-gradient(135deg, rgba(77, 157, 224, 0.12), rgba(255, 111, 97, 0.12));
    color: var(--neutral-900);
    min-height: 400px;
    border-radius: 2rem;
    padding: 3rem 2rem;
  }

  .about-section h2 {
    font-weight: 700;
    color: var(--primary-color);
  }

  .about-section p {
    line-height: 1.7;
  }
  
  /* ---------------------------------
     Course List
  ---------------------------------- */
.course-card {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(233, 224, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(26, 28, 45, 0.08);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26, 28, 45, 0.14);
}

.course-img {
  position: relative;
}

.course-img::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(to top, rgba(26, 28, 45, 0.75), transparent);
}
  
  /* ---------------------------------
     Contact Section
  ---------------------------------- */
  .contact-section {
    background: linear-gradient(120deg, rgba(77, 157, 224, 0.85), rgba(255, 111, 97, 0.9));
    color: #fff;
  }
  
  .contact-link {
    color: #fff;
    text-decoration: underline;
  }

/* Cookie consent banner */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8f9fa;
  border-top: 1px solid #ccc;
  display: none;
}

/* Sticky filter sidebar */
#courseFilter {
  position: sticky;
  top: 20px;
  z-index: 100;
  align-self: flex-start;
}

/* Brand Buttons */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  transform: scale(1.05);
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transition: transform 0.2s ease;
}

.btn-outline-primary:hover {
  color: #fff !important;
  background-color: var(--primary-color) !important;
  transform: scale(1.05);
}

.start-learning-btn {
  transition: background-color 0.2s ease;
}

.start-learning-btn:hover {
  background-color: var(--accent-color) !important;
}

/* Section Fade In */
.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: none;
}

/* Navbar shrink */
.navbar.navbar-shrink {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  transition: padding 0.2s ease;
}
