/* ==========================================================================
   Lighthaus - Clean CSS
   ========================================================================== */

/* CSS Variables */
:root {
  /* Enhanced Color Palette - Biology Inspired */
  --color-primary: #7B68EE;
  --color-purple: #7B68EE; /* Alias for --color-primary */
  --color-accent-cyan: #00D9FF;
  --color-accent-pink: #FF6B9D;
  --color-accent-amber: #FFC947;
  --color-dark: #0A0E27;
  --color-darker: #050714;
  --color-surface: #F8FAFB;
  --color-white: #ffffff;
  --color-text: #1a1a2e;
  --color-text-light: #ffffff;

  /* Typography */
  --font-display: 'Space Grotesk', 'Exo 2', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Layered Shadows */
  --shadow-sm:
    0 1px 2px rgba(10, 14, 39, 0.08),
    0 2px 4px rgba(10, 14, 39, 0.06);
  --shadow-md:
    0 4px 8px rgba(10, 14, 39, 0.1),
    0 8px 16px rgba(10, 14, 39, 0.08);
  --shadow-lg:
    0 8px 16px rgba(10, 14, 39, 0.12),
    0 16px 32px rgba(10, 14, 39, 0.1),
    0 24px 48px rgba(10, 14, 39, 0.08);
  --shadow-xl:
    0 12px 24px rgba(10, 14, 39, 0.15),
    0 24px 48px rgba(10, 14, 39, 0.12),
    0 36px 72px rgba(10, 14, 39, 0.1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-dark);
  position: relative;
}

/* Custom cursor only on desktop with fine pointer (mouse) */
@media (pointer: fine) {
  body {
    cursor: none;
  }
}

/* Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
  opacity: 0.4;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* Custom Cursor - only on devices with fine pointer (mouse) */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease, opacity 0.15s ease;
  opacity: 0;
  display: none;
}

/* Only show custom cursor on desktop with mouse */
@media (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

.custom-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: var(--color-accent-cyan);
  border-radius: 50%;
}

.custom-cursor.active {
  opacity: 1;
}

.custom-cursor.hover {
  transform: scale(1.5);
  background: rgba(0, 217, 255, 0.1);
}

/* Cursor Trail */
.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--color-accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: 0.3s;
}

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

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient Mesh Overlay */
.video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(123, 104, 238, 0.25), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 217, 255, 0.2), transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(255, 107, 157, 0.15), transparent 50%),
    linear-gradient(180deg, rgba(10, 14, 39, 0.2) 0%, rgba(10, 14, 39, 0.6) 100%);
  animation: gradientShift 15s ease infinite;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 0 20px;
  max-width: 900px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.8) 45%,
    rgba(255, 255, 255, 1) 55%,
    rgba(255, 255, 255, 0.8) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
}

.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
}

.hero-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 60px 0;
}

.section-white {
  background: var(--color-surface);
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

/* Decorative DNA helix pattern */
.section-white > * {
  position: relative;
  z-index: 1;
}

.section-white::after {
  content: '';
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 200px;
  height: 400px;
  background:
    linear-gradient(45deg, transparent 48%, rgba(123, 104, 238, 0.03) 49%, rgba(123, 104, 238, 0.03) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(0, 217, 255, 0.03) 49%, rgba(0, 217, 255, 0.03) 51%, transparent 52%);
  background-size: 20px 20px;
  animation: dnaRotate 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes dnaRotate {
  from {
    transform: translateY(0) rotate(0deg);
  }
  to {
    transform: translateY(-50px) rotate(360deg);
  }
}

.section-dark {
  background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-darker) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Cell-like circles in dark sections */
.section-dark::before {
  content: '';
  position: absolute;
  right: 10%;
  top: 20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 104, 238, 0.05), transparent 70%);
  animation: float 15s ease-in-out infinite;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 50px;
}

.section-title.purple {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

/* ==========================================================================
   Product Section Header (Minimal Inline)
   ========================================================================== */
.section-header-purple {
  background: transparent;
  padding: 0;
  margin-bottom: 40px;
  text-align: left;
  position: relative;
}

.section-header-purple::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-pink));
  border-radius: 2px;
}

.section-header-purple h2 {
  color: var(--color-text);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0;
  position: relative;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-header-purple h2::first-line {
  color: var(--color-primary);
}

/* ==========================================================================
   Product Grid
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 35px 25px;
  margin-bottom: 40px;
  position: relative;
}

/* Decorative blob shapes */
.product-grid::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1), transparent 70%);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  animation: morphBlob 10s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes morphBlob {
  0%, 100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 40% 60% 45% 55% / 60% 50% 50% 40%;
    transform: rotate(180deg) scale(1.1);
  }
}

/* First card is featured/larger */
.product-grid .product-card:first-child {
  grid-row: span 1;
}

.product-grid .product-card:first-child .product-image {
  aspect-ratio: 4/3;
}

.product-grid .product-card:first-child h3 {
  font-size: 1.5rem;
}

.product-card {
  text-align: left;
}

.product-image {
  margin-bottom: 25px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-dark);
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(123, 104, 238, 0.1), rgba(255, 107, 157, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.product-card:hover .product-image::before {
  opacity: 1;
}

.product-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-image {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-card:hover .product-image img {
  transform: scale(1.05) rotate(1deg);
}

.product-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.product-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   Meta Quest Store Section
   ========================================================================== */
.meta-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.meta-logo {
  height: 50px;
  width: auto;
}

.meta-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.store-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.store-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.store-card .btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

@media (max-width: 700px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.partner-logos {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.partner-logos img {
  max-width: 150px;
  height: auto;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text blockquote {
  font-style: italic;
  padding: 20px;
  border-left: 3px solid var(--color-purple);
  margin: 30px 0;
  background: rgba(255, 255, 255, 0.05);
}

.about-text cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
}

.about-text cite a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-text cite a:hover {
  color: var(--color-accent-cyan);
  text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-small {
  padding: 10px 24px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-small::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--color-dark);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn-small:hover::before {
  width: 300px;
  height: 300px;
}

.btn-small:hover {
  color: var(--color-white);
  border-color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-center {
  text-align: center;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.section-light {
  background: linear-gradient(180deg, #f8f9fa 0%, #f0f2f5 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative elements for form section */
.section-light::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(123, 104, 238, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-light::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.container-narrow {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.contact-form {
  background: white;
  padding: 50px 45px;
  border-radius: 24px;
  box-shadow:
    0 4px 6px rgba(10, 14, 39, 0.04),
    0 10px 20px rgba(10, 14, 39, 0.06),
    0 20px 40px rgba(10, 14, 39, 0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient border effect */
.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-cyan), var(--color-accent-pink));
  border-radius: 24px 24px 0 0;
}

.contact-form h2,
.section-light > .container > h2,
.section-light h2 {
  text-align: center;
  margin-bottom: 35px;
  color: var(--color-text);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}

.section-light > .container-narrow > h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-pink));
  border-radius: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text);
}

.form-group .required {
  font-weight: normal;
  color: #999;
  font-size: 0.85rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8eaed;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #d0d4da;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(123, 104, 238, 0.1);
}

.contact-form .btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-pink));
  color: white;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 25px;
  }
}

/* Form Success State */
.form-submitted {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
  animation: fadeInUp 0.5s ease;
}

.form-success .success-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
}

.form-success h3 {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.form-success p {
  color: #666;
  font-size: 1.1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-darker);
  padding: 40px 0;
  color: var(--color-white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.social-links a:hover {
  opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .partner-logos {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ==========================================================================
   Animations (Scroll Fade-in)
   ========================================================================== */

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

/* Fade-in with spring physics */
.fade-in {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  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);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animation delays for grid items */
.product-grid .product-card:nth-child(1) {
  transition-delay: 0s;
}

.product-grid .product-card:nth-child(2) {
  transition-delay: 0.15s;
}

.product-grid .product-card:nth-child(3) {
  transition-delay: 0.3s;
}

.store-grid .store-card:nth-child(1) {
  transition-delay: 0s;
}

.store-grid .store-card:nth-child(2) {
  transition-delay: 0.15s;
}

/* Floating animation for particles/accents */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(5px) rotate(-2deg);
  }
}

/* Glow pulse animation */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(123, 104, 238, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(123, 104, 238, 0.6);
  }
}

/* Shimmer effect for headings */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Scale-in animation for buttons */
.btn {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
