/* ==========================================================================
   Root Theme & Section Layout
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Audiowide&family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@400;700&display=swap");

:root {
  --wsh-primary: #00d4ff;
  --wsh-glow: rgba(0, 212, 255, 0.5);
  --wsh-white: #ffffff;
  --wsh-bg: #02050a;
  --font-main: "Audiowide", cursive, sans-serif;
  --font-sec: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

body, html { margin: 0; padding: 0; width: 100vw; height: 100vh; overflow: hidden; background-color: var(--wsh-bg); }

.ws-hero-section { position: relative; width: 100vw; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }

/* ==========================================================================
   Background Image Wash
   ========================================================================== */
.ws-bg-wrapper { position: absolute; inset: -5%; width: 110%; height: 110%; z-index: 1; pointer-events: none; }
.ws-bg-layer {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(35px) brightness(0.3); transition: opacity 0.8s ease;
}
.ws-bg-wash { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0, 30, 60, 0.2), rgba(2, 5, 10, 0.95)); z-index: 2; }

/* ==========================================================================
   Header & Tabs (Parallel Layout)
   ========================================================================== */
.ws-hero-header {
  position: absolute; 
  top: 100px; /* Keeps it safely below your global site navbar and REC HUD */
  left: 0; 
  width: 100%; 
  padding: 0 5vw;
  display: flex; 
  flex-direction: row; /* Places items side-by-side */
  justify-content: space-between; /* Pushes Title to the left, Tabs to the right */
  align-items: flex-end; /* Bottom-aligns the tabs with the large title text */
  gap: 20px;
  z-index: 10; box-sizing: border-box; pointer-events: none;
}
.ws-header-title { pointer-events: auto; }
.ws-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 4px; color: var(--wsh-primary); display: flex; align-items: center; gap: 15px; margin-bottom: 5px; }
.ws-label .line { width: 30px; height: 2px; background: var(--wsh-primary); box-shadow: 0 0 5px var(--wsh-primary); }
.ws-header-title h1 { font-family: var(--font-main); font-size: 36px; letter-spacing: 3px; color: var(--wsh-white); margin: 0; text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8); }
.ws-header-title h1 span { color: var(--wsh-primary); }

.ws-category-tabs { display: flex; gap: 5px; background: rgba(0, 15, 30, 0.5); padding: 5px; border-radius: 30px; border: 1px solid rgba(0, 212, 255, 0.15); backdrop-filter: blur(10px); pointer-events: auto; }
.ws-tab { background: transparent; border: none; padding: 10px 20px; border-radius: 25px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 2px; color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s ease; }
.ws-tab:hover { color: var(--wsh-white); }
.ws-tab.active { background: var(--wsh-primary); color: var(--wsh-bg); box-shadow: 0 0 15px var(--wsh-glow); }

/* ==========================================================================
   Massive Hero Carousel
   ========================================================================== */
.ws-carousel-wrapper { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; display: flex; align-items: center; z-index: 5; }
.ws-carousel-track { display: flex; gap: 40px; width: 100%; height: 100%; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; }
.ws-carousel-track::-webkit-scrollbar { display: none; }
.ws-carousel-track:active { cursor: grabbing; }

.ws-spacer { flex: 0 0 calc(50vw - 450px - 20px); height: 1px; }

/* The Image Cards */
.ws-hero-card {
  flex: 0 0 900px; aspect-ratio: 16/9; scroll-snap-align: center; position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.85); opacity: 0.4; filter: blur(4px); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); user-select: none;
  cursor: pointer; /* Makes it clear the whole card is clickable */
}
.ws-hero-card.hidden { display: none; }
.ws-hero-card.active { transform: scale(1); opacity: 1; filter: blur(0px); border-color: rgba(0, 212, 255, 0.4); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 212, 255, 0.15); }

.ws-card-image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 6s linear; }
.ws-hero-card.active .ws-card-image { transform: scale(1.05); }

.ws-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(2, 5, 10, 0.8) 80%, rgba(2, 5, 10, 0.95) 100%); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.ws-hero-card.active .ws-card-overlay { opacity: 1; }

.ws-card-ui { position: absolute; bottom: 0; left: 0; width: 100%; padding: 50px; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transform: translateY(30px); transition: all 0.5s ease 0.2s; pointer-events: none; }
.ws-hero-card.active .ws-card-ui { opacity: 1; transform: translateY(0); pointer-events: auto; }

.ws-meta { display: flex; align-items: center; gap: 15px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--wsh-primary); letter-spacing: 2px; margin-bottom: 15px; }
.ws-meta .badge { background: rgba(0, 212, 255, 0.15); padding: 5px 10px; border-radius: 4px; border: 1px solid var(--wsh-primary); color: var(--wsh-white); backdrop-filter: blur(5px); }

.ws-title { font-family: var(--font-main); font-size: 48px; color: var(--wsh-white); letter-spacing: 3px; margin: 0 0 15px 0; text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8); }
.ws-desc { font-family: var(--font-sec); font-size: 15px; font-weight: 300; color: rgba(255, 255, 255, 0.8); line-height: 1.6; max-width: 600px; margin: 0 0 30px 0; pointer-events: none; }

.ws-actions { display: flex; gap: 20px; }
.ws-play-btn { background: var(--wsh-primary); color: var(--wsh-bg); border: none; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 2px; padding: 14px 28px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 10px; box-shadow: 0 0 20px var(--wsh-glow); transition: all 0.3s ease; }
.ws-play-btn svg { width: 18px; height: 18px; fill: var(--wsh-bg); }
.ws-play-btn:hover { background: var(--wsh-white); box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); transform: scale(1.05); }
.ws-info-btn { background: rgba(255, 255, 255, 0.1); color: var(--wsh-white); border: 1px solid rgba(255, 255, 255, 0.3); font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 2px; padding: 14px 28px; border-radius: 6px; cursor: pointer; backdrop-filter: blur(5px); transition: all 0.3s ease; }
.ws-info-btn:hover { background: rgba(0, 212, 255, 0.2); border-color: var(--wsh-primary); }

/* ==========================================================================
   Video Modal
   ========================================================================== */
.ws-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.ws-modal.active { opacity: 1; visibility: visible; }
.ws-modal-bg { position: absolute; inset: 0; background: rgba(2, 5, 10, 0.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); cursor: pointer; }
.ws-modal-container { position: relative; width: 90%; max-width: 1200px; z-index: 2; transform: scale(0.95); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.ws-modal.active .ws-modal-container { transform: scale(1); }
.ws-close-btn { position: absolute; top: -50px; right: 0; background: transparent; border: none; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--wsh-white); display: flex; align-items: center; gap: 8px; cursor: pointer; transition: color 0.3s ease; }
.ws-close-btn svg { width: 18px; height: 18px; fill: var(--wsh-white); transition: fill 0.3s ease; }
.ws-close-btn:hover { color: var(--wsh-primary); }
.ws-close-btn:hover svg { fill: var(--wsh-primary); }
.ws-player-wrapper { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 212, 255, 0.2); border: 1px solid rgba(0, 212, 255, 0.2); }
.ws-player-wrapper video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ==========================================================================
   Responsive Logic
   ========================================================================== */
@media (max-width: 1200px) {
  .ws-hero-card { flex: 0 0 700px; }
  .ws-spacer { flex: 0 0 calc(50vw - 350px - 20px); }
  .ws-title { font-size: 40px; }
}

@media (max-width: 992px) {
  .ws-hero-card { flex: 0 0 600px; }
  .ws-spacer { flex: 0 0 calc(50vw - 300px - 20px); }
  .ws-card-ui { padding: 40px; }
}

@media (max-width: 768px) {
  .ws-hero-section { display: flex; flex-direction: column; justify-content: flex-start; }
  .ws-hero-header { position: relative; top: 0; margin-top: 80px; padding: 0 1rem; margin-bottom: 20px; align-items: center; text-align: center; }
  .ws-header-title h1 { font-size: 24px; }
  .ws-category-tabs { flex-wrap: wrap; justify-content: center; }
  .ws-tab { padding: 8px 14px; font-size: 9px; }

  .ws-carousel-wrapper { position: relative; height: auto; flex: 1; align-items: center; }
  .ws-carousel-track { gap: 15px; padding-bottom: 20px; }
  
  .ws-hero-card { flex: 0 0 85vw; aspect-ratio: 4/5; border-radius: 12px; }
  .ws-spacer { flex: 0 0 calc(50vw - 42.5vw - 7.5px); }
  
  .ws-card-ui { padding: 20px; justify-content: flex-end; }
  .ws-meta { font-size: 9px; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
  .ws-title { font-size: 26px; margin-bottom: 15px; line-height: 1.1; }
  .ws-desc { display: none; } 
  
  .ws-actions { flex-direction: column; gap: 10px; pointer-events: none; } /* Let the card handle the click on mobile */
  .ws-play-btn, .ws-info-btn { width: 100%; justify-content: center; padding: 14px; font-size: 10px; border-radius: 8px; }
  .ws-close-btn { top: -40px; font-size: 10px; right: 10px; }
}

@media (max-width: 480px) {
  .ws-hero-header { margin-top: 70px; margin-bottom: 10px; }
  .ws-header-title h1 { font-size: 22px; }
  .ws-category-tabs { padding: 4px; gap: 4px; }
  .ws-tab { padding: 6px 12px; font-size: 8px; }
  
  .ws-hero-card { flex: 0 0 85vw; aspect-ratio: 3/4; }
  .ws-title { font-size: 22px; margin-bottom: 12px; }
  .ws-play-btn, .ws-info-btn { padding: 12px; font-size: 9px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .ws-hero-section { flex-direction: row; align-items: center; }
  .ws-hero-header { position: absolute; top: 15px; left: 0; width: 100%; flex-direction: row; justify-content: space-between; padding: 0 5vw; margin: 0; z-index: 10; }
  .ws-carousel-wrapper { position: absolute; inset: 0; align-items: center; }
  .ws-hero-card { flex: 0 0 450px; aspect-ratio: 16/9; }
  .ws-spacer { flex: 0 0 calc(50vw - 225px - 10px); }
  .ws-desc, .ws-info-btn { display: none; }
  .ws-title { font-size: 24px; margin-bottom: 10px; }
  .ws-card-ui { padding: 20px; }
  .ws-play-btn { width: auto; padding: 10px 20px; pointer-events: none; }
}