/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
  html {
    font-size: 16px;
  }

  .img-box img {
    max-width: 100%;
    height: auto;
  }

  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.8rem; }
  h3 { font-size: 2.2rem; }
  h4 { font-size: 1.8rem; }
  p { font-size: 1.1rem; }

  .navbar-brand img {
    height: 200px;
    max-width: 310px;
  }

  .nav-link {
    font-size: 16px;
    padding: 0.5rem 1rem;
  }


}

/* Large Screens (1200px to 1399px) */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }

  .img-box img {
    max-width: 95%;
    height: auto;
  }

  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
  h4 { font-size: 1.6rem; }
  p { font-size: 1rem; }

  .navbar-brand img {
    max-width: 180px;
    height: auto;
  }

  .nav-link {
    font-size: 14px;
    padding: 0.5rem 0.9rem;
  }

  .nav-link a {
    font-size: 1rem;
    padding: 0.5rem 0.9rem;
  }

  .info_section {
    display: none;
  }
  
  /* Hide all child elements for better performance */
  .info_section * {
    display: none;
  }

}

/* Medium Screens (992px to 1199px) */
@media (max-width: 992px) {
  html {
    font-size: 14px;
  }

  .img-box img {
    max-width: 90%;
    height: auto;
  }

  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.8rem; }
  h4 { font-size: 1.4rem; }
  p { font-size: 1rem; }

  .navbar-brand img {
    max-width: 160px;
    height: auto;
  }



  .nav-link {
    font-size: 12px;
    padding: 0.4rem 0.8rem;
  }
  
  .nav-link a {
    font-size: 0.80rem;
    padding: 0.5rem 0.9rem;
  }



  .info_section {
    display: none;
  }
  
  /* Hide all child elements for better performance */
  .info_section * {
    display: none;
  }
  
}

/* Tablets (768px to 991px) */
@media (max-width: 768px) {
  html {
    font-size: 13px;
  }

  .img-box img {
    max-width: 85%;
    height: auto;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.6rem; }
  h4 { font-size: 1.3rem; }
  p { font-size: 0.95rem; }

  .navbar-brand img {
    max-width: 140px;
    height: auto;
  }

  .nav-link {
    font-size: 12px;
    padding: 0.4rem 0.7rem;
    align-items: center;
    justify-content: center;
  }


  .info_section {
    display: none;
  }

  /* Hide all child elements for better performance */
  .info_section * {
    display: none;
  }

  /* Adjust footer spacing if needed */
  .footer_container {
    padding-bottom: 20px;
  }

  /* Slider */
  .slider_section .detail-box h1 {
    margin-bottom: 20px;
    font-family: "Oswald", system-ui;
    text-shadow: 3px 2px 0px rgba(0, 0, 0, 0.67);
    font-size: 40px;
    letter-spacing: 1.5px;
    color: var(--Primary2);
  }

  .slider_section .detail-box p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .footer_container {
    background-attachment: scroll;
    border-radius: 0 0 60px 0;
  }

  .about_section {
    border-radius: 0 0 200px 0;
  }

  .hero_area {
    border-radius: 0 0 200px 0;
  }

  .detail-box .heading_container h1 {
    font-size: 30px; 
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.767);
  }

}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 576px) {
  html {
    font-size: 12px;
  }

  .img-box img {
    max-width: 80%;
    height: auto;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.2rem; }
  p { font-size: 0.9rem; }

  .slide-content {
    margin: 0 10px;
  }

  .card {
    max-width: 260px;
  }

  .name {
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 5px;
  }
  .description {
    font-size: 12px;
    line-height: 1.3;
  }

  .navbar-brand img {
    max-width: 130px;
    height: auto;
    margin-top: 5px;
  }

  .nav-link {
    font-size: 11px;
    padding: 0.3rem 0.6rem;
  }

  .footer_container {
    background-attachment: scroll;
    border-radius: 0 0 60px 0;
  }

  .about_section {
    border-radius: 0 0 200px 0;
  }

  .hero_area {
    border-radius: 0 0 200px 0;
  }

    /* Slider */
    .slider_section .detail-box h1 {
      margin-bottom: 20px;
      font-family: "Oswald", system-ui;
      text-shadow: 3px 2px 0px rgba(0, 0, 0, 0.67);
      font-size: 30px;
      letter-spacing: 1px;
      color: var(--Primary2);
    }
  
    .slider_section .detail-box p {
      font-size: 1.2rem;
      line-height: 1.5;
      margin-bottom: 20px;
    }

    .detail-box .heading_container h1 {
      font-size: 25px; 
      text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.767);
    }


}

/* Mobile Portrait (375px and below) */
@media (max-width: 375px) {
  html {
    font-size: 11px;
  }

  .img-box img {
    max-width: 75%;
    height: auto;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  p { font-size: 0.85rem; }

  /* Adjust spacing */
  .section_padding {
    padding: 30px 15px;
  }

  .navbar-brand img {
    max-width: 100px;
    height: auto;
  }

  .nav-link {
    font-size: 10px;
    padding: 0.3rem 0.5rem;
  }

  .footer_container {
    background-attachment: scroll;
    border-radius: 0 0 60px 0;
  }

  .about_section {
    border-radius: 0 0 200px 0;
  }

  .hero_area {
    border-radius: 0 0 200px 0;
  }

}

/* Handle both width and height for landscape mode */
@media (max-width: 768px) and (max-height: 600px) {
  .img-box img {
    max-width: 60%;
    height: auto;
  }
  
  .section_padding {
    padding: 20px 10px;
  }
}

/* Add hover effect and transition */
.nav-link {
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 200;
}

.nav-link:hover {
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
  .hero_area::before {
      background-attachment: scroll;
      background-position: 70% center; /* Move image right */
  }
}

@media screen and (max-width: 768px) {
  .hero_area::before {
      background-position: 75% center; /* Move further right */
      background-size: cover;
  }
}

@media screen and (max-width: 480px) {
  .hero_area::before {
      background-position: 80% center; /* Move even further right */
      background-size: cover;
      width: 120%; /* Slightly wider to ensure coverage */
      left: -10%; /* Offset to maintain center alignment */
  }
}

