/* ============================================================
   OH SIR FOX — Homepage Styles (home.css)
   Homepage-specific only. Global tokens/resets live in style.css.
   ============================================================ */


/* ============================================================
   1. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  /* height set via min-height only — GSAP pin handles the effective height */
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fallback bg visible before video loads */
  background: linear-gradient(135deg, #fff8f5 0%, #fffbf0 50%, #f0f7ff 100%);
}

/* Background video fills the hero — explosion video is the main event, full opacity */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

/* Mobile: switch to contain so the full 16:9 frame is visible rather than
   heavily cropped. Letterbox bars are filled with the page background color. */
@media (max-width: 768px) {
  .hero__video {
    object-fit: contain;
    background: var(--bg);
  }
}

/* Gradient overlay — sits between video and content */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(250,250,250,0.3), rgba(250,250,250,0.6));
}

/* Centered content container — sits above the overlay */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

/* Main title — large, orange, readable over both light and dark bg */
.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  /* Subtle white glow keeps text readable on a light-toned background frame */
  text-shadow:
    0 0 40px rgba(255, 255, 255, 0.9),
    0 0 80px rgba(255, 255, 255, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Tagline below the title */
.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--color-text);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 16px;
  font-weight: 500;
  /* Light halo for legibility */
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.95);
}

/* Mascot placeholder — replaced by inline SVG later */
.hero__mascot {
  font-size: 4rem;
  margin-top: 20px;
  /* GSAP sets initial transform: scale(0) rotate(-20deg) via home.js */
  display: inline-block;
  line-height: 1;
}

/* Scroll-down indicator anchored to bottom center */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity var(--transition-fast);
  opacity: 0.6;
}

.hero__scroll-indicator:hover {
  opacity: 1;
}

.hero__scroll-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-muted);
}

.hero__scroll-arrow {
  font-size: 1.5rem;
  color: var(--color-text);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}


/* ============================================================
   2. FEATURED PROJECTS
   ============================================================ */

/* Three-column grid of project cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* Thumbnail area at the top of each card */
.card__thumbnail {
  height: 240px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

/* Per-type gradient backgrounds */
.card__thumbnail--green {
  background: linear-gradient(135deg, #fff5f0, #ffe8dd);
}

.card__thumbnail--purple {
  background: linear-gradient(135deg, #f0f7ff, #dbeafe);
}

.card__thumbnail--orange {
  background: linear-gradient(135deg, #f0fff4, #dcfce7);
}

/* Card emoji */
.card__emoji {
  font-size: 3rem;
  line-height: 1;
}

/* Card body */
.card__body {
  padding: 16px;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 0 4px;
}

.card__description {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Tag row */
.card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Tag pill */
.tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  background-color: #f0f0f0;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

/* CTA below section */
.section__cta {
  text-align: center;
  margin-top: 40px;
}

/* Responsive — 2 columns on tablet */
@media (max-width: 1199px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive — mobile adjustments */
@media (max-width: 768px) {
  .card__thumbnail {
    height: 180px;
  }
}

/* Responsive — 1 column on small mobile */
@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card__thumbnail {
    height: 160px;
  }
}


/* ============================================================
   3. VIDEO REEL
   ============================================================ */

/* Featured video placeholder */
.video-featured__placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a1a;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Hero video player */
.video-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto 32px;
  cursor: pointer;
}

/* Centered play button */
.video-featured__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: transform var(--transition-smooth), background-color var(--transition-fast);
}

.video-featured__play:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background-color: #e55a27;
}

/* Title badge in bottom-left corner */
.video-featured__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  z-index: 3;
}

/* Horizontal scrollable strip of video thumbnails */
.video-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Thin, styled scrollbar */
.video-strip::-webkit-scrollbar {
  height: 4px;
}

.video-strip::-webkit-scrollbar-track {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.video-strip::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

/* Individual thumbnail card */
.video-card {
  min-width: 250px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  flex-shrink: 0;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Dark preview area */
.video-card__thumbnail {
  height: 140px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  font-size: 2rem;
  overflow: hidden;
}

/* Play icon inside thumbnail */
.video-card__play-icon {
  font-size: 1.5rem;
  color: white;
}

/* Duration badge — inline badge inside info area */
.video-card__duration {
  display: inline-block;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

/* Text area below preview */
.video-card__info {
  padding: 10px 12px 12px;
  background: var(--color-dark);
}

.video-card__title {
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}


/* ============================================================
   4. MEET THE TEAM
   ============================================================ */

/* Three-column team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  margin-top: 48px;
}

/* Circular avatar */
.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

/* Per-character avatar backgrounds */
.team-card__avatar--sterling {
  background: #ffe8dd;
}

.team-card__avatar--phoenix {
  background: #fff3e0;
}

.team-card__avatar--ophelia {
  background: #fce4ec;
}

.team-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-card__bio {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Responsive — stack to 1 col on mobile */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Slightly smaller avatar on mobile */
  .team-card__avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
}

@media (max-width: 1199px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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