/* ─── ROOT COLORS ─────────────────────────────── */
:root {
  --primary:   #B44FE8;
  --secondary: #1EAEDB;
  --dark:      #0D0D1A;
  --light-bg:  #f0f0ff;
  --text-dark: #1a1a2e;
  --text-muted:#6c757d;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: #fff;
}

/* ─── NAVBAR ────────────────────────────────────── */
#mainNavbar {
  background-color: var(--dark);
  border-bottom: 2px solid var(--primary);
  transition: background 0.3s ease;
}

#mainNavbar .navbar-brand {
  color: var(--primary);
  letter-spacing: 1px;
}

#mainNavbar .nav-link {
  color: #ccc;
  font-weight: 500;
  transition: color 0.2s;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
  color: var(--primary);
}

/* ─── HERO ──────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.hero-section p {
  font-size: 1.2rem;
  color: #ddd;
}

.hero-section .btn {
  background-color: var(--primary);
  border: none;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.hero-section .btn:hover {
  opacity: 0.85;
}

/* ─── SECTION HEADINGS ──────────────────────────── */
section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* ─── FEATURE CARDS ─────────────────────────────── */
.feature-card {
  border: 1px solid #e8e0d0;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(115, 75, 26, 0.15);
}

.feature-card i {
  color: var(--secondary);
}

/* ─── WHY CHOOSE US ─────────────────────────────── */
.bg-light {
  background-color: var(--light-bg) !important;
}

/* ─── TESTIMONIAL CAROUSEL ──────────────────────── */
#testimonialCarousel {
  background-color: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
}

#testimonialCarousel .carousel-item p {
  color: var(--text-dark);
  font-size: 1.1rem;
  font-style: italic;
}
#testimonialCarousel .carousel-item p {
    padding: 20px 60px;
}

testimonial-carousel strong {
  color: var(--secondary);
  font-size: 0.95rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(0.5);
}

/* ─── FOOTER ────────────────────────────────────── */
.footer-section {
  background-color: var(--dark);
  border-top: 2px solid var(--secondary);
}

.footer-section a {
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--primary) !important;
}
 

/* ─── COURSES PAGE ──────────────────────────────── */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
}

.course-card {
  border: 1px solid #e8e0d0;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(115, 75, 26, 0.18);
}

.price-badge {
  background-color: var(--primary);
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.btn-enroll {
  background-color: var(--secondary);
  color: #fff;
  font-weight: 600;
  border: none;
  transition: background 0.2s ease;
}

.btn-enroll:hover {
  background-color: var(--primary);
  color: var(--dark);
}


/* ─── ABOUT PAGE ────────────────────────────────── */
.stat-box {
  background-color: #fff;
  border: 1px solid #e8e0d0;
  transition: transform 0.2s;
}

.stat-box:hover {
  transform: translateY(-4px);
}

.progress-fill {
  background-color: var(--secondary);
}

.team-card {
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(115, 75, 26, 0.15);
}

/* ─── TIMELINE ──────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 2px solid var(--secondary);
}

.timeline-content {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 8px;
  padding: 14px 18px;
}


/* ─── REGISTER PAGE ─────────────────────────────── */
.register-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 14px;
  max-width: 860px;
  box-shadow: 0 4px 20px rgba(115, 75, 26, 0.08);
}

.register-card .input-group-text {
  background-color: var(--secondary);
  color: #fff;
  border: none;
}

.register-card .form-control,
.register-card select {
  border: 1px solid #ddd;
  transition: border-color 0.2s;
}

.register-card .form-control:focus,
.register-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(219, 177, 42, 0.15);
}


/* ─── CONTACT PAGE ──────────────────────────────── */
.contact-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(115, 75, 26, 0.08);
}

.contact-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(219, 177, 42, 0.15);
}

.contact-info {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 14px;
  height: 100%;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background-color: var(--secondary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.map-container {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8e0d0;
}


/* ─── DEVELOPER PAGE ────────────────────────────── */
.dev-profile-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(115, 75, 26, 0.10);
}

.dev-badge {
  background-color: var(--primary);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
}

.dev-social-btn {
  background-color: var(--secondary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.dev-social-btn:hover {
  background-color: var(--primary);
  color: var(--dark);
}

.built-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.built-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(115, 75, 26, 0.12);
} 

/* ─── COURSE IMAGES ─────────────────────────────── */
.course-img {
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}


/* ─── DARK MODE TOGGLE BUTTON ───────────────────── */
.dark-toggle {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.dark-toggle:hover {
  background: var(--primary);
  color: var(--dark);
}

/* ─── DARK MODE STYLES ──────────────────────────── */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode #mainNavbar {
  background-color: #0a0a0a;
  border-bottom: 2px solid var(--primary);
}

body.dark-mode .bg-light {
  background-color: #1e1e1e !important;
}

body.dark-mode .card,
body.dark-mode .feature-card,
body.dark-mode .course-card,
body.dark-mode .team-card,
body.dark-mode .stat-box,
body.dark-mode .register-card,
body.dark-mode .contact-card,
body.dark-mode .contact-info,
body.dark-mode .timeline-content,
body.dark-mode .built-card,
body.dark-mode .dev-profile-card {
  background-color: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

body.dark-mode .card-text,
body.dark-mode .text-muted {
  color: #aaa !important;
}

body.dark-mode .form-control,
body.dark-mode select {
  background-color: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .form-control::placeholder {
  color: #777;
}

body.dark-mode section h2 {
  color: #e0e0e0;
}

body.dark-mode .footer-section {
  background-color: #0a0a0a;
}

body.dark-mode .modal-content {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode .modal-body {
  color: #ccc;
}

body.dark-mode .dropdown-menu {
  background-color: #1e1e1e;
  border-color: #333;
}

body.dark-mode .dropdown-item {
  color: #ccc;
}

body.dark-mode .dropdown-item:hover {
  background-color: #2a2a2a;
  color: var(--primary);
}  


/* ─── FOOTER UPGRADE ────────────────────────────── */
.footer-section {
  background-color: var(--dark);
  border-top: 2px solid var(--secondary);
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.footer-social:hover {
  background-color: var(--primary);
  color: var(--dark);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li {
  font-size: 0.88rem;
  color: #aaa;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #222;
}

/* Dark mode footer fix */
body.dark-mode .footer-section {
  background-color: #050510;
}


/* ─── SCROLL TO TOP ─────────────────────────────── */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--dark);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(180, 79, 232, 0.4);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background-color: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
}