/**
 * Filmistaan - Base & Layout Styles
 * ---------------------------------
 * Cinematic atmosphere, background lighting layers, and typography reset
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Cinema Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08080a;
}
::-webkit-scrollbar-thumb {
  background: #24242c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-red);
}

/* Selection */
::selection {
  background-color: rgba(237, 3, 5, 0.4);
  color: #ffffff;
}

/* -------------------------------------------
   Cinematic Ambient Atmosphere Layers
------------------------------------------- */

/* Subtle ambient bottom/side tints without top red projector glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 600px 400px at 85% 85%, rgba(237, 3, 5, 0.05), transparent 60%),
    radial-gradient(ellipse 500px 300px at 15% 50%, rgba(255, 60, 60, 0.03), transparent 50%);
  z-index: 0;
  transform: translateZ(0);
}

/* Interactive Cursor Spotlight (Disabled per user request) */
#mouse-spotlight {
  display: none !important;
}

/* Cinematic Film Particles Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

/* Subtle Film Grain Noise Texture */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.038;
  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");
}

/* Main Content Wrapper (Above backgrounds) */
.page-wrapper {
  position: relative;
  z-index: 3;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

p {
  color: var(--color-text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
}
