:root {
  --accent: #9b59b6;
  --accent-bright: #f1c40f;
  --bg-light: #ffffff;
  --bg-dark: #121212;
  --text-light: #222;
  --text-dark: #f4f4f4;
  --card-light: #ffffff;
  --card-dark: #1e1e1e;
  --glass-light: rgba(255, 255, 255, 0.15);
  --glass-dark: rgba(255, 255, 255, 0.05);
  --blur: blur(10px);
  --transition: 0.3s ease-in-out;
}

[data-theme="light"] {
  --bg: var(--bg-light);
  --text: var(--text-light);
  --card: var(--card-light);
  --glass: var(--glass-light);
}

[data-theme="dark"] {
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --card: var(--card-dark);
  --glass: var(--glass-dark);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}

/* === HEADER === */
header {
  background: var(--accent);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 99;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-text p {
  font-size: 0.8rem;
}

.brand-text span {
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  font-weight: 500;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

/* === THEME TOGGLE === */
.theme-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* === HERO SECTION === */
.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h2 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: auto;
  color: var(--text);
}

/* === ABOUT + TESTIMONIAL === */
.about,
.testimonials {
  padding: 60px 20px;
  text-align: center;
}

.testimonial-box {
  background: var(--glass);
  padding: 25px;
  margin: 20px auto;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  max-width: 600px;
}

.testimonial-cards {
  margin-top: 30px;
}

/* === BUTTONS === */
.btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  transition: var(--transition);
}

.btn:hover {
  transform: scale(1.05);
}

.btn.small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* === MARGDARSHANK === */
.subtitle {
  margin-top: 10px;
  font-size: 1rem;
  color: #666;
}

.features-block {
  background: var(--glass);
  border-radius: 18px;
  padding: 20px;
  margin: 25px auto;
  max-width: 800px;
}

.features-list-icons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--text);
}

/* === COURSE CARDS === */
.course-flex {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
}

.plan {
  background: var(--glass);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  max-width: 280px;
  transition: transform 0.3s ease;
}

.plan:hover {
  transform: translateY(-8px);
}

.plan h3 {
  font-size: 1.1rem;
  color: var(--accent);
}

.plan p {
  margin: 5px 0;
}

.plan .price {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--accent-bright);
}

.plan .old-price {
  color: #aaa;
  text-decoration: line-through;
}

.features-list {
  list-style: none;
  font-size: 0.9rem;
  margin: 15px 0;
  padding: 0;
}

.features-list li {
  padding: 3px 0;
}

/* Plan Sizing & Order */
.plan-small {
  order: 1;
}

.plan-large {
  order: 2;
  transform: scale(1.08);
  border: 2px solid var(--accent);
  z-index: 1;
}

@media screen and (max-width: 768px) {
  .course-flex {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .plan-small, .plan-large {
    scroll-snap-align: center;
    flex-shrink: 0;
    min-width: 280px;
    margin: auto;
  }

  .plan-small:first-child { order: 1; }
  .plan-large { order: 3; } /* Appears last on mobile */
  .plan-small:last-child { order: 2; } 
}

/* Swipe Hint */
.swipe-hint {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin-top: -5px;
  display: none;
}

@media screen and (max-width: 768px) {
  .swipe-hint {
    display: block;
  }
}

/* === CONTACT & SOCIAL === */
.contact-social-wrapper {
  padding: 60px 20px;
}

.contact-social-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.form-box, .social-box {
  flex: 1;
  min-width: 280px;
}

form input, form textarea {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

form textarea {
  height: 120px;
  resize: vertical;
}

.social-box {
  padding: 20px;
  border-radius: 15px;
}

.social-links a {
  display: block;
  margin: 10px 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: white;
}

/* FOOTER */
footer {
  background: var(--accent);
  color: white;
  padding: 20px 0;
  text-align: center;
}
