/* ==========================================================================
   DAIR.ACADEMY - High-Conversion Solopreneur Style
   Dark Theme with Gold Accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Dark Theme */
  --color-bg-primary: #1A1A1A;
  --color-bg-secondary: #242424;
  --color-bg-card: #2A2A2A;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A0A0A0;
  --color-text-muted: #666666;

  /* Gold Accent */
  --color-gold: #D4AF37;
  --color-gold-light: #E5C158;
  --color-gold-dark: #B8962E;

  /* Success */
  --color-success: #22C55E;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-3xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  border: 1px solid var(--color-text-muted);
}

.btn-primary:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-bg-primary);
}

.btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Text Logo */
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--color-gold);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-links .btn {
  color: var(--color-bg-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.logo-img {
  height: 40px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Hero Section (Centered)
   -------------------------------------------------------------------------- */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--space-xl);
}

.hero .container {
  display: flex;
  justify-content: center;
}

.hero-centered {
  text-align: center;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: var(--space-md);
}

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

/* --------------------------------------------------------------------------
   Logo Carousel
   -------------------------------------------------------------------------- */
.logo-carousel {
  background: var(--color-bg-secondary);
  padding: var(--space-lg) 0;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.carousel-track {
  display: flex;
  gap: var(--space-xl);
  padding: 0 var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 60px;
  padding: var(--space-sm);
  background: var(--color-bg-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.carousel-item-bg-white {
  background-color: #fff;
}

.carousel-item:hover {
  transform: scale(1.05);
  background: var(--color-bg-card);
}

.carousel-item img {
  max-height: 40px;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(1.2);
}

.carousel-item img[src*="partners/"] {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  object-fit: cover;
}

.carousel-logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
  background: var(--color-bg-primary);
  padding: var(--space-3xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--color-gold), transparent 50%);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.about-content h2 {
  margin-bottom: var(--space-md);
}

.about-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.about-stats .stat-item {
  padding: var(--space-md);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Stats Section
   -------------------------------------------------------------------------- */
.stats {
  background: var(--color-bg-secondary);
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Results Section
   -------------------------------------------------------------------------- */
.results {
  background: var(--color-bg-primary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.result-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.result-card-featured {
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.result-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  font-size: 1.5rem;
  font-weight: 600;
}

.result-content {
  flex: 1;
}

.result-name {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.result-story {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.result-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Video Section */
.video-section {
  text-align: center;
}

.video-section h3 {
  margin-bottom: var(--space-lg);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

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

/* --------------------------------------------------------------------------
   Method Section
   -------------------------------------------------------------------------- */
.method {
  background: var(--color-bg-secondary);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.method-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-bg-primary);
  border-radius: var(--radius-md);
}

.method-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.method-card h3 {
  margin-bottom: var(--space-sm);
}

.method-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.method-quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-sm);
}

.method-quote p {
  font-size: 1.125rem;
  /* font-style: italic; */
  color: var(--color-gold);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Courses Section
   -------------------------------------------------------------------------- */
.courses {
  background: var(--color-bg-primary);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.course-card {
  position: relative;
  padding: var(--space-xl);
  padding-top: calc(var(--space-xl) + 1.5rem);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-bg-card);
}

.course-card-gold {
  border-color: var(--color-gold);
}

.course-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-gold);
  color: var(--color-bg-primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.course-card h3 {
  margin-bottom: var(--space-sm);
}

.course-desc {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.course-features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.course-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

.course-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: bold;
  flex-shrink: 0;
}

.course-target {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-bg-card);
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq {
  background: var(--color-bg-secondary);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-bg-card);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
  background: var(--color-bg-primary);
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group input {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-bg-card);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.contact-form .btn {
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-bg-secondary);
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-bg-card);
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.footer-logo .logo-img {
  height: 50px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-social a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Popup
   -------------------------------------------------------------------------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--color-bg-secondary);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 400px;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.popup-overlay.show .popup {
  transform: scale(1);
}

.popup-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.popup h3 {
  margin-bottom: var(--space-sm);
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
    max-width: 350px;
    margin: 0 auto;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--color-bg-card);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

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

  .about-image {
    max-width: 250px;
    margin: 0 auto;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stat-item {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-bg-card);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .result-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  section {
    padding: var(--space-2xl) 0;
  }
}