/* Moodish - Luxury Case Study Design */

/* CSS Custom Properties */
:root {
  /* Typography */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;

  /* Colors - Monochromatic luxury base with gold accent */
  --color-charcoal: #1a1a1a;
  --color-white: #ffffff;
  --color-gold: #d4af37;
  --color-gray-light: #f8f8f8;
  --color-gray-medium: #666666;

  /* Spacing - 8px grid system */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  --space-xxxl: 96px;

  /* Golden ratio proportions */
  --ratio-golden: 1.618;

  /* Breakpoints */
  --bp-mobile: 375px;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
  --bp-large: 1440px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Scrollbar - Moodish Brand Colors */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ffffff, #FFAC1C);
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffffff, #FFAC1C);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Firefox Scrollbar Support */
html {
  scrollbar-width: thin;
  scrollbar-color: #ff8f42 rgba(255, 255, 255, 0.1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Back Button */
.back-button {
  position: fixed;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: 1000;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-md);
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.back-button:hover {
  color: var(--color-gold);
  transform: translateX(-4px);
  background: rgba(255, 255, 255, 0.95);
}

/* Shimmer effect for Back Button */
.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 172, 28, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.back-button:hover::before {
  transform: translateX(350%);
}

/* Side Navigation - Freeflowing */
.side-nav {
  position: fixed;
  top: 50%;
  right: var(--space-xl);
  transform: translateY(-50%);
  z-index: 900;
  display: none;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 1024px) {
  .side-nav {
    display: flex;
  }
}

.nav-item {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray-medium);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  text-align: right;
}

.nav-item:hover {
  color: var(--color-charcoal);
}

.nav-item.active {
  color: var(--color-gold);
  font-weight: 500;
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

@media (min-width: 1440px) {
  .container {
    padding: 0 var(--space-xxl);
  }
}

/* Typography System */
.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-family: var(--font-secondary);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  color: var(--color-gray-medium);
  max-width: 600px;
}

/* Typewriter Cursor */
.typing-cursor {
  color: var(--color-gold);
  font-weight: 400;
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-charcoal);
  margin-bottom: var(--space-xl);
}

.subsection-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-charcoal);
  margin-bottom: var(--space-lg);
}

.section-label {
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-sm);
}

.lead-text {
  font-family: var(--font-secondary);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-charcoal);
  margin-bottom: var(--space-lg);
}

.body-text {
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-gray-medium);
  margin-bottom: var(--space-md);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-light) 100%);
  position: relative;
  padding: var(--space-xxl) 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="0.3" fill="%23000" opacity="0.01"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xxl);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xxxl);
  }
}

.hero-content {
  text-align: left;
  position: relative;
}

@media (max-width: 767px) {
  .hero-content {
    text-align: center;
  }
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.app-mockup {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.mockup-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.mockup-image.animate-in {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 767px) {
  .app-mockup {
    max-width: 300px;
  }

  .hero-grid {
    gap: var(--space-xl);
  }
}

/* Section Styles */
.section {
  padding: var(--space-xxxl) 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--color-gray-light);
}

.section-header {
  margin-bottom: var(--space-xxl);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xxl);
  }
}

/* Stats Card */
.stats-card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.stat {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-lg);
}

.stat:last-child {
  margin-bottom: 0;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Insight Content */
.insight-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Insight Narrative Flow */
.insight-narrative {
  margin-bottom: var(--space-xxl);
}

.narrative-lead {
  font-family: var(--font-secondary);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-gray-medium);
  margin-bottom: var(--space-xl);
}

.narrative-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.narrative-text {
  font-family: var(--font-secondary);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-charcoal);
}

.narrative-text em {
  font-family: var(--font-primary);
  font-style: italic;
  color: var(--color-gold);
  font-weight: 500;
}

.narrative-text:last-child {
  margin-top: var(--space-md);
  font-weight: 500;
  color: var(--color-gray-medium);
}

/* Main Insight Quote */
.insight-quote {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-charcoal);
  font-style: italic;
  position: relative;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: var(--space-xl);
}

.insight-quote::before,
.insight-quote::after {
  content: '"';
  font-size: 1.5em;
  color: var(--color-gold);
  position: absolute;
}

.insight-quote::before {
  top: var(--space-xl);
  left: -0.3em;
}

.insight-quote::after {
  bottom: 0;
  right: -0.3em;
}

/* Process Steps */
.process-steps {
  margin-top: var(--space-xxl);
}

/* Video Showcase */
.video-showcase {
  margin-top: var(--space-xxxl);
  text-align: center;
}

.video-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-charcoal);
  margin-bottom: var(--space-xl);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: var(--color-gray-light);
  opacity: 0;
  transition: opacity 2.8s ease;
}

.video-wrapper.animate-in {
  opacity: 1;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (min-width: 768px) {
  .video-wrapper {
    max-width: 350px;
  }
}

@media (min-width: 1024px) {
  .video-wrapper {
    max-width: 400px;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  text-align: center;
  padding: var(--space-lg);
}

.step-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 1px;
  background-color: var(--color-gold);
}

.step p {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-gray-medium);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.metric-value {
  display: block;
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.metric-label {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Results Section */
.impact-statement {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-charcoal);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
}



/* Animations and Interactions */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 767px) {
  .hero {
    min-height: 80vh;
    padding: var(--space-xl) 0;
  }

  .section {
    padding: var(--space-xxl) 0;
  }

  .insight-quote::before,
  .insight-quote::after {
    display: none;
  }
}

/* Print Styles for PDF Export */
@media print {
  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .section {
    page-break-inside: avoid;
    opacity: 1;
    transform: none;
  }

  .metric-card,
  .stats-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* 
Target Audience Section */
.target-audience-section {
  padding: var(--space-xxxl) 0;
  background: var(--color-white);
}

.centered-header {
  text-align: center;
}

.target-audience-content {
  max-width: 800px;
  margin: 0 auto;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.audience-list>li {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-charcoal);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  position: relative;
}

.audience-list>li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
  font-size: 1.2em;
}

.audience-list strong {
  font-weight: 600;
  color: var(--color-charcoal);
}

.pain-points-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0 var(--space-md);
}

.pain-points-list li {
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-gray-medium);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  position: relative;
}

.pain-points-list li::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: normal;
  font-size: 1em;
}

/* Counter numbers styling for Target Audience */
.counter-number {
  font-weight: 600;
  color: var(--color-gold);
  transition: all 0.3s ease;
}

.counter-number:hover {
  color: var(--color-charcoal);
}