/* Global Styles - 60-30-10 Color Rule */
/* Light Mode (Default): 60% Soft Light, 30% Pink, 10% Gold */
:root {
  /* 60% - Dominant Color (Soft Light) */
  --bg-primary: #f5f7fa;
  --bg-secondary: #eef1f6;
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;

  /* 30% - Secondary Color (Pink) */
  --color-secondary: #e91e63;
  --color-secondary-dark: #c2185b;
  --color-secondary-light: #f48fb1;

  /* 10% - Accent Color (Gold) */
  --color-accent: #ffd700;
  --color-accent-dark: #fdd835;

  /* Additional Colors */
  --success-green: #4caf50;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
  --gradient-accent: linear-gradient(135deg, #ffd700 0%, #fdd835 100%);
}

/* Dark Mode */
[data-theme="dark"] {
  /* 60% - Dominant Color (Dark) */
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;

  /* 30% - Secondary Color (Pink - slightly adjusted for dark) */
  --color-secondary: #f48fb1;
  --color-secondary-dark: #e91e63;
  --color-secondary-light: #f8bbd0;

  /* 10% - Accent Color (Gold) */
  --color-accent: #ffd700;
  --color-accent-dark: #fdd835;

  /* Additional Colors */
  --border-color: #3a3a3a;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  /* Use theme-aware colors so dark mode inherits a dark navbar */
  background-color: var(--bg-secondary);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow-color);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand .logo {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--color-secondary);
}

.btn-nav {
  background: var(--gradient-primary);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: transform 0.3s;
}

.btn-nav:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  transform: scale(1.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  background: var(--bg-primary);
  position: relative;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title .highlight {
  display: block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: #ffffff;
}

/* Stats */
.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stat-item p {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  margin: 0 auto;
  border-radius: 40px;
  background: var(--bg-secondary);
  padding: 15px;
  box-shadow: 0 20px 60px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.app-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  position: absolute;
  top: 15px;
  left: 15px;
  opacity: 0;
  transition: opacity 0.5s;
}

.app-screen.active {
  opacity: 1;
}

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.ripple:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active:after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Ripple Effect for Buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
  animation: rippleAnimation 0.6s;
}

@keyframes rippleAnimation {
  from {
    width: 0;
    height: 0;
    opacity: 1;
  }
  to {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

/* Problem Section */
.problem-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.problem-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid var(--border-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.problem-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-secondary);
  box-shadow: 0 12px 24px rgba(233, 30, 99, 0.15);
}

[data-theme="dark"] .problem-card {
  background: var(--bg-primary);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.problem-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.problem-card p {
  color: var(--text-secondary);
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .feature-card {
  background: var(--bg-secondary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.learn-card::before {
  background: var(--gradient-accent);
}

.save-card::before {
  background: var(--gradient-primary);
}

.invest-card::before {
  background: linear-gradient(90deg, var(--success-green) 0%, #66bb6a 100%);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 25px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.step {
  text-align: center;
  flex: 1;
  padding: 0 1rem;
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step h3 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
}

.step-connector {
  position: absolute;
  top: 30px;
  width: 150px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-secondary) 0%,
    var(--color-accent) 100%
  );
}

.step-connector:nth-of-type(2) {
  left: 25%;
}

.step-connector:nth-of-type(4) {
  left: 50%;
}

.step-connector:nth-of-type(6) {
  left: 75%;
}

/* Impact Section */
.impact {
  padding: 80px 0;
  background: var(--bg-primary);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.impact-card {
  background: rgba(233, 30, 99, 0.05);
  border: 1px solid rgba(233, 30, 99, 0.2);
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.3s;
}

.impact-card:hover {
  background: rgba(233, 30, 99, 0.1);
  transform: scale(1.05);
}

.impact-card h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.impact-card p {
  color: var(--text-secondary);
}

/* USSD Platform Section */
.ussd-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.ussd-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ussd-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.ussd-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.ussd-code-box {
  background: var(--gradient-primary);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

.ussd-label {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.ussd-code {
  display: block;
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 3px;
}

.ussd-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.ussd-features li {
  padding: 0.7rem 0;
  color: var(--text-primary);
  position: relative;
  padding-left: 30px;
  font-size: 1.1rem;
}

.ussd-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.3rem;
}

.ussd-note {
  background: rgba(255, 215, 0, 0.1);
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--color-accent);
  color: var(--text-primary);
  font-size: 1rem;
}

/* USSD Phone Visual */
.phone-frame {
  max-width: 300px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 8px solid var(--text-primary);
  border-radius: 30px;
  padding: 20px 15px;
  box-shadow: 0 20px 40px var(--shadow-color);
}

.phone-screen {
  background: #000000;
  color: #00ff00;
  padding: 2rem;
  border-radius: 10px;
  font-family: "Courier New", monospace;
  min-height: 350px;
}

.ussd-display {
  font-size: 0.95rem;
  line-height: 1.6;
}

.ussd-prompt {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.ussd-response {
  color: #00ff00;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.ussd-menu {
  color: #00ff00;
  line-height: 2;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-primary);
  text-align: center;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  background: var(--bg-primary);
  color: var(--color-secondary);
  border: 2px solid transparent;
}

.btn-large:hover {
  background: #ffffff;
  transform: translateY(-3px);
  border-color: var(--color-secondary);
}

.btn-outline {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--color-secondary);
}

/* Early Access Note */
.early-access-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
}

.early-access-note strong {
  color: var(--color-accent);
  font-size: 1.05rem;
}

.early-access-note small {
  display: block;
  margin-top: 0.5rem;
  opacity: 0.9;
  font-size: 0.85rem;
}

/* Footer */
.footer {
  padding: 60px 0 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer h4 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  padding: 0.5rem 0;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    box-shadow: 0 4px 6px var(--shadow-color);
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .stats {
    justify-content: center;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
  }

  .steps {
    flex-direction: column;
    gap: 2rem;
  }

  .step-connector {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ussd-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ussd-text h2 {
    font-size: 2rem;
  }

  .ussd-code {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Scroll Animations */
[data-aos] {
  opacity: 0;
  transition: all 0.8s ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* Learning Sessions Section */
.learning-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.learning-section .section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.learning-section .section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.video-card {
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.2);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.video-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.youtube-channel {
  text-align: center;
  margin-top: 3rem;
}

.youtube-channel .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.youtube-channel .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .learning-section {
    padding: 4rem 1.5rem;
  }
}
