/* =============================================================
   Justin Donnaruma -- Marketing Site Custom Styles
   Dark-first, cinematic, storytelling-driven design
   ============================================================= */

/* --- CSS Custom Properties --- */
:root {
  --gold-500: #D4AF37;
  --gold-600: #B8960E;
  --gold-800: #7C640A;
  --aurora-blue: #60A5FA;
  --aurora-purple: #A78BFA;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger-children > .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger-children > .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger-children > .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger-children > .reveal:nth-child(6) { transition-delay: 500ms; }

/* --- Typing Cursor --- */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--gold-500);
  font-weight: 300;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Hero Gradient Background --- */
.hero-dark-gradient {
  background: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #171717 40%,
    #1a1a2e 70%,
    #0a0a0a 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-dark-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(212, 175, 55, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* --- Ambient Glow --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite alternate;
}

.glow-orb-gold {
  background: var(--gold-500);
}

.glow-orb-blue {
  background: var(--aurora-blue);
  animation-delay: 2s;
}

.glow-orb-purple {
  background: var(--aurora-purple);
  animation-delay: 4s;
}

@keyframes glow-pulse {
  0% {
    opacity: 0.05;
    transform: scale(1);
  }
  100% {
    opacity: 0.12;
    transform: scale(1.1);
  }
}

/* --- Pillar Cards --- */
.pillar-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(212, 175, 55, 0.1);
}

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--aurora-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.pillar-card:hover::after {
  transform: scaleX(1);
}

/* --- Section Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #3f3f46 20%,
    var(--gold-800) 50%,
    #3f3f46 80%,
    transparent
  );
  max-width: 80rem;
  margin: 0 auto;
}

/* --- Stat Counter --- */
.stat-number {
  font-variant-numeric: tabular-nums;
  font-family: 'Outfit', sans-serif;
}

/* --- Newsletter Form --- */
.newsletter-glow {
  position: relative;
}

.newsletter-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--gold-600), var(--aurora-blue), var(--gold-600));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.newsletter-glow:focus-within::before {
  opacity: 1;
}

/* --- Smooth scroll indicator --- */
.scroll-indicator {
  animation: bounce-soft 2s ease-in-out infinite;
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- Quote styling --- */
.blockquote-accent {
  border-left: 3px solid var(--gold-600);
  padding-left: 1.5rem;
}

/* --- Timeline --- */
.timeline-line {
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--gold-600),
    #3f3f46 50%,
    transparent
  );
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 2px solid #171717;
  position: relative;
  z-index: 1;
}

/* --- Dark navbar transparency --- */
.navbar-dark {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(63, 63, 70, 0.3);
}

.navbar-dark.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: rgba(63, 63, 70, 0.5);
}

/* --- Gold gradient text utility --- */
.text-gradient-gold {
  background: linear-gradient(135deg, #E8D48B, #D4AF37, #B8960E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Line clamp utilities --- */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .typing-cursor::after {
    animation: none;
  }

  .scroll-indicator {
    animation: none;
  }

  .glow-orb {
    animation: none;
  }
}
