/* ================= RESET ================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: #0f172a;
  color: white;
  line-height: 1.6;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */
.header {
  position: absolute;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-title {
  font-weight: bold;
  font-size: 18px;
}

.logo-sub {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-list a:hover {
  color: #fbbf24;
}

.nav-btn {
  padding: 10px 20px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  background: url("images/gabriel-santos-GBVDilE8yvI-unsplash.jpg") center/cover
    no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.95) 20%,
    rgba(30, 64, 175, 0.85) 100%
  );
}

.hero-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 550px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-title span {
  color: #fbbf24;
}

.hero-desc {
  color: #cbd5e1;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;

  gap: 15px;
}

/* ================= BUTTONS ================= */
.btn-primary {
  background: #3b82f6;
  padding: 12px 25px;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-outline {
  border: 1px solid white;
  padding: 12px 25px;
  border-radius: 8px;
}

.btn-outline:hover {
  background: white;
  color: #1e293b;
}

/* ================= STATS ================= */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 180px);
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  color: #fbbf24;
  margin-bottom: 8px;
}

/* ================= SCROLL INDICATOR ================= */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 45px;
  border: 2px solid white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  opacity: 0.8;
}

.scroll-indicator span {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: scrollMove 1.5s infinite;
}

@keyframes scrollMove {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .nav-list,
  .nav-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #0f172a;
    padding: 20px;
    border-radius: 12px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-stats {
    display: flex;
    gap: 12px;
    overflow-x: auto;
  }

  .hero-stats::-webkit-scrollbar {
    display: none;
  }

  .stat-card {
    padding: 18px;
    flex-shrink: 0;
  }
}
/* ================= HERO REVEAL ANIMATION ================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* تاخیرهای مرحله‌ای */
.hero-badge.active {
  transition-delay: 0.2s;
}
.hero-title.active {
  transition-delay: 0.4s;
}
.hero-desc.active {
  transition-delay: 0.6s;
}
.hero-buttons.active {
  transition-delay: 0.8s;
}

/* کارت‌ها پشت سر هم */
.stat-card:nth-child(1).active {
  transition-delay: 1s;
}
.stat-card:nth-child(2).active {
  transition-delay: 1.2s;
}
.stat-card:nth-child(3).active {
  transition-delay: 1.4s;
}
.stat-card:nth-child(4).active {
  transition-delay: 1.6s;
}
/* ================= MOBILE MENU ================= */

.mobile-nav {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
}

.mobile-menu {
  position: absolute;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: #0f172a;
  padding: 30px 20px;
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-nav.active .mobile-menu {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
}

.close-menu {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-list a {
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.mobile-nav-list a:hover {
  color: #fbbf24;
  padding-right: 10px;
}

.mobile-btn {
  margin-top: auto;
  text-align: center;
}

.mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: 0.4s ease;
}

.mobile-nav.active .mobile-backdrop {
  opacity: 1;
}

.mobile-nav.active {
  pointer-events: auto;
}

/* فقط در موبایل فعال باشه */
@media (min-width: 769px) {
  .mobile-nav {
    display: none;
  }
}
/* ================= ABOUT / HISTORY ================= */
.about-history {
  padding: 200px 0;
  background: #f8fafc;
  color: #1e293b;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: #3b82f6;
  font-size: 14px;
  letter-spacing: 2px;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
}

.section-title span {
  color: #3b82f6;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: center;
}

.about-main {
  flex: 1 1 400px;
  font-size: 16px;
  line-height: 1.8;
}

.experience-card {
  flex: 0 1 200px;
  background: #3b82f6;
  color: white;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.experience-card h3 {
  font-size: 48px;
  margin-bottom: 10px;
}

.experience-card span {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 80px;
}

.feature-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 15px;
  color: #3b82f6;
}

.feature-card h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #475569;
}

/* ================= REVEAL ANIMATION ================= */
.about-history .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-history .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .experience-card {
    margin: 0 auto;
  }
}
/* ================= CONTACT ================= */
.contact {
  padding: 150px 0;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
}

.section-desc {
  margin-top: 15px;
  color: #cbd5e1;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  margin-top: 70px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  outline: none;
  margin-bottom: 20px;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.full-btn {
  width: 100%;
  font-size: 16px;
  margin-top: 10px;
}

.form-status {
  margin-top: 15px;
  font-size: 14px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
}
.info-card-map {
  background: rgba(255, 255, 255, 0.08);
  padding: 0px;
  border-radius: 15px;
  transition: 0.3s;
}
.info-card:hover {
  transform: translateY(-5px);
  background: rgba(59, 130, 246, 0.2);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }
}
/* ================= MAP ================= */

.map-card {
  padding-bottom: 0px;
}

.map-wrapper {
  margin-top: 0px;
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.4s ease;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) contrast(1.1);
  transition: 0.4s ease;
}

/* افکت Hover */
.map-card:hover .map-wrapper {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.map-card:hover iframe {
  filter: grayscale(0%) contrast(1);
}

/* موبایل */
@media (max-width: 768px) {
  .map-wrapper {
    height: 180px;
  }
}
/* ================= MODAL ================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 3000;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  padding: 10px 40px;
  border-radius: 20px;
  text-align: center;
  color: white;
  transform: scale(0.8);
  transition: 0.4s ease;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  font-size: 50px;
  background: white;
  color: #3b82f6;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-weight: bold;
}

.modal-content h3 {
  margin-bottom: 15px;
}

.modal-content p {
  margin-bottom: 25px;
  color: #e2e8f0;
}
.footer {
  background: #13224b;
  color: #fff;
  padding: 70px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-col p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Call Button */
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.call-btn:hover {
  background: #3b82f6;
  transform: translateY(-3px);
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #ddd;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #3b82f6;
  padding-right: 5px;
}

/* Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.logo-box {
  background: #3b82f6;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: bold;
  font-size: 20px;
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* Scroll To Top */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #3b82f6;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  display: none;
  transition: 0.3s;
}

#scrollTopBtn:hover {
  background: #3b82f6;
}
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-indicator a {
  display: inline-block;
  text-decoration: none;
}

.mouse {
  width: 28px;
  height: 45px;
  border: 2px solid #ffffff;
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: 6px;
  transition: 0.3s;
  opacity: 0.8;
}

.mouse:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.wheel {
  width: 4px;
  height: 8px;
  background: #ffffff;
  border-radius: 4px;
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(18px);
    opacity: 0;
  }
}
.arrow {
  display: block;
  margin: 8px auto 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: arrowBounce 1.8s infinite;
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 1;
  }
  50% {
    transform: rotate(45deg) translateY(6px);
    opacity: 0.5;
  }
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Vazirmatn", sans-serif;
}
body {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 400;
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
}

.btn-primary {
  font-weight: 600;
}
/* ===== NAVBAR MODERN ===== */

.topbar {
  width: 100%;
  background: #0f172a;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-flex {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.brand-title {
  font-weight: bold;
  font-size: 18px;
}

.brand-sub {
  font-size: 11px;
  opacity: 0.7;
}

/* Desktop Menu */
.main-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu-items {
  display: flex;
  list-style: none;
  gap: 25px;
}

.menu-items a {
  text-decoration: none;
  color: #e2e8f0;
  font-size: 15px;
  transition: 0.3s;
}

.menu-items a:hover {
  color: #3b82f6;
}

/* CTA */
.cta-btn {
  background: #3b82f6;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

.mobile-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ===== Mobile Version ===== */

@media (max-width: 992px) {
  .desktop-cta {
    display: none;
  }

  .hamburger {
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  .main-menu {
    position: fixed;
    top: -100%;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    flex-direction: column;
    padding: 120px 25px 40px;
    gap: 30px;
    transition: 0.45s ease;
  }

  .main-menu.active {
    top: 0;
  }

  .menu-items {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .menu-items a {
    font-size: 18px;
  }

  .mobile-cta {
    display: inline-block;
    text-align: center;
  }
}
/* ================= GALLERY ================= */

.gallery {
  padding: 100px 0;
  background: #f5f7fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* ================= MODAL ================= */

.image-modal {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e3c72, #1e3c72);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9999;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-img {
  max-width: 70%;
  max-height: 80%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 30px;
  left: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .modal-img {
    max-width: 90%;
  }
}
/* ===== BRAND RTL FIX ===== */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse; /* مهم 🔥 */
}

.brand-logo {
  height: 54px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}
