/* ==========================================================================
   SOCIALUP DESIGN SYSTEM - CINEMATIC STUDIO HERO SECTION
   /css/hero.css
   Full-Bleed Mumbai Commercial Production Backdrop & High-Velocity Brand System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Main Header Styling for Cinematic Hero Integration (index.html)
   -------------------------------------------------------------------------- */
/* Header styling ONLY when over the dark studio hero on index.html (before scrolling) */
body:has(.studio-hero) .main-header:not(.scrolled),
body.has-dark-hero .main-header:not(.scrolled) {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.20) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.4s ease,
              -webkit-backdrop-filter 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              height 0.3s ease !important;
}

body:has(.studio-hero) .main-header:not(.scrolled) .nav-link,
body.has-dark-hero .main-header:not(.scrolled) .nav-link {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

body:has(.studio-hero) .main-header:not(.scrolled) .nav-link:hover,
body.has-dark-hero .main-header:not(.scrolled) .nav-link:hover {
  color: #60A5FA !important;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.6) !important;
}

body:has(.studio-hero) .main-header:not(.scrolled) .mobile-toggle-btn,
body.has-dark-hero .main-header:not(.scrolled) .mobile-toggle-btn {
  color: #FFFFFF !important;
  transition: color 0.2s ease !important;
}

/* Header state when scrolled down: Crisp White Glass */
body:has(.studio-hero) .main-header.scrolled,
body.has-dark-hero .main-header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.95) !important;
}

body:has(.studio-hero) .main-header.scrolled .nav-link,
body.has-dark-hero .main-header.scrolled .nav-link {
  color: var(--ink, #0F172A) !important;
  text-shadow: none !important;
}

body:has(.studio-hero) .main-header.scrolled .nav-link:hover,
body.has-dark-hero .main-header.scrolled .nav-link:hover {
  color: var(--blue, #2563eb) !important;
}

body:has(.studio-hero) .main-header.scrolled .mobile-toggle-btn,
body.has-dark-hero .main-header.scrolled .mobile-toggle-btn {
  color: var(--ink, #0F172A) !important;
}

/* Dual Logo Switcher - Active strictly on pages with a dark studio hero */
body:has(.studio-hero) .main-header:not(.scrolled) .logo-dark-mode,
body.has-dark-hero .main-header:not(.scrolled) .logo-dark-mode {
  display: block !important;
}
body:has(.studio-hero) .main-header:not(.scrolled) .logo-light-mode,
body.has-dark-hero .main-header:not(.scrolled) .logo-light-mode {
  display: none !important;
}
body:has(.studio-hero) .main-header.scrolled .logo-dark-mode,
body.has-dark-hero .main-header.scrolled .logo-dark-mode {
  display: none !important;
}
body:has(.studio-hero) .main-header.scrolled .logo-light-mode,
body.has-dark-hero .main-header.scrolled .logo-light-mode {
  display: block !important;
}

/* --------------------------------------------------------------------------
   2. Full-Bleed Studio Hero Section
   -------------------------------------------------------------------------- */
.studio-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  margin-top: -80px;
  padding-top: calc(80px + 36px);
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: #06090E;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   3. Studio Backdrop Image & Cinematic Gradients
   -------------------------------------------------------------------------- */
.studio-hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.studio-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transform: scale(1.02);
  filter: contrast(1.1) brightness(0.88) saturate(1.15);
  transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.studio-hero:hover .studio-hero-bg-img {
  transform: scale(1.045);
}

/* Multi-layered directional vignette:
   - Left side is deeply darkened so the tagline and text have razor-sharp contrast
   - Right/center lets the warm studio lights, camera crew, and neon "SOCIALUP" sign glow through
   - Top & bottom blend into header and ticker */
.studio-hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    /* Top header smooth fade */
    linear-gradient(180deg, rgba(6, 9, 14, 0.92) 0%, rgba(6, 9, 14, 0.45) 15%, transparent 30%),
    /* Bottom marquee transition */
    linear-gradient(0deg, #0E1015 0%, rgba(14, 16, 21, 0.95) 12%, transparent 35%),
    /* Left-to-right directional scrim (critical for text legibility) */
    linear-gradient(90deg, rgba(6, 9, 14, 0.97) 0%, rgba(6, 9, 14, 0.92) 36%, rgba(6, 9, 14, 0.65) 65%, rgba(6, 9, 14, 0.45) 85%, rgba(6, 9, 14, 0.65) 100%),
    /* Ambient neon blue radial glow accent */
    radial-gradient(circle at 75% 40%, rgba(37, 99, 235, 0.15) 0%, rgba(6, 9, 14, 0.2) 40%, rgba(6, 9, 14, 0.8) 80%);
}

/* Subtle Film Grain Texture Overlay */
.studio-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Cinematic Viewfinder Corner Crosshairs
   -------------------------------------------------------------------------- */
.studio-vf-frame {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  z-index: 2;
}

.vf-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.18);
  border-style: solid;
}

.vf-tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.vf-tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.vf-bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.vf-br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

/* --------------------------------------------------------------------------
   5. Hero Container & Content Layout
   -------------------------------------------------------------------------- */
.studio-hero-container {
  position: relative;
  z-index: 5;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 32px;
}

/* Top Telemetry Strip */
.studio-hero-hud-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #94A3B8;
  text-transform: uppercase;
}

.studio-hud-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hud-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: none;
  animation: hudRecPulse 1.2s infinite ease-in-out;
}

@keyframes hudRecPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.hud-rec-text {
  color: #EF4444;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hud-rec-sep {
  color: rgba(255, 255, 255, 0.2);
}

.hud-rec-format {
  color: #CBD5E1;
  font-weight: 600;
}

.studio-hud-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #CBD5E1;
}

.hud-coord-icon {
  color: var(--blue, #2563eb);
}

.hud-location-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   6. Center Content Stage
   -------------------------------------------------------------------------- */
.studio-hero-stage {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  margin: auto 0;
  padding: 18px 0;
}

.studio-hero-copy {
  max-width: 820px;
}

/* Eyebrow Pill */
.studio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #CBD5E1;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.studio-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3B82F6;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   7. Main Tagline Headline (San Francisco Display)
   -------------------------------------------------------------------------- */
.studio-headline {
  font-family: var(--font-display) !important;
  font-stretch: normal !important;
  font-size: clamp(2.6rem, 4.8vw, 4.5rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
  text-transform: uppercase !important;
  margin: 0 0 24px 0 !important;
  color: #FFFFFF !important;
}

.headline-row {
  display: block !important;
}

.headline-primary {
  color: #FFFFFF !important;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.headline-highlight {
  margin-top: 4px !important;
}

.text-gradient-blue {
  color: #3B82F6 !important;
  -webkit-text-fill-color: #3B82F6 !important;
  background: none !important;
  display: inline-block !important;
  animation: none !important;
}

.ampersand {
  color: rgba(255, 255, 255, 0.45) !important;
  font-weight: 400 !important;
  font-stretch: 100% !important;
  padding: 0 6px !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.45) !important;
}

/* Subtitle */
.studio-subtitle {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.65;
  color: #CBD5E1;
  max-width: 660px;
  margin: 0 0 34px 0;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* CTA Row */
.studio-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.studio-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2563EB;
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-stretch: normal;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.studio-btn-primary:hover {
  transform: translateY(-2px);
  background: #1D4ED8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.studio-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  font-stretch: normal;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-btn-outline:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: #38BDF8;
  color: #38BDF8 !important;
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.studio-btn-primary:hover .btn-arrow,
.studio-btn-outline:hover .btn-arrow {
  transform: translate(3px, -2px);
}

.studio-quick-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #94A3B8;
}

.trust-stars {
  color: #FBBF24;
  letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   8. Floating Right HUD Telemetry Card
   -------------------------------------------------------------------------- */
.studio-floating-hud-card {
  background: rgba(10, 14, 22, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 440px;
  margin-left: auto;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.studio-floating-hud-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
}

.hud-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hud-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #60A5FA;
  font-weight: 700;
}

.hud-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3B82F6;
  box-shadow: none;
}

.hud-card-fps {
  color: #64748B;
  font-variant-numeric: tabular-nums;
}

.hud-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hud-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.hud-row-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748B;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hud-row-val {
  font-family: var(--font-sans);
  font-stretch: normal;
  font-size: 0.92rem;
  font-weight: 700;
  color: #F1F5F9;
  text-align: right;
  text-transform: uppercase;
}

.hud-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-stat-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-stat-num {
  font-family: var(--font-display);
  font-stretch: normal;
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
}

.hud-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   9. Bottom Technical Hardware Deck (2-Column Grid)
   -------------------------------------------------------------------------- */
.studio-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.studio-spec-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 14, 22, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px 18px;
  transition: all 0.25s ease;
}

.studio-spec-item:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.studio-spec-featured {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
}

.studio-spec-featured:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: #38BDF8;
}

.studio-spec-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60A5FA;
  flex-shrink: 0;
}

.spec-dot-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: none;
}

.studio-spec-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.studio-spec-key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #64748B;
  text-transform: uppercase;
}

.studio-spec-val {
  font-family: var(--font-sans);
  font-stretch: normal;
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   10. Editorial Studio Marquee Ticker
   -------------------------------------------------------------------------- */
.studio-ticker-strip {
  width: 100%;
  background-color: #0E1015;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 10;
}

.studio-ticker-track {
  display: flex;
  width: max-content;
  animation: studioTicker 28s linear infinite;
}

.studio-ticker-track:hover {
  animation-play-state: paused;
}

.studio-ticker-content {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.studio-ticker-item {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #E2E8F0;
  text-transform: uppercase;
}

.studio-ticker-sep {
  color: var(--blue, #2563eb);
  font-weight: 700;
}

@keyframes studioTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   11. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .studio-hero-stage {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .studio-floating-hud-card {
    max-width: 100%;
    margin-left: 0;
  }
  .studio-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .studio-hero {
    min-height: auto;
    padding-top: calc(80px + 24px);
    padding-bottom: 40px;
  }
  .studio-hero-container {
    padding: 0 20px;
    gap: 24px;
  }
  .studio-headline {
    font-size: 2.4rem;
  }
  .studio-spec-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .studio-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .studio-btn-primary,
  .studio-btn-outline {
    justify-content: center;
    width: 100%;
  }
  .studio-quick-trust {
    margin-left: 0;
    justify-content: center;
  }
  .vf-corner {
    display: none;
  }
}
