/* ==================== پایه ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", "Rubik", sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.8;
}

/* ==================== نوار بالا (همان نسخه اصلی) ==================== */



/* ==================== هیرو با glass content ==================== */
.hero {
  height: 100vh;
  background: url('fimg/Main.webp') center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 68px; /* offset navbar */
}

.hero-content {
  
 
  border-radius: 1px;
  padding: 80px 90px;
  max-width: 900px;
 
}
@media only screen and (min-width: 992px) {
 .hero-content{
    backdrop-filter: blur(5px) saturate(130%);
     background: rgba(255, 255, 255, 0.25);
 }
}
@media only screen and (max-width: 992px) {
    .hero-content{
        backdrop-filter: none;
         background: transparent;
    }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #f9f9f9;
  margin-bottom: 40px;
}

.cta-button {
  padding: 12px 40px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}


/* ==================== پروژه‌های منتخب ==================== */
.buildings-section {
  padding: 160px 0 120px;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 80px;
  font-size: 1.1rem;
}

.buildings-grid {
  display: flex;
  flex-direction: column;
  gap: 140px; /* فاصله بزرگ‌تر بین ساختمان‌ها */
  padding: 0 100px;
}

.building-item {
  display: flex;
  align-items: center;
  gap: 100px;
}



.building-image img {
  width: 100%;
  max-width: 560px;
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.12);
  transition: 0.4s;
}



.building-info {
  flex: 1;
}

.building-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}

.building-description {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 24px;
  line-height: 1.8;
}

.tech-tag {
  display: inline-block;
  background: #ededed;
  color: #333;
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 0.9rem;
  margin: 0 6px 6px 0;
}
/* --- Button base state --- */
.project-link {
  display: inline-block;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-family: "Vazirmatn", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ب شدن افقی هنگام هاور */
.project-link:hover {
  background: #222;               /* کمی روشن‌تر برای حس حرکت */
  padding: 12px 68px;             /* افزایش طول افقی دکمه */
  letter-spacing: 0.5px;          /* فاصله حروف کمی بیشتر می‌شود */
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
  transform: translateY(-2px);    /* حرکت نرم به بالا برای حس فیزیکی */
}



/* ==================== گالری ==================== */
.gallery-section {
  padding: 120px 0;
  background-color: #fff;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: hsl(230, 12%, 20%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  padding: 0 100px;
}

.gallery-card {
  background: #fcfcfc;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.gallery-img img {
  width: 100%;


  transition: filter 0.3s ease;
}


.gallery-title {
  margin: 18px 20px 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: hsl(230, 12%, 25%);
}

.gallery-desc {
  margin: 0 20px 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: hsl(230, 10%, 45%);
}

/* دکمه مینیمال مشکی */
.gallery-footer {
  margin-top: 60px;
}

.gallery-button {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}



/* ریسپانسیو */
@media (max-width: 768px) {
  .gallery-grid {
    padding: 0 30px;
    gap: 28px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}


/* ==================== واکنش‌گرا ==================== */
@media (max-width: 992px) {

  .buildings-grid { padding: 0 40px; gap: 80px; }

  .building-item {
    flex-direction: column;
    gap: 40px;
  }

  .hero-content { padding: 50px; }

  .hero-title { font-size: 2.4rem; }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 0 30px;
  }
}
@media only screen and (max-width: 992px) {
  

    .project-content,
    .project-content.reverse {
        flex-direction: column;
        text-align: center;
    }

    .project-info {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .project-tech {
        justify-content: center;
    }

    .image-placeholder {
        max-width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .navbar {
        height: auto;
        flex-direction: column;
        padding: 20px;
    }

    .nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-items {
        padding: 10px 0;
    }

    .nav-items a {
        padding: 10px 0;
    }

    .nav-items a::before {
        height: 0;
    }

    .nav-items a .link-text,
    .nav-items a i {
        opacity: 1;
    }}


    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    overflow-x: hidden;
}

body {
    background-color: #fff;
}

::-webkit-scrollbar {
    width: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: white;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 200px;
    z-index: 1000;
    box-shadow: 0 2px 16px hsla(230, 75%, 32%, .15);
    transition: all 0.3s ease;
}

.logo {
    cursor: pointer !important;
}

.navbar .nav {
    list-style: none;
    display: flex;
}

.nav-items {
    padding: 10px !important;
}

.nav-items a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    color: #000 !important;
    font-weight: 700 !important;
    padding: 10px !important;
    z-index: 1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.nav-items a .link-text {
    margin-left: 8px;
    transition: opacity 0.4s;
}

.nav-items a i {
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.4s;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-items a:hover .link-text {
    opacity: 0;
}

.nav-items a:hover i {
    opacity: 1;
}

.nav-items a::before {
    content: '';
    width: 100%;
    height: 0;
    background: hsla(230, 56%, 40%, 0.171);
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 8px;
    transition: height 0.4s ease;
}

.nav-items a:hover::before {
    height: 100%;
}
.nav-items a:hover .link-text {
    opacity: 0;
}

.nav-items a:hover i {
    opacity: 1;
}

@media only screen and (min-width: 992px) {
    .building-item.reverse {
  flex-direction: row-reverse;
}
}
@media only screen and (max-width: 992px) {
    .building-item.reverse {
  flex-direction: reverse;
}
}
/* Responsive Design */
@media only screen and (max-width: 992px) {
    .navbar {
        padding: 0 20px;
    }

    .project-content,
    .project-content.reverse {
        flex-direction: column;
        text-align: center;
    }

    .project-info {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .project-tech {
        justify-content: center;
    }

    .image-placeholder {
        max-width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .navbar {
        height: auto;
        flex-direction: column;
        padding: 20px;
    }

    .nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-items {
        padding: 10px 0;
    }

    .nav-items a {
        padding: 10px 0;
    }

    .nav-items a::before {
        height: 0;
    }

    .nav-items a .link-text,
    .nav-items a i {
        opacity: 1;
    }

    .fa-solid {
        display: none !important;
    }

    .menu-toggle {
        margin-left: 10px;
        margin-top: 5px;
    }


}

@media only screen and (max-width: 768px) {
    .nav.hidden {
        display: none;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle i {
        font-size: 24px;
        color: #fff;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
}
.about-section {
  padding: 120px 0;
  background-color: #fff;
  text-align: right;
  direction: rtl;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 0 100px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: hsl(230, 12%, 20%);
}

.about-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: hsl(230, 10%, 40%);
  margin-bottom: 40px;
  max-width: 550px;
}

.about-button {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}



/* تصویر کناری */
.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
}


/* ریسپانسیو */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 0 40px;
    text-align: center;
  }

  .about-image img {
    height: 340px;
  }

  .about-desc {
    margin: 0 auto 40px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.6rem;
  }

  .about-image img {
    height: 280px;
  }
}
.feature-section {
  background-color: #fff;
  padding-bottom: 120px;
  text-align: center;
  direction: rtl;
}

/* تصویر بالا */
.feature-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* سه ستون پایین عکس */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 100px;
}

.feature-card {
  background: #fcfcfc;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  padding: 40px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: hsl(230, 12%, 20%);
}

.feature-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: hsl(230, 10%, 40%);
}

/* ریسپانسیو */
@media (max-width: 992px) {
  .feature-image img {
    height: 380px;
  }
  .feature-grid {
    padding: 60px 40px;
  }
}

@media (max-width: 576px) {
  .feature-image img {
    height: 300px;
  }
  .feature-card {
    padding: 30px 20px;
  }
  .feature-title {
    font-size: 1.2rem;
  }
}
/* ---------------- تماس با ما ---------------- */
.contact-section {
  background-color: #fff;
  padding: 40px 0;
  direction: rtl;
  text-align: right;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  padding: 0 100px;
  align-items: center;
}

/* متن سمت راست */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: hsl(230, 12%, 20%);
  margin-bottom: 28px;
}

.contact-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: hsl(230, 10%, 40%);
  margin-bottom: 30px;
  max-width: 500px;
}

.contact-info li {
  font-size: 1rem;
  margin-bottom: 8px;
  color: hsl(230, 12%, 30%);
}

/* فرم تماس */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #000;
}

.contact-form textarea {
  height: 140px;
  resize: none;
}

.contact-button {
  padding: 14px 34px;
  border: none;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  align-self: flex-start;
  transition: all 0.3s ease;
}


/* ---------------- فوتر ---------------- */
.site-footer {
  background-color: #f7f7f7;
  padding-top: 80px;
  border-top: 1px solid #e1e1e1;
  direction: rtl;
  text-align: right;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 0 100px;
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: hsl(230, 12%, 25%);
}

.footer-col p {
  font-size: 1rem;
  color: hsl(230, 10%, 40%);
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  color: hsl(230, 12%, 35%);
  transition: color 0.3s ease;
}


.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
  color: hsl(230, 10%, 40%);
}

/* ریسپانسیو */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 0 40px;
    gap: 50px;
  }

  .contact-button {
    align-self: center;
  }

  .footer-grid {
    padding: 0 40px;
  }
}
.overlay-feature-section {
  position: relative;
  background-image: url("fimg/1.webp"); /* تصویر اصلی */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  direction: rtl;
  padding: 180px 0; /* فاصله عمودی زیاد طبق سبک ITPL */
}

/* نیم‌شفاف برای کمک به خوانایی */
.overlay-container {

  padding: 100px;
  border-radius: 5px;

}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
}

.overlay-card {
 
  backdrop-filter: blur(14px) saturate(160%);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 40px 30px;
  transition: transform 0.3s ease, background 0.3s ease;
}



.overlay-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.overlay-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #f3f3f3;
}

/* ریسپانسیو */
@media (max-width: 992px) {
  .overlay-feature-section {
    padding: 120px 0;
  }

  .overlay-container {
    padding: 60px 40px;
  }

  .overlay-grid {
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .overlay-container {
    padding: 40px 30px;
  }

  .overlay-title {
    font-size: 1.2rem;
  }

  .overlay-desc {
    font-size: 0.95rem;
  }
}
/* ==================== افکت ویدیو روی پروژه ==================== */
.building-image {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.building-image img,
.building-image video {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  transition: all 0.5s ease;
}

/* ویدیو در حالت عادی پنهان است */
.building-image video {
  opacity: 0;
  transform: scale(1.05);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* افکت هنگام هاور */
.building-image:hover img {
  filter: brightness(60%) blur(3px);
  transform: scale(1.05);
}

.building-image:hover video {
  opacity: 1;
  transform: scale(1);
}

/* افکت‌های اضافی نرم برای ظاهر فانتزی‌تر */
.building-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}
.building-image:hover::after {
  opacity: 1;
}
/* ============ افکت Hover و Popup برای گالری ============ */
.gallery-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card:hover {
  transform: scale(1.05);
  z-index: 2;
}

/* وقتی یکی hover شد بقیه محو شوند */
.gallery-grid:hover .gallery-card {
  opacity: 0.25;
  filter: blur(2px);
  transform: scale(0.95);
}

.gallery-grid:hover .gallery-card:hover {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.05);
}

/* popup window */
.gallery-popup {
  display: none;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

.gallery-popup.active {
  display: flex;
  animation: fadeInPopup 0.4s ease forwards;
}

@keyframes fadeInPopup {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.popup-content {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 680px;
  width: 90%;
  box-shadow: 0 25px 80px rgba(0,0,0,0.15);
  text-align: center;
  animation: popupZoom 0.3s ease forwards;
}

@keyframes popupZoom {
  from { transform: scale(0.92); }
  to { transform: scale(1); }
}

.popup-close {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}

.popup-close:hover {
  color: #000;
  transform: scale(1.15);
}

/* داخل پاپ‌آپ */
.popup-body img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.popup-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.popup-body p {
  font-size: 1.05rem;
  color: hsl(230, 10%, 35%);
  line-height: 1.8;
}

.popup-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.popup-link:hover {
  background: #333;
}
section {
  position: relative;
  padding: 180px 0 140px;
  z-index: 1;
}



.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.4px;
}

.section-subtitle {
  font-size: 1.15rem;
  text-align: center;
  color: #777;
  margin-bottom: 100px;
}.hero-glass {
  position: relative;
  backdrop-filter: blur(14px) saturate(160%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 80px 98px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* لایه‌ی اول – موج روشن نرم */
.hero-glass::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0.05) 70%);
  mix-blend-mode: screen;
  animation: waveShift1 14s ease-in-out infinite;
  transform-origin: center;
  pointer-events: none;
}

/* لایه‌ی دوم – موج تیره و عمیق */
.hero-glass::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 80% 70%, rgba(0,0,0,0.15), rgba(255,255,255,0) 70%);
  mix-blend-mode: soft-light;
  animation: waveShift2 16s ease-in-out infinite;
  transform-origin: center;
  pointer-events: none;
}

/* انیمیشن موج نرم */
@keyframes waveShift1 {
  0%   { transform: translateX(-6%) translateY(0) rotate(-1deg) scale(1.03); opacity: 0.9; }
  25%  { transform: translateX(4%) translateY(-1%) rotate(1deg) scale(1.05); opacity: 0.85; }
  50%  { transform: translateX(0%) translateY(1%) rotate(-1deg) scale(1.04); opacity: 0.9; }
  75%  { transform: translateX(-3%) translateY(-1%) rotate(1deg) scale(1.06); opacity: 0.88; }
  100% { transform: translateX(-6%) translateY(0) rotate(-1deg) scale(1.03); opacity: 0.9; }
}

@keyframes waveShift2 {
  0%   { transform: translateX(6%) translateY(0%) rotate(1deg) scale(1.04); opacity: 0.4; }
  50%  { transform: translateX(-4%) translateY(-1%) rotate(-1deg) scale(1.05); opacity: 0.45; }
  100% { transform: translateX(6%) translateY(0%) rotate(1deg) scale(1.04); opacity: 0.4; }
}
/* --- Mobile fallback for glass effect --- */
@media only screen and (max-width: 768px) {
  .hero-glass {
    backdrop-filter: blur(10px) saturate(140%);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    padding: 60px 40px;
  }

  /* حذف لایه‌های before/after برای کاهش فشار GPU */
  .hero-glass::before,
  .hero-glass::after {
    content: none !important;
    animation: none !important;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .cta-button {
    padding: 12px 28px;
    font-size: 1rem;
  }
}
.blog-section {
  padding: 120px 0;
  background-color: #fafafa;
  text-align: center;
  direction: rtl;
  font-family: 'Vazirmatn', sans-serif;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  padding: 0 60px;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: right;
  margin-bottom: 40px;
}


.blog-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.blog-info {
  padding: 26px 28px;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #262626;
  margin-bottom: 14px;
}

.blog-excerpt {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #505050;
  margin-bottom: 20px;
  min-height: 70px;
}

.blog-link {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}



.blog-footer {
  margin-top: 40px;
}

.blog-button {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}


@media (max-width: 992px) {
  .blog-grid {
    padding: 0 40px;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .blog-img img { height: 200px; }
}
.page-header {
  background-color: #000;
  color: #fff;
  padding: 40px;
  text-align: center;
}

.blog-details {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.details-img {
  width: 100%;
  height: auto;

  border-radius: 12px;
}

.blog-details article p {
  font-size: 1rem;
  line-height: 2;
  color: #333;
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.back-link:hover {
  background: #333;
}
/* Loader minimalist */
#loader {
  position: fixed;
  inset: 0;
  background-color: #fff; /* پس‌زمینه سفید */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 140px;
  height: auto;
  animation: fadeLogo 1.5s infinite alternate ease-in-out;
}

@keyframes fadeLogo {
  from { opacity: 0.6; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.footer-image {
  text-align: center;
}

.footer-pic {
  width: 120px;
  height: auto;
  border-radius: 15px;    /* matches AMIJA style */
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}
.gallery-card,
.feature-card,
.overlay-card,
.blog-card,
.building-item,
.footer-col,
.footer-image {
    position: relative;
    z-index: 1;
}

.gallery-card:hover,
.feature-card:hover,
.overlay-card:hover,
.blog-card:hover,
.building-item:hover {
    z-index: 3;
}

section,
footer,
.site-footer,
.gallery-grid,
.feature-grid,
.overlay-grid,
.blog-grid {
    overflow: visible !important;
}
