/* ========== VARIABLES ========== */
:root {
  --bg: #0a0a0f;
  --bg-alt: #101017;
  --surface: #16161f;
  --surface-2: #1c1c27;
  --border: #2a2a37;
  --text: #ffffff;
  --text-muted: #c7c7d1;
  --accent: #ff2d3f;
  --accent-2: #b3001f;
  --accent-rgb: 255, 45, 63;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --radius: 14px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; font-size: 18px; }

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

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

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

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

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.2;
}

.section-text {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1rem;
  margin-bottom: 16px;
}

section { padding: 110px 0; position: relative; }

/* ========== REVEAL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient);
  color: #ffffff;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.4);
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 10px 22px; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom-color: var(--border);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.logo {
  grid-column: 1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--text);
  font-size: 0.7rem;
  letter-spacing: 0;
  color: var(--text);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.logo__mark::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
}

.nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.nav__link {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: color .2s ease, background .2s ease;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.active {
  background: var(--gradient);
  color: #ffffff;
}

.header__actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--gradient);
  color: #ffffff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  position: relative;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb), 0.22), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(179, 0, 31, 0.18), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.hero__dots {
  position: absolute;
  top: 60px;
  right: 5%;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(var(--accent) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }

.hero__stat {
  margin-top: 40px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.hero__stat-num,
.hero__stat-suffix {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  align-self: center;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero__title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 46px;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active {
  background: var(--gradient);
  color: #ffffff;
  border-color: transparent;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.card.hidden { display: none; }

.card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card__thumb img { transform: scale(1.08); }

.card__thumb--frameio {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
}
.frameio-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 1;
}

.play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(10,10,15,0.55);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
  transition: background .25s ease, transform .25s ease;
  z-index: 1;
}
.card:hover .play {
  background: var(--gradient);
  color: #10090a;
  transform: translate(-50%, -50%) scale(1.08);
}

.card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(6,6,9,0.96) 0%, rgba(6,6,9,0.75) 55%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.card:hover .card__body,
.card.show-info .card__body {
  opacity: 1;
  transform: translateY(0);
}
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.card__body h3 {
  font-family: var(--font-head);
  font-size: 0.92rem;
  line-height: 1.3;
  margin-bottom: 6px;
}
.card__body p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ========== SHOWREEL ========== */
.showreel-section { background: var(--bg-alt); }
.showreel__inner {
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.showreel__inner .section-text { max-width: 560px; }
.showreel__frame {
  position: relative;
  width: 100%;
  max-width: var(--container);
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: var(--surface);
  margin-top: 12px;
}
.showreel__frame iframe {
  width: 100%; height: 100%;
  border: 0;
}

/* ========== TESTIMONIALS ========== */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  cursor: pointer;
  transform-origin: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.testimonial:hover,
.testimonial.expanded {
  transform: scale(1.15);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  border-color: rgba(var(--accent-rgb), 0.45);
  z-index: 5;
}
.testimonial p {
  font-size: 0.8rem;
  color: var(--text);
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.testimonial:hover p,
.testimonial.expanded p {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.testimonial cite {
  font-family: var(--font-head);
  font-style: normal;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}
.testimonial__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.testimonial__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  color: #10090a;
  font-size: 0.6rem;
  flex-shrink: 0;
}
.testimonial__subs {
  color: var(--text-muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

/* ========== CONTACT ========== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
}
.contact-list {
  list-style: none;
  margin: 26px 0;
}
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.contact-list li span:first-child {
  color: var(--text-muted);
  min-width: 110px;
}
.contact-list li a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color .2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
  padding-right: 46px;
  cursor: pointer;
}
.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--accent);
  text-align: center;
  min-height: 1.2em;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.back-to-top:hover { color: var(--accent); }

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0.9);
  backdrop-filter: blur(6px);
}
.modal__content {
  position: relative;
  width: 100%;
  max-width: 960px;
  z-index: 1;
}
.modal__video {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.modal__video iframe { width: 100%; height: 100%; border: 0; }
.modal__close {
  position: absolute;
  top: -46px; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
.modal__close:hover { color: var(--accent); border-color: var(--accent); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 780px) {
  section { padding: 80px 0; }
  .hero { padding-top: 120px; }

  .grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -24px;
    padding: 4px 24px 16px;
    scrollbar-width: none;
  }
  .grid::-webkit-scrollbar { display: none; }
  .card {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }

  .header .container { padding: 0 16px; }
  .header__inner { gap: 8px; }
  .logo__text { display: none; }
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 5px 9px; font-size: 0.7rem; }
}
