/* ==========================================
   Modern Sanat Website
   Author: Mahdi
   Version: 1.0
==========================================*/

/*==================================
            Fonts
===================================*/

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
}

/*==================================
            Variables
===================================*/

:root {
  --primary: #0b4f9c;
  --secondary: #2d89ef;
  --dark: #1f2937;
  --light: #f8fafc;

  --section-padding: 80px;
  --border-radius: 18px;
  --transition: 0.35s ease;
}

/*==================================
            Reset
===================================*/

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

html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;

  font-family: "Vazirmatn", sans-serif;

  background: var(--light);

  color: var(--dark);

  overflow-x: hidden;
}

/*==================================
        Global Elements
===================================*/

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

a {
  text-decoration: none;
}

.section {
  padding: var(--section-padding) 0;
}

.container {
  position: relative;
}

/*==================================
            Header
===================================*/

.custom-navbar {
  position: fixed;

  top: 0;

  right: 0;

  width: 100%;

  z-index: 999;

  padding: 18px 0;

  background: rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(10px);

  transition: var(--transition);
}

.custom-navbar.scrolled {
  background: #ffffff;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.logo {
  height: 60px;

  width: auto;

  transition: var(--transition);
}

.custom-navbar.scrolled .logo {
  transform: scale(0.95);
}

.navbar-nav {
  gap: 22px;
}

.nav-link {
  color: #ffffff;

  position: relative;

  font-weight: 500;

  transition: var(--transition);
}
.nav-link::after {
  content: "";

  position: absolute;

  right: 0;

  bottom: -6px;

  width: 0;

  height: 2px;

  background: var(--secondary);

  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}
.custom-navbar.scrolled .nav-link {
  color: var(--dark);
}

.nav-link:hover {
  color: var(--secondary);
}

.contact-btn {
  border-radius: 30px;

  padding: 10px 26px;
}

.navbar-toggler {
  border: none;

  box-shadow: none !important;
}
/*==================================
            Hero
===================================*/

.hero {
  position: relative;

  min-height: 100vh;

  display: flex;

  align-items: center;

  overflow: hidden;

  padding-top: 110px;
}

.hero-image {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(8, 30, 60, 0.82),
    rgba(8, 30, 60, 0.4)
  );
}

.hero .container {
  position: relative;

  z-index: 2;
}

.hero-content {
  max-width: 700px;

  color: #ffffff;
}

.hero-subtitle {
  display: inline-block;

  padding: 10px 22px;

  margin-bottom: 22px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(10px);

  font-size: 15px;
}

.hero h1 {
  font-size: 52px;

  line-height: 1.5;

  font-weight: 700;

  margin-bottom: 25px;
}

.hero p {
  max-width: 620px;

  font-size: 18px;

  line-height: 2;

  color: #f1f5f9;

  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;

  gap: 18px;

  flex-wrap: wrap;
}

/*==================================
        Hero Animation
===================================*/

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/*==================================
        Company Stats
===================================*/

/*==================================
        Responsive
===================================*/

@media (max-width: 992px) {
  .hero {
    padding-top: 140px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .custom-navbar {
    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(10px);
  }

  .nav-link {
    color: var(--dark);
  }

  .hero {
    text-align: center;

    padding-top: 150px;
  }

  .hero-content {
    margin: auto;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats {
    margin-top: 50px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .logo {
    height: 50px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;

    line-height: 1.9;
  }

  .contact-btn {
    display: none;
  }
}
/*==================================
            About
===================================*/

.section {
  background: #ffffff;

  padding: 100px 0;
}

.section-subtitle {
  color: var(--primary);

  font-weight: 700;

  margin-bottom: 15px;

  display: inline-block;
}

.section-title {
  font-size: 38px;

  font-weight: 700;

  line-height: 1.6;

  margin-bottom: 25px;
}

.section-text {
  line-height: 2;

  color: #555;

  margin-bottom: 30px;
}

.about-image {
  border-radius: 20px;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.about-list {
  list-style: none;

  padding: 0;
}

.about-list li {
  margin-bottom: 18px;

  font-size: 18px;
}
/*==================================
            Services
===================================*/

.services {
  background: #f7f9fc;
}

.service-card {
  background: #ffffff;

  padding: 28px 22px;

  border-radius: 18px;

  text-align: center;

  height: 100%;

  transition: 0.35s ease;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
  transform: translateY(-8px);

  border-bottom: 4px solid var(--primary);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.service-card i {
  font-size: 42px;

  color: var(--primary);

  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 24px;

  margin-bottom: 15px;

  font-weight: 700;
}

.service-card p {
  color: #666;

  line-height: 1.9;

  margin: 0;
}
/*==================================
            Projects
===================================*/

.projects {
  background: #ffffff;
}

.projects-grid {
  column-count: 3;

  column-gap: 24px;
}

.project-item {
  margin-bottom: 24px;

  overflow: hidden;

  border-radius: 18px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  break-inside: avoid;
}

.project-item img {
  width: 100%;

  display: block;

  transition: 0.35s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .projects-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .projects-grid {
    column-count: 1;
  }
}
/*==================================
            Contact
===================================*/

.contact {
  background: #f8fafc;
}

.contact-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: 0.35s ease;
}

.contact-card h3 {
  margin-bottom: 30px;

  font-weight: 700;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-item i {
  font-size: 24px;

  color: var(--primary);
}

.contact-item strong {
  display: block;

  margin-bottom: 6px;
}

.contact-item p {
  margin: 0;

  color: #666;

  line-height: 1.8;
}

.contact-buttons {
  display: flex;

  gap: 15px;

  margin-top: 35px;

  flex-wrap: wrap;
}

.map-box {
  height: 100%;

  min-height: 320px;

  border-radius: 20px;

  overflow: hidden;

  background: #e9eef5;

  display: flex;

  align-items: center;

  justify-content: center;
}

.map-placeholder {
  text-align: center;

  color: #666;
}

.map-placeholder i {
  font-size: 70px;

  color: var(--primary);

  margin-bottom: 20px;
}

.map-placeholder h4 {
  margin-bottom: 15px;
}
/*==================================
            Footer
===================================*/

.footer {
  background: #0b4f9c;

  color: #fff;

  padding: 70px 0 30px;
}

.footer-logo {
  height: 70px;

  margin-bottom: 20px;
}

.footer-text {
  line-height: 1.8;

  font-size: 15px;

  color: #d8e6f8;
}

.footer h5 {
  margin-bottom: 20px;

  font-weight: 700;
}

.footer-links,
.footer-contact {
  list-style: none;

  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #d8e6f8;

  transition: 0.3s;
}

.footer-links a:hover {
  color: #fff;

  padding-right: 6px;
}

.footer-contact i {
  margin-left: 10px;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.2);

  margin: 25px 0 15px;
}

.copyright {
  text-align: center;

  color: #d8e6f8;
}
/*==================================
            Buttons
===================================*/

.btn {
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  transition: 0.35s ease;
}

.btn:hover {
  transform: translateY(-2px);
}
/*==================================
        Floating WhatsApp
===================================*/

.whatsapp-float {
  position: fixed;

  bottom: 25px;

  left: 25px;

  width: 58px;

  height: 58px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #25d366;

  color: #ffffff;

  border-radius: 50%;

  font-size: 30px;

  text-decoration: none;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);

  z-index: 1000;

  transition: 0.3s ease;
}

.whatsapp-float:hover {
  color: #ffffff;

  transform: translateY(-5px) scale(1.05);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
/*==================================
            Responsive
===================================*/

@media (max-width: 992px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 17px;
  }

  .projects-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .custom-navbar {
    padding: 12px 0;
  }

  .logo {
    height: 45px;
  }

  .hero {
    min-height: 90vh;

    padding-top: 90px;
  }

  .hero-content {
    margin-right: 0;

    max-width: 100%;
  }

  .hero h1 {
    font-size: 38px;

    line-height: 1.5;
  }

  .hero p {
    font-size: 16px;

    line-height: 1.9;
  }

  .hero-buttons {
    gap: 12px;

    flex-wrap: wrap;
  }

  .section-title {
    font-size: 32px;
  }

  .contact-card {
    padding: 25px;
  }

  .map-box {
    min-height: 240px;
  }

  .footer {
    padding: 40px 0 20px;
  }
}

@media (max-width: 576px) {
  .projects-grid {
    column-count: 1;
  }

  .hero {
    min-height: 100vh;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 14px;

    padding: 7px 14px;
  }

  .hero-buttons {
    flex-direction: column;

    align-items: stretch;
  }

  .hero-buttons .btn {
    text-align: center;
  }

  .section-title {
    font-size: 28px;
  }

  .section-text {
    font-size: 15px;
  }
  .contact-card {
    padding: 20px;
  }

  .contact-card h3 {
    margin-bottom: 20px;
  }

  .contact-item {
    margin-bottom: 14px;
    gap: 12px;
  }

  .contact-item i {
    font-size: 22px;
  }

  .contact-item p {
    line-height: 1.6;
  }

  .contact-buttons {
    margin-top: 22px;
    gap: 10px;
  }
  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons .btn {
    width: 100%;
  }
  .footer {
    padding: 30px 0 15px;
  }
  .footer-logo {
    height: 48px;
    margin-bottom: 12px;
  }

  .footer-text {
    line-height: 1.7;
    font-size: 14px;
  }

  .footer h5 {
    margin-bottom: 12px;
  }

  .footer-links li,
  .footer-contact li {
    margin-bottom: 7px;
  }

  .footer hr {
    margin: 20px 0 12px;
  }

  .copyright {
    font-size: 13px;
  }

  .whatsapp-float {
    width: 52px;

    height: 52px;

    bottom: 18px;

    left: 18px;

    font-size: 26px;
  }

  .back-to-top {
    width: 44px;

    height: 44px;

    bottom: 18px;

    right: 18px;
  }

  .lightbox {
    padding: 15px;
  }

  .lightbox img {
    max-width: 100%;

    max-height: 80vh;
  }

  .lightbox-close {
    top: 15px;

    left: 15px;
  }
}

/*==================================
        Back To Top
===================================*/

.back-to-top {
  position: fixed;

  bottom: 25px;

  right: 25px;

  width: 48px;

  height: 48px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: none;

  border-radius: 50%;

  background: var(--primary);

  color: #ffffff;

  font-size: 20px;

  cursor: pointer;

  opacity: 0;

  visibility: hidden;

  transform: translateY(20px);

  transition: 0.3s ease;

  z-index: 999;
}

.back-to-top.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary);

  transform: translateY(-5px);
}
/*==================================
            Lightbox
===================================*/

.lightbox {
  position: fixed;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 30px;

  background: rgba(0, 0, 0, 0.9);

  opacity: 0;

  visibility: hidden;

  transition: 0.3s ease;

  z-index: 2000;
}

.lightbox.show {
  opacity: 1;

  visibility: visible;
}

.lightbox img {
  max-width: 90%;

  max-height: 90vh;

  object-fit: contain;

  border-radius: 10px;
}

.lightbox-close {
  position: absolute;

  top: 25px;

  left: 25px;

  width: 45px;

  height: 45px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);

  color: #ffffff;

  font-size: 20px;

  cursor: pointer;

  transition: 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);

  transform: rotate(90deg);
}
/*==================================
      Anchor Scroll Offset
===================================*/

section[id] {
  scroll-margin-top: 35px;
}

@media (max-width: 576px) {
  section[id] {
    scroll-margin-top: 25px;
  }
}
/*==================================
      map link box
===================================*/
.map-link {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  margin-top: 8px;

  color: var(--primary);

  font-size: 14px;

  font-weight: 500;

  transition: 0.3s ease;
}

.map-link:hover {
  color: var(--secondary);
}
@media (max-width: 991.98px) {
  .navbar-collapse:not(.show) {
    display: none;
  }
}
