@media (max-width: 768px) {
  .about-hero-img {
    width: 100%; /* Take full width on smaller screens */
    height: auto; /* Maintain aspect ratio */
    margin-right: 0; /* Remove right margin */
  }

  
}

@media (max-width: 768px) {
.about-story {
  padding: 6rem 2rem;
  background-color: #0c0c0c;
  color: #ffffff;
}

.about-story-container {
  max-width: 700px;
  margin: 0 auto;
  margin-top: -75px;
  text-align: right;
}

.about-story-title {
  font-size: 26px;
  margin-bottom: 1.5rem;
  font-weight: 700;
    font-family: "abare11";

}

.about-story-text {
  font-size: 12px;
  line-height: 2.2;
  opacity: 0.85;
   font-family: "abare33";
  font-weight: 500;
}


  .about-team-container {
    gap: 20px; /* Reduce gap between images */
    flex-wrap: nowrap; /* Allow images to wrap to the next line */
  }

  .team-member img {
    width: 100%; /* Make images take full width */
    max-width: 200px; /* Limit width to prevent them from getting too large */
    height: auto; /* Maintain aspect ratio */
    margin-top: -100px; /* Remove the negative margin */
    margin-bottom: -15px;
  }
 
 

}
/* ----------  Mobile – 3‑image rows  ---------- */
@media (max-width: 768px) {
/* 
  .team-members,
  .team-membersan {
    display: flex;         
    flex-wrap: nowrap;      
    justify-content: space-between; 
    gap: 8px; 
    margin-top: 20px;          
  }
  


  .team-img {
    width: calc((100% - 2 * 8px) / 3);   
    max-width: none;           
    height: auto;               
    object-fit: cover;          
  } */

  .team-members,
  .team-membersan {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 20px;
  }

  .team-img {

    width: calc(50% - 5px); 
    max-width: none;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-top:10px 
  }


  .team-group-title,
  .team-group-titlean,
  .team-group-titleanq {
    font-size: 1.5rem;
  }


  .team-group {
    margin-left: 4%;
    margin-right: 4%;
    margin-bottom: -20px;
  }
  .team-group-title {
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: -5px;
    font-family: "abare11";
  font-weight: 700;
 
  color: #fff;
}
.team-group-titlean {
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: -5px;
  margin-top: 20px;
    font-family: "abare11";
  font-weight: 700;
  color: #fff;
}
.team-group-titleanq {
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: -5px;
  margin-top: 20px;
   font-family: "abare11";
  font-weight: 700;
  color: #fff;
}
}

/* aaaaaaaaaaaaaaIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIi */

/* aaaaaaaaaaaaaaaaaaIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII */
@media (max-width:400px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-section {
    flex-direction: row; /* Display sections horizontally again */
  }

  .header-left {
    margin-right: 20px; /* Add some spacing between sections */
  }

.search-btn img{
width: 15px;
margin-left: -12px;
height: 15px;
}

.alarm-dot {
  position: absolute;
  top: 8px;      /* adjust for your layout */
  right: -20px;
  width: 15px;
  height: 15px;
  background-color: rgb(238, 40, 40);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
   cursor: pointer; 
}
@keyframes bigPulse {
  0% {
    width: 30px;
    height: 30px;
    opacity: 0.7;
  }
  100% {
    width: 60px;   /* bigger ripple */
    height: 60px;
    opacity: 0;
  }
}
.alarm-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 0, 0, 0.86);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bigPulse .8s ease-out infinite;
}



.alarm-dot::before {
  content: attr(data-tooltip); /* Use the text from data-tooltip */
  position: absolute;
  bottom: 100%; /* Position above the dot */
  left: 60px;
  transform: translateX(-50%);
  margin-bottom: -50px; /* Space between dot and tooltip */
  white-space: nowrap; /* Prevent text wrapping */
  padding: 5px 10px;
  background: #333; /* Dark background for tooltip */
  color: #fff; /* White text */
  border-radius: 5px;
  font-size: 12px;
  font-family:"peyda"
  opacity: 0; /* Hidden by default */
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3; /* Make sure it's above other elements */
}

/* Show tooltip on hover/focus */
.alarm-dot:hover::before,
.alarm-dot:focus::before {
  opacity: 1;
  visibility: visible;
}

/* For touch devices (simulating hover with :active) */
.alarm-dot:active::before {
  opacity: 1;
  visibility: visible;
}
  .header-center {
    flex: 0 0 auto; /* Allow center to take its natural size */
    display: flex; /* Display nav buttons horizontally */
    gap: 8px; /* Reduce gap between nav items */
  }
.nav-btn {
    margin-top: -3px;
    font-size: 0.6rem; /* Slightly smaller font size */
    padding: 4px 6px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
    display:none
  }

  .header-logo {
    width: 45px;
    margin-top: -2px;
    margin-right: -15px;
  }
  .bia {
    height: 30px;
    clip-path: inset(0 100% 0 0);
    animation: revealMask 10s ease forwards;
    margin-right: -10px;
 
  }}










@media (max-width:400px)  {
  .footer-glass {
    padding: 30px 20px;
  }

  .footer-logo img {
    width: 150px; /* Smaller logo on mobile */
  }

  .footer-columns {
    flex-direction: row; /* Display columns horizontally */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
    gap: 20px; /* Reduce gap between columns */
    flex-wrap: wrap; /* Allow wrapping if needed */
  }

  .footer-column {
    min-width: auto; /* Remove minimum width */
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow columns to grow and shrink equally */
  }

  .footer-column h4 {
    font-size: 1rem; /* Smaller heading size */
    text-align: right;
  }

.footer-column a {
  font-size: 0.6rem; /* Keep the small size */
  display: block; /* Stack link texts vertically */
  white-space: nowrap; /* Prevent wrapping to next line */
  overflow: hidden; /* Hide excess text */
  text-overflow: ellipsis; /* Add ellipsis (...) for long texts */
  text-align: right;
}



/* لینک‌های داخل این ستون */
.footer-column:nth-child(3) a {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}


.footer-column:nth-child(4) a {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(4) h4 {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;   
}





  .footer-bottom {
    margin-left: 0; /* Remove margin */
    margin-top: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 0;
  }

.mobile-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 1000;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  background: rgba(34, 34, 34, 0.55); /* This is the nav bar color */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Style for the container of the home button */
.home-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute; /* Position relative to the nav bar */
  bottom: 40px; /* Adjust this value to position it above the nav bar */
  left: 48%;
  margin-left: 20px;
  transform: translateX(-50%); /* Center the button horizontally */
  z-index: 1001; /* Ensure it's above the nav bar */
}


.home-button-container .nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px; /* Increased width */
  height: 60px; /* Increased height */
  background-color: rgba(24, 23, 23, 0.87); /* Same color as nav bar, or a specific color */
  border-radius: 50%; /* Makes it a circle */
  margin-bottom: 10px; /* Adjust space above the nav bar */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Optional: Add a subtle shadow */
  transition: all 0.3s ease; /* Smooth transition for hover effect */
}



.mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.02) 40%,
    transparent 60%
  );
  opacity: 1.6;
  pointer-events: none;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(37, 37, 37, 0.06);
}

.mobile-nav .nav-button {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  font-size: 10px;
  font-family: "abare22";
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  transition: color 0.3s ease;
}
.mobile-nav .nav-button:hover {
  color: #ff9900;
}

.mobile-nav .nav-button img {
  margin-bottom: 5px; /* Space between icon and text */
}

/* Adjustments for the home button image specifically */
.home-button-container .nav-button img {
  width: 35px; /* Original width */
  height: 35px; /* Original height */
  margin-right: 6px; /* Remove margin-right as it's centered */
  margin-top: 6px;
 
}

.reasoc {
  width: 20px;
  height: 20px;
}
/* Removed .homeback style as it's now handled by .home-button-container .nav-button img */
.conbut {
  width: 20px;
  height: 20px;
}
.abous {
  width: 20px;
  height: 20px;
}
.epios {
  width: 20px;
  height: 20px;
}

.nav-button[href="eps.html"] {
  margin-left: -35px; 
}
.nav-button[href="aboutus.html"] {
  margin-right: -25px; 
}


.home-button-container .nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  background-color: rgba(34, 34, 34, 0.55);
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease;
  cursor: pointer;
}


.home-button-container .nav-button img {
  width: 40px; /* Original size */
  height: 40px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transition for the image's transform */
  transform-origin: center; /* Ensure zoom happens from the center */
}


  .home-button-container .nav-button:active {
    transform: scale(1.1); 
  }

  .home-button-container .nav-button:active img {
    transform: scale(1.08); /* Zoom the image */
  }




}


/* iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii */
@media (max-width: 480px) and (min-width:400px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-section {
    flex-direction: row; /* Display sections horizontally again */
  }

  .header-left {
    margin-right: 20px; /* Add some spacing between sections */
  }

  .header-center {
    flex: 0 0 auto; /* Allow center to take its natural size */
    display: flex; /* Display nav buttons horizontally */
    gap: 8px; /* Reduce gap between nav items */
  }


  .search-btn img {
    width: 25px;
    margin-left: -12px;
    height: 25px;
  }

.alarm-dot {
  position: absolute;
  top: 12px;      /* adjust for your layout */
  right: -20px;
  width: 15px;
  height: 15px;
  background-color: rgb(238, 40, 40);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
   cursor: pointer; 
}
@keyframes bigPulse {
  0% {
    width: 30px;
    height: 30px;
    opacity: 0.7;
  }
  100% {
    width: 60px;   /* bigger ripple */
    height: 60px;
    opacity: 0;
  }
}
.alarm-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 0, 0, 0.86);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bigPulse .8s ease-out infinite;
}



.alarm-dot::before {
  content: attr(data-tooltip); /* Use the text from data-tooltip */
  position: absolute;
  bottom: 100%; /* Position above the dot */
  left: 50px;
  transform: translateX(-50%);
  margin-bottom: -50px; /* Space between dot and tooltip */
  white-space: nowrap; /* Prevent text wrapping */
  padding: 5px 10px;
  background: #333; /* Dark background for tooltip */
  color: #fff; /* White text */
  border-radius: 5px;
  font-size: 12px;
  font-family:"peyda"
  opacity: 0; /* Hidden by default */
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3; /* Make sure it's above other elements */
}

/* Show tooltip on hover/focus */
.alarm-dot:hover::before,
.alarm-dot:focus::before {
  opacity: 1;
  visibility: visible;
}

/* For touch devices (simulating hover with :active) */
.alarm-dot:active::before {
  opacity: 1;
  visibility: visible;
}
  .nav-btn {
    font-size: 0.7rem; /* Slightly smaller font size */
    padding: 4px 6px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
display:none
  }

  .header-logo {
    margin-right: -13px;
    width: 45px;
    margin-top: -2px;
  }


  .bia {
    height: 35px;
    clip-path: inset(0 100% 0 0);
    animation: revealMask 2s ease forwards;
    margin-right: -10px;
/* display:none */
  }}









@media (max-width: 480px) and (min-width:400px)  {
  .footer-glass {
    padding: 30px 20px;
  }

  .footer-logo img {
    width: 150px; /* Smaller logo on mobile */
  }

  .footer-columns {
    flex-direction: row; /* Display columns horizontally */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
    gap: 55px; /* Reduce gap between columns */
    flex-wrap: wrap; /* Allow wrapping if needed */
  }

  .footer-column {
    min-width: auto; /* Remove minimum width */
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow columns to grow and shrink equally */
  }

  .footer-column h4 {
    font-size: 1rem; /* Smaller heading size */
    text-align: right;
  }

.footer-column a {
  font-size: 0.6rem; /* Keep the small size */
  display: block; /* Stack link texts vertically */
  white-space: nowrap; /* Prevent wrapping to next line */
  overflow: hidden; /* Hide excess text */
  text-overflow: ellipsis; /* Add ellipsis (...) for long texts */
  text-align: right;
}



/* لینک‌های داخل این ستون */
.footer-column:nth-child(3) a {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}


.footer-column:nth-child(4) a {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(4) h4 {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;   
}





  .footer-bottom {
    margin-left: 0; /* Remove margin */
    margin-top: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 0;
  }
.mobile-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 1000;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  background: rgba(34, 34, 34, 0.55); /* This is the nav bar color */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Style for the container of the home button */
.home-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute; /* Position relative to the nav bar */
  bottom: 40px; /* Adjust this value to position it above the nav bar */
  left: 50%;
  margin-left: 20px;
  transform: translateX(-50%); /* Center the button horizontally */
  z-index: 1001; /* Ensure it's above the nav bar */
}


.home-button-container .nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px; /* Increased width */
  height: 60px; /* Increased height */
  background-color: rgba(24, 23, 23, 0.87); /* Same color as nav bar, or a specific color */
  border-radius: 50%; /* Makes it a circle */
  margin-bottom: 10px; /* Adjust space above the nav bar */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Optional: Add a subtle shadow */
  transition: all 0.3s ease; /* Smooth transition for hover effect */
}



.mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.02) 40%,
    transparent 60%
  );
  opacity: 1.6;
  pointer-events: none;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(37, 37, 37, 0.06);
}

.mobile-nav .nav-button {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  font-size: 12px;
  font-family: "abare22";
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  transition: color 0.3s ease;
}
.mobile-nav .nav-button:hover {
  color: #ff9900;
}

.mobile-nav .nav-button img {
  margin-bottom: 5px; /* Space between icon and text */
}

/* Adjustments for the home button image specifically */
.home-button-container .nav-button img {
  width: 45px; /* Original width */
  height: 45px; /* Original height */
  margin-right: 6px; /* Remove margin-right as it's centered */
  margin-top: 6px;
 
}

.reasoc {
  width: 20px;
  height: 20px;
}
/* Removed .homeback style as it's now handled by .home-button-container .nav-button img */
.conbut {
  width: 20px;
  height: 20px;
}
.abous {
  width: 20px;
  height: 20px;
}
.epios {
  width: 20px;
  height: 20px;
}

.nav-button[href="eps.html"] {
  margin-left: -55px; 
}
.nav-button[href="aboutus.html"] {
  margin-right: -45px; 
}
.nav-button[href="soc.html"]{
  margin-left: -20px;
}
.nav-button[href="conus.html"]{
  margin-right: -20px;
}


.home-button-container .nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 65px;
  height: 65px;
  background-color: rgba(34, 34, 34, 0.55);
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease;
  cursor: pointer;
}


.home-button-container .nav-button img {
  width: 40px; /* Original size */
  height: 40px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transition for the image's transform */
  transform-origin: center; /* Ensure zoom happens from the center */
}


  .home-button-container .nav-button:active {
    transform: scale(1.1); 
  }

  .home-button-container .nav-button:active img {
    transform: scale(1.08); /* Zoom the image */
  }

}

/* iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii */

@media (min-width: 480px) and (max-width:768px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-section {
    flex-direction: row; /* Display sections horizontally again */
  }

  .header-left {
    margin-right: 20px; /* Add some spacing between sections */
  }

  .header-center {
    flex: 0 0 auto; /* Allow center to take its natural size */
    display: flex; /* Display nav buttons horizontally */
    gap: 8px; /* Reduce gap between nav items */
  }

  .nav-btn {
    font-size: 0.8rem; /* Slightly smaller font size */
    padding: 4px 6px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
  }

  .header-logo {
    width: 55px;
    margin-top: -2px;
  }
  .bia {
  height: 25px;
  clip-path: inset(0 100% 0 0);
  animation: revealMask 10s ease forwards;
  margin-right:-10px;

}}








@media (min-width: 480px) and (max-width:768px)  {
  .footer-glass {
    padding: 30px 20px;
  }

  .footer-logo img {
    width: 150px; /* Smaller logo on mobile */
  }

  .footer-columns {
    flex-direction: row; /* Display columns horizontally */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
    gap: 35px; /* Reduce gap between columns */
    flex-wrap: wrap; /* Allow wrapping if needed */
  }

  .footer-column {
    min-width: auto; /* Remove minimum width */
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow columns to grow and shrink equally */
  }

  .footer-column h4 {
    font-size: 1rem; /* Smaller heading size */
    text-align: right;
  }

.footer-column a {
  font-size: 0.6rem; /* Keep the small size */
  display: block; /* Stack link texts vertically */
  white-space: nowrap; /* Prevent wrapping to next line */
  overflow: hidden; /* Hide excess text */
  text-overflow: ellipsis; /* Add ellipsis (...) for long texts */
  text-align: right;
}



/* لینک‌های داخل این ستون */
.footer-column:nth-child(3) a {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(3) h4 {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;   
}

.footer-column:nth-child(4) a {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(4) h4 {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;   
}





  .footer-bottom {
    margin-left: 0; /* Remove margin */
    margin-top: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 0;
  }

}


/* lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll tablets */
@media (max-width: 992px) and (min-width: 768px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-section {
    flex-direction: row; /* Display sections horizontally again */
  }

  .header-left {
    margin-right: 20px; /* Add some spacing between sections */
  }

  .header-center {
    flex: 0 0 auto; /* Allow center to take its natural size */
    display: flex; /* Display nav buttons horizontally */
    gap: 8px; /* Reduce gap between nav items */
  }

  .nav-btn {
    font-size: 0.9rem; /* Slightly smaller font size */
    padding: 4px 12px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
  }

  .header-logo {
    width: 55px;
    margin-top: -2px;
  }
  .bia {
  height: 35px;
  clip-path: inset(0 100% 0 0);
  animation: revealMask 10s ease forwards;
  margin-right:-10px;
}}


@media (max-width: 992px) and (min-width:768px)  {
  .about-hero-img {
    width: 100%; /* Take full width on smaller screens */
    height: auto; /* Maintain aspect ratio */
    margin-right: 0; /* Remove right margin */
  }

  
}

@media (max-width: 992px) and (min-width:768px)  {
.about-story {
  padding: 6rem 2rem;
  background-color: #0c0c0c;
  color: #ffffff;
}

.about-story-container {
  max-width: 700px;
  margin: 0 auto;
  margin-top: -75px;
  text-align: right;
}

.about-story-title {
  font-size: 24px;
  margin-bottom: 2rem;
  font-weight: 700;
    font-family: "abare22";

}

.about-story-text {
  font-size: 12px;
  line-height: 2.2;
  opacity: 0.85;
   font-family: "abare22";
  font-weight: 500;
}


  .about-team-container {
    gap: 20px; /* Reduce gap between images */
    flex-wrap: nowrap; /* Allow images to wrap to the next line */
  }

  .team-member img {
    width: 100%; /* Make images take full width */
    max-width: 200px; /* Limit width to prevent them from getting too large */
    height: auto; /* Maintain aspect ratio */
    margin-top: -100px; /* Remove the negative margin */
    margin-bottom: -15px;
  }
 
 

}
/* ----------  Mobile – 3‑image rows  ---------- */
@media (max-width: 992px) and (min-width:768px) {

  /* 1️⃣  همهٔ ردیف‌های تیم را به یک خط افقی می‌کشیم */
  .team-members,
  .team-membersan {
    display: flex;               /* flex‑box */
    flex-wrap: nowrap;           /* نگذارید به خط بعدی بروند */
    justify-content: space-between; /* فاصلهٔ مساوی بین 3 تصویر */
    gap: 8px;                    /* فاصلهٔ کوچک بین تصاویر */
    margin-top: 20px;            /* کمی فاصله از عنوان */
  }
  


  .team-img {
   
    width: calc((100% - 2 * 8px) / 3);   
    max-width: none;           
    height: auto;               
    object-fit: cover;          
  }


  .team-group-title,
  .team-group-titlean,
  .team-group-titleanq {
    font-size: 1.5rem;
  }


  .team-group {
    margin-left: 4%;
    margin-right: 4%;
    margin-bottom: -20px;
  }
  .team-group-title {
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
    font-family: "abare22";
  font-weight: 700;
 
  color: #fff;
}
.team-group-titlean {
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  margin-top: 20px;
    font-family: "abare22";
  font-weight: 700;
  color: #fff;
}
.team-group-titleanq {
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  margin-top: 20px;
   font-family: "abare22";
  font-weight: 700;
  color: #fff;
}
}





@media (max-width: 992px) and (min-width: 768px) {
  .footer-glass {
    padding: 30px 20px;
  }

  .footer-logo img {
    width: 150px; /* Smaller logo on mobile */
  }

  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
    gap: 55px;
    flex-wrap: wrap; 
  }

  .footer-column {
    min-width: auto; /* Remove minimum width */
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow columns to grow and shrink equally */
  }

  .footer-column h4 {
    font-size: 1rem; /* Smaller heading size */
    text-align: right;
  }

.footer-column a {
  font-size: 0.6rem; /* Keep the small size */
  display: block; /* Stack link texts vertically */
  white-space: nowrap; /* Prevent wrapping to next line */
  overflow: hidden; /* Hide excess text */
  text-overflow: ellipsis; /* Add ellipsis (...) for long texts */
  text-align: right;
}



/* لینک‌های داخل این ستون */
.footer-column:nth-child(3) a {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}


.footer-column:nth-child(4) a {
  margin-right: -10px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(4) h4 {
  margin-right: -10px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;   
}





  .footer-bottom {
    margin-left: 0; /* Remove margin */
    margin-top: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 0;
  }



}

/* IIIIIIIIIIIIIIIIIIIIIIIIIIIIII */
@media (max-width: 1080px) and (min-width: 992px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-section {
    flex-direction: row; /* Display sections horizontally again */
  }

  .header-left {
    margin-right: 20px; /* Add some spacing between sections */
  }

  .header-center {
    flex: 0 0 auto; /* Allow center to take its natural size */
    display: flex; /* Display nav buttons horizontally */
    gap: 8px; /* Reduce gap between nav items */
  }

  .nav-btn {
    font-size: 1rem; /* Slightly smaller font size */
    padding: 4px 18px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
  }

  .header-logo {
    width: 55px;
    margin-top: -2px;
  }
  .bia {
  height: 35px;
  clip-path: inset(0 100% 0 0);
  animation: revealMask 10s ease forwards;
  margin-right:-10px;
}}




@media (max-width: 1080px) and (min-width:992px) {
  .about-hero-img {
    width: 100%; /* Take full width on smaller screens */
    height: auto; /* Maintain aspect ratio */
    margin-right: 0; /* Remove right margin */
  }

  
}

@media (max-width: 1080px) and (min-width:992px) {
.about-story {
  padding: 6rem 2rem;
  background-color: #0c0c0c;
  color: #ffffff;
}

.about-story-container {
  max-width: 700px;
  margin: 0 auto;
  margin-top: -75px;
  text-align: right;
}

.about-story-title {
  font-size: 24px;
  margin-bottom: 2rem;
  font-weight: 700;
    font-family: "abare22";

}

.about-story-text {
  font-size: 12px;
  line-height: 2.2;
  opacity: 0.85;
   font-family: "abare22";
  font-weight: 500;
}


  .about-team-container {
    gap: 20px; /* Reduce gap between images */
    flex-wrap: nowrap; /* Allow images to wrap to the next line */
  }

  .team-member img {
    width: 100%; /* Make images take full width */
    max-width: 200px; /* Limit width to prevent them from getting too large */
    height: auto; /* Maintain aspect ratio */
    margin-top: -100px; /* Remove the negative margin */
    margin-bottom: -15px;
  }
 
 

}
/* ----------  Mobile – 3‑image rows  ---------- */
@media (max-width: 1080px) and (min-width:992px){

  /* 1️⃣  همهٔ ردیف‌های تیم را به یک خط افقی می‌کشیم */
  .team-members,
  .team-membersan {
    display: flex;               /* flex‑box */
    flex-wrap: nowrap;           /* نگذارید به خط بعدی بروند */
    justify-content: space-between; /* فاصلهٔ مساوی بین 3 تصویر */
    gap: 8px;                    /* فاصلهٔ کوچک بین تصاویر */
    margin-top: 20px;            /* کمی فاصله از عنوان */
  }
  


  .team-img {
   
    width: calc((100% - 2 * 8px) / 3);   
    max-width: none;           
    height: auto;               
    object-fit: cover;          
  }


  .team-group-title,
  .team-group-titlean,
  .team-group-titleanq {
    font-size: 1.5rem;
  }


  .team-group {
    margin-left: 4%;
    margin-right: 4%;
    margin-bottom: -20px;
  }
  .team-group-title {
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
    font-family: "abare22";
  font-weight: 700;
 
  color: #fff;
}
.team-group-titlean {
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  margin-top: 20px;
    font-family: "abare22";
  font-weight: 700;
  color: #fff;
}
.team-group-titleanq {
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  margin-top: 20px;
   font-family: "abare22";
  font-weight: 700;
  color: #fff;
}
}






@media (max-width: 1080px) and (min-width: 992px) {
  .footer-glass {
    padding: 30px 20px;
  }

  .footer-logo img {
    width: 150px; /* Smaller logo on mobile */
  }

  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
    gap: 55px;
    flex-wrap: wrap; 
  }

  .footer-column {
    min-width: auto; /* Remove minimum width */
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow columns to grow and shrink equally */
  }

  .footer-column h4 {
    font-size: 1.1rem; /* Smaller heading size */
    text-align: right;
  }

.footer-column a {
  font-size: 0.8rem; /* Keep the small size */
  display: block; /* Stack link texts vertically */
  white-space: nowrap; /* Prevent wrapping to next line */
  overflow: hidden; /* Hide excess text */
  text-overflow: ellipsis; /* Add ellipsis (...) for long texts */
  text-align: right;
}



/* لینک‌های داخل این ستون */
.footer-column:nth-child(3) a {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}


.footer-column:nth-child(4) a {
  margin-right: -10px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(4) h4 {
  margin-right: -10px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;   
}





  .footer-bottom {
    margin-left: 0; /* Remove margin */
    margin-top: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 0;
  }
}








