/* ================================================================
   BASE RESET & GLOBAL STYLES
   ================================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--navy-deep);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Grain noise overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.35;
}

/* ── LOADER ──
   Background matches logo's deep royal blue (#0b0f2e)
   so the logo appears to float from the background itself */
#loader {
  position: fixed; inset: 0;
  /* exact colour from logo background — deep indigo-navy */
  background: #0b0f2e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  z-index: 9999;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  width: clamp(120px, 25vw, 180px);
  /* No background mismatch — logo sits on matching colour */
  animation: loaderPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(201,160,64,0.35));
}

.loader-tagline {
  font-family: var(--font-hindi);
  font-size: clamp(14px, 3vw, 20px);
  color: var(--gold-light);
  letter-spacing: 0.15em;
  opacity: 0.9;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.6em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.loader-bar-wrap {
  width: 160px; height: 2px;
  background: rgba(201,160,64,0.12);
  border-radius: 2px; overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-bright));
  animation: loaderFill 2s ease-out forwards;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.03); }
}
@keyframes loaderFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── BACK TO TOP ── */
#back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 46px; height: 46px;
  background: var(--navy-surface);
  border: 1px solid rgba(201,160,64,0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--gold);
  transition: var(--transition);
  opacity: 0; pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
#back-top.visible { opacity: 1; pointer-events: auto; }
#back-top:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-4px);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
