/* ==========================================================================
   AD-E-AAZAM — Premium Cinema & Commercial Production Studio Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --color-brand: #10b981;
  --color-brand-glow: rgba(16, 185, 129, 0.35);
  --color-brand-light: #34d399;
  --color-dark-bg: #070908;
  --color-dark-surface: #0e1311;
  --color-dark-card: #121a17;
  --color-dark-border: rgba(255, 255, 255, 0.08);
  --color-dark-border-hover: rgba(52, 211, 153, 0.35);
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-dark-bg);
  color: #e5e7eb;
  font-family: var(--font-sans);
  overflow-x: hidden;
  letter-spacing: -0.01em;
  padding-bottom: 72px; /* space for mobile sticky bottom bar */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Typography Scale & Clamp
   -------------------------------------------------------------------------- */
.font-display {
  font-family: var(--font-display);
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.section-title {
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Cinematic Background & Ambient Grain
   -------------------------------------------------------------------------- */
.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)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Glassmorphism & Luxury Card Borders
   -------------------------------------------------------------------------- */
.glass-card {
  background: linear-gradient(180deg, rgba(18, 26, 23, 0.8) 0%, rgba(12, 17, 15, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-dark-border);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--color-dark-border-hover);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 20px var(--color-brand-glow);
}

.glass-pill {
  background: rgba(18, 26, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-dark-border);
}

/* --------------------------------------------------------------------------
   Custom Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark-bg);
}

::-webkit-scrollbar-thumb {
  background: #1f2d27;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* --------------------------------------------------------------------------
   Mobile Horizontal Swipe Container (Snap-Scroll)
   -------------------------------------------------------------------------- */
.mobile-snap-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.mobile-snap-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-snap-scroll > * {
  scroll-snap-align: start;
  flex: 0 0 85%;
  max-width: 320px;
}

@media (min-width: 640px) {
  .mobile-snap-scroll > * {
    flex: 0 0 45%;
    max-width: 360px;
  }
}

@media (min-width: 1024px) {
  .mobile-snap-scroll {
    display: grid;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .mobile-snap-scroll > * {
    flex: initial;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   Infinite Marquee Animation
   -------------------------------------------------------------------------- */
.marquee-wrapper {
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

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

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Filter Tabs
   -------------------------------------------------------------------------- */
.filter-btn {
  background-color: rgba(18, 26, 23, 0.7);
  border: 1px solid var(--color-dark-border);
  color: #9ca3af;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  color: #ffffff;
  border-color: rgba(52, 211, 153, 0.4);
}

.filter-btn.active {
  background-color: var(--color-brand-light);
  color: #06110d;
  border-color: var(--color-brand-light);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(52, 211, 153, 0.35);
}

/* --------------------------------------------------------------------------
   Mobile Sticky Bottom Action Bar
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(8, 13, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

/* --------------------------------------------------------------------------
   Lightbox & Modal Animations
   -------------------------------------------------------------------------- */
.modal-overlay {
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}

.modal-content {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-overlay:not(.hidden) .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-overlay.hidden .modal-content {
  transform: scale(0.95);
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Glow Pulsing Keyframes
   -------------------------------------------------------------------------- */
@keyframes ambientGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.06);
  }
}

.animate-ambient-glow {
  animation: ambientGlow 8s ease-in-out infinite;
}
