/* ===========================
   MODERN PORTFOLIO — Shanu Singh Rajput
   Cinematic Dark Theme — Premium Edition
   =========================== */

/* ---------- Google Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

/* ---------- CSS Custom Properties ---------- */
:root {
  --clr-bg: #08080a;
  --clr-bg-card: #111115;
  --clr-bg-glass: rgba(17, 17, 21, 0.72);
  --clr-surface: #14141a;
  --clr-border: rgba(255, 255, 255, 0.07);
  --clr-accent: #d4af5a;
  --clr-accent-rgb: 212, 175, 90;
  --clr-accent-dark: #b8953e;
  --clr-accent-light: rgba(212, 175, 90, 0.08);
  --clr-text: #e6e4e0;
  --clr-text-muted: #7a7a80;
  --clr-text-secondary: #a3a3a8;
  --clr-white: #ffffff;
  --clr-black: #000000;

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --fs-xs: 0.7rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-hero: clamp(3.5rem, 9vw, 7rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(var(--clr-accent-rgb), 0.12);
  --shadow-glow-strong: 0 0 60px rgba(var(--clr-accent-rgb), 0.2);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.7s cubic-bezier(0.22, 1, 0.36, 1);

  --container-max: 1200px;
  --section-py: 110px;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv01";
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--clr-white);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* ---------- UTILITY ---------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 70px;
}

.section-heading h2 {
  font-size: var(--fs-4xl);
  color: var(--clr-white);
  position: relative;
  display: inline-block;
  font-weight: 500;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
  margin: 20px auto 0;
  border-radius: 2px;
}

.section-heading p {
  color: var(--clr-text-muted);
  margin-top: 14px;
  font-size: var(--fs-sm);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.03em;
  line-height: 1.8;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   NAVBAR
   =================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 28px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--clr-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Brand: hidden by default, shown on scroll */
.navbar__brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--clr-white);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
  position: absolute;
  left: 0;
  white-space: nowrap;
}

.navbar.scrolled .navbar__brand {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.navbar__brand:hover {
  color: var(--clr-accent);
}

.navbar__brand-name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.2;
}

.navbar__brand-title {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--clr-accent);
  font-weight: 400;
  font-family: var(--font-body);
  opacity: 0.8;
}

.navbar__links {
  display: flex;
  gap: 36px;
}

.navbar__links--centered {
  justify-content: center;
  width: 100%;
  gap: 50px;
  transition: var(--transition);
}

/* When scrolled and brand is visible, push links right */
.navbar.scrolled .navbar__links--centered {
  justify-content: flex-end;
}

.navbar__links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  padding-bottom: 4px;
}

.navbar__links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--clr-white);
  transition: var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--clr-white);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
  transition: var(--transition);
}

.navbar__hamburger span {
  width: 28px;
  height: 2px;
  background: var(--clr-white);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Scale slightly to allow parallax translation without seeing edges */
  transform: scale(1.05);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  overflow: hidden;
  background-color: var(--clr-bg);
}

.hero__slide.active {
  opacity: 1;
  z-index: 1;
}

/* Base image styling focused on mobile & desktop responsiveness */
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: brightness(0.4) contrast(1.15);
  transform: scale(1.05); /* Base scale to cover borders during ken burns effect */
  transition: transform 8s linear;
}

.hero__slide.active img {
  transform: scale(1.15); /* Zoom in more when active */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(10, 10, 10, 0.95) 100%
  );
  z-index: 1;
}

/* Film grain effect */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 150px;
}

/* Light Flares / Leaks */
.hero__flares {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.flare {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 20s infinite alternate ease-in-out;
}

.flare-1 {
  width: 50vw;
  height: 50vw;
  background: rgba(212, 175, 90, 0.4);
  top: -20%;
  left: -10%;
}

.flare-2 {
  width: 60vw;
  height: 60vw;
  background: rgba(100, 150, 255, 0.15);
  bottom: -30%;
  right: -20%;
  animation-delay: -10s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 5vw) scale(1.2); }
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1000px;
  padding: 0 20px;
  margin-top: 20px;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 600;
  color: var(--clr-accent);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: cinematicReveal 2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
  line-height: 1;
  white-space: nowrap;
}

.hero__title {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  letter-spacing: 1.5px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
  line-height: 1.6;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinematicReveal {
  0% {
    opacity: 0;
    transform: scale(1.05) translateY(20px);
    letter-spacing: 20px;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    letter-spacing: 8px;
    filter: blur(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-indicator .mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background-color: var(--clr-accent);
  border-radius: 2px;
  animation: scrollBounce 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollBounce {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===================================================================
   ABOUT SECTION
   =================================================================== */
.about {
  padding: var(--section-py) 0;
  background: var(--clr-bg);
  position: relative;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--clr-surface);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--clr-accent-rgb), 0.2);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.about__image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.7));
  z-index: 1;
}

.about__content h3 {
  font-size: var(--fs-3xl);
  color: var(--clr-white);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.about__content h3 span {
  color: var(--clr-accent);
}

.about__role {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--clr-accent);
  margin-bottom: 28px;
  font-weight: 500;
  font-family: var(--font-body);
}

.about__content p {
  color: var(--clr-text-secondary);
  margin-bottom: 20px;
  font-size: var(--fs-base);
  line-height: 1.85;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.about__stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--clr-bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
}

.about__stat-number {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--clr-accent);
  display: block;
}

.about__stat-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-text-muted);
  margin-top: 4px;
}

/* ===================================================================
   FILMOGRAPHY / SELECTED WORK SECTION
   =================================================================== */
.filmography {
  padding: var(--section-py) 0;
  background: var(--clr-bg);
  position: relative;
}

/* --- Filters --- */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap; /* Change to nowrap for desktop too */
  overflow-x: auto;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: transparent;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  padding: 8px 20px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--clr-white);
  border-color: rgba(var(--clr-accent-rgb), 0.5);
}

.filter-btn.active {
  background: var(--clr-accent);
  color: var(--clr-black);
  border-color: var(--clr-accent);
  font-weight: 600;
}

.film-card.hidden {
  display: none;
}

/* --- Poster Grid --- */
.poster-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.poster-nav {
  display: none;
}

.poster-nav:hover {
  background: var(--clr-secondary);
  color: var(--clr-bg);
  transform: translateY(-50%) scale(1.1);
}

.poster-nav--prev {
  left: -25px;
}

.poster-nav--next {
  right: -25px;
}

.poster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* overflow-x: auto; */
  padding-bottom: 20px;
  /* scrollbar-width: none; */
  width: 100%;
  /* -webkit-overflow-scrolling: touch; */
}

.poster-grid::-webkit-scrollbar {
  display: none;
}

.poster-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
  cursor: pointer;
}

.poster-card__img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16/10;
  background: #111;
}

.poster-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.poster-card:hover .poster-card__img img {
  transform: scale(1.05);
}

.poster-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}

.poster-card:hover .poster-card__overlay {
  background: rgba(0, 0, 0, 0.2);
}

/* YouTube UI Elements */
.yt-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.yt-channel-logo {
  width: 36px;
  height: 36px;
  background: var(--clr-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.yt-video-name {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.yt-play-btn {
  width: 68px;
  height: 48px;
  z-index: 3;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.yt-play-btn svg {
  width: 100%;
  height: 100%;
  fill: #ff0000;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.poster-card:hover .yt-play-btn {
  transform: scale(1.1);
}

.yt-overlay-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 10px;
  z-index: 2;
}

.yt-watch-btn {
  background: rgba(0, 0, 0, 0.8);
  padding: 6px 12px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.yt-watch-btn svg {
  width: 18px;
  height: 18px;
}

.poster-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-white);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.poster-card:hover .poster-card__title {
  color: var(--clr-accent);
}

/* ===================================================================
   THROUGH MY LENS SECTION
   =================================================================== */
.through-lens {
  padding: var(--section-py) 0;
  background: var(--clr-bg);
  position: relative;
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lens-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16/10;
}

.lens-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(0.85);
}

.lens-card:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

/* ===================================================================
   BRANDS SECTION
   =================================================================== */
.brands {
  padding: var(--section-py) 0;
  background: var(--clr-bg);
  overflow: hidden; /* Hide overflow for marquee */
}

.brands-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: scroll-brands 40s linear infinite;
}

.brands-grid:hover {
  animation-play-state: paused;
}

@keyframes scroll-brands {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.brand-item {
  padding: 12px 28px;
  background: var(--clr-bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.brand-item img {
  height: 32px;
  width: auto;
  /* filter: grayscale(100%) brightness(1.7) opacity(0.7); */
  transition: all 0.4s ease;
  object-fit: contain;
}

.brand-item:hover {
  border-color: rgba(var(--clr-accent-rgb), 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.brand-item:hover img {
  filter: grayscale(0%) brightness(1) opacity(1);
  transform: scale(1.08);
}

/* ===================================================================
   BEHIND THE LENS
   =================================================================== */
.behind-lens {
  padding: var(--section-py) 0;
  background: var(--clr-surface);
  position: relative;
  overflow: hidden; /* Hide overflow for marquee */
}

.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-nav {
  display: none;
}

.gallery-nav:hover {
  background: var(--clr-secondary);
  color: var(--clr-bg);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav--prev {
  left: -25px;
}

.gallery-nav--next {
  right: -25px;
}
.behind-lens::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--clr-accent),
    transparent
  );
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  /* overflow-x: auto; */
  padding-bottom: 20px;
  /* -webkit-overflow-scrolling: touch; */
  /* scrollbar-width: none; */
}

/* Hide scrollbar for gallery */
.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1/1;
  cursor: pointer;
  flex: 0 0 calc(25% - 15px); /* 4 per row on desktop */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(0.85);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--clr-accent-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}



/* ===================================================================
   PROJECT MODAL
   =================================================================== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1050; /* Higher than navbar, lower than lightbox */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
  padding: 20px;
}

.project-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
}

.project-modal__content {
  position: relative;
  width: 98%;
  max-width: 1400px;
  background: #0f0f0f;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.project-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal__close:hover {
  background: var(--clr-accent);
  color: #000;
  transform: scale(1.05);
  border-color: var(--clr-accent);
}

.project-modal__video {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  background: #000;
  flex-shrink: 0;
}

.project-modal__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-modal__gallery-wrapper {
  padding: 24px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-accent) transparent;
}

.project-modal__gallery-wrapper::-webkit-scrollbar {
  width: 6px;
}
.project-modal__gallery-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.project-modal__gallery-wrapper::-webkit-scrollbar-thumb {
  background: var(--clr-accent);
  border-radius: 4px;
}

.project-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-gallery-item {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-gallery-item:hover img {
  transform: scale(1.08);
}

.project-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0.8;
  transition: opacity 0.3s;
  pointer-events: none;
}

.project-gallery-item:hover::after {
  opacity: 0;
}

/* Cinematic Desktop Layout for Modal */
@media (min-width: 992px) {
  .project-modal__content {
    flex-direction: row;
    height: 85vh;
  }
  
  .project-modal__video {
    width: 70%;
    height: 100%;
    aspect-ratio: auto;
  }

  .project-modal__gallery-wrapper {
    width: 30%;
    height: 100%;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: #080808;
    padding: 30px 20px;
  }

  .project-modal__gallery {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(10px);
}

.lightbox__content {
  position: relative;
  z-index: 2001;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2002;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 20px;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--clr-white);
}

.lightbox__close {
  top: 10px;
  right: 20px;
  font-size: 50px;
  line-height: 1;
}

.lightbox__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ===================================================================
   CONTACT SECTION
   =================================================================== */
.contact {
  padding: var(--section-py) 0;
  background: var(--clr-bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact__info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--clr-bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  margin-bottom: 20px;
  transition: var(--transition);
}

.contact__info-card:hover {
  border-color: rgba(var(--clr-accent-rgb), 0.4);
  box-shadow: var(--shadow-glow);
}

.contact__info-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(var(--clr-accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact__info-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-text-muted);
  margin-bottom: 4px;
}

.contact__info-value {
  font-size: var(--fs-md);
  color: var(--clr-white);
  font-weight: 500;
}

.contact__info-value a {
  color: var(--clr-white);
}

.contact__info-value a:hover {
  color: var(--clr-accent);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--clr-bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: var(--transition);
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(var(--clr-accent-rgb), 0.1);
}

.btn-submit {
  padding: 16px 44px;
  background: var(--clr-accent);
  color: var(--clr-black);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--clr-accent-dark);
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-3px);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  padding: 60px 0 30px;
  background: var(--clr-bg-card);
  border-top: 1px solid var(--clr-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__about h4 {
  font-size: var(--fs-2xl);
  color: var(--clr-white);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer__about p {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.85;
}

.footer__links h4,
.footer__contact h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--clr-accent);
  margin-bottom: 20px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--clr-white);
  padding-left: 8px;
}

.footer__contact p {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: 8px;
}

.footer__contact a {
  color: var(--clr-text-muted);
}

.footer__contact a:hover {
  color: var(--clr-accent);
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 1px;
}

.footer__bottom a {
  color: var(--clr-accent);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 992px) {
  :root {
    --section-py: 80px;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__image {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 60px;
  }

  .navbar .container {
    justify-content: space-between;
  }

  .navbar.scrolled .navbar__brand {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
  }

  .navbar__brand-name {
    font-size: var(--fs-sm);
    letter-spacing: 2px;
  }

  .navbar__brand-title {
    font-size: 0.5rem;
    letter-spacing: 3px;
  }

  .navbar__hamburger {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: var(--transition);
  }

  .navbar.scrolled .navbar__hamburger {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .navbar__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    gap: 40px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    border-bottom: 1px solid var(--clr-border);
    visibility: hidden;
    z-index: 1000;
  }

  .navbar__links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar__links a {
    font-size: 10px;
    letter-spacing: 5px;
  }

  .hero__name {
    font-size: clamp(1.1rem, 4.4vw, 3.8rem);
    white-space: nowrap;
    letter-spacing: 2px;
    margin-bottom: 24px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    top: 0;
    left: 0;
    transform: none;
    min-height: unset;
    min-width: unset;
  }

  .hero__title {
    font-size: var(--fs-base);
    letter-spacing: 6px;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .filters {
    flex-wrap: wrap; /* Revert to wrap, no scroll */
    justify-content: center;
    padding: 0;
    margin: 30px 0;
    gap: 10px;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 8px 18px;
    font-size: 10px;
  }

  .poster-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    margin-top: 20px;
    padding: 0 5% 20px;
    margin-left: -5%;
    margin-right: -5%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .poster-card {
    flex: 0 0 75vw; /* Slice effect */
  }

  .poster-nav {
    display: none;
  }

  .lens-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Remove manual scroll override as it's now handled by marquee animation */
  .brands-grid {
    animation-duration: 25s; /* Faster scroll on mobile */
  }

  .gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 5% 20px;
    margin-left: -5%;
    margin-right: -5%;
    scrollbar-width: none; /* Hide scrollbar on mobile */
    gap: 15px; /* Tighter gap for mobile */
    -webkit-overflow-scrolling: touch;
  }

  .gallery-nav {
    display: none; /* Hide nav buttons on mobile */
  }
  
  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    flex: 0 0 75vw; /* Show 75% of one image and 25% of the next image */
    aspect-ratio: 1/1;
  }

  /* Reset brands manual scroll as it's now global marquee */
  .brands-grid {
    animation-duration: 25s; /* Faster scroll on mobile */
    gap: 20px;
    padding: 0;
    margin: 0;
  }

  .brand-item {
    flex: 0 0 auto;
    padding: 12px 24px;
    font-size: var(--fs-md);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-heading h2 {
    font-size: var(--fs-2xl);
  }
}

@media (max-width: 480px) {
  .poster-grid,
  .lens-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .poster-grid,
  .lens-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }
}
