/* Millangtarashi — main stylesheet */

:root {
  --mlt-bg: #0a0c10;
  --mlt-bg-2: #11151c;
  --mlt-surface: #171c26;
  --mlt-text: #eef2f8;
  --mlt-muted: #9aa6b8;
  --mlt-accent: #d4a017;
  --mlt-accent-2: #2dd4bf;
  --mlt-border: rgba(255, 255, 255, 0.08);
  --mlt-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --mlt-radius: 18px;
  --mlt-header-h: 78px;
  --mlt-font: "Vazirmatn", Tahoma, Arial, sans-serif;
  --mlt-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.millangtarashi-theme {
  margin: 0;
  font-family: var(--mlt-font);
  background: var(--mlt-bg);
  color: var(--mlt-text);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.mlt-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.mlt-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mlt-accent-2);
  text-transform: uppercase;
}

.mlt-section-title {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
}

.mlt-section-lead {
  margin: 0;
  color: var(--mlt-muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.mlt-section-head {
  margin-bottom: 48px;
}

.mlt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.35s var(--mlt-ease), box-shadow 0.35s var(--mlt-ease), background 0.35s var(--mlt-ease);
}

.mlt-btn:hover {
  transform: translateY(-2px);
}

.mlt-btn--primary {
  background: linear-gradient(135deg, #e6b422, #b8860b);
  color: #111;
  box-shadow: 0 12px 30px rgba(212, 160, 23, 0.25);
}

.mlt-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--mlt-border);
  color: var(--mlt-text);
}

.mlt-btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.mlt-btn--outline:hover {
  border-color: var(--mlt-accent);
  color: var(--mlt-accent);
}

/* Preloader */
.mlt-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--mlt-bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.mlt-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mlt-preloader__inner {
  text-align: center;
}

.mlt-preloader__ring {
  display: inline-block;
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--mlt-accent);
  border-radius: 50%;
  animation: mlt-spin 0.9s linear infinite;
}

.mlt-preloader__text {
  display: block;
  margin-top: 14px;
  color: var(--mlt-muted);
  font-size: 0.92rem;
}

@keyframes mlt-spin {
  to { transform: rotate(360deg); }
}

/* Header */
.mlt-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--mlt-header-h);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.mlt-header.is-scrolled {
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.mlt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.mlt-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mlt-logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.25), rgba(45, 212, 191, 0.15)),
    radial-gradient(circle at 30% 30%, #fff3, transparent 60%);
  border: 1px solid var(--mlt-border);
  position: relative;
}

.mlt-logo__mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid var(--mlt-accent);
  border-radius: 50%;
  border-right-color: transparent;
  transform: rotate(-35deg);
}

.mlt-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mlt-logo__text strong {
  font-size: 1rem;
}

.mlt-logo__text small {
  color: var(--mlt-muted);
  font-size: 0.78rem;
}

.mlt-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mlt-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.mlt-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  transition: transform 0.3s ease;
}

.mlt-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mlt-nav__list,
.mlt-nav__list ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mlt-nav__list a {
  color: var(--mlt-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.mlt-nav__list a:hover,
.mlt-nav__list .current-menu-item a {
  color: var(--mlt-text);
}

.mlt-nav__cta {
  white-space: nowrap;
}

/* Hero */
.mlt-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(var(--mlt-header-h) + 24px) 0 clamp(96px, 12vh, 128px);
  overflow: hidden;
}

.mlt-hero__media {
  position: absolute;
  inset: 0;
}

.mlt-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.mlt-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.35) 0%, rgba(10, 12, 16, 0.55) 45%, rgba(10, 12, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 12, 16, 0.75) 0%, transparent 55%);
}

.mlt-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.mlt-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  transform: translateY(clamp(-32px, -6vh, -72px));
}

.mlt-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  font-weight: 900;
}

.mlt-hero__title--brand {
  color: #fff;
  background: linear-gradient(135deg, #fff 8%, var(--mlt-accent) 52%, var(--mlt-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 28px rgba(0, 0, 0, 0.45));
  max-width: 18ch;
}

.mlt-hero__title span {
  display: block;
}

.mlt-hero__title-accent {
  background: linear-gradient(135deg, #fff 10%, var(--mlt-accent) 55%, var(--mlt-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mlt-hero__tagline {
  margin: 0 0 28px;
  color: #d7dee9;
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 42ch;
}

.mlt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mlt-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--mlt-muted);
  font-size: 0.78rem;
  z-index: 2;
}

.mlt-hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, var(--mlt-accent), transparent);
  animation: mlt-scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes mlt-scroll-pulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Story — cinematic pin */
.mlt-story {
  position: relative;
  background: var(--mlt-bg-2);
}

.mlt-story__pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.mlt-story__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.mlt-story__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--mlt-radius) + 8px);
  overflow: hidden;
  box-shadow: var(--mlt-shadow);
}

.mlt-story__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s var(--mlt-ease), transform 1.2s var(--mlt-ease);
}

.mlt-story__frame.is-active {
  opacity: 1;
  transform: scale(1);
}

.mlt-story__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mlt-story__frame-glow {
  position: absolute;
  inset: auto 10% -8% 10%;
  height: 30%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.35), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.mlt-story__steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.mlt-story__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.55;
  transition: opacity 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}

.mlt-story__step.is-active {
  opacity: 1;
  border-color: rgba(212, 160, 23, 0.35);
  background: rgba(212, 160, 23, 0.06);
}

.mlt-story__step-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--mlt-accent);
}

.mlt-story__step h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.mlt-story__step p {
  margin: 0;
  color: var(--mlt-muted);
  font-size: 0.92rem;
}

/* Services horizontal track */
.mlt-services {
  padding: 100px 0;
  background: var(--mlt-bg);
}

.mlt-services__track-wrap {
  overflow: hidden;
  padding: 8px 0 24px;
}

.mlt-services__track-wrap {
  overflow: hidden;
  padding: 8px 0 24px;
}

.mlt-services__track {
  display: flex;
  flex-direction: row-reverse;
  direction: ltr;
  gap: 22px;
  width: max-content;
  margin-inline-start: auto;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  will-change: transform;
}

.mlt-service-card.mlt-reveal {
  opacity: 1;
  transform: none;
}

.mlt-service-card {
  width: min(340px, 78vw);
  border-radius: var(--mlt-radius);
  overflow: hidden;
  background: var(--mlt-surface);
  border: 1px solid var(--mlt-border);
  box-shadow: var(--mlt-shadow);
}

.mlt-service-card__image {
  height: 210px;
  overflow: hidden;
}

.mlt-service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--mlt-ease);
}

.mlt-service-card:hover .mlt-service-card__image img {
  transform: scale(1.08);
}

.mlt-service-card__body {
  padding: 22px;
}

.mlt-service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--mlt-accent-2);
  font-size: 1.1rem;
}

.mlt-service-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.mlt-service-card p {
  margin: 0;
  color: var(--mlt-muted);
  font-size: 0.94rem;
}

/* Stats */
.mlt-stats {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--mlt-bg), #0d1118);
  border-block: 1px solid var(--mlt-border);
}

.mlt-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mlt-stat {
  text-align: center;
  padding: 18px;
}

.mlt-stat__value {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 900;
  color: var(--mlt-accent);
}

.mlt-stat__label {
  display: block;
  margin-top: 10px;
  color: var(--mlt-muted);
  font-size: 0.95rem;
}

/* Process */
.mlt-process {
  padding: 100px 0;
  background: var(--mlt-bg-2);
}

.mlt-process__timeline {
  position: relative;
  padding-top: 12px;
}

.mlt-process__line {
  position: absolute;
  top: 28px;
  right: 24px;
  left: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.mlt-process__line-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mlt-accent-2), var(--mlt-accent));
  border-radius: inherit;
}

.mlt-process__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mlt-process__item {
  text-align: center;
  padding: 16px 10px;
}

.mlt-process__dot {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--mlt-surface);
  border: 2px solid rgba(212, 160, 23, 0.35);
  font-weight: 800;
  color: var(--mlt-accent);
}

.mlt-process__item p {
  margin: 0;
  color: var(--mlt-muted);
  font-size: 0.92rem;
}

/* Gallery */
.mlt-gallery {
  padding: 100px 0 80px;
}

.mlt-gallery__grid {
  columns: 3;
  column-gap: 18px;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
}

.mlt-gallery__item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  border-radius: var(--mlt-radius);
  border: 1px solid var(--mlt-border);
}

.mlt-gallery__item.mlt-reveal {
  opacity: 1;
  transform: none;
}

.mlt-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
  object-fit: cover;
  background: var(--mlt-bg-2);
  transition: transform 0.8s var(--mlt-ease);
}

.mlt-gallery__item:hover img {
  transform: scale(1.05);
}

.mlt-gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  font-weight: 600;
}

/* Contact */
.mlt-contact {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.mlt-contact__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.12), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(212, 160, 23, 0.14), transparent 40%),
    var(--mlt-bg);
}

.mlt-contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.mlt-contact__list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mlt-contact__list li {
  color: var(--mlt-muted);
}

.mlt-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mlt-contact__form {
  padding: 28px;
  border-radius: calc(var(--mlt-radius) + 4px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mlt-border);
  backdrop-filter: blur(10px);
}

.mlt-contact__form h3 {
  margin: 0 0 18px;
}

.mlt-contact__form label {
  display: block;
  margin-bottom: 14px;
}

.mlt-contact__form label span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--mlt-muted);
}

.mlt-contact__form input,
.mlt-contact__form select,
.mlt-contact__form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--mlt-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--mlt-text);
  font: inherit;
}

.mlt-contact__note {
  margin: 12px 0 0;
  color: var(--mlt-muted);
  font-size: 0.82rem;
}

/* Footer */
.mlt-footer {
  padding: 56px 0 24px;
  background: #07090d;
  border-top: 1px solid var(--mlt-border);
}

.mlt-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.mlt-footer h4 {
  margin: 0 0 12px;
}

.mlt-footer p,
.mlt-footer li {
  color: var(--mlt-muted);
}

.mlt-footer__links,
.mlt-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mlt-footer__bottom {
  padding-top: 18px;
  border-top: 1px solid var(--mlt-border);
  text-align: center;
  color: var(--mlt-muted);
  font-size: 0.88rem;
}

/* Page */
.mlt-page {
  padding: calc(var(--mlt-header-h) + 48px) 0 80px;
}

.mlt-content {
  color: var(--mlt-muted);
}

/* Reveal helper — JS enhances (below-fold sections) */
.mlt-reveal {
  opacity: 0;
  transform: translateY(36px);
}

/* Hero text/buttons must stay visible — GSAP animates from hidden to visible */
.mlt-hero .mlt-reveal {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .mlt-services__track-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: max(20px, calc((100vw - 1180px) / 2));
    -webkit-overflow-scrolling: touch;
  }

  .mlt-services__track {
    flex-direction: column;
    direction: rtl;
    width: auto;
    margin-inline: auto;
    padding-inline: max(20px, calc((100vw - 1180px) / 2));
  }

  .mlt-service-card {
    width: 100%;
  }

  .mlt-story__layout,
  .mlt-contact__grid,
  .mlt-footer__grid {
    grid-template-columns: 1fr;
  }

  .mlt-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mlt-process__list {
    grid-template-columns: 1fr;
  }

  .mlt-process__line {
    display: none;
  }

  .mlt-gallery__grid {
    columns: 2;
  }
}

@media (max-width: 760px) {
  .mlt-nav-toggle {
    display: block;
  }

  .mlt-nav {
    position: fixed;
    inset: var(--mlt-header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 24px;
    background: rgba(10, 12, 16, 0.96);
    backdrop-filter: blur(16px);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--mlt-ease), opacity 0.35s ease;
  }

  .mlt-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mlt-nav__list,
  .mlt-nav__list ul {
    flex-direction: column;
    align-items: stretch;
  }

  .mlt-gallery__grid {
    columns: 1;
  }

  .mlt-stats__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mlt-reveal {
    opacity: 1;
    transform: none;
  }
}
