.glass-panel {
    backdrop-filter: blur(10px);
    background-color: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    width: 60%;
    margin: 20px auto;
    padding: 20px 30px;
    position: relative;
}

.main-nav img{
    width: 18%;
    margin-inline: 30px;
}

.main-nav div{
    display: flex;
    width: 30%;
    align-items: center;
    justify-content: space-between;
}

.burger-menu{
    position: absolute;
    background-color: rgba(255, 66, 66, 0.306);
    color: white;
    height: 70%;
    width: auto;
    border-radius: 10px;
    aspect-ratio: 1/1;
    border: var(--glass-border);
    right: -3%;
    top: 50%;
    display: none;
    transform: translate(-50%, -50%);
}

.side-menu {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(208, 0, 0, 0.29);
    backdrop-filter: blur(10px);
    border-right:var(--glass-border);
    overflow-x: hidden;
    transition: 0.5s; /* Smooth sliding speed */
    padding-top: 60px;
    transform: translateX(-100%); /* Hidden by default */
    z-index: 1000;
}
  
.side-menu a 
{
padding: 15px 25px;
text-decoration: none;
font-size: 20px;
color: rgba(255, 255, 255, 0.664);
display: block;
transition: 0.3s;
}

.side-menu a:hover {
color: #f1f1f1;
}

/* Active State */
.side-menu.active {
transform: translateX(0); /* Slide into view */
}

/* Dimmed Overlay */
#overlay.active {
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.1);
z-index: 999;
}

.nav-link {
    text-decoration: none;
    color: white;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--primary-red);
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* SECTIONS */
section{
    height: 800px;
    width: 100%;
}

.quick-button{
    text-decoration: none;
    padding: 10px;
    min-width: 200px;
    color: white;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: 10px;  
    margin-top: 40px;  
    border-radius: 10px;
    transition: 0.2s;
}


.red-hover:hover{
    background: rgba(255, 0, 0, 0.327);
}

.bright-red-hover:hover{
    background: red;
    color: white;
}

.black-hover:hover{
    background: black;
    color: white;
}

/* .black-button:hover{
    background: white;
    border: 1px black solid;
    color: black;
} */

.white-button{
    background-color: white;
    color: black;
}

section{
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 20px;
    margin: auto;
}

h2{
    font-size: 2.5rem;
}

.horizontal-container{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}

.vertical-container{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

.left-text-container{
    width: 50%;
    padding: 20px;
    font-size: 1.8rem;
    padding-top: 0;
    color: white;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
}

.red-line{
    width: 70%;
    height: 4px;
    background-color: white;
    margin: auto;
    margin-top: 20px;
    margin-left: 20px;
    border-radius: 10px;
}










/* SUBPAGES */
@font-face {
    font-family: "Spantaran"; /* This is the name you decide to use */
    src: url("../font/racing-energy-font/RacingEnergy-E44Kn.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.sub-page-header{
    position: relative;
    background-image: url("../image/banner.jpg");
    background-position: center;
    background-size: cover;
    backdrop-filter: blur(10px);
    height: 350px;
    color: white;
    display: flex;
    justify-content: start;
    align-items: center;
    
}

.sub-page-header::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:linear-gradient(rgb(133, 145, 150), black);
    opacity: 0.4;
    z-index: -1;
    left: 0;
    top: 0;
}

.sub-page-header h1{
    font-family: "Spantaran", sans-serif;
    font-size: 2.5rem;
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}


@media screen and (max-width: 1300px) {
    .main-nav{
        width: 70%;
        margin: 10px auto;
        padding: 15px 30px;
    }

    .glass-panel{
        border-radius: 15px;
    }
}

@media screen and (max-width: 600px) {
    .nav-link{
        display: none;
    }

    .main-nav{
        width: 90%;
        padding-inline: 10px;
        margin: 10px auto;
    }
    .main-nav img{
        width: 30%;
    }

    .burger-menu{
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.4rem;
    }

    .quick-button{
        margin-inline: 0;
        margin-block: 10px; 
    }

    .horizontal-container{
        flex-direction: column;
        height: fit-content;
    }

    .left-text-container{
        width: 90%;
        font-size: 1.4rem;
        height: fit-content;
    }

}

