/* ===== ROOT VARIABLES ===== */
:root {
  --gold: #c9a96e;
  --gold-light: #e8d5a3;
  --gold-glow: rgba(201, 169, 110, 0.3);
  --dark: #0c0c0c;
  --dark-card: #141414;
  --paper: #f7f5f0;
  --paper2: #efebe4;
  --text: #1a1a1a;
  --muted: #7a776e;
  --radius: 24px;
  --shadow-soft: 0 20px 60px rgba(0,0,0,0.08);
}

/* ===== BASE ===== */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Vazirmatn", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 40px)); margin: auto; }
.section { padding: 110px 0; }

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.15;
  margin: 14px 0 20px;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.section-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  max-width: 540px;
}
.serif {
  font-family: "Playfair Display", "Vazirmatn", serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.gold-text { color: var(--gold); }

/* ===== HEADER ===== */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}
.header-inner {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
}
.logo strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.logo small {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 9px;
  letter-spacing: 0.2em;
  direction: ltr;
  text-align: right;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: 0.3s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute; bottom: -4px; right: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: 0.3s;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  transition: 0.3s;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
}
.header-btn:hover {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.menu-btn {
  display: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 20px;
  backdrop-filter: blur(4px);
}

/* ===== HERO SLIDER ===== */
.hero {
  height: 100svh;
  min-height: 700px;
  position: relative;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
}
.slides {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
  z-index: 1;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 10s ease;
  will-change: transform;
}
.slide.active .slide-bg {
  transform: scale(1);
}
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-copy {
  max-width: 760px;
  padding-top: 70px;
}
.slide-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
}
.hero-title {
  font-size: clamp(42px, 6.5vw, 88px);
  line-height: 1.06;
  letter-spacing: -2.5px;
  margin: 0;
  font-weight: 900;
  opacity: 0;
  transform: translateY(40px);
}
.hero-title .serif {
  color: var(--gold-light);
}
.hero-text {
  font-size: 16px;
  line-height: 2.1;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin: 22px 0 36px;
  opacity: 0;
  transform: translateY(30px);
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(25px);
}
.btn {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  transition: 0.3s cubic-bezier(.25,.46,.45,.94);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8944f);
  color: #111;
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.35);
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(201, 169, 110, 0.45);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: #fff;
  color: #111;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* ===== TEXT ANIMATIONS PER SLIDE ===== */
.slide.active .slide-kicker { animation: fadeUp 0.8s 0.1s forwards; }
.slide.active .hero-title { animation: fadeUp 0.9s 0.2s forwards; }
.slide.active .hero-text { animation: fadeUp 0.9s 0.35s forwards; }
.slide.active .hero-buttons { animation: fadeUp 0.9s 0.5s forwards; }

.slide.s2.active .slide-kicker { animation: slideRight 0.8s 0.1s forwards; }
.slide.s2.active .hero-title { animation: slideRight 0.9s 0.2s forwards; }
.slide.s2.active .hero-text { animation: slideRight 0.9s 0.35s forwards; }
.slide.s2.active .hero-buttons { animation: slideRight 0.9s 0.5s forwards; }

.slide.s3.active .slide-kicker { animation: scaleIn 0.8s 0.1s forwards; }
.slide.s3.active .hero-title { animation: scaleIn 0.9s 0.2s forwards; }
.slide.s3.active .hero-text { animation: scaleIn 0.9s 0.35s forwards; }
.slide.s3.active .hero-buttons { animation: scaleIn 0.9s 0.5s forwards; }

.slide.s4.active .slide-kicker { animation: blurIn 0.9s 0.1s forwards; }
.slide.s4.active .hero-title { animation: blurIn 1s 0.2s forwards; }
.slide.s4.active .hero-text { animation: blurIn 1s 0.35s forwards; }
.slide.s4.active .hero-buttons { animation: blurIn 1s 0.5s forwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes blurIn {
  from { opacity: 0; filter: blur(16px); transform: translateY(20px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ===== HERO CONTROLS ===== */
.hero-bottom {
  position: absolute;
  z-index: 10;
  left: 0; right: 0;
  bottom: 34px;
}
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.counter {
  font-family: "Playfair Display", serif;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  direction: ltr;
}
.counter b {
  font-size: 34px;
  color: #fff;
  font-weight: 700;
}
.progress { display: flex; gap: 8px; align-items: center; }
.progress button {
  width: 42px; height: 3px;
  padding: 0; border: 0;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  transition: 0.4s;
}
.progress button.active {
  background: var(--gold);
  width: 56px;
  box-shadow: 0 0 20px rgba(201,169,110,0.4);
}
.arrows { display: flex; gap: 10px; }
.arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  font-size: 18px;
  transition: 0.3s;
}
.arrow:hover {
  background: #fff;
  color: #111;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ===== INTRO ===== */
.intro { background: var(--paper); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.intro-big {
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.5;
  font-weight: 800;
}
.intro-big .gold-text { color: var(--gold); }

/* ===== SERVICES ===== */
.services {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.services::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 70%; height: 80%;
  background: radial-gradient(circle, rgba(201,169,110,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.services .section-desc { color: #a09b8e; }
.services .eyebrow { color: var(--gold-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 55px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(2px);
}
.service {
  padding: 40px 30px;
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(4px);
  transition: 0.4s;
  border-left: 1px solid rgba(255,255,255,0.04);
}
.service:first-child { border-left: 0; }
.service:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
}
.service-number {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 14px;
  opacity: 0.6;
}
.service-icon {
  width: 60px; height: 60px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  display: grid; place-items: center;
  margin: 50px 0 22px;
  color: var(--gold-light);
  font-size: 24px;
  background: rgba(255,255,255,0.03);
}
.service h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.service p { color: #a5a09a; font-size: 14px; line-height: 1.9; margin: 0; }

/* ===== PORTFOLIO ===== */
.portfolio { background: var(--paper); }
.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 50px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16/11;
  background: #d5cfc4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1), filter 0.6s;
}
.work:hover img {
  transform: scale(1.08);
  filter: saturate(1.1) contrast(1.05);
}
.work::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7));
  pointer-events: none;
  opacity: 0.6;
  transition: 0.4s;
}
.work:hover::after { opacity: 0.85; }
.work-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.5s cubic-bezier(.2,.8,.2,1);
}
.work:hover .work-overlay {
  opacity: 1;
  transform: translateY(0);
}
.work-overlay span {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  font-weight: 700;
}
.work-overlay strong {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

/* ===== TEMPLATES ===== */
.templates { background: var(--paper2); }
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.template {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.4s cubic-bezier(.2,.8,.2,1);
  border: 1px solid rgba(0,0,0,0.02);
}
.template:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.1);
}
.template-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.template-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: 0.6s;
}
.template:hover img { transform: scale(1.05); }
.template-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #111;
}
.template-body { padding: 24px; }
.template-body h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.template-body p { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 0; }
.template-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.template-price { font-size: 13px; font-weight: 800; color: var(--gold); }
.template-link {
  font-size: 12px; font-weight: 800;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}
.template-link:hover { gap: 12px; }

/* ===== PROCESS ===== */
.process { background: #fff; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 55px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.process-item {
  padding: 30px 20px 12px;
  border-left: 1px solid rgba(0,0,0,0.05);
}
.process-item:first-child { border-left: 0; }
.process-num {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: var(--gold);
}
.process-item h3 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.process-item p { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 0; }

/* ===== ABOUT ===== */
.about { background: var(--paper2); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.about-copy {
  font-size: 15px;
  color: #555;
  line-height: 2.2;
  max-width: 640px;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-image img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }
.numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.number { padding: 22px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.number strong {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  display: block;
  color: var(--gold);
}
.number span { font-size: 13px; color: var(--muted); }

/* ===== CTA ===== */
.cta {
  background: var(--dark);
  color: #fff;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  left: -250px; top: -300px;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.2;
  margin: 0;
}
.cta p {
  color: #a5a09a;
  line-height: 2;
  max-width: 540px;
  font-size: 15px;
}
.cta .btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8944f);
  color: #111;
  box-shadow: 0 8px 32px rgba(201,169,110,0.3);
}
.cta .btn-primary:hover {
  box-shadow: 0 16px 48px rgba(201,169,110,0.5);
}

/* ===== FOOTER ===== */
.footer {
  background: #080808;
  color: #fff;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr;
  gap: 70px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer .logo { margin-bottom: 20px; }
.footer-desc {
  color: #777;
  line-height: 2;
  font-size: 13px;
  max-width: 400px;
}
.footer-title {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; color: #777; transition: 0.3s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #555;
  font-size: 12px;
  padding-top: 24px;
}
.footer-bottom b { color: var(--gold); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  color: #fff; z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: 0.4s cubic-bezier(.2,.8,.2,1);
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a {
  font-size: 28px;
  font-weight: 800;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: 0.3s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-close {
  position: absolute; top: 28px; left: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .nav, .header-actions { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,0.04); }
  .service:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.04); }
  .intro-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .templates-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-item { border-top: 1px solid rgba(0,0,0,0.05); }
  .process-item:nth-child(odd) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .container { width: calc(100% - 28px); }
  .section { padding: 70px 0; }
  .header-inner { height: 72px; }
  .logo strong { font-size: 16px; }
  .hero { min-height: 620px; }
  .hero-copy { padding-top: 40px; }
  .hero-title { font-size: 34px; letter-spacing: -0.5px; }
  .hero-text { font-size: 15px; }
  .hero-bottom { bottom: 18px; }
  .progress { display: none; }
  .hero-controls { justify-content: space-between; }
  .portfolio-head { display: block; }
  .portfolio-head .section-desc { margin-top: 14px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,0.04); }
  .service:first-child { border-top: 0; }
  .service-icon { margin-top: 30px; }
  .templates-grid, .process-grid { grid-template-columns: 1fr; }
  .process-item, .process-item:nth-child(odd) { border-left: 0; }
  .about-grid { gap: 30px; }
  .about-image img { aspect-ratio: 1/1; }
  .cta { padding: 70px 0; }
  .cta-inner { display: block; }
  .cta .btn-primary { margin-top: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { display: block; line-height: 2.5; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}