/* ============================================
   AL HOJARI COLONIA — CINEMATIC COMMERCIAL CSS
   ============================================ */

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

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark: #8a6a1f;
  --cream: #f5ede0;
  --deep-black: #050505;
  --charcoal: #0d0d0d;
  --sand: #d4a96a;
  --smoke-white: rgba(255,255,255,0.06);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  background: var(--deep-black);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
body::after {
  content: '';
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
  top: var(--cy, 50%);
  left: var(--cx, 50%);
}

/* ============================================
   SCENES
   ============================================ */

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

.scene-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
}

/* ============================================
   SCENE 1 — OPENING
   ============================================ */

#scene-1 {
  background: #000;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.arabic-opener {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--gold);
  opacity: 0;
  animation: fadeInGlow 2s ease 0.5s forwards;
  text-shadow: 0 0 60px rgba(201,168,76,0.8), 0 0 120px rgba(201,168,76,0.4);
  letter-spacing: 0.05em;
}

.tagline-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.7rem, 2vw, 1rem);
  letter-spacing: 0.5em;
  color: rgba(201,168,76,0.6);
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease 1.5s forwards;
  text-transform: uppercase;
}

/* ============================================
   SCENE 2 — DESERT
   ============================================ */

#scene-2 {
  background: #000;
}

.desert-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(180,100,20,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 60%, rgba(220,140,40,0.3) 0%, transparent 50%),
    linear-gradient(to bottom, #000 0%, #0a0500 30%, #1a0a00 60%, #2d1500 80%, #1a0800 100%);
  animation: desertPulse 6s ease-in-out infinite alternate;
}

.sand-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top,
    rgba(180,110,30,0.4) 0%,
    rgba(150,90,20,0.2) 40%,
    transparent 100%);
  animation: sandShimmer 4s ease-in-out infinite alternate;
}

.light-rays {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 270deg at 50% 0%,
      transparent 0deg,
      rgba(201,168,76,0.04) 5deg,
      transparent 10deg,
      rgba(201,168,76,0.03) 15deg,
      transparent 20deg,
      rgba(201,168,76,0.05) 25deg,
      transparent 30deg
    );
  animation: rayRotate 20s linear infinite;
}

.scene2-text {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.word {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  opacity: 0;
  transform: translateY(40px);
  display: inline-block;
  letter-spacing: 0.1em;
}

.word.visible {
  animation: wordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================
   SCENE 3 — BOTTLE HERO
   ============================================ */

#scene-3 {
  background: radial-gradient(ellipse at center, #0d0800 0%, #000 70%);
}

#smoke-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.glow-ring {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.bottle-scene {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  flex-wrap: wrap;
  justify-content: center;
}

.bottle-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottle-glow {
  position: absolute;
  width: 200px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(150,200,150,0.2) 0%, transparent 70%);
  filter: blur(30px);
  animation: bottleGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.bottle-img {
  width: clamp(140px, 20vw, 220px);
  height: auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(60px) scale(0.85);
  filter: drop-shadow(0 20px 60px rgba(201,168,76,0.3)) drop-shadow(0 0 30px rgba(150,200,150,0.2));
  transition: filter 0.3s ease;
}

.bottle-img.revealed {
  animation: bottleReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bottle-img:hover {
  filter: drop-shadow(0 20px 80px rgba(201,168,76,0.6)) drop-shadow(0 0 50px rgba(150,200,150,0.4));
}

.bottle-reflection {
  width: clamp(100px, 14vw, 160px);
  height: 60px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.3) 0%, transparent 70%);
  filter: blur(15px);
  margin-top: -10px;
  animation: reflectionPulse 3s ease-in-out infinite alternate;
}

.bottle-text {
  text-align: left;
  opacity: 0;
  transform: translateX(40px);
}

.bottle-text.revealed {
  animation: slideInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.brand-arabic {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201,168,76,0.5);
  margin-bottom: 0.3rem;
  direction: rtl;
}

.brand-script {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--cream);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.product-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.6rem, 1.5vw, 0.9rem);
  letter-spacing: 0.4em;
  color: var(--gold);
  border-top: 1px solid rgba(201,168,76,0.4);
  border-bottom: 1px solid rgba(201,168,76,0.4);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.floating-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ============================================
   SCENE 4 — INGREDIENTS
   ============================================ */

#scene-4 {
  background: #000;
}

.ingredients-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(100,40,10,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(40,80,40,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 60%);
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 4rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .ingredients-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 3rem;
  }
}

.ingredient {
  opacity: 0;
  transform: translateY(30px);
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(201,168,76,0.15);
  background: rgba(201,168,76,0.03);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.ingredient:hover {
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.08);
}

.ingredient.visible {
  animation: ingredientReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ingredient-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  filter: grayscale(0.3);
}

.ingredient-name {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.ingredient-arabic {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.9rem;
  color: rgba(245,237,224,0.6);
  direction: rtl;
}

.ingredients-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--cream);
  opacity: 0;
  letter-spacing: 0.1em;
}

.ingredients-tagline.visible {
  animation: fadeInGlow 1.5s ease forwards;
}

/* ============================================
   SCENE 5 — FINAL
   ============================================ */

#scene-5 {
  background: #000;
}

#final-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.final-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.final-logo {
  width: clamp(80px, 12vw, 120px);
  height: clamp(80px, 12vw, 120px);
  opacity: 0;
  animation: spinIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.mandala-svg {
  width: 100%;
  height: 100%;
  animation: mandalaRotate 30s linear infinite;
  filter: drop-shadow(0 0 15px rgba(201,168,76,0.5));
}

.final-brand-arabic {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--gold);
  direction: rtl;
  opacity: 0;
  animation: fadeInUp 1s ease 1s forwards;
  text-shadow: 0 0 40px rgba(201,168,76,0.6);
}

.final-brand-script {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--cream);
  opacity: 0;
  animation: fadeInUp 1s ease 1.3s forwards;
  line-height: 1;
}

.final-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  animation: expandLine 1.5s ease 1.8s forwards;
  max-width: 300px;
}

.final-product {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  letter-spacing: 0.5em;
  color: var(--gold);
  opacity: 0;
  animation: fadeInUp 1s ease 2s forwards;
}

.final-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  color: rgba(245,237,224,0.6);
  max-width: 500px;
  opacity: 0;
  animation: fadeInUp 1s ease 2.5s forwards;
  margin-top: 0.5rem;
}

.final-cta {
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 3s forwards;
}

.cta-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  padding: 1rem 2.5rem;
  cursor: pointer;
  overflow: hidden;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn:hover::before {
  transform: scaleX(1);
}

.cta-btn:hover {
  color: #000;
}

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

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

/* ============================================
   NAVIGATION DOTS
   ============================================ */

.scene-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 100;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(201,168,76,0.5);
}

.dot.active {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201,168,76,0.8);
  transform: scale(1.5);
}

/* ============================================
   SCROLL HINT
   ============================================ */

.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.5s ease;
  color: rgba(201,168,76,0.5);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes fadeInGlow {
  from { opacity: 0; text-shadow: 0 0 0 transparent; }
  to   { opacity: 1; text-shadow: 0 0 60px rgba(201,168,76,0.8), 0 0 120px rgba(201,168,76,0.4); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wordReveal {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bottleReveal {
  from { opacity: 0; transform: translateY(60px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ingredientReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spinIn {
  from { opacity: 0; transform: rotate(-180deg) scale(0); }
  to   { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes expandLine {
  from { width: 0; }
  to   { width: 300px; }
}

@keyframes mandalaRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes glowPulse {
  from { transform: scale(0.9); opacity: 0.6; }
  to   { transform: scale(1.1); opacity: 1; }
}

@keyframes bottleGlow {
  from { opacity: 0.4; transform: scaleY(0.9); }
  to   { opacity: 0.8; transform: scaleY(1.1); }
}

@keyframes reflectionPulse {
  from { opacity: 0.3; transform: scaleX(0.8); }
  to   { opacity: 0.6; transform: scaleX(1.2); }
}

@keyframes desertPulse {
  from { filter: brightness(0.8) saturate(0.9); }
  to   { filter: brightness(1.1) saturate(1.2); }
}

@keyframes sandShimmer {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

@keyframes rayRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  100% { transform: translateY(-100vh) translateX(var(--drift)) scale(0); opacity: 0; }
}