/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #D4AF37;
  --gold-light: #F0D060;
  --gold-dark: #A07D10;
  --navy: #0A1438;
  --navy-mid: #0D1B4B;
  --navy-light: #132060;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  background-color: var(--navy);
  color: #ffffff;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ===== UTILITIES ===== */
.text-gold { color: var(--gold); }
.text-gold-70 { color: rgba(212,175,55,0.7); }
.text-white-45 { color: rgba(255,255,255,0.45); }
.text-white-35 { color: rgba(255,255,255,0.35); }
.text-white-25 { color: rgba(255,255,255,0.25); }
.text-white-20 { color: rgba(255,255,255,0.20); }
.font-black { font-weight: 900; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-5xl { font-size: 3rem; }
.text-center { text-align: center; }
.tracking-widest { letter-spacing: 0.2em; }
.tracking-wide { letter-spacing: 0.1em; }
.tracking-loading { letter-spacing: 0.4em; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top:0; right:0; bottom:0; left:0; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.h-px { height: 1px; }

/* ===== FADE IN UP ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes loadProgress { 0% { width: 0%; } 100% { width: 100%; } }
.loading-bar-animate { animation: loadProgress 2.5s ease forwards; }

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(212,175,55,0.5)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 40px rgba(212,175,55,0.9)); }
}
.logo-pulse { animation: logoPulse 1.8s ease-in-out infinite; }

@keyframes traceSweep { 0% { left: -60%; } 100% { left: 110%; } }
.trace-sweep { animation: traceSweep 3s ease-in-out infinite; }
.trace-sweep-2 { animation: traceSweep 3s ease-in-out infinite 0.9s; }
.trace-sweep-3 { animation: traceSweep 3s ease-in-out infinite 1.8s; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
.scroll-bounce { animation: bounce 2s ease-in-out infinite; }

@keyframes sphereRotate {
  from { transform: rotateY(0deg) rotateX(0deg); }
  to { transform: rotateY(360deg) rotateX(360deg); }
}

@keyframes coreGlow {
  0%, 100% { transform: scale(1.0); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes modalIn {
  from { transform: scale(0.8) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-animate { animation: modalIn 0.35s cubic-bezier(0.34,1.56,0.64,1); }

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.shimmer { animation: shimmer 2s ease-in-out infinite; }

@keyframes ringPing {
  0% { transform: scale(1); opacity: 0.3; }
  75%, 100% { transform: scale(1.05); opacity: 0; }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background-color: var(--navy);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }

.bg-gradient-trace {
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.4), transparent);
}

.corner {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: rgba(212,175,55,0.4);
  border-style: solid;
  border-width: 0;
}
.corner.top-right { top:32px; right:32px; border-top-width:2px; border-right-width:2px; border-radius: 0 8px 0 0; }
.corner.top-left  { top:32px; left:32px;  border-top-width:2px; border-left-width:2px;  border-radius: 8px 0 0 0; }
.corner.bottom-right { bottom:32px; right:32px; border-bottom-width:2px; border-right-width:2px; border-radius: 0 0 8px 0; }
.corner.bottom-left  { bottom:32px; left:32px;  border-bottom-width:2px; border-left-width:2px;  border-radius: 0 0 0 8px; }

.loading-bar-track {
  width: 288px;
  height: 3px;
  background: rgba(212,175,55,0.2);
  border-radius: 9999px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 9999px;
}

/* ===== PARTICLE CANVAS ===== */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
.particle-canvas.active { opacity: 1; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 20px 0;
}
.navbar.scrolled {
  background: rgba(10,20,56,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,55,0.2);
  padding: 12px 0;
}
.navbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links button {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links button:hover { color: var(--gold); }
.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid rgba(212,175,55,0.5) !important;
  color: var(--gold) !important;
  border-radius: 8px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: rgba(212,175,55,0.1) !important; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 768px) { .hamburger { display: none; } }
.ham-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}
.ham-line.open1 { transform: rotate(45deg) translateY(7px); }
.ham-line.open2 { opacity: 0; }
.ham-line.open3 { transform: rotate(-45deg) translateY(-7px); }

.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  background: var(--navy-mid);
  border-top: 1px solid rgba(212,175,55,0.2);
}
.mobile-menu.open { max-height: 256px; opacity: 1; }
.mobile-menu ul { list-style: none; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu button {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.875rem;
  width: 100%;
  text-align: right;
  transition: color 0.2s;
}
.mobile-menu button:hover { color: var(--gold); }

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-radial-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(19,32,96,0.8) 0%, #0A1438 70%);
}
.hero-ring-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-ring {
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.05);
  animation: ringPing 4s cubic-bezier(0,0,0.2,1) infinite;
}
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-title-wrap {
  position: relative;
  z-index: 20;
  text-align: center;
  margin-bottom: -60px;
  pointer-events: none;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  letter-spacing: 12px;
  font-size: clamp(52px, 9vw, 110px);
  color: #D4AF37;
  text-shadow: 0 0 30px rgba(212,175,55,0.9), 0 0 60px rgba(212,175,55,0.6), 0 0 100px rgba(212,175,55,0.3);
  line-height: 1;
}
.sphere-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.sphere-outer-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, rgba(212,175,55,0.06) 50%, transparent 70%);
  filter: blur(60px);
  animation: coreGlow 6s ease-in-out infinite;
}
.sphere-wrap {
  position: relative;
  z-index: 10;
  width: 460px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sphere-core-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(240,208,96,0.4) 0%, transparent 70%);
  filter: blur(70px);
  animation: coreGlow 25s ease-in-out infinite;
}
.geometric-sphere {
  width: 420px;
  height: 420px;
  position: relative;
  transform-style: preserve-3d;
  transform-origin: center center;
}
.sphere-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212,175,55,0.49);
  border-radius: 50%;
  box-shadow: 0 0 31.5px rgba(212,175,55,0.35);
}

.scroll-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  z-index: 30;
}
.scroll-arrow { font-size: 1.25rem; color: rgba(212,175,55,0.5); }

/* ===== ABOUT SECTION ===== */
.about-section {
  position: relative;
  z-index: 10;
  padding: 80px 16px;
}
@media (min-width: 768px) { .about-section { padding: 80px 40px; } }

.section-label {
  display: block;
  color: rgba(212,175,55,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-desc {
  color: rgba(255,255,255,0.6);
  max-width: 42rem;
  margin: 0 auto;
  font-size: 0.875rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: linear-gradient(145deg, rgba(13,27,75,0.95) 0%, rgba(10,20,56,0.98) 100%);
  border: 1px solid rgba(212,175,55,0.18);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(212,175,55,0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); }

.card-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(212,175,55,0.5);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon { display: flex; justify-content: center; padding: 8px 0; }
.card-icon svg { width: 40px; height: 40px; }
.card-title {
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.4;
}
.card-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  line-height: 1.7;
  text-align: right;
}
.card-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.card-features li .check { color: var(--gold); }
.card-more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--gold);
  direction: rtl;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
  text-decoration: none;
}
.card-more:hover { opacity: 0.8; }

.stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 90rem;
  margin: 0 auto;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(13,27,75,0.9) 0%, rgba(10,20,56,0.95) 100%);
  border: 1px solid rgba(212,175,55,0.15);
}
@media (min-width: 768px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); padding: 32px; }
}

.stat-item { display: flex; align-items: center; gap: 16px; }
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-content { text-align: right; }
.stat-value { font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--gold); }
.stat-label { color: #fff; font-weight: 600; font-size: 0.875rem; }
.stat-sub { color: rgba(255,255,255,0.45); font-size: 0.75rem; margin-top: 2px; }

/* ===== PROJECTS SECTION ===== */
.projects-section {
  position: relative;
  z-index: 10;
  padding: 96px 24px;
}
@media (min-width: 768px) { .projects-section { padding: 96px 64px; } }

.divider-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 16px auto;
}

/* ===== PROJECTS CAROUSEL ===== */
.folders-carousel-wrap {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 56px;
}
@media (min-width: 768px) { .folders-carousel-wrap { padding: 0 68px; } }

.folders-carousel-viewport {
  overflow: hidden;
}

/* Track: slides laid out horizontally, RTL direction reversed for LTR sliding */
.folders-track {
  display: flex;
  flex-direction: row;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 24px;
  padding: 6px 0 18px;
  direction: rtl;
}

.carousel-empty {
  width: 100%;
  text-align: center;
  padding: 48px 0;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

.carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13,27,75,0.92);
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 5;
}
.carousel-arrow:hover { background: rgba(212,175,55,0.18); border-color: var(--gold); transform: translateY(-50%) scale(1.08); }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; transform: translateY(-50%); }
.carousel-arrow.prev { right: 0; }
.carousel-arrow.next { left: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212,175,55,0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: var(--gold); transform: scale(1.3); }

.folder-item {
  position: relative;
  cursor: pointer;
  width: 180px;
  height: 165px;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}
.folder-item:hover { transform: translateY(-14px) rotateX(6deg) scale(1.04); }

.folder-tab {
  position: absolute;
  top: 0;
  right: 12px;
  height: 24px;
  width: 52%;
  background: linear-gradient(135deg, #D4AF37, #8a6800);
  box-shadow: 0 -2px 10px rgba(212,175,55,0.3);
  border-radius: 8px 8px 0 0;
  z-index: 10;
}
.folder-body {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(160deg, #162050 0%, #0a1438 100%);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 3px 12px 12px 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(212,175,55,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}
.folder-bg-num {
  position: absolute;
  top: 8px;
  right: 12px;
  font-weight: 900;
  font-size: 36px;
  color: rgba(212,175,55,0.1);
  line-height: 1;
  user-select: none;
}
.folder-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.05), transparent);
}
.folder-emoji { font-size: 1.875rem; position: relative; z-index: 10; }
.folder-title {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 10;
  line-height: 1.3;
}
.folder-year { color: rgba(255,255,255,0.35); font-size: 10px; position: relative; z-index: 10; }
.folder-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(212,175,55,0.3); position: relative; z-index: 10; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  max-width: 32rem;
  width: 100%;
  background: linear-gradient(145deg, #132060, #0a1438);
  border: 1px solid rgba(212,175,55,0.4);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  border-radius: 16px;
  padding: 32px;
}
.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.125rem;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  cursor: pointer;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(212,175,55,0.25); }
.modal-icon { font-size: 3rem; text-align: center; margin-bottom: 16px; }
.modal-title {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}
.modal-client { color: rgba(255,255,255,0.4); font-size: 0.75rem; text-align: center; margin-bottom: 16px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.modal-tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
}
.modal-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: right;
}
.modal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(212,175,55,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-year { color: rgba(212,175,55,0.5); font-size: 0.75rem; }
.modal-btn {
  font-size: 0.75rem;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.25);
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.modal-btn:hover { background: rgba(212,175,55,0.2); }

/* ===== FOOTER ===== */
.footer-section {
  position: relative;
  z-index: 10;
  background: rgba(4,8,25,0.97);
  border-top: 1px solid rgba(212,175,55,0.2);
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 80px 24px 40px;
}
@media (min-width: 768px) { .footer-inner { padding: 80px 64px 40px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-about-text { color: rgba(255,255,255,0.5); font-size: 0.875rem; line-height: 1.8; margin-bottom: 32px; }
.footer-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 24px;
}
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.contact-item span { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.social-links { display: flex; gap: 12px; margin-top: 32px; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.social-btn:hover { background: rgba(212,175,55,0.2); transform: translateY(-3px); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.3s;
  direction: rtl;
}
.form-input::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus { border-color: var(--gold); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-submit {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, #D4AF37, #8a6800);
  color: #0A1438;
  font-family: 'Vazirmatn', sans-serif;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
}
.form-submit:hover { opacity: 0.9; transform: translateY(-2px); }

.form-success {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.2);
  background: rgba(212,175,55,0.05);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(212,175,55,0.1);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* ===== CURVED SLOGAN (replaces broken SVG textPath) ===== */
.curved-text-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(55%);
  z-index: 20;
  width: 480px;
  text-align: center;
}

.curved-slogan {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.5px;
  white-space: nowrap;
  direction: rtl;
  /* gentle arc illusion with slight vertical curve on outer words */
  background: none;
  margin: 0;
  padding: 0;
  /* subtle drop shadow to separate from sphere */
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}