/* ===== Custom Styles — Sunny Leone Fan Site ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
  --black: #0a0a0a;
  --black-light: #141414;
  --black-card: #1a1a1a;
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --gold-dark: #b8902e;
  --white: #f5f5f5;
  --white-dim: #b0b0b0;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* Page enter animation — opacity only, no transform (transform on body breaks position:fixed) */
.page-enter {
  animation: pageSlideIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity;
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: transform, opacity;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: transform, opacity;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: transform, opacity;
}

.stagger-children.active>*:nth-child(1) {
  transition-delay: 0.05s;
}

.stagger-children.active>*:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-children.active>*:nth-child(3) {
  transition-delay: 0.15s;
}

.stagger-children.active>*:nth-child(4) {
  transition-delay: 0.2s;
}

.stagger-children.active>*:nth-child(5) {
  transition-delay: 0.25s;
}

.stagger-children.active>*:nth-child(6) {
  transition-delay: 0.3s;
}

.stagger-children.active>*:nth-child(7) {
  transition-delay: 0.35s;
}

.stagger-children.active>*:nth-child(8) {
  transition-delay: 0.4s;
}

.stagger-children.active>*:nth-child(9) {
  transition-delay: 0.45s;
}

.stagger-children.active>*:nth-child(10) {
  transition-delay: 0.5s;
}

.stagger-children.active>*:nth-child(11) {
  transition-delay: 0.55s;
}

.stagger-children.active>*:nth-child(12) {
  transition-delay: 0.6s;
}

.stagger-children.active>*:nth-child(13) {
  transition-delay: 0.65s;
}

.stagger-children.active>*:nth-child(14) {
  transition-delay: 0.7s;
}

.stagger-children.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* Gold gradient text */
.gold-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gold border glow card */
.gold-card {
  background: var(--black-card);
  border: 1px solid rgba(212, 168, 83, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, box-shadow;
}

.gold-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.15), 0 0 60px rgba(212, 168, 83, 0.05);
  transform: translateY(-6px);
}

/* Glassmorphism */
.glass {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 168, 83, 0.15);
}

/* Navbar */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.25);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem 1.5rem;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 1) !important;
  border-bottom-color: rgba(212, 168, 83, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(212, 168, 83, 0.2);
}

.nav-link {
  position: relative;
  color: var(--white-dim);
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(10, 10, 10, 0.95) 0%,
      rgba(10, 10, 10, 0.7) 40%,
      rgba(212, 168, 83, 0.1) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.4);
  transform: scale(1.1);
  animation: heroZoom 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1.2);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Particle container */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  20% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1);
  }
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--black);
  box-shadow: 0 0 15px rgba(212, 168, 83, 0.5);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

@media (max-width: 768px) {
  .timeline-dot {
    left: 20px;
  }
}

/* Movie card */
.movie-card {
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, box-shadow;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(212, 168, 83, 0.2);
}

.movie-card img {
  transition: transform 0.6s ease;
}

.movie-card:hover img {
  transform: scale(1.1);
}

/* Gallery grid */
.gallery-item {
  overflow: hidden;
  transition: all 0.4s ease;
  will-change: transform, box-shadow;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 40px rgba(212, 168, 83, 0.2);
}

.gallery-item img {
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

/* Social card */
.social-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.social-card:hover {
  transform: translateY(-10px);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Music player card */
.music-card {
  transition: all 0.4s ease;
  will-change: transform, box-shadow;
}

.music-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(212, 168, 83, 0.15);
}

/* Floating CTA */
.cta-glow {
  position: relative;
  overflow: hidden;
}

.cta-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--gold), var(--gold-light), var(--gold-dark), var(--gold));
  background-size: 300% 300%;
  animation: glowRotate 4s linear infinite;
  border-radius: inherit;
  z-index: -1;
}

@keyframes glowRotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Pulse ring animation */
.pulse-ring {
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(212, 168, 83, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0);
  }
}

/* Mobile nav */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Lightbox */
.lightbox {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================== */
/* ===== ENHANCED ANIMATIONS ==== */
/* ============================== */

/* --- Floating / Bobbing Emoji Icons --- */
.float-icon {
  display: inline-block;
  animation: floatBob 3s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatBob {

  0%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(-4px);
  }

  75% {
    transform: translateY(-10px);
  }
}

/* --- Reveal Scale (fade + scale) --- */
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* --- Shimmer Loading Placeholder --- */
.shimmer {
  background: linear-gradient(90deg,
      rgba(26, 26, 26, 1) 25%,
      rgba(212, 168, 83, 0.08) 50%,
      rgba(26, 26, 26, 1) 75%);
  background-size: 200% 100%;
  animation: shimmerSlide 1.6s ease-in-out infinite;
}

@keyframes shimmerSlide {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* --- Timeline Dot Pulse Glow --- */
.timeline-dot {
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(212, 168, 83, 0.5);
    transform: translateX(-50%) scale(1);
  }

  50% {
    box-shadow: 0 0 25px rgba(212, 168, 83, 0.8), 0 0 50px rgba(212, 168, 83, 0.3);
    transform: translateX(-50%) scale(1.15);
  }
}

/* --- Animated Gradient Border --- */
.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(var(--border-angle, 0deg),
      var(--gold),
      transparent 40%,
      transparent 60%,
      var(--gold-light));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  to {
    --border-angle: 360deg;
  }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* --- Enhanced Page Transition — opacity only to avoid body-level layout reflow --- */
.page-enter {
  animation: pageEnterSmooth 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity;
}

@keyframes pageEnterSmooth {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- Scroll Indicator Arrow --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.5s ease;
}

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

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}

.scroll-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) translateY(14px);
    opacity: 0.4;
  }
}

/* --- Gold Text Shimmer Sweep --- */
.gold-shimmer {
  background: linear-gradient(90deg,
      var(--gold-dark) 0%,
      var(--gold) 25%,
      var(--gold-light) 50%,
      var(--gold) 75%,
      var(--gold-dark) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 6s ease-in-out infinite;
}

@keyframes textShimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 250% center;
  }
}

/* --- 3D Card Tilt on Hover --- */
.tilt-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  will-change: transform, box-shadow;
}

.tilt-card:hover {
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
  box-shadow: 8px 12px 40px rgba(212, 168, 83, 0.15), 0 0 24px rgba(212, 168, 83, 0.08);
}

/* --- Counter Scale-In --- */
.counter-value {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.counter-value.counting {
  transform: scale(1.15);
}

/* --- Parallax Header --- */
.parallax-header {
  will-change: transform;
  transition: transform 0.1s linear;
}

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

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* --- Personal Info Card --- */
.info-card {
  background: var(--black-card);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.35s ease;
}

.info-card:hover {
  border-color: rgba(212, 168, 83, 0.4);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.1);
  transform: translateY(-3px);
}

.info-card .info-label {
  color: #888;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}

.info-card .info-value {
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

/* --- Milestone Card --- */
.milestone-card {
  background: var(--black-card);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.milestone-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.milestone-card:hover {
  border-color: rgba(212, 168, 83, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(212, 168, 83, 0.12);
}

.milestone-card:hover::after {
  opacity: 1;
}

/* --- Section Divider --- */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3), transparent);
  border: none;
  margin: 3rem auto;
  max-width: 300px;
}

/* --- Smooth Hover for Gold-Cards (enhanced) --- */
.gold-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.15),
    0 0 60px rgba(212, 168, 83, 0.05),
    inset 0 0 30px rgba(212, 168, 83, 0.03);
  transform: translateY(-6px);
}

/* --- Stagger children smoother (extend to 20) --- */
.stagger-children.active>*:nth-child(15) {
  transition-delay: 0.75s;
}

.stagger-children.active>*:nth-child(16) {
  transition-delay: 0.8s;
}

.stagger-children.active>*:nth-child(17) {
  transition-delay: 0.85s;
}

.stagger-children.active>*:nth-child(18) {
  transition-delay: 0.9s;
}

.stagger-children.active>*:nth-child(19) {
  transition-delay: 0.95s;
}

.stagger-children.active>*:nth-child(20) {
  transition-delay: 1.0s;
}