.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    margin-top: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.7)), url("../assets/jpg/Solar-Footer.jpg");
    display: flex;
    flex-direction: column;
}

.about-us-img img {
    width: 100%;
    height: 100%;
    align-items: flex-end;
}

.about-us-img {
    justify-content: flex-end;
}


.history{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
}

.history-text, .history-img-con {
  width: 49%;
}

/* ===== Cards Container ===== */
.three-cards {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* ===== Individual Card ===== */
.about-3-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* افکت کارت */
.about-3-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
      rgba(230, 57, 70, 0.1) 0%, 
      transparent 50%);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.about-3-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--color-primary);
  /* box-shadow: var(--shadow-hover); */
}

.about-3-card:hover::before {
  opacity: 1;
}

/* ===== SVG Icon ===== */
.about-svg {
  width: 30px;
  height: 30px;
  /* fill: var(--color-primary); */
  margin-bottom: 25px;
  transition: var(--transition);
  filter: drop-shadow(0 5px 15px rgba(230, 57, 70, 0.3));
}

.about-3-card:hover .about-svg {
  transform: scale(1.1) rotate(360deg);
  /* fill: var(--white); */
  filter: drop-shadow(0 5px 20px var(--color-primary));
}

/* Icon-Style */
.about-svg {
  width: 40px;
  height: 40px;
  margin-bottom: 25px;
  color: white;
  /* color: var(--color-primary); */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 5px 15px rgba(230, 57, 70, 0.3));
}

.about-3-card:hover .about-svg {
  transform: scale(1.1) rotate(2deg);
  color: var(--color-primary);
  filter: drop-shadow(0 5px 20px var(--color-primary));
}

.about-3-card:hover .h3-heading::after {
  width: 80px;
  background: var(--white);
}

/* ===== Text ===== */
.white-text {
  color: var(--white);
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: justify;
  opacity: 0.9;
  transition: var(--transition);
}

.about-3-card:hover .white-text {
  opacity: 1;
}




/* Gallery */

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 15px;
  }
  
  .gallery-item {
    position: relative;
    width: calc(33% - 20px);
    height: auto;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.5s ease;
    border-radius:10px;
  }
  
  .gallery-item:hover {
    transform: scale(1.1);
  }
  
  /* The Modal (background) */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
  }
  
  /* Modal content (image) */
  .modal-content {
    position: relative;
    width: 90%;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    overflow: hidden;
    animation: zoomIn 0.5s;
  }
  
  @keyframes zoomIn {
    from {transform: scale(0.6);}
    to {transform: scale(1);}
  }
  
  .modal.show {
    display: flex;
    opacity: 1;
  }
  
  /* Close button */
  .close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  /* Caption of modal image */
  .caption {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 24px;
  }
  

  /* responsive */

@media screen and (max-width: 768px) {
    .gallery-item {
       width: calc(50% - 20px);
       padding: 0;
    }
    .gallery{
      padding: 0;
    }
    .history-text, .history-img-con {
      width: 100%;

    }
    
  }
  
  @media screen and (max-width: 480px) {
    .gallery-item  {
      width: calc(100% - 20px);
    }
  }

/* cards */
/* ===== Responsive Design ===== */

/* Tablet (768px - 992px) */
@media (max-width: 992px) {
  .three-cards {
      grid-template-columns: repeat(2, 1fr);
      gap: 25px;
  }
  
  .about-3-card {
      padding: 30px 20px;
  }
  
  .h3-heading {
      font-size: 1.8rem;
  }
  
  .about-svg {
      width: 30px;
      height: 30px;
  }
}

/* Mobile (576px - 768px) */
@media (max-width: 768px) {
  .about-full-width-container {
      padding: 40px 15px;
      min-height: auto;
  }
  
  .three-cards {
      grid-template-columns: 1fr;
      gap: 20px;
      max-width: 500px;
  }
  
  .about-3-card {
      padding: 30px 20px;
  }
  
  .h3-heading {
      font-size: 1.6rem;
      margin-bottom: 15px;
  }
  
  .about-svg {
      width: 35px;
      height:35px;
      margin-bottom: 20px;
  }
  
  .white-text {
      font-size: 0.9rem;
      line-height: 1.6;
  }
  
  .about-3-card:hover {
      transform: translateY(-10px);
  }
}

/* Small Mobile (max 576px) */
@media (max-width: 576px) {
  .about-full-width-container {
      padding: 30px 10px;
  }
  
  .three-cards {
      gap: 15px;
  }
  
  .about-3-card {
      padding: 25px 15px;
  }
  
  .h3-heading {
      font-size: 1.4rem;
  }
  
  .about-svg {
      width: 35px;
      height: 35px;
      margin-bottom: 15px;
  }
  
  .white-text {
      font-size: 0.85rem;
  }
  
  /* حذف افکت نور در موبایل برای پرفورمنس بهتر */
  .about-full-width-container::before {
      display: none;
  }
}


/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
  .about-full-width-container {
      min-height: 120vh;
  }
  
  .three-cards {
      grid-template-columns: repeat(3, 1fr);
  }
  
  .about-3-card {
      padding: 20px;
  }
  
  .white-text {
      font-size: 0.8rem;
      line-height: 1.4;
  }
}

/* High Resolution Screens */
@media (min-width: 1600px) {
  .three-cards {
      max-width: 1600px;
      gap: 40px;
  }
  
  .about-3-card {
      padding: 50px 40px;
  }
  
  .h3-heading {
      font-size: 2.2rem;
  }
  
  .white-text {
      font-size: 1rem;
  }
}




/* Print Styles */
@media print {
  .about-full-width-container {
      background: white;
      color: black;
  }
  
  .about-3-card {
      break-inside: avoid;
      border: 1px solid #ddd;
      box-shadow: none;
  }
  
  .about-svg {
      fill: black;
  }
}
