:root {
  --border-light: rgba(0, 0, 0, 0.05);
  --border-medium: rgba(0, 0, 0, 0.2);
  --btn-glass: rgba(0, 0, 0, 0.1);
  --header-bg: rgba(255, 255, 255, 0.85);
  --bg-color: #ffffff;
  --bg-color-light: #f5f5f7;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent-color: #e94057;
  /* Pink from gradient accent */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --header-height: 80px;
  --transition-smooth: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  --section-padding: 8rem 5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: initial;
  /* Handled by Lenis */
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography styles */
.text-display-1 {
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.04em;
}

.text-display-2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
}

.text-display-3 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.text-body-large {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-secondary);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 100;
  transition: background 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.logo {
  display: flex;
  align-items: center;
}

.header .logo {
  margin-left: -30px;
}

.logo img {
  height: 260px;
  width: auto;
  object-fit: contain;
}

.logo-dark {
  display: none;
}

body.dark-theme .logo-light {
  display: none;
}

body.dark-theme .logo-dark {
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(135deg, #e94057, #8a2387, #ffb75e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
}

.nav-links a:hover::after {
  transform: translateX(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-color);
  background: var(--text-primary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform var(--transition-smooth), background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--border-medium);
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:hover {
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

/* Animations Helper Classes (GSAP targets) */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.gsap-reveal-wrapper>span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.gsap-reveal-wrapper {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

/* Ambient Colorful Orbs */
.ambient-orb {
  position: absolute;
  width: 40vw;
  max-width: 600px;
  height: 40vw;
  max-height: 600px;
  filter: blur(80px);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.ambient-orb.orb-1 {
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(233, 64, 87, 0.15) 0%, rgba(138, 35, 135, 0.15) 50%, rgba(255, 255, 255, 0) 70%);
}

.ambient-orb.orb-2 {
  bottom: 10%;
  right: -5%;
  background: radial-gradient(circle, rgba(255, 183, 94, 0.15) 0%, rgba(237, 143, 3, 0.15) 50%, rgba(255, 255, 255, 0) 70%);
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(50px) scale(1.1);
  }
}

/* Minimal Gradient Text Utility */
.text-gradient {
  background: linear-gradient(135deg, #e94057, #8a2387, #ffb75e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4;
  transform: scale(1.1);
  /* For subtle parallax zoom out */
}

.hero-content {
  max-width: 900px;
  z-index: 10;
  padding: 0 5%;
}

/* Common Section Styles */
.section-header {
  margin-bottom: 4rem;
  /* max-width: 600px; */
}

.section-subtitle {
  background: linear-gradient(135deg, #e94057, #8a2387, #ffb75e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

/* .section-title is handled via HTML classes */

/* Footer */
.footer {
  background: var(--bg-color-light);
  padding: 3rem 5% 1.5rem;
  border-top: 1px solid var(--border-light);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 1rem;
}

.footer .logo img {
  height: 240px;
  margin-top: -65px;
  margin-bottom: -65px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Hamburger Menu Button - hidden on desktop */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 200;
  transition: color 0.3s;
}

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

.hamburger svg {
  display: block;
}

/* Mobile Nav Actions (theme toggle + hamburger grouped on the right) */
.nav-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

/* Media Queries */
@media (max-width: 900px) {

  /* Base Root Overrides for Mobile */
  :root {
    --header-height: 65px;
    --section-padding: 4rem 5%;
  }

  .header {
    height: var(--header-height);
    padding: 0 5%;
    flex-direction: row;
    align-items: center;
  }

  .header .logo {
    margin-left: -15px;
  }

  .logo img {
    height: 160px;
  }

  /* Typography Refinements for Mobile */
  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Grid spacing adjustments */
  .grid {
    gap: 1.5rem;
  }

  /* Button optimization */
  .btn {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
  }

  /* Show the grouped actions container on mobile */
  .nav-actions {
    display: flex;
    margin-left: auto;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Slide-in nav panel from right */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-color);
    border-left: 1px solid var(--border-light);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    gap: 1.5rem;
    z-index: 150;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* Backdrop overlay */
  .nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .nav-backdrop.active {
    display: block;
    opacity: 1;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    overflow: visible;
    display: block;
    -webkit-text-fill-color: var(--text-primary);
    background: none;
  }

  .nav-links a.active {
    background: linear-gradient(135deg, #e94057, #8a2387, #ffb75e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .nav-links a::after {
    display: none;
  }

  /* Hide the theme-toggle inside nav-links on mobile (it's moved to nav-actions) */
  .nav-links .theme-toggle {
    display: none;
  }

  .footer {
    padding: 2rem 5% 1.2rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-links:nth-child(4) {
    grid-column: span 2;
  }

  .footer .logo img {
    height: 160px;
    margin-top: -40px;
    margin-bottom: -40px;
  }
}

/* Service Cards */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: var(--bg-color-light);
  padding: 3rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-smooth), border-color 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-medium);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.service-card > .btn,
.service-card > span:last-child {
  margin-top: auto;
  align-self: flex-start;
}

/* Portfolio & Network Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 9/16;
  /* For Reels */
  background: var(--bg-color-light);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Dark Theme Toggle Styles */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  padding: 0 0.5rem;
}

.theme-toggle:hover {
  color: var(--accent-color);
}

/* Dark Theme Overrides */
body.dark-theme {
  --bg-color: #030303;
  --bg-color-light: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #555555;
  --border-light: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.2);
  --btn-glass: rgba(255, 255, 255, 0.2);
  --header-bg: rgba(3, 3, 3, 0.85);
}

/* Contact Cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-color-light);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  transition: all var(--transition-smooth);
  text-decoration: none;
  color: var(--text-primary);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.dark-theme .contact-card:hover {
  box-shadow: 0 10px 30px rgba(255,255,255,0.02);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
  transition: color 0.3s ease;
}

.contact-card:hover .contact-info p {
  color: var(--text-primary);
}

/* Team Profiles */
.team-profiles {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin-top: 4rem;
}

.team-profile-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.team-profile-row.left-text {
  flex-direction: row-reverse;
}

.profile-image {
  flex: 1;
  max-width: 400px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 4px solid var(--border-light);
  margin: 0 auto;
}

.profile-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.team-profile-row:hover .profile-image img {
  transform: scale(1.05);
}

.profile-content {
  flex: 1;
}

.profile-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #e94057, #8a2387, #ffb75e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-content .designation {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.profile-bio {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.profile-bio p {
  margin-bottom: 1rem;
}

.profile-bio p:last-child {
  margin-bottom: 0;
}

/* Media Queries for Team Profiles */
@media (max-width: 900px) {
  .team-profile-row,
  .team-profile-row.left-text {
    flex-direction: column;
    gap: 2rem;
  }
  
  .profile-image img {
    aspect-ratio: 1/1;
  }
}

/* Compact Team Cards for Homepage Preview */
.team-card-compact {
  text-align: center;
  background: var(--bg-color-light);
  padding: 3rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-smooth), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.team-card-compact:hover {
  transform: translateY(-10px);
  border-color: var(--border-medium);
}

.team-card-compact .team-img-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 4px solid var(--border-light);
  transition: transform var(--transition-smooth);
}

.team-card-compact:hover .team-img-wrapper {
  transform: scale(1.05);
}

.team-card-compact .team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-compact h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-primary);
}

.team-card-compact .designation-compact {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

/* Lightweight Minimalist Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-color-light);
  padding: 3rem 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-smooth), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-medium);
}

.testimonial-quote {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  position: relative;
  font-style: italic;
}

.testimonial-quote::before {
  content: '“';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.12;
  position: absolute;
  top: -2rem;
  left: -0.8rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Conversion-Focused CTA Box */
.cta-box {
  background: var(--bg-color-light);
  border: 1px solid var(--border-light);
  padding: 6rem 4rem;
  border-radius: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  z-index: 1;
}

.cta-box .ambient-orb {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
}

.cta-box-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-box p {
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .cta-box {
    padding: 4rem 2rem;
  }
}

/* Premium Cinematic Vertical Video Player & Ambient visuals */
.vertical-video-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4.5rem auto 0 auto;
  overflow: visible; /* Let ambient items drift outward */
  z-index: 10;
}

/* Subtle glowing radial light leaks floating in background */
.vertical-video-ambient-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle at 50% 50%, rgba(233, 64, 87, 0.25) 0%, rgba(138, 35, 135, 0.25) 50%, rgba(255, 183, 94, 0.15) 100%);
  filter: blur(35px);
  z-index: -1;
  border-radius: 24px; /* Perfectly aligned to the curvier player */
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), filter 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.vertical-video-wrapper:hover ~ .vertical-video-ambient-glow {
  opacity: 1;
  filter: blur(45px);
}

.vertical-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px; /* Centered primary player */
  aspect-ratio: 9 / 16;
  border-radius: 24px; /* Premium moderate card curves */
  box-shadow: 
    /* 3D Shadows & Color Bleeds */
    0 4px 6px rgba(0, 0, 0, 0.22),
    0 12px 24px rgba(0, 0, 0, 0.25),
    0 24px 45px rgba(0, 0, 0, 0.3),
    0 45px 75px rgba(0, 0, 0, 0.4),
    0 15px 50px rgba(233, 64, 87, 0.15), /* Subtle ambient purple-pink back glow bleed */
    inset 0 1.5px 2px rgba(255, 255, 255, 0.22), /* Top glass highlight bezel */
    inset 0 -3px 8px rgba(0, 0, 0, 0.4); /* Deep bottom inner bevel shadow */
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12); /* Polished glassmorphic border */
  contain: paint; /* GPU performance isolation */
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 5;
  
  /* Safari/Webkit hardware clipping fix */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translate3d(0, 0, 0);
}

.vertical-video-wrapper:hover {
  transform: scale(1.04) translateY(-12px) translate3d(0, 0, 0); /* Direct physical float lift */
  box-shadow: 
    /* Deepened and expanded floating shadows on hover */
    0 6px 10px rgba(0, 0, 0, 0.25),
    0 20px 38px rgba(0, 0, 0, 0.3),
    0 38px 60px rgba(0, 0, 0, 0.35),
    0 65px 105px rgba(0, 0, 0, 0.5),
    0 25px 70px rgba(233, 64, 87, 0.28), /* Vibrant elevated color bleed */
    inset 0 1.5px 2px rgba(255, 255, 255, 0.35), /* Stronger reflection on hover */
    inset 0 -4px 10px rgba(0, 0, 0, 0.5); /* Deepened lower shadow indentation */
}

/* Glassmorphic border and lighter stacked shadows for light theme */
body:not(.dark-theme) .vertical-video-wrapper {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 
    /* Crisp light-mode spatial depth stack */
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.07),
    0 24px 45px rgba(0, 0, 0, 0.09),
    0 45px 75px rgba(0, 0, 0, 0.14),
    0 12px 40px rgba(138, 35, 135, 0.06), /* Soft lavender light-theme ambient bleed */
    inset 0 1.5px 2px rgba(255, 255, 255, 0.85), /* Strong premium glass shine */
    inset 0 -3px 8px rgba(0, 0, 0, 0.08); /* Soft bottom depth indentation */
}

body:not(.dark-theme) .vertical-video-wrapper:hover {
  box-shadow: 
    /* Expanded light-mode floating shadows on hover */
    0 6px 10px rgba(0, 0, 0, 0.08),
    0 20px 38px rgba(0, 0, 0, 0.12),
    0 38px 60px rgba(0, 0, 0, 0.15),
    0 65px 105px rgba(0, 0, 0, 0.2),
    0 20px 60px rgba(138, 35, 135, 0.12), /* Stronger hover ambient bleed */
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 -4px 10px rgba(0, 0, 0, 0.12);
}

.premium-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  pointer-events: none;
  border-radius: 23px; /* Direct rounded corner clip matching wrapper curvature */
}

/* Loading shimmer state */
.video-loading-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite linear;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 23px;
}

body:not(.dark-theme) .video-loading-shimmer {
  background: linear-gradient(90deg, #eaeaea 25%, #f4f4f4 50%, #eaeaea 75%);
}

@keyframes loadingShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.video-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinnerRotate 0.8s infinite linear;
}

body:not(.dark-theme) .video-loading-spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent-color);
}

@keyframes spinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 1. Blurred Companion Video Layers (Light diffusion & motion atmosphere) */
.ambient-video-layer {
  position: absolute;
  top: 5%;
  width: 220px;
  height: 390px;
  object-fit: cover;
  filter: blur(60px) saturate(1.3);
  opacity: 0.15;
  pointer-events: none;
  z-index: -2;
  transition: opacity 0.5s ease;
  animation: floatLayer 14s infinite alternate ease-in-out;
}

.ambient-video-layer.ambient-left {
  left: 10%;
}

.ambient-video-layer.ambient-right {
  right: 10%;
  animation-delay: -5s;
}

@keyframes floatLayer {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(22px) scale(1.04); }
}

/* 2. Soft Drift Radial Light leaks in active colors */
.cinematic-glow-left {
  position: absolute;
  left: 4%;
  top: 10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(233, 64, 87, 0.1) 0%, rgba(138, 35, 135, 0.05) 55%, transparent 85%);
  filter: blur(70px);
  z-index: -3;
  pointer-events: none;
  animation: driftGlow 20s infinite alternate ease-in-out;
}

.cinematic-glow-right {
  position: absolute;
  right: 4%;
  bottom: 10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 183, 94, 0.1) 0%, rgba(233, 64, 87, 0.05) 55%, transparent 85%);
  filter: blur(70px);
  z-index: -3;
  pointer-events: none;
  animation: driftGlow 24s infinite alternate-reverse ease-in-out;
}

@keyframes driftGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.12); }
}

/* 3. Subtle Film Grain overlay for cinematic texture depth */
.cinematic-grain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 4;
  border-radius: 23px; /* Direct rounded corner clip matching wrapper curvature */
}

/* 4. Subtle Floating Typography (Outfit weight 100 displays) */
.ambient-text {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 100;
  font-size: clamp(2rem, 5.5vw, 5.8rem);
  color: var(--text-primary);
  opacity: 0.04;
  letter-spacing: 0.38em;
  filter: blur(0.5px);
  pointer-events: none;
  user-select: none;
  z-index: -1;
  line-height: 1;
  transition: opacity 0.5s ease;
}

.ambient-text-left-1 { left: 8%; top: 12%; }
.ambient-text-left-2 { left: 16%; top: 44%; }
.ambient-text-left-3 { left: 6%; top: 74%; }

.ambient-text-right-1 { right: 6%; top: 16%; }
.ambient-text-right-2 { right: 14%; top: 48%; }
.ambient-text-right-3 { right: 8%; top: 78%; }

/* Modern Minimalist Overlay Controls */
.video-overlay-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: pointer;
}

/* Show controls on hover or if paused */
.vertical-video-wrapper:hover .video-overlay-controls,
.vertical-video-wrapper.video-paused .video-overlay-controls,
.video-overlay-controls.active {
  opacity: 1;
}

/* Control buttons style */
.control-btn {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.control-btn:hover {
  background: rgba(233, 64, 87, 0.9);
  border-color: rgba(233, 64, 87, 0.9);
  transform: scale(1.08);
  color: #fff;
}

.control-btn:active {
  transform: scale(0.95);
}

/* Center play button */
.control-btn-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(233, 64, 87, 0.92);
  border: none;
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.3s ease;
  box-shadow: 0 10px 25px rgba(233, 64, 87, 0.45);
}

.control-btn-center svg {
  margin-left: 2px;
}

.vertical-video-wrapper.video-paused .control-btn-center {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.control-btn-center:hover {
  background: #ff5b73;
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 12px 30px rgba(233, 64, 87, 0.6);
}

/* Bottom Bar styling */
.video-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.video-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-controls-left,
.video-controls-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Progress Bar / Timeline */
.video-timeline-container {
  position: relative;
  width: 100%;
  height: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.video-timeline-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.video-timeline-progress {
  position: absolute;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #e94057, #ffb75e);
  border-radius: 2px;
  width: 0;
  transition: height 0.2s ease;
}

.video-timeline-handle {
  position: absolute;
  left: 0;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, 0) scale(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.video-timeline-container:hover .video-timeline-track,
.video-timeline-container:hover .video-timeline-progress {
  height: 5px;
}

.video-timeline-container:hover .video-timeline-handle {
  transform: translate(-50%, 0) scale(1);
}

/* Responsive constraints */
@media (max-width: 1100px) {
  .ambient-video-layer.ambient-left { left: 5%; }
  .ambient-video-layer.ambient-right { right: 5%; }
  .ambient-text { opacity: 0.025; }
}

@media (max-width: 900px) {
  /* Completely hide secondary resource-heavy and space-occupying nodes on mobile screens */
  .ambient-video-layer,
  .ambient-text,
  .cinematic-glow-left,
  .cinematic-glow-right {
    display: none !important;
  }
  
  .vertical-video-section {
    max-width: 250px;
    margin-top: 2.5rem;
  }
  
  .vertical-video-section.links-video-section {
    max-width: 600px;
    width: 90%;
  }
}

@media (max-width: 480px) {
  .vertical-video-section {
    max-width: 260px;
    margin-top: 2.5rem;
  }
  
  .vertical-video-section.links-video-section {
    max-width: 420px;
    width: 90%;
  }
  
  .vertical-video-wrapper,
  .video-loading-shimmer,
  .premium-video-element,
  .cinematic-grain-overlay {
    border-radius: 16px;
  }
  .control-btn {
    width: 35px;
    height: 35px;
  }
  .control-btn-center {
    width: 56px;
    height: 56px;
  }
  .video-overlay-controls {
    padding: 0.85rem;
  }
}

/* Fullscreen Sizing & Centering (Ensures vertical 9:16 aspect ratio preservation without cropping) */
.vertical-video-wrapper:fullscreen {
  background-color: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
}

.vertical-video-wrapper:-webkit-full-screen {
  background-color: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
}

/* Ensure the video contains within screen height in fullscreen */
.vertical-video-wrapper:fullscreen .premium-video-element {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 56.25vh !important; /* 9/16 of height */
  margin: 0 auto !important;
}

.vertical-video-wrapper:-webkit-full-screen .premium-video-element {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 56.25vh !important; /* 9/16 of height */
  margin: 0 auto !important;
}

/* Constrain control overlay boundaries to map exactly to the 9:16 contained video */
.vertical-video-wrapper:fullscreen .video-overlay-controls {
  max-width: 56.25vh !important; /* 9/16 of height */
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box;
}

.vertical-video-wrapper:-webkit-full-screen .video-overlay-controls {
  max-width: 56.25vh !important; /* 9/16 of height */
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box;
}

/* Video Quality Settings Popover */
.video-quality-menu {
  position: absolute;
  bottom: 75px;
  right: 20px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  z-index: 100;
  width: 140px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-quality-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.quality-menu-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
  font-weight: 600;
}

.quality-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-sans);
  text-align: left;
  font-weight: 500;
}

.quality-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.quality-menu-item.active {
  color: var(--accent-color);
  font-weight: 600;
  background: rgba(233, 64, 87, 0.1);
}

/* Links / Linktree Page Styles */
.links-section {
  padding: calc(var(--header-height) + 4rem) 5% 6rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.links-card-wrapper {
  width: 100%;
  max-width: 580px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 2rem;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  z-index: 5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .links-card-wrapper {
  background: rgba(17, 17, 17, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.links-card-wrapper:hover {
  border-color: rgba(233, 64, 87, 0.2);
}

.links-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.links-avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #e94057, #8a2387, #ffb75e);
}

.links-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-color);
  background: var(--bg-color-light);
}

.links-profile h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.links-profile .links-designation {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

.links-profile .links-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.5;
}

.links-social-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.links-social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-color-light);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.links-social-icon:hover {
  transform: scale(1.15) translateY(-3px);
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: #fff;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.links-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-radius: 1.25rem;
  background: var(--bg-color-light);
  border: 1px solid var(--border-light);
  text-align: left;
  transition: transform 0.4s var(--transition-smooth), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.links-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--accent-color);
  background: rgba(233, 64, 87, 0.03);
  box-shadow: 0 10px 25px rgba(233, 64, 87, 0.05);
}

body.dark-theme .links-item:hover {
  background: rgba(233, 64, 87, 0.05);
  box-shadow: 0 10px 25px rgba(233, 64, 87, 0.08);
}

.links-item-content {
  flex-grow: 1;
  padding-right: 1.5rem;
}

.links-item-content h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.links-item-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.links-item-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

body.dark-theme .links-item-arrow {
  background: rgba(255, 255, 255, 0.05);
}

.links-item:hover .links-item-arrow {
  transform: translateX(5px);
  background: var(--accent-color);
  color: #fff;
}

/* Featured link styling */
.links-item.featured {
  border: 1.5px solid rgba(233, 64, 87, 0.5);
  background: linear-gradient(135deg, rgba(233, 64, 87, 0.02), rgba(138, 35, 135, 0.02));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

body.dark-theme .links-item.featured {
  background: linear-gradient(135deg, rgba(233, 64, 87, 0.05), rgba(138, 35, 135, 0.05));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.links-item.featured:hover {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, rgba(233, 64, 87, 0.05), rgba(138, 35, 135, 0.05));
  box-shadow: 0 15px 35px rgba(233, 64, 87, 0.1);
}

.links-item.featured h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(233, 64, 87, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(233, 64, 87, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(233, 64, 87, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(233, 64, 87, 0);
  }
}

@media (max-width: 600px) {
  .links-card-wrapper {
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
  }
  .links-section {
    padding-top: calc(var(--header-height) + 1rem);
  }
}

.links-group-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-align: left;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent-color);
  line-height: 1;
}

.links-list .links-group-title:first-child {
  margin-top: 0;
}

/* Brand Reels Tabs Styling */
.brand-reels-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
  justify-content: flex-start;
}

.reel-tab-btn {
  display: inline-flex;
  align-items: center;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-color-light);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.reel-tab-btn svg {
  color: var(--accent-color);
  transition: transform 0.35s ease;
}

.reel-tab-btn:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(233, 64, 87, 0.2);
  background: var(--bg-color-light);
  color: var(--accent-color);
}

.reel-tab-btn:hover svg {
  transform: scale(1.2);
}

.reel-tab-btn:active {
  transform: translateY(-1px);
}


/* Video Modal Player CSS */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(15px);
}

.video-modal-content {
  position: relative;
  width: min(90vw, calc(85vh * 9 / 16));
  max-width: 420px; /* Constrain width since reels are vertical 9:16 */
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10001;
}

.video-modal.active .video-modal-content {
  transform: scale(1) translateY(0);
}

.video-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10002;
  transition: background-color 0.3s, transform 0.3s;
  backdrop-filter: blur(5px);
}

.video-modal-close:hover {
  background: var(--accent-color);
  transform: scale(1.1);
  border-color: transparent;
}

.video-modal-player-wrapper {
  width: 100%;
  height: 100%;
}

.video-modal-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Adjust card video thumbnail height to fit perfectly */
.reel-video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  pointer-events: none;
}

/* Modal buffering spinner */
.video-modal-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10003;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.video-modal-spinner.active {
  opacity: 1;
}

.spinner-icon {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: modal-spin 1s linear infinite;
}

@keyframes modal-spin {
  to { transform: rotate(360deg); }
}

/* YouTube iframe player inside the modal wrapper */
.video-modal-player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile responsive fixes for the vertical video modal player */
@media (max-width: 600px) {
  .video-modal-content {
    width: min(95vw, calc(85vh * 9 / 16));
    max-width: 360px;
    border-radius: 1rem;
  }
  .video-modal-close {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
  }
}