/* ==========================================================================
   THE REVENUE ALCHEMY - BRAND DESIGN SYSTEM & CUSTOM STYLING
   ========================================================================== */

/* Typography & Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');

/* Color Variables */
:root {
  --color-primary: #152A45;
  /* Midnight Navy */
  --color-primary-dark: #0D1C30;
  /* Deepest Navy */
  --color-primary-light: #203A5C;
  /* Muted Navy */
  --color-background: #FFFFFF;
  /* Pure White */
  --color-accent: #B08A3E;
  /* Alchemy Gold */
  --color-accent-hover: #967431;
  /* Deeper Gold */
  --color-accent-light: #FAF6ED;
  /* Soft Warm Gold Wash */
  --color-grey-light: #F4F6F8;
  /* Very Light Grey */
  --color-text-muted: #1E354F;
  /* Muted Navy/Grey Text (Accessibility optimized) */

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset overrides */
html {
  /* user-select: none; */
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background-color: var(--color-background);
  overflow-x: hidden;
  max-width: 100%;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
  font-family: var(--font-heading);
}

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

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

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

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border: 2px solid var(--color-background);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Glassmorphism Header */
.glass-nav {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(21, 42, 69, 0.05);
  transition: var(--transition-smooth);
}

.glass-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px -10px rgba(21, 42, 69, 0.08);
  border-bottom: 1px solid rgba(176, 138, 62, 0.15);
}

/* Interactive Accordion (FAQ) */
.accordion-header {
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
  border: none !important;
  outline: none !important;
}

.accordion-header:focus,
.accordion-header:active {
  outline: none !important;
  box-shadow: none !important;
}

.accordion-header:hover {
  background-color: var(--color-accent-light);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.faq-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-accent);
}

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

/* Testimonial Carousel CSS */
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  /* Smooth horizontal feather gradient mask */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}

/* Floating Book Cover Animation */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 25px 25px rgba(21, 42, 69, 0.12));
}

#hero-book-container {
  width: 300px;
  height: 400px;
  max-width: 100%;
}

@media (min-width: 640px) {
  #hero-book-container {
    width: 360px;
    height: 480px;
  }
}

@media (min-width: 768px) {
  #hero-book-container {
    width: 380px;
    height: 506px;
  }
}

@media (min-width: 1024px) {
  #hero-book-container {
    width: 410px;
    height: 546px;
  }
}

#book-webgl-canvas {
  width: 100%;
  height: 100%;
  outline: none;
}

/* 3D Perspective Effects */
.perspective-container {
  perspective: 1000px;
}

.book-card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  box-shadow: -12px 12px 24px rgba(21, 42, 69, 0.18),
    -1px 1px 2px rgba(21, 42, 69, 0.1);
  border-radius: 4px;
}

.book-card-3d:hover {
  transform: rotateY(-10deg) rotateX(5deg) scale(1.02);
}

/* Hover Accent animations */
.btn-gold {
  background-color: var(--color-primary);
  color: var(--color-background);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary-light);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: inherit;
}

.btn-gold:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(21, 42, 69, 0.4);
}

.btn-ghost {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-ghost:hover {
  background-color: rgba(21, 42, 69, 0.05);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Premium Card Lifts */
.premium-card {
  background-color: var(--color-background);
  border: 1px solid rgba(21, 42, 69, 0.04);
  box-shadow: 0 4px 20px -2px rgba(21, 42, 69, 0.02);
  transition: var(--transition-smooth);
}

.premium-card:hover {
  transform: translateY(-6px);
  border-color: rgba(176, 138, 62, 0.25);
  box-shadow: 0 20px 40px -15px rgba(21, 42, 69, 0.08);
}

/* Magazine Border Decors */
.magazine-border {
  position: relative;
}

.magazine-border::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 2px solid var(--color-accent);
  z-index: -1;
  transition: var(--transition-smooth);
}

.magazine-border-container:hover .magazine-border::after {
  transform: translate(6px, 6px);
}

/* Subtle Scroll Reveal placeholder utilities (for scroll effects) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Form Styles */
.form-input {
  border: 1px solid rgba(21, 42, 69, 0.15);
  background-color: var(--color-background);
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.15);
  outline: none;
}

/* Scroll Scale Image Zoom Effect */
.scroll-scale-img {
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Shorts / Reels Carousel Section */
.shorts-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.shorts-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.shorts-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shorts-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 16px 32px -12px rgba(176, 138, 62, 0.3);
  transform: translateY(-4px);
}

.shorts-player iframe {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
}

/* Infinite Logo Marquee Animation */
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logoMarquee 12s linear infinite;
  will-change: transform;
}

@keyframes logoMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}