/* ==========================================================
   CINEMATIC COMPANY PROFILE - MAIN STYLESHEET
   ========================================================== */

:root {
  --accent: #c9a24b;
  --bg-dark: #0a0a0c;
  --bg-darker: #050506;
  --bg-panel: #121214;
  --text-light: #f4f2ee;
  --text-muted: #a8a5a0;
  --border-subtle: rgba(255,255,255,0.08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border: 1px solid var(--accent);
  color: var(--text-light);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform .4s ease;
  z-index: -1;
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { color: #0a0a0c; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; background: var(--bg-darker);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-text {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 28px 0;
  transition: all .4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10,10,12,0.92);
  padding: 16px 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .5px; line-height: 1.2; max-width: 260px; }
.brand img { height: 44px; width: auto; flex-shrink: 0; }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
  color: var(--text-light); opacity: .8; transition: opacity .3s, color .3s;
  position: relative;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 650px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,6,.55) 0%, rgba(5,5,6,.65) 50%, rgba(5,5,6,.95) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-content .eyebrow {
  font-size: 13px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px; opacity: 0;
  animation: fadeUp .9s ease .2s forwards;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 700; line-height: 1.05; max-width: 900px;
  opacity: 0; animation: fadeUp .9s ease .4s forwards;
}
.hero-content p {
  margin-top: 24px; font-size: 18px; color: var(--text-muted); max-width: 540px;
  opacity: 0; animation: fadeUp .9s ease .6s forwards;
}
.hero-content .btn { margin-top: 40px; opacity: 0; animation: fadeUp .9s ease .8s forwards; }

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

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted);
}
.scroll-indicator .line {
  width: 1px; height: 50px; background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%{ transform: scaleY(0); transform-origin: top; } 50%{ transform: scaleY(1); transform-origin: top; } 51%{ transform-origin: bottom; } 100%{ transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .1s; }
.reveal-delay-2.in-view { transition-delay: .2s; }
.reveal-delay-3.in-view { transition-delay: .3s; }
.reveal-delay-4.in-view { transition-delay: .4s; }

/* ---------- About ---------- */
.about { padding: 160px 0; background: var(--bg-dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-media { position: relative; }
.about-media img, .about-media video { border-radius: 4px; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; }
.about-media::after {
  content: ''; position: absolute; top: 24px; left: 24px; right: -24px; bottom: -24px;
  border: 1px solid var(--accent); z-index: -1;
}
.stats-row { display: flex; gap: 48px; margin-top: 48px; }
.stat-item .num { font-family: var(--font-display); font-size: 40px; color: var(--accent); font-weight: 700; }
.stat-item .label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

/* ---------- Services ---------- */
.services { padding: 160px 0; background: var(--bg-panel); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 80px; }
.section-head .section-desc { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-subtle); }
.service-card {
  background: var(--bg-panel); padding: 48px 36px; transition: background .4s ease;
}
.service-card:hover { background: #17171a; }
.service-icon { width: 52px; height: 52px; color: var(--accent); margin-bottom: 28px; }
.service-card h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 14px; }
.service-card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Portfolio ---------- */
.portfolio { padding: 160px 0; background: var(--bg-dark); }
.portfolio-filters { display: flex; gap: 12px; justify-content: center; margin-bottom: 56px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 24px; border: 1px solid var(--border-subtle); background: transparent;
  color: var(--text-muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: all .3s ease;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.portfolio-item { position: relative; overflow: hidden; aspect-ratio: 4/5; cursor: pointer; border-radius: 2px; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,6,.9) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  opacity: 0; transition: opacity .4s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .cat { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.portfolio-overlay h3 { font-family: var(--font-display); font-size: 22px; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.7);
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .4s ease;
}
.portfolio-item:hover .play-btn { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ---------- Team ---------- */
.team { padding: 160px 0; background: var(--bg-panel); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 20px; position: relative; border-radius: 2px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(60%); transition: filter .4s ease, transform .6s ease; }
.team-card:hover .team-photo img { filter: grayscale(0%); transform: scale(1.05); }
.team-card h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 4px; }
.team-card .pos { color: var(--accent); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 160px 0; background: var(--bg-dark); text-align: center; }
.testi-track { max-width: 780px; margin: 0 auto; position: relative; min-height: 220px; }
.testi-slide { display: none; }
.testi-slide.active { display: block; animation: fadeUp .7s ease; }
.testi-slide .quote { font-family: var(--font-display); font-size: 26px; line-height: 1.5; font-style: italic; margin-bottom: 32px; }
.testi-slide .stars { color: var(--accent); margin-bottom: 24px; letter-spacing: 4px; }
.testi-author { font-weight: 600; }
.testi-company { color: var(--text-muted); font-size: 14px; }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.testi-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-subtle); cursor: pointer; transition: background .3s; }
.testi-dots span.active { background: var(--accent); }

/* ---------- Contact ---------- */
.contact { padding: 160px 0; background: var(--bg-panel); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info-item { margin-bottom: 32px; }
.contact-info-item .label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.contact-info-item .value { font-size: 18px; }
.social-row { display: flex; gap: 16px; margin-top: 40px; }
.social-row a {
  width: 44px; height: 44px; border: 1px solid var(--border-subtle); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all .3s ease;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }

.form-group { margin-bottom: 24px; }
.form-group input, .form-group textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0; color: var(--text-light); font-size: 16px; font-family: var(--font-body);
  transition: border-color .3s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-msg { padding: 14px 18px; margin-bottom: 24px; font-size: 14px; border-left: 3px solid var(--accent); background: rgba(201,162,75,.08); }
.form-msg.error { border-color: #d9534f; background: rgba(217,83,79,.08); }

/* ---------- Footer ---------- */
footer { padding: 60px 0 30px; background: var(--bg-darker); border-top: 1px solid var(--border-subtle); }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 24px; }
.footer-bottom { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background: var(--bg-darker); flex-direction: column; justify-content: center; align-items: center; transition: right .4s ease; }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .services-grid, .portfolio-grid, .team-grid { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; gap: 28px; }
  .container { padding: 0 20px; }
  .about, .services, .portfolio, .team, .testimonials, .contact { padding: 100px 0; }
}
