/* ===================================================
   Pathashala AI Mentor Landing Page CSS
   Advanced | Professional | Interactive | In-Depth UI
   =================================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* ---------- CSS VARIABLES (THEMING) ---------- */
/* Feel free to adjust these values for your ideal theme */
:root {
  /* Primary Palette */
  --primary-color: #0056b3;       /* A deeper blue for strong CTAs and accents */
  --secondary-color: #6c757d;     /* Subdued text */
  --accent-color: #e83e8c;        /* Vibrant accent for badges, hovers, etc. */
  --bg-color: #f9f9f9;            /* Light neutral background */
  --text-color: #333333;          /* Clear, dark text for readability */
  --heading-color: #222222;

  /* Sizing, spacing & transitions */
  --max-width: 1200px;
  --transition-speed: 0.35s;
  --border-radius: 4px;
}

html[data-theme="dark"] {
  --primary-color: #0d6efd;
  --secondary-color: #adb5bd;
  --accent-color: #ff6b6b;
  --bg-color: #121212;
  --text-color: #e5e5e5;
  --heading-color: #ffffff;
}

/* ---------- GLOBAL CONTAINERS ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- ANIMATIONS & TRANSITIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ---------- HEADER & NAVIGATION ---------- */
.appbar {
  background-color: var(--bg-color);
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: fadeInDown 0.5s ease-in-out;
}

.appbar__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.appbar__brand {
  display: flex;
  align-items: center;
}

.appbar__brand img {
  max-width: 140px;
}

.appbar__tagline {
  margin-left: 10px;
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-style: italic;
}

.appbar__nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.appbar__nav li {
  margin: 0 15px;
}

.appbar__nav a {
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.appbar__nav a:hover {
  color: var(--primary-color);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
  transition: transform var(--transition-speed);
}

.theme-toggle:hover {
  transform: rotate(20deg);
}

/* ---------- HERO SECTION ---------- */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  animation: fadeInUp 1s ease-out;
}
.hero__text {
  flex: 1;
  min-width: 300px;
  animation: fadeInLeft 1s ease-out;
}
.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
.hero__subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero__text p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--primary-color);
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}
.hero__cta:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: scale(1.05);
}
.hero__trust {
  font-size: 0.9rem;
  margin-top: 20px;
}
.hero__visual {
  flex: 1;
  min-width: 300px;
  position: relative;
  animation: fadeInRight 1s ease-out;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

/* ---------- SECTION BASE ---------- */
.section {
  padding: 80px 0;
  position: relative;
}
.section--alt {
  background-color: #f1f1f1;
}

.section__title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 50px;
  color: var(--heading-color);
  animation: fadeInUp 0.8s ease-out;
}
.section__title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto;
  border-radius: 2px;
}

/* ---------- BENEFITS / CARDS ---------- */
.benefits__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.card {
  background: #fff;
  padding: 30px 25px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  flex: 1;
  min-width: 250px;
  animation: fadeInUp 0.8s ease-out;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card__icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  transition: transform 0.3s;
}
.card:hover .card__icon {
  transform: scale(1.1);
}
.card__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--heading-color);
}
.card__body {
  font-size: 1.05rem;
  color: var(--secondary-color);
}

/* ---------- TIMELINE & ROADMAP ---------- */
.timeline {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  animation: fadeInUp 0.9s ease-out;
}
.timeline-horizontal {
  flex-wrap: nowrap;
}
.timeline-step {
  background: #fff;
  padding: 25px;
  border-radius: var(--border-radius);
  min-width: 240px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed);
  position: relative;
}
.timeline-step:hover {
  transform: translateY(-6px);
}
.timeline-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.timeline-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--heading-color);
}
.timeline-info p,
.timeline-info ul {
  font-size: 1rem;
  color: var(--secondary-color);
  line-height: 1.5;
}
.timeline-info ul {
  list-style: disc;
  padding-left: 20px;
}
.timeline-info li {
  margin-bottom: 5px;
}

/* Roadmap Cards */
.roadmap__card {
  background: #fff;
  padding: 25px 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  animation: fadeInUp 0.8s ease-out;
}
.roadmap__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.roadmap__card .phase {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 10px;
}
.roadmap__goal {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--heading-color);
}
.roadmap__list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 10px;
  text-align: left;
  font-size: 1rem;
  color: var(--secondary-color);
}
.roadmap__earn {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.roadmap__progress {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e9ecef;
}
.roadmap__progress::-webkit-progress-bar {
  background: #e9ecef;
}
.roadmap__progress::-webkit-progress-value {
  background: var(--primary-color);
  border-radius: 4px;
}

/* ---------- EARNINGS CALCULATOR ---------- */
.calc__wrapper {
  max-width: 600px;
  margin: auto;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}
.calc__label {
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
}
.calc__quick {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.calc__bubble {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-speed), transform var(--transition-speed);
}
.calc__bubble:hover,
.calc__bubble.active {
  background: var(--accent-color);
  transform: scale(1.1);
}
.calc__slider {
  margin: 20px auto;
  max-width: 90%;
}
.calc__output p {
  font-size: 1.1rem;
  margin: 12px 0;
  font-weight: 500;
}
.calc__hint {
  font-size: 0.95rem;
  color: var(--secondary-color);
  margin-top: 10px;
}

/* ---------- FAQ SECTION: MODERN ACCORDION ---------- */
.faq__accordion {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}
.faq__item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  transition: background var(--transition-speed);
}
.faq__item:hover {
  background-color: #f1f1f1;
}
.faq__question {
  width: 100%;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  text-align: left;
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__question:hover {
  color: var(--primary-color);
}
.faq__question i {
  transition: transform var(--transition-speed);
}
.faq__question[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 1rem;
  color: var(--secondary-color);
  padding: 0 10px;
}
.faq__item[aria-expanded="true"] .faq__answer {
  max-height: 200px;
  padding-top: 10px;
}

/* ---------- SUCCESS METRICS ---------- */
.metrics__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 30px 0;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}
.metric h3 {
  font-size: 2.8rem;
  color: var(--primary-color);
  transition: transform var(--transition-speed);
}
.metric:hover h3 {
  transform: scale(1.1);
}
.metric p {
  font-size: 1rem;
  margin-top: 6px;
}

/* ---------- FOUNDER’S CORNER ---------- */
.founder__profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  animation: fadeInUp 0.9s ease-out;
}
.founder__image {
  flex: 1;
  min-width: 250px;
  overflow: hidden;
  border-radius: var(--border-radius);
  animation: fadeInLeft 0.9s ease-out;
}
.founder__image img {
  width: 100%;
  display: block;
  transition: transform 0.35s;
}
.founder__image img:hover {
  transform: scale(1.05);
}
.founder__bio {
  flex: 2;
  min-width: 300px;
  animation: fadeInRight 0.9s ease-out;
}
.founder__bio h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--heading-color);
}
.founder__bio p {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ---------- CHATBOT SECTION ---------- */
.chatbot__wrapper {
  max-width: 600px;
  margin: auto;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}
.chatbot__description {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--secondary-color);
}
.chatbot__window {
  background: #fff;
  min-height: 250px;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  text-align: left;
  overflow-y: auto;
  animation: fadeInUp 0.8s ease-out;
}
.chatbot__form {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.chatbot__form input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
}
.chatbot__form button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background var(--transition-speed);
}
.chatbot__form button:hover {
  background-color: var(--accent-color);
}

/* ---------- NEWSLETTER / CTA ---------- */
#newsletter {
  background: var(--primary-color);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}
#newsletter h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}
#newsletter p {
  font-size: 1rem;
  margin-bottom: 25px;
}
#newsletter input[type="email"] {
  padding: 12px;
  border-radius: var(--border-radius);
  border: none;
  width: 260px;
}
#newsletter button {
  padding: 12px 24px;
  margin-left: 12px;
  background: var(--accent-color);
  border: none;
  border-radius: var(--border-radius);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-speed);
}
#newsletter button:hover {
  background: #fff;
  color: var(--primary-color);
}

/* ---------- CONTACT SECTION ---------- */
.contact__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  animation: fadeInUp 0.8s ease-out;
}
.contact__info {
  flex: 1;
  min-width: 300px;
}
.contact__info h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--heading-color);
}
.contact__info a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}
.contact__info a:hover {
  color: var(--accent-color);
}
.contact__map {
  flex: 1;
  min-width: 300px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-color);
  border-top: 1px solid #ddd;
  padding: 30px 0;
  animation: fadeInUp 0.8s ease-out;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.footer__brand {
  display: flex;
  align-items: center;
}
.footer__brand img {
  max-width: 140px;
  margin-right: 10px;
}
.footer__tagline {
  font-size: 0.9rem;
  color: var(--secondary-color);
}
.footer__nav ul {
  display: flex;
  list-style: none;
}
.footer__nav li {
  margin: 0 10px;
}
.footer__nav a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}
.footer__nav a:hover {
  color: var(--primary-color);
}
.footer__social a {
  margin: 0 5px;
  font-size: 1.2rem;
  color: var(--text-color);
  transition: color var(--transition-speed);
}
.footer__social a:hover {
  color: var(--primary-color);
}
.footer__copy {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--secondary-color);
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 768px) {
  .appbar__grid {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .hero__grid {
    flex-direction: column-reverse;
    text-align: center;
  }
  .benefits__grid,
  .metrics__grid,
  .footer__grid,
  .contact__grid {
    flex-direction: column;
    align-items: center;
  }
  .timeline {
    flex-direction: column;
  }
  .founder__profile {
    flex-direction: column;
  }
  .chatbot__wrapper,
  .calc__wrapper {
    width: 100%;
  }
}
