/* ============================================
   MODERN LANDING PAGE DESIGN
   Enhanced UX/UI with glassmorphism & smooth interactions
   ============================================ */

/* ============================================
   BASE & TYPOGRAPHY
   ============================================ */

body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #2c3e50;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient gradient overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   HERO SECTION - ENHANCED
   ============================================ */

.hero-section {
  position: relative;
  padding: 40px 0 60px 0;
  margin-top: 0;
  background: linear-gradient(165deg, #1e293b 0%, #334155 50%, #475569 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.hero-section:hover {
  transform: scale(1.002);
}

.hero-section:active {
  transform: scale(0.998);
}

/* Animated gradient overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(243, 156, 18, 0.08) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Hero Mascot - Enhanced (CLS optimized) */
.hero-mascot {
  position: absolute;
  left: 10%; /* Start in final position to prevent layout shift */
  top: 70%;
  transform: translateY(-50%);
  z-index: 3;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4));
  opacity: 0; /* Start invisible */
}

.hero-mascot.animate {
  animation: mascotFadeIn 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.hero-mascot-right {
  position: absolute;
  right: 10%; /* Start in final position to prevent layout shift */
  top: 70%;
  transform: translateY(-50%);
  z-index: 3;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4));
  opacity: 0; /* Start invisible */
}

.hero-mascot-right.animate {
  animation: mascotFadeInRight 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.mascot-image {
  width: clamp(240px, 18vw + 60px, 440px);
  height: auto;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
}

.mascot-image:hover {
  transform: scale(1.08) translateY(-5px);
  filter: drop-shadow(0 16px 40px rgba(212, 175, 55, 0.3));
}

.mascot-image:active {
  transform: scale(1.02);
}

.mascot-image.mascot-clicked {
  animation: mascotBounceBig 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* CLS optimized animations - use opacity and scale only */
@keyframes mascotFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes mascotFadeInRight {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes mascotBounceBig {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  25% {
    transform: scale(1.15) translateY(-10px) rotate(-5deg);
  }
  50% {
    transform: scale(0.95) translateY(5px) rotate(5deg);
  }
  75% {
    transform: scale(1.08) translateY(-5px) rotate(-2deg);
  }
}

/* Hero Content - Enhanced Typography */
.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-main {
  font-size: clamp(2.75rem, 5vw + 1rem, 5.5rem);
  font-weight: 800;
  color: #ffffff;
  font-family: 'Special Gothic Condensed One', -apple-system, sans-serif;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Stats - Glassmorphism Style */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  padding: 2.5rem 3rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  display: block;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #D4AF37 0%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-family: 'Special Gothic Condensed One', monospace;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Scroll Down Button - Enhanced */
.scroll-down-btn {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

.scroll-down-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateX(-50%) translateY(-5px) scale(1.1);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.scroll-down-btn:active {
  transform: translateX(-50%) scale(0.95);
}

.scroll-arrow {
  color: #ffffff;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.scroll-down-btn:hover .scroll-arrow {
  transform: translateY(3px);
}

.scroll-down-btn {
  animation: gentleBounce 3s ease-in-out infinite;
}

@keyframes gentleBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

/* ============================================
   COLLECTIONS SECTION - MODERN CARDS
   ============================================ */

.collections-section {
  padding: 80px 0 240px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 1rem;
  font-family: 'Special Gothic Condensed One', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #D4AF37 0%, #f39c12 100%);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Modern Collection Cards Grid */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.collection-card {
  position: relative;
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collection-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(212, 175, 55, 0.2);
}

.card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
  transition: all 0.4s ease;
}

.collection-card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  z-index: 1;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collection-card:hover .card-content {
  transform: translateY(-8px);
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: 'Special Gothic Condensed One', sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.card-count {
  font-size: 0.95rem;
  background: linear-gradient(135deg, #D4AF37 0%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card-arrow {
  font-size: 1.75rem;
  color: white;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.collection-card:hover .card-arrow {
  transform: translateX(8px) scale(1.2);
}

/* Coming Soon Card - Enhanced */
.collection-card.coming-soon {
  position: relative;
  opacity: 0.9;
  filter: grayscale(15%);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collection-card.coming-soon:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-8px) scale(1.02);
}

.collection-card.coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(243, 156, 18, 0.15) 100%);
  border-radius: 24px;
  z-index: 1;
}

.coming-soon-badge {
  background: linear-gradient(135deg, #D4AF37 0%, #f39c12 100%) !important;
  color: white !important;
  padding: 0.4rem 1rem !important;
  border-radius: 24px !important;
  font-size: 0.825rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4) !important;
  animation: pulseGlow 2.5s ease-in-out infinite !important;
  backdrop-filter: blur(10px);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero-section {
    padding: 24px 0 48px 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  }

  .hero-mascot {
    left: 5%; /* Start in final position */
    top: 75%;
  }

  .hero-mascot.animate {
    animation: mascotFadeIn 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
  }

  .hero-mascot-right {
    right: 5%; /* Start in final position */
    top: 75%;
  }

  .hero-mascot-right.animate {
    animation: mascotFadeInRight 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
  }

  .mascot-image {
    width: 240px;
  }

  .collections-section {
    padding: 48px 0 160px 0;
  }

  .collections-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .collection-card {
    height: 280px;
  }

  .scroll-down-btn {
    bottom: 30px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 16px 0 40px 0;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .collections-section {
    padding: 32px 0 120px 0;
  }

  .hero-mascot {
    left: 2%; /* Start in final position */
    top: 78%;
  }

  .hero-mascot.animate {
    animation: mascotFadeIn 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
  }

  .hero-mascot-right {
    right: 2%; /* Start in final position */
    top: 78%;
  }

  .hero-mascot-right.animate {
    animation: mascotFadeInRight 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
  }

  .mascot-image {
    width: 200px;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .card-content {
    padding: 1.5rem;
  }

  .collections-grid {
    grid-template-columns: 1fr;
  }

  .scroll-down-btn {
    width: 44px;
    height: 44px;
    bottom: 24px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable specific problematic animations */
  .hero-section::before,
  .hero-mascot.animate,
  .hero-mascot-right.animate,
  .mascot-image,
  .mascot-image.mascot-clicked,
  .stat-item,
  .scroll-down-btn,
  .coming-soon-badge,
  .collection-card,
  .card-arrow {
    animation: none !important;
  }

  /* Keep hero section stable */
  .hero-section:hover {
    transform: none !important;
  }

  /* Keep mascots in final position immediately */
  .hero-mascot.animate {
    left: 10% !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
  }

  .hero-mascot-right.animate {
    right: 10% !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
  }

  /* Instant stat item visibility */
  .stat-item.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}
