@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #091209; /* Deep dark green */
  --bg-card: rgba(57, 84, 41, 0.2); /* Dark green glassmorphism base */
  --primary-neon: #8aaf2c; /* Light Green */
  --secondary-neon: #395429; /* Dark Green */
  --accent-neon: #6cd373; /* Accent Green */
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --glass-border: rgba(138, 175, 44, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(138, 175, 44, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(57, 84, 41, 0.1) 0%, transparent 50%);
}

/* Custom Scrollbar (Matched from cdc-web) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #395429;
}
::-webkit-scrollbar-thumb {
  background: #8aaf2c;
  border-radius: 5px;
  border: 2px solid #005d02;
}
::-webkit-scrollbar-thumb:hover {
  background: #05a60d;
}

/* Typography Enhancements */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 5%;
}

.text-center {
  text-align: center;
}

section {
  padding: 8rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Navbar (Glassmorphism) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(9, 18, 9, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo img {
  height: 50px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--primary-neon);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary-neon);
}

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

.nav-links a:hover {
  color: var(--white);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--primary-neon);
}

/* Buttons */
.btn-primary {
  background: transparent;
  color: var(--primary-neon);
  padding: 0.8rem 2rem;
  border: 1px solid var(--primary-neon);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--primary-neon);
  color: var(--bg-dark);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), inset 0 0 10px rgba(255,255,255,0.5);
  text-shadow: none;
}

.btn-secondary {
  background: rgba(112, 0, 255, 0.1);
  color: var(--white);
  padding: 0.8rem 2rem;
  border: 1px solid var(--secondary-neon);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 0 10px rgba(112, 0, 255, 0.2);
}

.btn-secondary:hover {
  background: var(--secondary-neon);
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.6);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background animated grid for hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(135deg, rgba(108, 211, 115, 0.1) 25%, transparent 25%, transparent 50%, rgba(97, 204, 102, 0.1) 50%, rgba(45, 150, 50, 0.1) 75%, transparent 75%, transparent),
    linear-gradient(225deg, rgba(92, 171, 97, 0.1) 25%, transparent 25%, transparent 50%, rgba(63, 139, 68, 0.1) 50%, rgba(35, 82, 38, 0.1) 75%, transparent 75%, transparent);
  background-size: 25px 25px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  animation: gridMove 20s linear infinite;
  z-index: -1;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 500px; }
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.trust-badges {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.trust-badges span {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.badge-icons {
  display: flex;
  gap: 2rem;
  opacity: 0.6;
  font-size: 1.5rem; /* Placeholder for actual SVGs/Icons */
}

/* Cards / Grid (Glassmorphism) */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.course-img-wrapper {
  margin: -2.5rem -2.5rem 1.5rem -2.5rem;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  flex-shrink: 0;
}

.course-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.card-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-neon);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-meta span {
  white-space: nowrap;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card .btn-secondary {
  text-align: center;
  width: 100%;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(to right, rgba(57,84,41,0.2), rgba(9,18,9,0.9));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--primary-neon);
  margin-bottom: 0.5rem;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.stat-item p {
  color: var(--text-main);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255,255,255,0.02);
}

.faq-question i {
  color: var(--primary-neon);
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.faq-question.active + .faq-answer {
  max-height: 500px; /* arbitrary max height for transition */
  padding-bottom: 1.5rem;
}

/* Filters (Courses Page) */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary-neon);
  color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Footer */
footer {
  background: rgba(9, 18, 9, 0.95);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 5%;
}

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

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(57, 84, 41, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* --- Phase 2: Mega Menu --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -50%;
  width: 280px;
  background: rgba(9, 18, 9, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(0, 240, 255, 0.1);
}

.dropdown-item i {
  color: var(--primary-neon);
  font-size: 1.2rem;
}

.dropdown-item span {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.dropdown-item small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Phase 2: Custom Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-neon);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  z-index: 9999;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 240, 255, 0.2);
  border-color: transparent;
}

/* --- Phase 2: Floating Contact Widget --- */
.floating-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: transform 0.3s ease;
  animation: floatPulse 2s infinite;
}

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

@keyframes floatPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0, 240, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* --- Phase 2: Testimonials (Swiper) --- */
.swiper-wrapper {
  transition-timing-function: linear !important;
}

.swiper-slide {
  height: auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: left;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card p {
  flex-grow: 1;
}

.testimonial-card i.fa-quote-left {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  color: rgba(255,255,255,0.05);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-neon);
}

.swiper-pagination-bullet {
  background: var(--text-muted);
}
.swiper-pagination-bullet-active {
  background: var(--primary-neon);
  box-shadow: 0 0 10px var(--primary-neon);
}

/* --- Phase 2: Interactive Timeline Stepper --- */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.1);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem; /* center the dot over the line */
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-neon);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 10px var(--primary-neon);
  transition: all 0.3s ease;
}

.timeline-item:hover::before {
  transform: scale(1.3);
  background: var(--accent-neon);
  box-shadow: 0 0 15px var(--accent-neon);
}

.timeline-content {
  background: rgba(57,84,41,0.2);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateX(10px);
}

/* Course Details Specifics */
.course-header-card {
  background: var(--bg-card);
  padding: 4rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.course-title {
  margin-bottom: 1rem;
  font-size: 3rem;
  text-transform: uppercase;
}

.course-meta-info {
  font-weight: 600;
  color: var(--primary-neon);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.course-desc {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.feature-badge {
  background: rgba(138, 175, 44, 0.1);
  border: 1px solid var(--primary-neon);
  color: var(--primary-neon);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Course Details Layout */
.course-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(9, 18, 9, 0.98);
    padding: 2rem 5%;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  /* Reset Dropdown for mobile */
  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    border-left: 2px solid var(--primary-neon);
    padding: 0.5rem 0 0.5rem 1rem;
    margin-top: 1rem;
    display: none;
  }
  
  .dropdown:hover .dropdown-menu {
    display: flex;
    transform: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 3rem;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .card h3 {
    font-size: 1.3rem;
  }

  .course-img-wrapper {
    margin: -1.25rem -1.25rem 1rem -1.25rem;
  }

  .card-meta {
    font-size: 0.7rem;
  }

  .stat-item h3 {
    font-size: 2.5rem;
  }
  
  .course-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .course-header-card {
    padding: 1.5rem;
  }
  
  .course-title {
    font-size: 2rem;
  }
}
