/* =========================
   GMG — Cinematic Animations
   ========================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;700;900&display=swap');

/* ---- Root overrides ---- */
:root {
  --easing: cubic-bezier(.22, 1, .36, 1);
  --easing-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --duration-fast: 0.3s;
  --duration-med: 0.6s;
  --duration-slow: 1.1s;
}

body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

/* ===========================
   PAGE TRANSITION OVERLAY
   =========================== */
#page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.curtain-panel {
  flex: 1;
  background: var(--navy);
  transform-origin: top;
  transform: scaleY(0);
}
.curtain-panel:nth-child(1) { transition: transform 0.55s 0.00s var(--easing); }
.curtain-panel:nth-child(2) { transition: transform 0.55s 0.04s var(--easing); }
.curtain-panel:nth-child(3) { transition: transform 0.55s 0.08s var(--easing); }

#page-curtain.entering .curtain-panel {
  transform: scaleY(1);
  transform-origin: top;
}
#page-curtain.leaving .curtain-panel {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--easing);
}
#page-curtain.leaving .curtain-panel:nth-child(1) { transition-delay: 0.10s; }
#page-curtain.leaving .curtain-panel:nth-child(2) { transition-delay: 0.05s; }
#page-curtain.leaving .curtain-panel:nth-child(3) { transition-delay: 0.00s; }

/* ===========================
   PARTICLE CANVAS
   =========================== */
#gem-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ===========================
   TOPBAR ANIMATION
   =========================== */
.topbar {
  animation: slideDown 0.7s var(--easing) both;
  animation-delay: 0.6s;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ===========================
   NAV / HEADER ANIMATION
   =========================== */
.nav, .header {
  animation: slideDown 0.7s var(--easing) both;
  animation-delay: 0.75s;
}
.brand {
  animation: fadeLeft 0.8s var(--easing) both;
  animation-delay: 0.9s;
}
.navlinks a {
  opacity: 0;
  animation: fadeUp 0.5s var(--easing) forwards;
}
.navlinks a:nth-child(1) { animation-delay: 0.95s; }
.navlinks a:nth-child(2) { animation-delay: 1.05s; }
.navlinks a:nth-child(3) { animation-delay: 1.15s; }
.navlinks a:nth-child(4) { animation-delay: 1.25s; }
.navlinks a:nth-child(5) { animation-delay: 1.35s; }
.navlinks a:nth-child(6) { animation-delay: 1.45s; }

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   ENHANCED REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger siblings */
.grid .reveal:nth-child(1)  { transition-delay: 0.00s; }
.grid .reveal:nth-child(2)  { transition-delay: 0.07s; }
.grid .reveal:nth-child(3)  { transition-delay: 0.14s; }
.grid .reveal:nth-child(4)  { transition-delay: 0.21s; }
.grid .reveal:nth-child(5)  { transition-delay: 0.28s; }
.grid .reveal:nth-child(6)  { transition-delay: 0.35s; }
.grid .reveal:nth-child(7)  { transition-delay: 0.42s; }
.grid .reveal:nth-child(8)  { transition-delay: 0.49s; }
.grid .reveal:nth-child(9)  { transition-delay: 0.56s; }
.grid .reveal:nth-child(10) { transition-delay: 0.63s; }
.grid .reveal:nth-child(11) { transition-delay: 0.70s; }
.grid .reveal:nth-child(12) { transition-delay: 0.77s; }
.grid .reveal:nth-child(13) { transition-delay: 0.84s; }
.grid .reveal:nth-child(14) { transition-delay: 0.91s; }
.grid .reveal:nth-child(15) { transition-delay: 0.98s; }

/* ===========================
   CARD ANIMATIONS
   =========================== */
.card {
  transition: transform 0.4s var(--easing-bounce), box-shadow 0.4s var(--easing), border-color 0.3s ease;
  will-change: transform;
}
.card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 28px 60px rgba(1,20,50,.18), 0 0 0 1px rgba(212,175,55,.35);
}

/* Gem shimmer on card hover */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(212,175,55,.18) 40%,
    rgba(255,255,255,.28) 50%,
    rgba(212,175,55,.18) 60%,
    transparent 100%
  );
  background-size: 200% 200%;
  background-position: 200% 200%;
  opacity: 0;
  transition: opacity 0.3s ease, background-position 0.6s var(--easing);
}
.card:hover::after {
  opacity: 1;
  background-position: -50% -50%;
}

/* ===========================
   TAG PULSE
   =========================== */
.card .tag {
  animation: tagPulse 3.5s ease-in-out infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
  50%       { box-shadow: 0 0 0 5px rgba(212,175,55,.18); }
}

/* ===========================
   GOLD SHIMMER TEXT
   =========================== */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold2) 30%,
    #fff8e1 50%,
    var(--gold2) 70%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3.5s linear infinite;
}
@keyframes shimmerText {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

/* ===========================
   HERO SLIDER ENHANCEMENTS
   =========================== */
.slide {
  transition: opacity 0.7s var(--easing);
}
.slide-text {
  animation: none;
}
.slide.is-active .slide-text {
  animation: slideTextIn 0.7s var(--easing) both;
}
@keyframes slideTextIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.slide.is-active .slide-text .big {
  animation: fadeUp 0.6s var(--easing) 0.1s both;
}
.slide.is-active .slide-text .small {
  animation: fadeUp 0.6s var(--easing) 0.22s both;
}
.slide.is-active .hero-btn {
  animation: fadeUp 0.6s var(--easing-bounce) 0.35s both;
}

/* Arrow bounce */
.arrow {
  transition: background 0.2s ease, transform 0.3s var(--easing-bounce);
}
.arrow:hover {
  transform: translateY(-50%) scale(1.12);
}

/* Dot transition */
.dot {
  transition: background 0.35s ease, width 0.35s var(--easing-bounce);
}
.dot.active {
  width: 44px;
}

/* ===========================
   BUTTON MICRO-INTERACTIONS
   =========================== */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--easing-bounce), box-shadow 0.3s ease;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--easing), height 0.5s var(--easing), opacity 0.5s ease;
  opacity: 0;
}
.btn:active::before {
  width: 300px;
  height: 300px;
  opacity: 0;
}
.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(212,175,55,.35);
}
.btn.ghost:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(5,38,79,.15);
}

/* ===========================
   BLOCK HOVER LIFT
   =========================== */
.block {
  transition: transform 0.35s var(--easing), box-shadow 0.35s ease, border-color 0.3s ease;
}
.block:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(1,20,50,.14);
  border-color: rgba(212,175,55,.35);
}

/* ===========================
   NAV LINK UNDERLINE SWEEP
   =========================== */
.navlinks a {
  position: relative;
}
.navlinks a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--easing);
}
.navlinks a:hover::after,
.navlinks a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===========================
   TOPBAR BADGE GLOW
   =========================== */
.badge {
  animation: badgeGlow 2.5s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
  50%       { box-shadow: 0 0 12px 3px rgba(212,175,55,.3); }
}

/* ===========================
   MODAL CINEMATIC ENTRANCE
   =========================== */
.modal {
  transition: background 0.35s ease;
}
.modal.open {
  animation: modalFadeIn 0.3s ease both;
}
@keyframes modalFadeIn {
  from { background: rgba(0,0,0,0); }
  to   { background: rgba(0,0,0,.45); }
}
.modal .box {
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--easing-bounce), opacity 0.35s ease;
}
.modal.open .box {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition-delay: 0.05s;
}

/* ===========================
   PAGE HEAD HERO TEXT
   =========================== */
.pagehead h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  animation: pageHeadIn 0.9s var(--easing) 0.5s both;
}
.pagehead p {
  animation: fadeUp 0.7s var(--easing) 0.7s both;
}
@keyframes pageHeadIn {
  from { opacity: 0; transform: translateY(24px) skewY(1.5deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}

/* ===========================
   FLOATING ORBS BACKGROUND
   =========================== */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  animation: orbFloat linear infinite;
  mix-blend-mode: multiply;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,.18) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation-duration: 22s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(5,38,79,.12) 0%, transparent 70%);
  top: 40%; right: -150px;
  animation-duration: 28s;
  animation-delay: -10s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,180,255,.09) 0%, transparent 70%);
  bottom: -100px; left: 35%;
  animation-duration: 18s;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%       { transform: translate(40px, -30px) rotate(120deg); }
  66%       { transform: translate(-30px, 20px) rotate(240deg); }
}

/* ===========================
   BRAND LOGO SPARKLE
   =========================== */
.brand img {
  transition: transform 0.4s var(--easing-bounce), box-shadow 0.4s ease;
}
.brand:hover img {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 12px 35px rgba(212,175,55,.4);
}

/* ===========================
   FOOTER LINKS
   =========================== */
.footer {
  animation: none;
}
.footer a {
  transition: color 0.2s ease, letter-spacing 0.3s ease;
}
.footer a:hover {
  color: #fff !important;
  letter-spacing: 0.5px;
}

/* ===========================
   SEARCH BAR FOCUS GLOW
   =========================== */
.search {
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.search:focus-within {
  box-shadow: 0 0 0 3px rgba(212,175,55,.35), 0 8px 30px rgba(0,0,0,.12);
  border-color: rgba(212,175,55,.7);
}
.search input {
  transition: background 0.3s ease;
}

/* ===========================
   VERIFY BUTTON PULSE
   =========================== */
.verify {
  position: relative;
  transition: transform 0.3s var(--easing-bounce), box-shadow 0.3s ease;
}
.verify::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(212,175,55,.25);
  transform: scale(1);
  opacity: 0;
  animation: verifyPulse 2.8s ease-in-out infinite;
}
@keyframes verifyPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}
.verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5,38,79,.25);
}

/* ===========================
   LOADING SKELETON SHIMMER
   =========================== */
@keyframes skeletonShimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}

/* ===========================
   SCROLL PROGRESS BAR
   =========================== */
#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(212,175,55,.6);
}

/* ===========================
   CURSOR FOLLOWER
   =========================== */
#cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.18s ease, top 0.18s ease;
}

/* ===========================
   HERO H1 FONT
   =========================== */
.h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.02em;
}

/* Brand title font */
.brand .t1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.01em;
}

/* ===========================
   SLIDE BG PARALLAX HINT
   =========================== */
.slide {
  background-attachment: fixed;
}

/* ===========================
   SECTION TITLE DECORATION
   =========================== */
.section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}
.section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  transition: width 1s var(--easing);
}
.section h2.show-line::after {
  width: 100%;
}

/* ===========================
   BLOCK LIST ITEM REVEAL
   =========================== */
.block li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s var(--easing);
}
.block.show li {
  opacity: 1;
  transform: translateX(0);
}
.block.show li:nth-child(1) { transition-delay: 0.05s; }
.block.show li:nth-child(2) { transition-delay: 0.12s; }
.block.show li:nth-child(3) { transition-delay: 0.19s; }
.block.show li:nth-child(4) { transition-delay: 0.26s; }
.block.show li:nth-child(5) { transition-delay: 0.33s; }
.block.show li:nth-child(6) { transition-delay: 0.40s; }
.block.show li:nth-child(7) { transition-delay: 0.47s; }
