/* =========================================================
   STOICAFILMS — stylesheet
   ========================================================= */

:root {
  --bg: #05070d;
  --bg-alt: #090d18;
  --surface: #0e1526;
  --surface-2: #131c33;
  --border: rgba(255, 255, 255, 0.08);

  --blue: #2979ff;
  --blue-bright: #00d4ff;
  --blue-deep: #0038c7;
  --accent-pink: #ff2fb0;

  --text: #f4f6fb;
  --text-muted: #98a2bd;
  --text-dim: #5c6584;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

::selection {
  background: var(--blue-bright);
  color: #04070f;
}

/* ---------- background glow accents ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ---------- section scaffolding ---------- */
section {
  position: relative;
  padding: 110px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 600;
  margin-bottom: 18px;
}

.section-tag::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue-bright);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  max-width: 640px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-top: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }
.reveal-delay-4.is-visible { transition-delay: 0.32s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #04070f;
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5), 0 10px 30px -8px rgba(0, 140, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5), 0 16px 36px -8px rgba(0, 170, 255, 0.75);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.06);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 13px 0;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 3px;
}

.logo span {
  color: var(--blue-bright);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 38px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--blue-bright);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 7, 13, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 90px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
}

.mobile-menu .btn {
  margin-top: 8px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 160px 0 90px;
  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-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.55) 0%, rgba(4, 6, 12, 0.55) 30%, rgba(4, 6, 12, 0.88) 82%, #05070d 100%),
    linear-gradient(90deg, rgba(4, 6, 12, 0.75) 0%, rgba(4, 6, 12, 0.15) 45%, rgba(4, 6, 12, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 28px;
}

.hero-eyebrow .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #04070f;
}

.hero-eyebrow .dot svg {
  width: 11px;
  height: 11px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue-bright), var(--blue) 60%, var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 26px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 70px;
  flex-wrap: wrap;
}

.hero-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--blue-bright);
}

.hero-meta div span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--blue-bright), transparent);
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

/* ---------- marquee strip ---------- */
.marquee-strip {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}

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

.marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 28px;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "◆";
  margin-left: 28px;
  color: var(--blue-bright);
  font-size: 0.6rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- portfolio ---------- */
.portfolio {
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, transparent 40%, rgba(3, 5, 10, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay .tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.portfolio-overlay .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.portfolio-expand {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 7, 13, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.portfolio-item:hover .portfolio-expand {
  opacity: 1;
  transform: scale(1);
}

.portfolio-expand svg {
  width: 15px;
  height: 15px;
}

.portfolio-foot {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ---------- services ---------- */
.services {
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  padding: 34px 30px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--surface-2) 140%);
  border: 1px solid var(--border);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.35);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue-bright);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.service-card .num {
  position: absolute;
  top: 28px;
  right: 30px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- about ---------- */
.about {
  background: var(--bg);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media .frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  max-width: 380px;
  margin: 0 auto;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

.about-media .badge {
  position: absolute;
  bottom: -22px;
  right: 50%;
  transform: translateX(150px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

.about-media .badge strong {
  display: block;
  font-family: var(--font-display);
  color: var(--blue-bright);
  font-size: 1.4rem;
}

.about-media .badge span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.about-text .section-tag {
  margin-bottom: 18px;
}

.about-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 22px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text);
}

.about-list svg {
  width: 20px;
  height: 20px;
  color: var(--blue-bright);
  flex-shrink: 0;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--bg-alt);
}

.cta-box {
  position: relative;
  border-radius: 28px;
  padding: 70px 40px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(120% 160% at 50% 0%, rgba(0, 212, 255, 0.14), transparent 60%), var(--surface);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  max-width: 720px;
  margin: 0 auto 20px;
  line-height: 1.14;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 38px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-phone {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.cta-phone strong {
  color: var(--text);
}

/* ---------- footer ---------- */
footer {
  padding: 56px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--blue-bright);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(3, 5, 10, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(920px, 92vw);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 760px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about .container {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 759px) {
  section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-meta {
    gap: 28px;
    margin-top: 50px;
  }

  .about-media .badge {
    display: none;
  }
}
