@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.cdnfonts.com/css/barlow-semi-condensed');

html {
    scroll-padding-top: 4.4rem;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100vw;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: #fff;
    overflow-x: hidden;
    width: 100vw;
}

/* Default navbar background color */
#mainNav {
    width: 100%;
    position: fixed;
    transition: background-color 0.3s ease-in-out;
}

/* Darker navbar when scrolled */
#mainNav.scrolled {
    background-color: rgb(12, 110, 3);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Navigation list transition */
#navi {
    transition: background-color 0.3s ease-in-out;
    text-align: center;
}

/* Change color of navigation list on scroll */
#navi.scrolled {
    background-color: rgba(12, 110, 3, 0.9);
}

/* Navbar link styling */
.navbar-nav .nav-link {
    color: white !important;
}

/* Hamburger menu button */
.navbar-toggler {
    border: none;
    background-color: white;
}

/* Remove focus outline on toggler */
.navbar-toggler:focus {
    box-shadow: none;
}

nav li {
    margin: 0 90px;
}

nav li a {
    font-family: 'Barlow Semi Condensed';
}

nav li:hover, .logocon li:hover {
    scale: 1.1;
    transition: 0.2s;
}

.logocon li:hover {
    transform: translateY(-10px);
}

.container1 {
    background: url('../img/bg.png') fixed;
    background-size: cover;
    max-width: 100%;
    height: 83vh;
    z-index: 100;
}

.filter {
    color: #08990b;
    height: 83vh;
    z-index: 101;
    background: rgba(138, 135, 135, 0.6);
    backdrop-filter: blur(5px);
    padding: 20px;
}

.filter h1 {
    margin-top: 130px;
}

main h1, .container1 h1, .location h1 {
    color: #08990b;
    font-weight: bold;
}

.container1 h1 {
    font-size: 58px;
    -webkit-text-stroke: 2px black;
}

.container1 #h1 {
    color: #054c06;
    font-size: 24px;
    font-weight: bold;
    -webkit-text-stroke: 1px rgb(58, 57, 57);
}

/* LOGO CONTAINER */
.logocon ul {
    display: flex;
    flex-wrap: wrap; /* Fix: Ensures items wrap properly */
    justify-content: center;
    gap: 20px;
    padding: 0;
}

.logocon img {
    width: 100px;
}

.logocon li {
    list-style: none;
    position: relative; /* For tooltip positioning */
}

.logocon li a {
    width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #fff;
}

/* Tooltip (Logo Text) */
.logocon ul span {
    display: none;
    position: absolute;
    bottom: -25px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
}

.logocon li a:hover > span {
    display: flex;
}

/* ABOUT US */
#aboutus {
    background-repeat: no-repeat;
    background-size: 50rem;
}

#aboutus h1 {
    padding-top: 2rem;
}
#aboutus  p, #aboutus ol{
    font-size: 1.25rem;
}

.content, .location {
    padding: 0 2rem;
}

.location {
    background-color: #08990b;
    padding: 20px;
}
.location h1 {
    color: #fdce00;
    margin-bottom: 20px;
}
#address {
    background-color: #0000007c;
    border-radius: 10px;
    padding: 15px;
}
.add {
    background-color: #2a2b2a;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.add:hover {
    background-color: #616361;
}
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
  }
  .map-frame {
    width: 100%;
    height: 400px;
    border: 2px solid rgb(241, 245, 37);
    display: none;
    position: absolute;
    top: 0;
    left: 0;
  }
  .map-frame.active {
    display: block;
  }
/* footer css */
#footer {
    height: 48vh;
    background-color: #054c06;
}

#footer h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: #fff;
}

/* MEDIA QUERIES */
@media (max-width: 950px) {
    .filter h1 {
        margin-top: 80px;
        text-align: center;
    }

    .filter span {
        text-align: center;
    }

    .filter, .container1 {
        height: 100vh;
    }

    .logocon img {
        width: 80px; /* Reduced logo size for small screens */
    }
    .location .add h6{
        font-size: 10px;
     }
     .location h1{
         margin-bottom: 0;
     }
     .location #address{
         overflow-y: scroll;
         max-height: 180px;
         overflow-x: hidden;
      }
      iframe{
         max-height: 300px;
         max-width: 450px;
      }
}
@media (max-width: 768px) {
    .col-md-4 {
      order: 2;
    }
    .col-md-8 {
      order: 1;
    }
  }
@media (max-width: 540px) {
    main{
        padding: 10px;
    }
    #aboutus  p, #aboutus ol{
        font-size: 14px;
    }
    .logocon img {
        width: 65px; /* Reduced logo size for small screens */
    }
    .container1, .filter{
        height: 120vh;
    }
    .filter h1{
        font-size: 50px;
    }
    .filter #h1{
        font-size: 20px;
    }
    #footer {
        height: auto;
        padding: 20px;
        text-align: center;
    }

    #footer h1 {
        font-size: 1.5rem;
    }

    #mailing {
        flex-direction: column;
        gap: 20px;
    }

    #mailing div {
        width: 100%;
    }

    .creator {
        font-size: 14px;
        flex-direction: column;
        text-align: center;
    }
    .location .add h6{
       font-size: 10px;
    }
    .location h1{
        margin-bottom: 0;
    }
    .location #address{
        overflow-y: scroll;
        max-height: 200px;
        overflow-x: hidden;
     }
     .map-container {
        position: relative;
        width: 100%;
        height: 300px;
      }
}
@media (max-width: 380px) {
    .logocon img {
        width: 65px; /* Reduced logo size for small screens */
    }
    .container1, .filter{
        height: 100vh;
    }
    .filter h1{
        font-size: 40px;
    }
    .filter #h1{
        font-size: 18px;
    }
    .logocon ul{
     gap: 10px;       
    }
    main h1{
        font-size: 30px;
        text-align: center;
    }
    #aboutus{
        padding: 0 0.5rem;
    }
}