/* ============================================================
   HOME PAGE — SPECIFIC STYLES
   ============================================================ */

/* ---------- HERO ---------- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  /* Ken Burns via CSS — no GSAP transform conflicts */
  animation: kenBurns 20s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes kenBurns {
  0%   { transform: scale(1);    }
  50%  { transform: scale(1.07); }
  100% { transform: scale(1);    }
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11,11,11,0.2) 0%,
    rgba(11,11,11,0.5) 50%,
    rgba(11,11,11,0.85) 100%
  );
  z-index: 2;
}

/* Hero sits over a dark video — force white text regardless of body theme */
#hero, #hero .hero-title, #hero .hero-subtitle,
#hero .scene-overlay, #hero .hero-scroll { color: #ffffff; }
#hero .btn-ghost { color: #ffffff; }
#hero .text-red { color: var(--red) !important; }
#hero .overline  { color: var(--red); }
#hero .badge     { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; }

/* Scene overlays */
.scene-overlay {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  z-index: 4;
  text-align: right;
  opacity: 0;
  pointer-events: none;
}
.scene-overlay .display-lg { font-size: clamp(1.2rem, 2.5vw, 2.2rem); }

/* ── Hero content: bottom-left, compact, never overlapping header ── */
.hero-content {
  position: absolute;
  bottom: 72px;
  left: 0;
  z-index: 5;
  padding: 0 52px;
  max-width: 540px;
}

.hero-badge {
  animation: heroFadeUp .6s var(--ease-smooth) .3s both;
  margin-bottom: 14px;
  display: inline-flex;
  font-size: .62rem;
}

.hero-title {
  animation: heroFadeUp .8s var(--ease-smooth) .45s both;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  color: var(--white);
}

.hero-subtitle {
  animation: heroFadeUp .7s var(--ease-smooth) .6s both;
  color: rgba(255,255,255,0.68);
  max-width: 360px;
  margin-bottom: 28px;
  font-size: .9rem;
  line-height: 1.65;
}

.hero-cta {
  animation: heroFadeUp .7s var(--ease-smooth) .75s both;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Smaller CTA buttons inside hero */
.hero-cta .btn {
  padding: 12px 26px;
  font-size: .7rem;
}

/* Scroll indicator */
.hero-scroll {
  animation: heroFadeUp .5s var(--ease-smooth) 1s both;
  position: absolute;
  bottom: 24px;
  right: 48px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px; height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}
.scroll-dot {
  width: 100%; height: 40%;
  background: var(--red);
  border-radius: 1px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

@media (max-width: 900px) {
  .hero-content  { padding: 0 20px; max-width: 100%; bottom: 56px; }
  .hero-title    { font-size: clamp(1.5rem, 7vw, 2.4rem); }
  .hero-subtitle { font-size: .85rem; max-width: 100%; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 11px 20px; font-size: .65rem; }
  .hero-scroll { right: 20px; bottom: 20px; }
  .visual-item:nth-child(1),
  .visual-item:nth-child(4) { margin-top: 0; }
  .category-card { padding: 24px 20px; }
}

/* ---------- TIMELINE ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .timeline { grid-template-columns: 1fr; } }

.timeline-item {
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.timeline-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease-smooth);
}
.timeline-item:hover::before { transform: scaleX(1); }
.timeline-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201,37,92,0.18);
  line-height: 1;
  margin-bottom: 12px;
  transition: color .3s;
}
.timeline-item:hover .timeline-num { color: rgba(201,37,92,0.4); }
.timeline-time {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fg);
}
.timeline-desc { font-size: .8125rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- CATEGORY CARDS ---------- */
.category-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.cat-icon { font-size: 2.2rem; margin-bottom: 2px; }

/* Name + arrow on ONE ROW */
.cat-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cat-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  flex: 1;
}

.cat-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: background .3s, border-color .3s, color .3s, transform .35s var(--ease-spring);
}
.category-card:hover .cat-arrow {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateX(4px);
}

.cat-desc { font-size: .8375rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- PRODUCT CARD BUTTON ---------- */
.card-btn-sm {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;          /* more padding so text never clips */
  border-radius: 60px;
  transition: background .3s, color .3s, border-color .3s, transform .25s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;           /* contain any ripple */
}
.product-card:hover .card-btn-sm {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: scale(1.04);
}

/* ---------- BRAND STORY ---------- */
#brand-story { position: relative; overflow: hidden; }
.brand-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .brand-story-inner { grid-template-columns: 1fr; gap: 48px; }
}
.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.visual-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}
.visual-item:nth-child(1) { margin-top: 40px; }
.visual-item:nth-child(4) { margin-top: -40px; }
.visual-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-smooth);
}
.visual-item:hover img { transform: scale(1.08); }

/* ---------- STATS SECTION ---------- */
#stats-section {
  padding: 64px 0;
  border-top:    1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.012);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  align-items: center;
  justify-items: center;
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 16px;
  }
}

.stat-item { text-align: center; width: 100%; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 0 40px rgba(201,37,92,0.3);
  transition: text-shadow .3s;
}
.stat-item:hover .stat-num { text-shadow: 0 0 60px rgba(201,37,92,0.55); }

.stat-label {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 10px;
  font-weight: 600;
}

/* ---------- CTA SECTION ---------- */
#cta-section { position: relative; overflow: hidden; }

/* ---------- SECTION HEADER ---------- */
.section-header { max-width: 600px; }

/* ==========================================================
   SECTION ENTRANCE ANIMATIONS
   Each homepage section slides in from a different direction
   ========================================================== */

/* --- Timeline section: items slide up with stagger --- */
#timeline-section .text-center {
  clip-path: inset(0 0 100% 0);
  animation: none; /* GSAP handles */
}

/* --- Categories section: header slides from LEFT --- */
#categories-section .section-header { --slide-from: -60px; }

/* --- Featured products: header slides from RIGHT --- */
#featured-section .section-header { --slide-from: 60px; }

/* --- Brand story: two-column split slide --- */
.brand-story-text  { --slide-from: -80px; }
.brand-story-visual{ --slide-from:  80px; }

/* General slide-in utility applied via JS */
.slide-from-left  { transform: translateX(-60px); opacity: 0; }
.slide-from-right { transform: translateX(60px);  opacity: 0; }
.slide-from-bottom{ transform: translateY(50px);  opacity: 0; }
