/*
 * VAVA - Premium Cinematic Style Sheet (style.css)
 * 
 * Design System:
 * - Color Palette: Deep Obsidian, Slate Metallic, Liquid White, and Muted Bronze.
 * - Easing: Apple-style custom cubic-beziers for cinematic, high-end motion.
 * - Typography: High-contrast pairing of modernist sans-serif and classical serif.
 */

/* ----------------------------------------------------
   1. Design Tokens (CSS Variables)
   ---------------------------------------------------- */
:root {
  --color-bg: #050508;
  --color-bg-alt: #0a0a0f;
  --color-text-primary: #f5f5f7;
  --color-text-secondary: #86868b;
  --color-text-tertiary: #424245;
  --color-accent: #e2b86e;
  /* Muted Gold / Renaissance Bronze */
  --color-glow-1: rgba(182, 137, 255, 0.08);
  /* Violet aura */
  --color-glow-2: rgba(226, 184, 110, 0.05);
  /* Gold aura */

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ----------------------------------------------------
   2. Reset & Core Configurations
   ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  height: 100%;
}

body {
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

/* ----------------------------------------------------
   3. Ambient Cinematic Backgrounds
   ---------------------------------------------------- */
.cinematic-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, var(--color-glow-1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, var(--color-glow-2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ----------------------------------------------------
   4. Header & Navigation (Apple Style)
   ---------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background-color: rgba(5, 5, 8, 0.6);
  transform: translateY(-100%);
  animation: slideDownHeader var(--transition-slow) forwards 0.2s;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--color-text-primary);
  position: relative;
  transition: transform var(--transition-medium);
}

.brand-logo:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-medium);
}

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

.nav-link:hover::after {
  width: 100%;
}

.cta-nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-medium);
}

.cta-nav-link:hover {
  background-color: var(--color-text-primary);
  color: var(--color-bg);
  border-color: var(--color-text-primary);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------------------
   5. Hero Section & Leonardo Container
   ---------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* Container setup for Leonardo visualization overlay */
.leonardo-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: var(--color-bg);
}

.leonardo-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.25; /* Subtle backdrop to ensure typography is ultra-legible */
  filter: contrast(1.15) brightness(0.65) saturate(0.85);
  transition: opacity var(--transition-slow);
}

#leonardo-canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3; /* Sits above the video and vignette */
  pointer-events: none;
}

/* Ambient glow and vignette overlay to add rich depth */
.canvas-ambient-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at center, rgba(226, 184, 110, 0.04) 0%, transparent 70%),
    radial-gradient(circle at center, transparent 30%, rgba(5, 5, 8, 0.8) 100%),
    linear-gradient(to bottom, rgba(5, 5, 8, 0.5) 0%, transparent 15%, transparent 85%, rgba(5, 5, 8, 0.9) 100%);
  pointer-events: none;
  z-index: 2; /* Sits between the video and the canvas */
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* Tagline Badges */
.meta-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  border: 1px solid rgba(226, 184, 110, 0.15);
  background-color: rgba(226, 184, 110, 0.03);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--transition-slow) forwards 0.4s;
}

.tagline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: pulseDot 2s infinite ease-in-out;
}

.tagline-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Imposing Typography Title */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp var(--transition-slow) forwards 0.6s;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, #fff 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Description */
.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 3rem auto;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--transition-slow) forwards 0.8s;
}

/* Call-to-action button wrapper */
.hero-cta-container {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--transition-slow) forwards 1s;
}

/* ----------------------------------------------------
   6. Premium CTA Button Styling (Luxury Theme)
   ---------------------------------------------------- */
.premium-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  border-radius: 12px;
  background-color: transparent;
  color: var(--color-text-primary);
  overflow: hidden;
  transition: transform var(--transition-medium);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.premium-cta-btn .btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(226, 184, 110, 0.15) 0%, transparent 70%);
  z-index: 1;
  transition: transform var(--transition-slow), opacity var(--transition-medium);
}

.premium-cta-btn .btn-text {
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.75rem;
}

.premium-cta-btn .btn-arrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-medium);
}

.premium-cta-btn .btn-arrow svg {
  width: 16px;
  height: 16px;
}

/* CTA Hover States */
.premium-cta-btn:hover {
  transform: scale(1.03);
  border-color: rgba(226, 184, 110, 0.4);
  box-shadow:
    0 8px 32px rgba(226, 184, 110, 0.1),
    0 0 20px rgba(226, 184, 110, 0.05);
}

.premium-cta-btn:hover .btn-bg {
  transform: scale(1.2);
  background: radial-gradient(circle at center, rgba(226, 184, 110, 0.25) 0%, transparent 60%);
}

.premium-cta-btn:hover .btn-arrow {
  transform: translateX(6px);
}

.premium-cta-btn:active {
  transform: scale(0.98);
}

/* ----------------------------------------------------
   7. Scroll Indicator
   ---------------------------------------------------- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
  opacity: 0;
  animation: fadeIn 1s forwards 1.2s;
  cursor: pointer;
  z-index: 10;
}

.scroll-mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--color-text-tertiary);
  border-radius: 20px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.scroll-indicator:hover .scroll-label {
  color: var(--color-text-secondary);
}

.scroll-indicator:hover .scroll-mouse {
  border-color: var(--color-text-secondary);
}

/* ----------------------------------------------------
   8. Footer
   ---------------------------------------------------- */
.main-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  z-index: 10;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

.footer-domain {
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* ----------------------------------------------------
   9. Animations (Keyframes)
   ---------------------------------------------------- */
@keyframes slideDownHeader {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slowPulse {
  0% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.95);
  }

  100% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 16px var(--color-accent);
  }
}

@keyframes scrollWheel {
  0% {
    top: 6px;
    opacity: 1;
    height: 6px;
  }

  30% {
    top: 6px;
    height: 12px;
  }

  60% {
    top: 16px;
    opacity: 0;
    height: 6px;
  }

  100% {
    top: 6px;
    opacity: 0;
    height: 6px;
  }
}

/* ----------------------------------------------------
   10. Media Queries
   ---------------------------------------------------- */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1.5rem;
  }

  .main-nav {
    display: none;
    /* Mobile menu hidden for maximum minimalist layout */
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-title {
    margin-bottom: 1.25rem;
  }

  .hero-description {
    margin-bottom: 2rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
