/* ============================================================
   SKYSET CINEMA — main.css
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: #131313;
  color: #e5e2e1;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL support for Arabic */
body[dir="rtl"] { direction: rtl; text-align: right; }
body[dir="rtl"] .ltr-only { display: none; }

/* ── Material Icons ──────────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

/* ── Glass Panel ─────────────────────────────────────────── */
.glass-panel {
  background: rgba(53, 53, 52, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Typography ──────────────────────────────────────────── */
.text-glow {
  text-shadow: 0 0 30px rgba(201, 198, 197, 0.3);
}

.text-gold-glow {
  text-shadow: 0 0 40px rgba(233, 195, 73, 0.25);
}

/* ── Cinematic Effects ───────────────────────────────────── */
.cinematic-mask {
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.scanlines::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Services Grid ───────────────────────────────────────── */
.services-grid-hover .service-card:hover .service-bg {
  transform: scale(1.05);
  opacity: 0.4;
}

/* ── Navigation ──────────────────────────────────────────── */
#main-nav {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#main-nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

#main-nav a.active:not(.bg-tertiary):not(.bg-primary) {
  color: #e9c349 !important;
}

/* ── Language Switcher ───────────────────────────────────── */
#lang-dropdown {
  min-width: 130px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

#lang-dropdown button:hover {
  background: rgba(255,255,255,0.05);
}

/* ── Mobile Menu ─────────────────────────────────────────── */
#mobile-menu {
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Cookie Modal ────────────────────────────────────────── */
#cookie-modal {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

#cookie-modal .cookie-box {
  animation: slideUp 0.5s ease;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background-color: #e9c349;
  color: #3c2f00;
  padding: 0.75rem 2.5rem;
  border-radius: 0.125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}
.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 40px rgba(233,195,73,0.2);
}

.btn-secondary {
  border: 1px solid rgba(68,71,72,0.4);
  color: #c9c6c5;
  padding: 0.75rem 2.5rem;
  border-radius: 0.125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
  text-transform: uppercase;
  transition: background 0.2s ease;
  display: inline-block;
}
.btn-secondary:hover {
  background: rgba(42,42,42,0.8);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(68,71,72,0.6);
  color: #e5e2e1;
  padding: 0.75rem 0;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  border-bottom-color: #e9c349;
}
.form-input::placeholder {
  color: #8e9192;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-label {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8e9192;
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Portfolio Grid ──────────────────────────────────────── */
.portfolio-item {
  overflow: hidden;
  position: relative;
}

.portfolio-item img {
  transition: transform 0.8s ease;
}
.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  transform: translateY(10px);
  transition: transform 0.4s ease;
  opacity: 0;
}
.portfolio-item:hover .info {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #131313; }
::-webkit-scrollbar-thumb { background: #353534; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #8e9192; }

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: #e9c349;
  color: #3c2f00;
}

/* ── Utility ─────────────────────────────────────────────── */
.border-gold { border-color: rgba(233,195,73,0.3); }
.text-gold   { color: #e9c349; }
.bg-dark     { background-color: #131313; }

.aspect-cinema { aspect-ratio: 2.39 / 1; }
.aspect-vertical { aspect-ratio: 9 / 16; }

/* ── Section spacing ─────────────────────────────────────── */
.section-padding { padding: 7rem 3rem; }
@media (max-width: 768px) {
  .section-padding { padding: 4rem 1.5rem; }
}

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  padding-top: 12rem;
  padding-bottom: 5rem;
}
@media (max-width: 768px) {
  .page-header { padding-top: 8rem; }
}

/* ── Stat Numbers ────────────────────────────────────────── */
.stat-number {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
  color: #c9c6c5;
}

/* ── Project Card ────────────────────────────────────────── */
.project-card {
  position: relative;
  overflow: hidden;
  background: #1c1b1b;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.3s ease;
}
.project-card:hover {
  border-color: rgba(233,195,73,0.2);
}

/* ── Fade In animation ───────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Marquee ticker ──────────────────────────────────────── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  cursor: default;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  animation: marquee-scroll 35s linear infinite;
  font-family: 'Newsreader', serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: rgba(201, 198, 197, 0.2);
  letter-spacing: 0.03em;
}
.marquee-track .marquee-dot {
  color: rgba(233, 195, 73, 0.3);
  font-size: 0.8em;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats-divider {
  display: none;
}
@media (min-width: 768px) {
  .stats-divider { display: block; }
}

/* ── Hero scroll indicator ───────────────────────────────── */
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.7; transform: scaleY(1.3); }
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,198,197,0.4), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

/* ── Featured work section ───────────────────────────────── */
.work-grid-panel {
  position: relative;
  overflow: hidden;
}

/* ── Manifesto section ───────────────────────────────────── */
.manifesto-section h2 {
  hyphens: none;
}

/* ── Service card v2 (equal height) ─────────────────────── */
.service-card-v2 {
  transition: border-color 0.4s ease;
}
.service-card-v2:hover {
  border-color: rgba(233, 195, 73, 0.15);
}
.service-card-v2:hover .service-bg {
  transform: scale(1.06);
  opacity: 0.4;
}

/* ── Process steps ───────────────────────────────────────── */
.process-step {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  transition: border-color 0.3s ease;
}
.process-step:hover {
  border-top-color: rgba(233, 195, 73, 0.25);
}
.process-number {
  font-family: 'Newsreader', serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  color: rgba(233, 195, 73, 0.12);
  font-weight: 400;
}
