:root {
  /* Colors - Brand Manual */
  --bg-primary: #263238; /* Cyber Slate */
  --bg-secondary: #1C252A; /* Darker Slate for depth */
  --bg-tertiary: #455A64; /* Ash Grey */
  
  --text-primary: #FFFFFF;
  --text-secondary: #B0BEC5; /* Lighter Ash Grey for readability */
  
  --accent: #D9D9D9; /* Metallic Silver Base */
  --accent-light: #FFFFFF;
  --accent-glow: rgba(217, 217, 217, 0.15);
  
  --glass-bg: rgba(69, 90, 100, 0.25); /* Tinted with Ash Grey */
  --glass-border: rgba(255, 255, 255, 0.12);

  --nav-blue: rgb(86, 204, 255); /* Logo NAV Blue */

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 8rem;

  /* Layout */
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography styles */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--nav-blue);
}

h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.01em; margin-bottom: var(--spacing-sm); }
h3 { font-size: 2rem; margin-bottom: var(--spacing-md); }
h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--spacing-sm); }

.accent { color: var(--accent); }
.accent-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #9E9E9E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cinematic Grain */
.grain-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  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.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1rem 5%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar .logo {
  justify-self: start;
}

.navbar .netflix-pill-menu {
  justify-self: center;
}

.navbar.scrolled {
  padding: 1rem 5%;
  background-color: rgba(5, 5, 5, 0.85);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-left: 20px;
}

.netflix-pill-menu {
  display: flex;
  list-style: none;
  align-items: center;
  background: rgba(86, 204, 255, 0.2);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(86, 204, 255, 0.4);
  backdrop-filter: blur(10px);
}
.netflix-pill-menu li {
  margin: 0;
}
.netflix-pill-menu a {
  color: rgb(86, 204, 255);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.netflix-pill-menu a:hover {
  background: rgba(86, 204, 255, 0.15);
  color: #fff;
}

/* Buttons */
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #FFFFFF 0%, #BDBDBD 100%);
  color: #263238 !important; /* Cyber Slate text on Silver bg */
  box-shadow: 0 4px 20px var(--accent-glow);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #D9D9D9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.bt-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  /* Fallback gradient */
  background: radial-gradient(circle at center, #455A64 0%, #263238 100%);
  z-index: -2;
}

.hero-logo {
  width: 250px;
  height: auto;
  margin-bottom: 2rem;
  padding-top: 1rem;
  animation: fadeUp 1s ease-out forwards;
}

/* Dark gradient overlay over bg video */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(38,50,56,0.4) 0%, rgba(38,50,56,0.8) 80%, var(--bg-primary) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 1s ease-out forwards;
}

.hero-content h1 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin: 1.5rem 0 2.5rem;
}

/* Sections */
.section {
  padding: var(--spacing-xxl) 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.bg-darker {
  background-color: var(--bg-secondary);
  max-width: 100%;
}

.section-headers {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-headers p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Netflix-style horizontal rows */
.netflix-row-section {
  padding: 2rem 0;
  max-width: 100%;
}
.row-header {
  padding: 0 4%;
  text-align: left;
  margin-bottom: 1rem;
}
.row-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--nav-blue);
  margin: 0;
}
.carousel-container {
  position: relative;
  width: 100%;
}
.carousel-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  background: transparent;
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
  width: 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 2px 4px rgba(0,0,0,0.8);
}
.carousel-container:hover .carousel-btn {
  opacity: 1;
}
.carousel-btn:hover {
  background: transparent;
  font-size: 2.5rem;
  text-shadow: 0 0 12px rgba(255,255,255,0.4), 0 2px 6px rgba(0,0,0,0.9);
}
.left-btn {
  left: 0;
}
.right-btn {
  right: 0;
}
.gallery-row {
  display: flex;
  overflow: visible;
  gap: 10px;
  padding: 10px 4%;
  scroll-behavior: smooth;
}
.gallery-row::-webkit-scrollbar {
  display: none;
}

/* Scroll wrapper: allows overflow-y for scale while scrolling on X */
.gallery-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 80px;
  margin-block: -80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}
.gallery-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  position: relative;
  flex: 0 0 auto;
  width: 250px;
  aspect-ratio: 9 / 16; /* default — overridden by JS per video */
  border-radius: 12px;
  overflow: visible; /* Allow hover scale to overflow without clipping */
  cursor: pointer;
  background: #111;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  transform-origin: center;
}

/* Clip radius on the media inside */
.gallery-item > video,
.gallery-item > img {
  border-radius: 12px;
  overflow: hidden;
}

.gallery-item:hover {
  transform: scale(1.3);
  z-index: 10;
  box-shadow:
    0 0 0 2px rgba(10, 40, 80, 0.9),
    0 0 20px 6px rgba(5, 25, 60, 0.85),
    0 0 45px 15px rgba(3, 15, 45, 0.7),
    0 15px 35px rgba(0, 0, 0, 0.6);
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Loading Spinner */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none; /* hidden by default */
}

/* Netflix-style Packages */
.packages-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 5%;
}

.package-category {
  display: flex;
  flex-direction: column;
}
.category-title {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #e5e5e5;
}

.netflix-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.max-w-med {
  max-width: 400px;
  margin: 0;
}

.netflix-plan-card {
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}
.netflix-plan-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
}

/* Gradients for different plans */
.plan-basic {
  background: linear-gradient(180deg, rgba(29, 63, 137, 0.4) 0%, rgba(20, 20, 20, 1) 40%);
}
.plan-standard {
  background: linear-gradient(180deg, rgba(98, 38, 142, 0.4) 0%, rgba(20, 20, 20, 1) 40%);
}
.plan-premium {
  background: linear-gradient(180deg, rgba(142, 38, 59, 0.4) 0%, rgba(20, 20, 20, 1) 40%);
}

.plan-header h4 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  color: var(--nav-blue);
}
.plan-quality {
  font-size: 0.9rem;
  color: #a3a3a3;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.most-popular-badge {
  position: absolute;
  top: 0; right: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-top-right-radius: 11px;
  border-bottom-left-radius: 10px;
}

.features {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 2rem;
  padding: 0;
}
.features li {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: #d2d2d2;
  display: flex;
  align-items: flex-start;
}
.features li::before {
  content: '✓';
  color: #fff;
  margin-right: 10px;
  font-weight: bold;
}

.plan-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
.plan-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #a3a3a3;
}
.btn-quote {
  width: 100%;
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--spacing-xl) 5% 2rem;
  background: var(--bg-primary);
  position: relative;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto 4rem;
}

.footer-content h2 { margin-bottom: 1rem; }
.footer-content p { color: var(--text-secondary); margin-bottom: 2rem; }

.footer-bottom {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  z-index: 2001;
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.3s ease;
}

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

.modal-content video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
}

.modal-content video.portrait {
  max-height: 85vh;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

@media (max-width: 768px) {
  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .modal-prev {
    left: 10px;
  }
  
  .modal-next {
    right: 10px;
  }
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 5, 5, 0.95);
  border-top: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 0.5rem 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.25rem;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

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

/* Media Queries */
@media (max-width: 768px) {
  /* Hide desktop navbar on mobile */
  .navbar {
    display: none;
  }
  
  /* Show mobile nav */
  .mobile-nav {
    display: flex;
  }
  
  /* Body padding for mobile nav (bottom only, no top needed) */
  body {
    padding-bottom: 70px;
    padding-top: 0;
  }
  
  /* Hero optimizations */
  .hero-logo {
    width: 180px;
    margin-bottom: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }
  
  .hero-content p {
    font-size: 1rem;
    margin: 1rem 0 1.5rem;
  }
  
  /* Section optimizations */
  .section {
    padding: var(--spacing-xl) 4%;
  }
  
  /* Gallery: 2 columns on mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .gallery-item {
    aspect-ratio: 3 / 4;
  }
  
  /* Package cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .price {
    font-size: 2.5rem;
  }
  
  /* Footer padding for mobile nav */
  .footer {
    padding-bottom: calc(2rem + 70px);
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  /* Video modal touch improvements */
  .modal-content {
    width: 95%;
  }
  
  .modal-close {
    top: -45px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .gallery-item {
    aspect-ratio: 1 / 1.2;
  }
  
  .brand-logo {
    height: 45px;
    margin-left: 0;
  }
  
  .btn-primary, .btn-outline {
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
  }
  
  .bt-large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}
