/* ==========================================
   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-display: swap;
}

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

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


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

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

  --section-padding: 100px;
  --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;
}

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

a {
  text-decoration: none;
}

.container {
  position: relative;
}


/*==================================
        Global Sections
===================================*/

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

  background: #ffffff;
}

.section-subtitle {
  display: inline-block;

  margin-bottom: 15px;

  color: var(--primary);

  font-weight: 700;
}

.section-title {
  margin-bottom: 25px;

  font-size: 38px;

  font-weight: 700;

  line-height: 1.6;
}

.section-text {
  margin-bottom: 30px;

  color: #555;

  line-height: 2;
}


/*==================================
            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 {
  display: block;

  width: auto;

  height: 60px;

  transition: var(--transition);
}

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

.navbar-nav {
  gap: 22px;
}

.nav-link {
  position: relative;

  color: #ffffff;

  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 ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

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

.contact-btn {
  padding: 10px 26px;

  border-radius: 30px;
}

.navbar-toggler {
  border: none;

  box-shadow: none !important;
}


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

.hero {
  position: relative;

  display: flex;

  align-items: center;

  min-height: 100vh;

  padding-top: 110px;

  overflow: hidden;
}

.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;

  margin-bottom: 22px;

  padding: 10px 22px;

  border-radius: 50px;

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

  backdrop-filter: blur(10px);

  font-size: 15px;
}

.hero h1 {
  margin-bottom: 25px;

  font-size: 52px;

  font-weight: 700;

  line-height: 1.5;
}

.hero p {
  max-width: 620px;

  margin-bottom: 40px;

  color: #f1f5f9;

  font-size: 18px;

  line-height: 2;
}

.hero-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 18px;
}


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

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

  to {
    transform: scale(1.08);
  }
}


/*==================================
            About
===================================*/

.about-image {
  width: 100%;
  height: auto;

  display: block;

  object-fit: contain;

  border-radius: 20px;

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

.about-list {
  padding: 0;

  list-style: none;
}

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

  font-size: 18px;
}


/*==================================
            Services
===================================*/

.services {
  background: #f7f9fc;
}

.service-card {
  height: 100%;

  padding: 28px 22px;

  background: #ffffff;

  border-radius: 18px;

  text-align: center;

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

  transition: var(--transition);
}

.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 {
  display: block;

  margin-bottom: 20px;

  color: var(--primary);

  font-size: 42px;
}

.service-card h3 {
  margin-bottom: 15px;

  font-size: 22px;

  font-weight: 700;
}

.service-card p {
  margin: 0;

  color: #666;

  line-height: 1.9;
}


/*==================================
            Projects
===================================*/

.projects-section {
  background: #ffffff;
}

.projects-grid {
  column-count: 3;

  column-gap: 24px;
}

.project-lightbox {
  display: block;

  margin-bottom: 24px;

  overflow: hidden;

  border-radius: 18px;

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

  break-inside: avoid;
}

.project-lightbox img {
  width: 100%;
  height: auto;

  display: block;

  transition: 0.35s ease;
}

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


/*==================================
            Contact
===================================*/

.contact {
  padding-top: 70px;
  padding-bottom: 70px;

  background: #f8fafc;
}

.contact-card {
  height: 100%;

  padding: 30px;

  background: #ffffff;

  border-radius: 20px;

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

  transition: var(--transition);
}

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

  font-weight: 700;
}

.contact-item {
  display: flex;

  align-items: flex-start;

  gap: 16px;

  margin-bottom: 18px;
}

.contact-item i {
  flex-shrink: 0;

  color: var(--primary);

  font-size: 24px;
}

.contact-item strong {
  display: block;

  margin-bottom: 6px;
}

.contact-item p {
  margin: 0;

  color: #666;

  line-height: 1.8;
}

.contact-item a {
  color: inherit;

  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 15px;

  margin-top: 30px;
}

.map-box {
  display: flex;

  align-items: center;
  justify-content: center;

  height: 100%;
  min-height: 320px;

  overflow: hidden;

  background: #e9eef5;

  border-radius: 20px;
}


/*==================================
            Map Link
===================================*/

.map-link {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  margin-top: 8px;

  color: var(--primary);

  font-size: 14px;

  font-weight: 500;

  transition: var(--transition);
}

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


/*==================================
            Footer
===================================*/

.footer {
  padding: 70px 0 30px;

  background: #0b4f9c;

  color: #ffffff;
}

.footer-logo {
  height: 70px;

  margin-bottom: 20px;
}

.footer-text {
  color: #d8e6f8;

  font-size: 15px;

  line-height: 1.8;
}

.footer h3 {
  margin-bottom: 20px;

  font-weight: 700;
}

.footer-links,
.footer-contact {
  padding: 0;

  list-style: none;
}

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

.footer-links a,
.footer-contact a {
  color: #ffffff;

  transition: var(--transition);
}

.footer-links a:hover {
  padding-right: 6px;

  color: #d8e6f8;
}

.footer-contact a:hover {
  color: #d8e6f8;
}

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

  color: #ffffff;
}

.footer hr {
  margin: 25px 0 15px;

  border-color: rgba(255, 255, 255, 0.2);
}

.copyright {
  color: #d8e6f8;

  text-align: center;
}


/*==================================
            Buttons
===================================*/

.btn {
  padding: 12px 28px;

  border-radius: 50px;

  font-weight: 600;

  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}


/*==================================
        Floating WhatsApp
===================================*/

.whatsapp-float {
  position: fixed;

  bottom: 25px;
  left: 25px;

  z-index: 1000;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  background: #25d366;

  color: #ffffff;

  border-radius: 50%;

  font-size: 30px;

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

  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);
}


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

.back-to-top {
  position: fixed;

  right: 25px;
  bottom: 25px;

  z-index: 999;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  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;
}

.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;

  z-index: 2000;

  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;
}

.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;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  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;
}


/*==================================
        Navbar Contact Buttons
===================================*/

.mobile-contact-btn {
  display: none;
}


/*==================================
      Desktop Header Layout
===================================*/

@media (min-width: 993px) {

  .custom-navbar .container {
    display: flex;

    align-items: center;
  }

  /* لوگو سمت راست */

  .custom-navbar .navbar-brand {
    order: 1;
  }

  /* منو در وسط */

  .custom-navbar .navbar-collapse {
    order: 2;

    flex: 1;
  }

  /* دکمه تماس سمت چپ */

  .custom-navbar .desktop-contact-btn {
    order: 3;

    margin-right: 24px;

    margin-left: 0;
  }

  .desktop-contact-btn {
    display: inline-block;
  }
}


/*==================================
        Tablet & Small Desktop
===================================*/

@media (max-width: 992px) {

  .hero {
    padding-top: 140px;
  }

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

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

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

  .desktop-contact-btn {
    display: none;
  }

  .mobile-contact-btn {
    display: block;

    width: 100%;

    margin-top: 20px;

    text-align: center;
  }

  .custom-navbar {
    background: rgba(255, 255, 255, 0.95);
  }

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


/*==================================
            Mobile
===================================*/

@media (max-width: 768px) {

  .custom-navbar {
    padding: 12px 0;

    backdrop-filter: blur(10px);
  }

  .hero {
    min-height: 90vh;

    padding-top: 150px;

    text-align: center;
  }

  .hero-content {
    max-width: 100%;

    margin: auto;
  }

  .hero h1 {
    font-size: 38px;

    line-height: 1.5;
  }

  .hero p {
    font-size: 16px;

    line-height: 1.9;
  }

  .hero-buttons {
    justify-content: center;

    gap: 12px;
  }

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

  .contact-card {
    padding: 25px;
  }

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

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


/*==================================
            Small Mobile
===================================*/

@media (max-width: 576px) {

  .logo {
    height: 50px;
  }

  .hero {
    min-height: 100vh;
  }

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

  .hero-subtitle {
    padding: 7px 14px;

    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;

    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;

    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 {
    gap: 12px;

    margin-bottom: 14px;
  }

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

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

  .contact-buttons {
    flex-direction: column;

    gap: 10px;

    margin-top: 22px;
  }

  .contact-buttons .btn {
    width: 100%;
  }

  .footer {
    padding: 30px 0 15px;
  }

  .footer-logo {
    height: 48px;

    margin-bottom: 12px;
  }

  .footer-text {
    font-size: 14px;

    line-height: 1.7;
  }

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

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

  .copyright {
    font-size: 13px;
  }

  .whatsapp-float {
    bottom: 18px;
    left: 18px;

    width: 52px;
    height: 52px;

    font-size: 26px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;

    width: 44px;
    height: 44px;
  }

  .lightbox {
    padding: 15px;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 80vh;
  }

  .lightbox-close {
    top: 15px;
    left: 15px;
  }

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

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