/* ==============================================================================
   YAMKO ESTATE - OFFICIAL STYLESHEET
   Luxury Construction & Infrastructure Theme: Deep Maroon & Metallic Gold
   ============================================================================== */

:root {
  --color-maroon-950: #26040A;
  --color-maroon-900: #430913;
  --color-maroon-800: #5C0E1D;
  --color-maroon-700: #751327;
  --color-gold-300: #EBD796;
  --color-gold-400: #E0C163;
  --color-gold-500: #D4AF37;
  --color-gold-600: #B89222;
  --color-charcoal-950: #0D0305;
  --color-charcoal-900: #140508;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--color-charcoal-950);
  color: #F8F9FA;
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--color-maroon-950);
}
::-webkit-scrollbar-thumb {
  background: var(--color-maroon-800);
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-maroon-700);
}

/* Typography Utilities */
.font-serif {
  font-family: var(--font-serif);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #FFF3C4 0%, #E5C158 35%, #D4AF37 55%, #AA820A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-shimmer {
  background: linear-gradient(90deg, #D4AF37 0%, #FFFFFF 50%, #D4AF37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s linear infinite;
}

@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Button & Badge Styles */
.bg-gold-btn {
  background: linear-gradient(135deg, #F9E79F 0%, #D4AF37 45%, #AA820A 100%);
  color: #1A0307;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.bg-gold-btn:hover {
  background: linear-gradient(135deg, #FFF7D6 0%, #F1C40F 45%, #C59B27 100%);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

.bg-maroon-btn {
  background: linear-gradient(135deg, #751327 0%, #430913 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFF3C4;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.bg-maroon-btn:hover {
  background: linear-gradient(135deg, #8E1A34 0%, #5C0E1D 100%);
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 0 20px rgba(184, 35, 67, 0.35);
  transform: translateY(-2px);
}

/* Luxury Card */
.luxury-card {
  background: linear-gradient(145deg, rgba(67, 9, 19, 0.7) 0%, rgba(22, 3, 6, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(212, 175, 55, 0.25);
  transform: translateY(-3px);
}

/* Pulse animation */
@keyframes pulseSubtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s infinite ease-in-out;
}

/* ==============================================================================
   CINEMATIC INTRO LIGHTING & SPLASH SCREEN SYSTEM
   Hardware-accelerated (60/120fps), Zero-lag, Fail-safe Auto-dismissal
   ============================================================================== */

#yamko-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 45%, #420812 0%, #200308 55%, #0d0103 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  will-change: opacity, visibility;
  /* FAILSAFE: Guaranteed auto-dismiss by native CSS engine even without JS */
  animation: splashAutoDismiss 3.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#yamko-splash-screen.splash-dismissed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease-out, visibility 0.35s ease-out;
}

@keyframes splashAutoDismiss {
  0%, 82% {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  94% {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
  }
}

/* Background Animated Light Shafts (GPU conic gradient, zero blur overhead) */
.splash-light-cone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 550px;
  height: 550px;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(212, 175, 55, 0.09) 0deg,
    transparent 45deg,
    rgba(184, 35, 67, 0.14) 90deg,
    transparent 135deg,
    rgba(212, 175, 55, 0.09) 180deg,
    transparent 225deg,
    rgba(184, 35, 67, 0.14) 270deg,
    transparent 315deg,
    rgba(212, 175, 55, 0.09) 360deg
  );
  border-radius: 50%;
  pointer-events: none;
  animation: splashConeSpin 24s linear infinite;
}

@keyframes splashConeSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Radiant Gold Halo / Corona behind logo */
.splash-golden-corona {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.12) 48%, transparent 72%);
  pointer-events: none;
  animation: splashCoronaPulse 2.2s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes splashCoronaPulse {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.18); opacity: 1; }
}

/* Logo Showcase Container */
.splash-logo-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, #F9E79F 0%, #D4AF37 40%, #751327 75%, #D4AF37 100%);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.55), 0 0 70px rgba(117, 19, 39, 0.45);
  overflow: hidden;
  will-change: transform;
  animation: splashLogoFloat 3s ease-in-out infinite alternate;
}

@keyframes splashLogoFloat {
  0% { transform: translateY(0px) scale(0.98); }
  100% { transform: translateY(-3px) scale(1.02); }
}

/* Dazzling God-Ray / Lens Flare Light Sweep across Logo */
.splash-light-beam {
  position: absolute;
  top: -60%;
  left: -80%;
  width: 75%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 235, 140, 0.98) 56%,
    rgba(212, 175, 55, 0.6) 66%,
    transparent 85%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: splashLightBeamSweep 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  will-change: transform;
}

@keyframes splashLightBeamSweep {
  0% {
    transform: translateX(-150%) rotate(25deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  65% {
    transform: translateX(320%) rotate(25deg);
    opacity: 0.95;
  }
  80%, 100% {
    transform: translateX(350%) rotate(25deg);
    opacity: 0;
  }
}

/* Four-Point Sparkle Flare */
.splash-sparkle-flare {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  animation: sparkleFlash 2.2s ease-in-out infinite;
}

.splash-sparkle-top-right {
  top: 6px;
  right: 6px;
  animation-delay: 0.5s;
}

.splash-sparkle-bottom-left {
  bottom: 8px;
  left: 8px;
  animation-delay: 1.3s;
}

@keyframes sparkleFlash {
  0%, 20%, 80%, 100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  45% {
    transform: scale(1.25) rotate(90deg);
    opacity: 1;
    filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #D4AF37);
  }
  60% {
    transform: scale(0.5) rotate(135deg);
    opacity: 0.4;
  }
}

/* "GUWAHATI'S NO. 1" Glowing Neon Pill Badge */
.splash-gno1-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  background: rgba(67, 9, 19, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), inset 0 0 15px rgba(212, 175, 55, 0.2);
  overflow: hidden;
  margin-top: 0.85rem;
  margin-bottom: 0.5rem;
}

.splash-badge-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: badgeLightSweep 2s ease-in-out infinite;
}

@keyframes badgeLightSweep {
  0% { left: -100%; }
  50%, 100% { left: 160%; }
}

/* Hardware-Accelerated Progress Bar */
.splash-progress-track {
  width: 220px;
  height: 4px;
  background: rgba(67, 9, 19, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}

.splash-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #AA820A 0%, #D4AF37 50%, #FFF3C4 85%, #FFFFFF 100%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.95);
  transform-origin: left;
  animation: splashFillTrack 3.0s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

@keyframes splashFillTrack {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

