:root {
  --primary-purple: #6b2d8f;
  --primary-gold: #ffc107;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --bg-light: #f8f9fa;
  --bg-purple-light: #f5f0f8;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  padding: 1.25rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-purple) !important;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.nav-link {
  color: #4a5568 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--primary-purple) !important;
}

.nav-signin {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-signin:hover {
  color: var(--primary-purple);
}

.btn-primary {
  background-color: var(--primary-purple);
  border-color: var(--primary-purple);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: #5a2577;
  border-color: #5a2577;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 45, 143, 0.3);
}

/* Hero Section */
/* Added carousel background with overlay and proper layering */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero-background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 45, 143, 0.85) 0%, rgba(74, 31, 99, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge-custom {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.text-gold {
  color: var(--primary-gold);
}

.hero-text {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.8;
}

.btn-gold {
  background-color: var(--primary-gold);
  border: none;
  color: var(--text-dark);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-gold:hover {
  background-color: #ffb300;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Journey Section */
/* Increased padding from 100px to 150px */
.journey-section {
  background: white;
  padding: 150px 0;
}

.journey-section .row {
  gap: 40px;
}

.journey-section .col-lg-6 {
  flex: 1;
}

.badge-custom-purple {
  display: inline-flex;
  align-items: center;
  background: rgba(107, 45, 143, 0.1);
  color: var(--primary-purple);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.btn-purple {
  background-color: var(--primary-purple);
  border: none;
  color: white;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-purple:hover {
  background-color: #5a2577;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 45, 143, 0.3);
}

.image-wrapper {
  background: linear-gradient(135deg, rgba(107, 45, 143, 0.08) 0%, rgba(107, 45, 143, 0.12) 100%);
  padding: 40px;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 10px 30px rgba(107, 45, 143, 0.1);
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(107, 45, 143, 0.15);
  border-radius: 50%;
  z-index: 0;
}

.image-wrapper img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .image-wrapper {
    padding: 30px;
  }

  .journey-section .row {
    gap: 20px;
  }
}

/* Features Section */
/* Increased padding from 100px to 150px */
.features-section {
  background: #f8f8fc;
  padding: 150px 0;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.feature-card {
  background: white;
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(107, 45, 143, 0.03) 0%, rgba(107, 45, 143, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(107, 45, 143, 0.15);
  border-color: rgba(107, 45, 143, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.feature-icon.purple {
  background: rgba(107, 45, 143, 0.1);
  color: var(--primary-purple);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: rgba(107, 45, 143, 0.15);
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
  color: var(--primary-purple);
}

.feature-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.75;
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .feature-card {
    padding: 32px 24px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .feature-title {
    font-size: 1.2rem;
  }

  .feature-text {
    font-size: 0.95rem;
  }
}

/* Steps Section */
/* Increased padding from 100px to 150px */
.steps-section {
  background: var(--bg-purple-light);
  padding: 150px 0;
}

/* New alternating timeline layout with vertical line on the right */
.timeline-container {
  position: relative;
  padding: 80px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-container::before {
  content: "";
  position: absolute;
  right: 50%;
  top: 100px;
  bottom: 100px;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--primary-purple) 0%,
    var(--primary-purple) 60%,
    var(--primary-gold) 60%,
    var(--primary-gold) 100%
  );
  margin-right: -1.5px;
  z-index: 0;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 120px;
  position: relative;
  min-height: 180px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

/* Left side layout - number and text on left of line */
.timeline-left {
  justify-content: flex-end;
  padding-right: calc(50% + 50px);
}

.timeline-left .timeline-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.timeline-left .timeline-number {
  margin-bottom: 24px;
}

/* Right side layout - number and text on right of line */
.timeline-right {
  justify-content: flex-start;
  padding-left: calc(50% + 50px);
}

.timeline-right .timeline-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.timeline-right .timeline-number {
  margin-bottom: 24px;
}

.timeline-content-wrapper {
  max-width: 420px;
}

.timeline-text-content {
  width: 100%;
}

.timeline-number-wrapper {
  display: contents;
}

.timeline-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.purple-number {
  background-color: var(--primary-purple);
}

.gold-number {
  background-color: var(--primary-gold);
  color: var(--text-dark);
}

.timeline-spacer {
  display: none;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.timeline-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.75;
  margin: 0;
}

/* Responsive timeline */
@media (max-width: 992px) {
  .timeline-container {
    max-width: 100%;
    padding: 60px 20px;
  }

  .timeline-container::before {
    left: 35px;
    right: auto;
    top: 80px;
    bottom: 80px;
  }

  .timeline-step {
    margin-bottom: 80px;
    padding-left: 90px !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
    min-height: auto;
  }

  .timeline-left .timeline-content-wrapper,
  .timeline-right .timeline-content-wrapper {
    align-items: flex-start;
    text-align: left;
  }

  .timeline-text-content {
    max-width: 100%;
  }

  .timeline-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .timeline-title {
    font-size: 1.3rem;
  }

  .timeline-text {
    font-size: 0.95rem;
  }
}

/* Testimonial Section */
/* Increased padding from 100px to 150px */
.testimonial-section {
  background: #f8f8fc;
  padding: 150px 0;
}

.testimonial-card {
  background: white;
  padding: 50px 60px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  min-height: 280px;
}

.quote-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 28px;
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.author-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.author-title {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Carousel Controls */
.testimonial-section .carousel-control-prev,
.testimonial-section .carousel-control-next {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.testimonial-section .carousel-control-prev {
  left: -80px;
}

.testimonial-section .carousel-control-next {
  right: -80px;
}

.testimonial-section .carousel-control-prev:hover,
.testimonial-section .carousel-control-next:hover {
  background: var(--primary-purple);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 16px rgba(107, 45, 143, 0.3);
}

.testimonial-section .carousel-control-icon {
  width: auto;
  height: auto;
  background: none;
}

.testimonial-section .carousel-control-icon i {
  font-size: 1.25rem;
  color: var(--primary-purple);
}

.testimonial-section .carousel-control-prev:hover .carousel-control-icon i,
.testimonial-section .carousel-control-next:hover .carousel-control-icon i {
  color: white;
}

/* Carousel Indicators */
.testimonial-section .carousel-indicators {
  position: relative;
  margin-top: 30px;
  margin-bottom: 0;
  bottom: auto;
}

.testimonial-section .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d0d0d0;
  border: none;
  opacity: 1;
  transition: all 0.3s;
}

.testimonial-section .carousel-indicators .active {
  background-color: var(--primary-purple);
  width: 12px;
  height: 12px;
}

/* Responsive testimonial */
@media (max-width: 992px) {
  .testimonial-section .carousel-control-prev {
    left: -25px;
  }

  .testimonial-section .carousel-control-next {
    right: -25px;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 40px 30px;
    min-height: auto;
  }

  .testimonial-text {
    font-size: 1.05rem;
  }

  .testimonial-section .carousel-control-prev,
  .testimonial-section .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .testimonial-section .carousel-control-prev {
    left: 10px;
  }

  .testimonial-section .carousel-control-next {
    right: 10px;
  }

  .testimonial-section .carousel-control-icon i {
    font-size: 1rem;
  }
}

/* Ancestors Section */
/* Increased padding from 100px to 150px */
.ancestors-section {
  background: #f8f8fc;
  padding: 150px 0;
}

.ancestor-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ancestor-card:hover {
  transform: translateY(-8px);
}

.ancestor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ancestor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(107, 45, 143, 0.7) 0%,
    rgba(107, 45, 143, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: opacity 0.4s ease;
}

.ancestor-card:hover .ancestor-overlay {
  opacity: 0;
}

.ancestor-overlay i {
  font-size: 2rem;
  margin-bottom: 12px;
}

.unlock-text {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
}

.btn-unlock {
  background-color: rgba(107, 45, 143, 0.1);
  color: var(--primary-purple);
  border: none;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s;
}

.btn-unlock:hover {
  background-color: var(--primary-purple);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 45, 143, 0.3);
}

/* Responsive ancestors section */
@media (max-width: 768px) {
  .ancestor-overlay i {
    font-size: 1.5rem;
  }

  .unlock-text {
    font-size: 0.85rem;
  }
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 120px 20px;
  color: white;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1604881991720-f91add269bed?w=1920&h=800&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 45, 143, 0.92) 0%, rgba(74, 31, 99, 0.92) 100%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.cta-text {
  font-size: 1.15rem;
  opacity: 0.95;
  line-height: 1.8;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-purple);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 80px 20px;
  }

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

  .cta-text {
    font-size: 1rem;
  }
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 80px 0 40px;
}

.footer-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-gold);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-icon {
  margin-top: 24px;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(107, 45, 143, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 1.5rem;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 768px) {
  .social-links {
    justify-content: flex-end;
  }
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.1rem;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 50px 0 30px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.scroll-indicator {
  text-decoration: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--primary-gold);
  transform: translateX(-50%) translateY(5px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

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

  /* Reduced padding on mobile for better spacing */
  .journey-section,
  .features-section,
  .steps-section,
  .testimonial-section,
  .ancestors-section {
    padding: 80px 0;
  }
}
