/* ==========================================================================
   HERO AWWWARDS — Poncetti Solutions
   Inspired by: Malvah Studio (SOTY 2025), Lusion v3, Buttermax
   Stack: GSAP + custom WebGL shader + CSS micro-animations
   ========================================================================== */

/* ===== HERO BASE ===== */
.hero-premium {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  flex-direction: column;
  padding: 0;
}

.hero-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55) 50%, transparent);
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left center;
  transition: none;
}

/* WebGL canvas */
#spaceCanvasHero {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* Depth vignette overlay */
.hero-depth-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 50% at 50% 105%, rgba(0,0,0,0.7) 0%, transparent 65%),
    radial-gradient(ellipse 80% 35% at 50% -5%, rgba(0,0,0,0.65) 0%, transparent 65%),
    radial-gradient(ellipse 40% 100% at 0% 50%, rgba(0,0,0,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 40% 100% at 100% 50%, rgba(0,0,0,0.4) 0%, transparent 60%);
}

/* ===== GRID LINES ===== */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(212,175,55,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.025) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 20%, transparent 80%);
}

/* ===== FLOATING ORBS ===== */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(26,58,143,0.18) 0%, transparent 65%);
  filter: blur(90px);
  animation: orb1float 20s ease-in-out infinite;
}
.hero-orb-2 {
  width: 550px; height: 550px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 65%);
  filter: blur(80px);
  animation: orb2float 25s ease-in-out infinite;
}
.hero-orb-3 {
  width: 800px; height: 350px;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(26,58,143,0.12) 0%, transparent 65%);
  filter: blur(100px);
  animation: orb3float 30s ease-in-out infinite;
}
@keyframes orb1float { 0%,100%{transform:translate(0,0)} 50%{transform:translate(70px,50px)} }
@keyframes orb2float { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,70px)} }
@keyframes orb3float { 0%,100%{transform:translateX(-50%) scale(1)} 50%{transform:translateX(-50%) scale(1.1)} }

/* ===== SIDE LABEL ===== */
.hero-side-label {
  position: absolute;
  left: 32px;
  top: 50%;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.45em;
  color: rgba(212,175,55,0.2);
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg) translateY(50%);
  z-index: 5;
  display: none;
}
@media(min-width:1200px){ .hero-side-label { display:block; } }

/* Right side label */
.hero-side-label-r {
  position: absolute;
  right: 32px;
  top: 50%;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.45em;
  color: rgba(212,175,55,0.2);
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-lr;
  transform: translateY(-50%);
  z-index: 5;
  display: none;
}
@media(min-width:1200px){ .hero-side-label-r { display:block; } }

/* ===== HERO CONTAINER ===== */
.hero-container {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 1080px;
  width: 100%;
  padding: 80px 32px 50px;
  flex-shrink: 0;
}

/* ===== ORNAMENT ===== */
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  opacity: 0;
}
.hero-ornament-line {
  display: block;
  height: 1px;
  width: 56px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.45));
}
.hero-ornament-line:last-child {
  background: linear-gradient(90deg, rgba(212,175,55,0.45), transparent);
}
.hero-ornament-diamond {
  width: 5px; height: 5px;
  background: rgba(212,175,55,0.65);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ===== TITLE ===== */
.hero-title-ultra {
  margin: 0 0 0;
  line-height: 1.0;
}

.hero-line-wrap {
  display: block;
  overflow: hidden;
}

.hero-line-1 {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(16px, 2.2vw, 30px);
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-line-2 {
  display: block;
  margin: 0;
  line-height: 0.95;
  position: relative;
}

.hero-word-impact {
  display: inline-block;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(58px, 10.5vw, 135px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  position: relative;

  /* Multi-stop gold gradient */
  background: linear-gradient(
    140deg,
    #fff9e6 0%,
    #f5e4a0 12%,
    #ECD06F 25%,
    #D4AF37 42%,
    #b8912a 55%,
    #D4AF37 68%,
    #ECD06F 78%,
    #f5e4a0 88%,
    #fff9e6 100%
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 80px rgba(212,175,55,0.2)) drop-shadow(0 0 160px rgba(212,175,55,0.08));
  animation: goldFlow 10s ease-in-out infinite;
  overflow: hidden;
}
@keyframes goldFlow {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Glint sweep */
.hero-word-impact::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -30%;
  width: 25%;
  height: 120%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0.08) 60%,
    transparent 100%
  );
  transform: skewX(-15deg);
  animation: glintPass 7s ease-in-out infinite;
  animation-delay: 3s;
  pointer-events: none;
}
@keyframes glintPass {
  0%, 30%, 100% { left: -30%; opacity: 0; }
  31% { opacity: 1; }
  50% { left: 120%; opacity: 1; }
  55% { opacity: 0; }
}

.hero-line-3 {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(11px, 1.9vw, 23px);
  font-weight: 400;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.55em;
  margin-top: 8px;
  text-transform: uppercase;
}

/* ===== SEPARATOR ===== */
.hero-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto;
  max-width: 280px;
  opacity: 0;
}
.hero-sep-line {
  flex: 1;
  height: 1px;
  background: rgba(212,175,55,0.18);
  display: block;
}
.hero-sep-diamond {
  width: 4px; height: 4px;
  background: rgba(212,175,55,0.45);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ===== DESCRIPTION ===== */
.hero-description {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 300;
  line-height: 1.88;
  color: rgba(255,255,255,0.38);
  max-width: 510px;
  margin: 0 auto 38px;
  opacity: 0;
}

/* ===== CTAs ===== */
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: none !important;
}

/* Primary button */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: linear-gradient(135deg, #C9A84C, #D4AF37 50%, #b8912a);
  color: #000;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 28px rgba(212,175,55,0.2);
}
.btn-hero-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212,175,55,0.35);
}
.btn-hero-primary:hover::after { opacity: 1; }
.btn-arrow { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.3s; }
.btn-hero-primary:hover .btn-arrow { transform: translateX(4px); }

/* Secondary button */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(212,175,55,0.45);
  color: rgba(212,175,55,0.95);
  transform: translateY(-2px);
}

/* ===== STATS ===== */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  opacity: 0;
  animation: none !important;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 52px;
}
.hero-stat-n {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #ECD06F 55%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.hero-stat-l {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.hero-stat-sep {
  width: 1px;
  height: 44px;
  background: rgba(212,175,55,0.2);
  flex-shrink: 0;
}

/* ===== SCROLL HINT ===== */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  gap: 5px;
}
.hero-scroll-text {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 0.4em;
  color: rgba(212,175,55,0.3);
  text-transform: uppercase;
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(212,175,55,0.5), transparent);
  animation: scrollPulse 2.3s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.12); }
}

/* ===== TOP GOLD LINE ===== */
.hero-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6) 50%, transparent);
  z-index: 3;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-container { padding: 80px 20px 40px; }
  .hero-stat { padding: 0 24px; }
  .hero-stat-n { font-size: 20px; }
  .hero-side-label, .hero-side-label-r { display: none !important; }
  .hero-ornament { margin-bottom: 16px; }
  .hero-stats { margin-top: 36px; }
  .btn-hero-primary, .btn-hero-secondary { padding: 13px 24px; font-size: 11px; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 260px; justify-content: center; }
}
