*{
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}



.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;

}

/* >>>NAVBAR START<<< */

.navbar{    
    grid-column: 1/8;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
}

.navbar-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    max-width: 1600px;
}

.navbar-logo{
    font-size: 2rem;
    font-weight: 600;
    color: white;  
    text-decoration: none;
    cursor: pointer;
}

.navbar-container .navbar-menu{
    display: flex;
    text-align: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-container .navbar-menu li a{
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 3px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.7s ease;
    white-space: nowrap;
}

.navbar-container .navbar-menu li a:hover {
    background: rgb(34, 117, 103);
    color: blueviolet;
    border: 2px solid white;
}

.navbar-toggle {
    display: none;
    background: transparent;
    padding: 10px;
    border: none;  
    cursor: pointer;
}

.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* >>>NAVBAR END<<< */
/* >>>HERO SECTION START<<< */

.hero-section{
    grid-column: 1/7;
    grid-row: 1/6;
    display: grid; 
    place-items: center;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    border: solid red;
    width: 100%;
    overflow: hidden;
}

 .hero-image { 
    grid-column: 1/7;
    grid-row: 1/6;
    display: block;
    width: 100%;
    height: 80vh; 
    border: solid green; 
    object-fit: cover;
    object-position: center; 
    z-index: -2;
 }

.hero-text{
    display: grid;
    grid-column: 1/5;
    grid-row: 1;
    width: 100%;
    height: auto;
    border: solid blue;
    z-index: 1;
} 

/* >>>HERO SECTION END<<< */
/* >>>MEDIA QUERIES START<<< */
/* DESKTOP/TABLET START */

@media (max-width: 880px) {
    .navbar {
        backdrop-filter: none;
    }

    .navbar-container .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        height: 100vh;
        width: 250px;
        top: 0;
        right: 0;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
    }

    .navbar-toggle {
        display: block;
        z-index: 999;

    }
}

   /* DESKTOP/TABLET END */
   /* MOBILE START */

@media (max-width: 500px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-logo {
        font-size: 1.7rem;
    }

    .navbar-container .navbar-menu li a {
        font-size: 1.2rem;
        padding: 3px 15px;
    }

    .grid-container{
        grid-template-columns: 1fr;
        
    }

    .hero-section {
    display: grid;
    grid-template-rows: auto 1fr;
    }

    .hero-text {
    grid-row: 3;
    } 

    
    .hero-image {
    display: block;
    width: 100%;
    height: 100vh; 
    border: solid green; 
    object-fit: cover;
    object-position: center; 
    z-index: -2;
    }

}

/* MOBILE END */

/* >>>MEDIA QUERIES END<<< */

/* >>>JAVA START<<< */

.navbar-container .navbar-menu.active {
        display: flex;
    }

.navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* >>>JAVA END<<< */
