/* ===================================
   SCORE! Author Website - Design System
   =================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@600;700;800;900&display=swap');

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
  /* Colors - Dark Mode with Vibrant Accents */
  --color-bg-primary: #0a0e1a;
  --color-bg-secondary: #111827;
  --color-bg-tertiary: #1a2332;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-hero: linear-gradient(180deg, #0a0e1a 0%, #1a2332 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);

  /* Text Colors */
  --color-text-primary: #f9fafb;
  --color-text-secondary: #d1d5db;
  --color-text-muted: #9ca3af;

  /* Accent Colors */
  --color-accent-blue: #3b82f6;
  --color-accent-purple: #8b5cf6;
  --color-accent-green: #10b981;
  --color-accent-pink: #ec4899;

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* 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.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);

  /* Container */
  --container-max: 1280px;
  --container-padding: var(--space-md);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 700;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-purple);
}

/* ===================================
   Layout Components
   =================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-3xl) 0;
  padding-top: calc(var(--space-3xl) + var(--space-2xl));
  position: relative;
  background: var(--color-bg-primary);
}

/* ===================================
   Glass Card Component
   =================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow), var(--shadow-glow);
}

/* ===================================
   Button Components
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-secondary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--color-accent-blue);
}

/* ===================================
   Language Switcher
   =================================== */
.language-switcher {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  z-index: 1000;
  display: flex;
  gap: var(--space-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--space-3xl) + var(--space-xl));
  padding-bottom: var(--space-3xl);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--text-2xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  animation: fadeInRight 0.8s ease-out;
}

.book-cover {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(102, 126, 234, 0.3);
  transition: transform var(--transition-slow);
  margin: 0 0 0 auto;
  display: block;
}

.book-cover:hover {
  transform: scale(1.05) rotate(2deg);
}

/* ===================================
   Stats Section
   =================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  margin-bottom: calc(var(--space-3xl) + var(--space-xl));
}

.stat-card {
  text-align: center;
  padding: var(--space-xl);
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: 900;
  font-family: var(--font-heading);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ===================================
   Content Sections
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ===================================
   About Section
   =================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.author-image-wrapper {
  position: relative;
}

.author-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.about-text {
  font-size: var(--text-lg);
  line-height: 1.8;
}

/* ===================================
   Highlights Section
   =================================== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.highlight-card {
  padding: var(--space-xl);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.highlight-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.highlight-description {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===================================
   Video Section
   =================================== */
.video-section {
  background: var(--color-bg-primary);
}

.video-wrapper {
  width: 100%;
  margin: 0;
  padding: var(--space-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.video-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow), 0 0 60px rgba(139, 92, 246, 0.2);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
}

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

/* ===================================
   Play the Game Section
   =================================== */
.play-game-section {
  background: var(--color-bg-primary);
}

.play-game-section .video-wrapper {
  max-width: 900px;
  margin: 0 auto var(--space-3xl);
}

.download-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-base);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.store-badge:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.badge-image {
  height: 60px;
  width: auto;
  display: block;
}

/* Google Play badge has built-in margins, so make it larger to match App Store visually */
#play-playstore .badge-image {
  height: 90px;
  margin: -15px 0;
}

.platform-btn {
  flex: 0 1 auto;
  min-width: 150px;
  justify-content: center;
  font-size: var(--text-base);
  padding: var(--space-md) var(--space-lg);
  white-space: nowrap;
  background: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.platform-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
  border-color: var(--color-accent-blue);
}



/* ===================================
   CTA Section
   =================================== */
.cta-section {
  background: var(--gradient-primary);
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveBackground 20s linear infinite;
}

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

.cta-title {
  color: white;
  margin-bottom: var(--space-md);
  -webkit-text-fill-color: white;
}

.cta-description {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-bg-secondary);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-about h3 {
  margin-bottom: var(--space-md);
}

.footer-links h4 {
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
  color: var(--color-text-muted);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes moveBackground {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(50px, 50px);
  }
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.testimonials-section {
  background: linear-gradient(135deg,
      hsl(230, 50%, 15%) 0%,
      hsl(250, 60%, 20%) 50%,
      hsl(230, 50%, 15%) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) 60px;
  overflow: visible;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.carousel-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: var(--space-xl);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 calc(50% - var(--space-xl) / 2);
  padding: var(--space-xl);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(102, 126, 234, 0.05) 0%,
      rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.testimonial-content {
  flex: 1;
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent-blue);
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: var(--space-md);
  user-select: none;
}

.testimonial-text {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-primary);
  margin: 0;
  font-style: italic;
}

.testimonial-author {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.author-title {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  user-select: none;
  flex-shrink: 0;
  z-index: 10;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel-dot:hover {
  background: var(--color-accent-blue);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--color-accent-blue);
  width: 30px;
  border-radius: 5px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --space-3xl: 4rem;
  }

  .section {
    padding: var(--space-2xl) 0;
    padding-top: calc(var(--space-2xl) + var(--space-xl));
  }

  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    margin-bottom: calc(var(--space-3xl) + var(--space-2xl));
  }

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

  .download-options {
    grid-template-columns: 1fr;
  }

  .testimonials-carousel {
    padding: var(--space-xl) 0;
    flex-direction: column;
  }

  .carousel-track-wrapper {
    width: 100%;
  }

  .testimonial-card {
    flex: 0 0 100%;
    min-height: 280px;
  }

  .carousel-controls {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-sm);
  }

  .glass-card {
    padding: var(--space-lg);
  }
}