/* ============================================
   BICYCLE-KICK V2.0 — CINEMATIC HOMEPAGE
   Motion-first dark theme, GSAP ScrollTrigger
   ============================================ */

/* --- 1. VARIABLES --- */
:root {
  --font-display: "Orbitron", sans-serif;
  --font-body: "Fira Code", "JetBrains Mono", monospace;
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-border: #1f1f1f;
  --color-accent: #d4a04a;
  --color-accent-hover: #e8b85a;
  --color-text: #f5f5f5;
  --color-muted: #d0d0d0;
  --color-black: #050505;
  --ease-smooth: cubic-bezier(0.83, 0, 0.17, 1);
}

/* --- 2. GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* GSAP handles scroll */
}

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

.font-orbitron {
  font-family: var(--font-display);
  text-transform: uppercase;
}

.font-mono {
  font-family: var(--font-body);
}

.text-accent {
  color: var(--color-accent);
}

/* --- 3. FILM GRAIN OVERLAY --- */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* --- 4. NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .navbar {
    padding: 0 48px;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 24px;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 99;
}

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

/* --- 5. DOT NAVIGATION --- */
.dot-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .dot-nav {
    display: flex;
  }
}

.dot-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
}

.dot-nav__dot.active {
  opacity: 1;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(212, 160, 74, 0.5);
}

.dot-nav__dot.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}

/* --- 6. SCROLL SECTIONS --- */
.scroll-container {
  width: 100%;
}

.scroll-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scroll-section--footer {
  min-height: 30vh;
  background: var(--color-black);
  border-top: 1px solid var(--color-border);
}

/* --- 7. PLAYER STAGE --- */
.player-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  will-change: transform, filter, opacity;
}

.player-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Golden glow behind player */
.player-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 160, 74, 0.25) 0%,
    rgba(212, 160, 74, 0) 70%
  );
  filter: blur(40px);
  will-change: transform, opacity;
  z-index: -1;
}

/* --- 8. SECTION CONTENT --- */
.section-content {
  position: relative;
  z-index: 10;
  padding: 80px 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-content {
    padding: 80px 60px;
  }
}

/* Layout: CENTER */
.section-content--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 100vh;
}

/* Layout: RIGHT */
.section-content--right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  justify-content: center;
  min-height: 100vh;
}

/* Layout: LEFT with cards at bottom */
.section-content--left-with-cards {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .section-content--center,
  .section-content--right,
  .section-content--left-with-cards {
    align-items: center;
    text-align: center;
  }
}

.section-content--footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 30vh;
  gap: 0;
}

/* --- 9. HERO TYPOGRAPHY --- */
.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.hero-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-text);
  will-change: transform, opacity;
}

.hero-word--stroke {
  -webkit-text-stroke: 2px var(--color-text);
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--color-muted);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-block;
}

/* --- 10. BUTTONS --- */
.btn-start {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 16px 48px;
  border: 2px solid var(--color-accent);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.btn-start:hover {
  background: transparent;
  color: var(--color-accent);
  box-shadow: 0 0 30px rgba(212, 160, 74, 0.3);
}

/* --- 11. SECTION LABELS --- */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-label__line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.section-label__text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

/* --- 12. SECTION HEADINGS --- */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.section-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-text);
  will-change: transform, opacity;
}

.section-word--accent {
  color: var(--color-accent);
}

.section-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 500px;
}

/* --- 13. FEATURE CARDS --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
  width: 100%;
  max-width: 800px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.feature-card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  transition: all 0.4s var(--ease-smooth);
  will-change: transform, opacity;
}

.feature-card:hover {
  border-color: rgba(212, 160, 74, 0.3);
  box-shadow: 0 0 40px rgba(212, 160, 74, 0.08);
  transform: translateY(-4px);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 12px;
}

.feature-card__desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* --- 14. NUMBERS SECTION --- */
.numbers-grid {
  display: flex;
  flex-direction: row;
  gap: 60px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .numbers-grid {
    flex-direction: column;
    gap: 40px;
  }
}

.number-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  will-change: transform, opacity;
}

.number-item__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.number-item__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- 15. BLOG BACKGROUND --- */
.blog-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.blog-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.blog-bg__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.55);
}

.section-content--blog-cards {
  position: relative;
  z-index: 10;
}

/* --- 15. BLOG CARDS --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
  max-width: 800px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: all 0.4s var(--ease-smooth);
  will-change: transform, opacity;
}

.blog-card:hover {
  border-color: rgba(212, 160, 74, 0.3);
  box-shadow: 0 0 40px rgba(212, 160, 74, 0.08);
  transform: translateY(-4px);
}

.blog-card__tag {
  display: inline-block;
  width: fit-content;
  background: var(--color-accent);
  color: white;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 12px;
}

.blog-card__desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card__link:hover {
  color: var(--color-accent);
}

.blog-card__link svg {
  transition: transform 0.3s ease;
}

.blog-card__link:hover svg {
  transform: translateX(5px);
}

/* --- 15. SCROLL INDICATOR --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* --- 16. LOGIN PAGE STYLES (kept from original) --- */
.login-card {
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  box-shadow: 8px 8px 0px 0px var(--color-black);
  border-radius: 0px;
  padding: 40px;
  max-width: 400px;
  margin: 100px auto;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.login-card form .mb-6,
.login-card form .mb-8 {
  margin-bottom: 0 !important;
}

.login-card .text-center {
  text-align: center;
  margin-bottom: 30px;
}

.login-input {
  background-color: #1a1a1a;
  border: 2px solid var(--color-border);
  border-radius: 0px;
  padding: 12px;
  font-family: var(--font-body);
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
  color: var(--color-text);
  outline: none;
  transition: all 0.2s;
  font-size: 1rem;
}

.login-input:focus {
  border-color: var(--color-accent);
  background-color: #222;
}

.btn-login {
  background-color: var(--color-accent);
  color: #ffffff;
  border: 2px solid var(--color-accent);
  font-family: var(--font-display);
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 4px 4px 0px 0px var(--color-accent);
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  transition: all 0.2s var(--ease-smooth);
  cursor: pointer;
}

.btn-login:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px var(--color-accent);
}

/* --- 17. RESPONSIVE --- */
@media (max-width: 768px) {
  .player-video {
    object-position: center center;
  }

  .player-glow {
    width: 300px;
    height: 300px;
  }

  .section-content {
    padding: 100px 20px 40px;
  }

  .btn-start {
    width: 100%;
    text-align: center;
    padding: 16px 32px;
  }
}
