:root{
    --red-primary: #9c2117;
}

header{
    width: 100%;
    height: 150px;
    background-color: var(--red-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header_container{
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hamburger menu */
.hamburger-menu {
    position: absolute;
    left: 20px;
    top: 20px;
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Links */
.navigation {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo_container {
    width: 15%;
    height: 100%; 
    padding: 10px; 
    padding-left: 0;
    margin-left: 10px;
}

.logo_container > img{
    width: 100%;
    height: auto;
}

.navigation_list {
    width: 70%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 75px;
}

.navigation_list > li > a {
    position: relative;
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: color 0.3s;
}

.navigation_list > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: white;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.navigation_list > li > a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Dropdown css */
.navigation_list li {
    position: relative;
}

.navigation_list li ul.dropdown_menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: var(--red-primary);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 180px;
}

.navigation_list li:hover ul.dropdown_menu {
    display: flex;
}

.navigation_list li ul.dropdown_menu li a {
    padding: 20px 30px;
    font-size: 16px;
    color: white;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.navigation_list li ul.dropdown_menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger_menu_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hamburger_menu_list li {
    position: relative;
    display: flex;
    flex-direction: column;
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 10px;
}

.hamburger_menu_list li ul.dropdown_menu {
    display: none;
    flex-direction: column;
    background-color: var(--red-primary);
    gap: 5px;
    width: 100%;
    margin-top: 8px;
    border-left: 2px solid rgba(255,255,255,0.2);
}

.hamburger_menu_list li.active > ul.dropdown_menu {
    display: flex;
}

.hamburger_menu_list li ul.dropdown_menu li a {
    font-size: 16px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    transition: background 0.3s;
}

.hamburger_menu_list li ul.dropdown_menu li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* CTA */
.call_to_action {
    width: 15%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; 
}

.cta_button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    background-color: white;
    border: 2px solid white;
    color: var(--red-primary);
    font-size: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cta_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--red-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.cta_button:hover::before {
    width: 100%;
}

.cta_button span {
    position: relative;
    z-index: 1; 
    transition: color 0.3s ease;
    font-weight: 500;
}

.cta_button:hover span {
    color: white;
}

/* Overlay menu */
.hamburger_overlay {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 250px;
    height: 100dvh; // dynamic viewport height based on user scrolling on phone
    box-shadow: 4px 0 16px 0 rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
    display: none; 
    max-width: 300px;
    background-color: var(--red-primary);
}

.hamburger_overlay_content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hamburger_overlay_close {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
}

.close_icon {
    color: white;
    font-size: 30px;
}

.close_icon:hover {
    cursor: pointer;
    color: #bbbbbb;
}

.hamburger_menu_list {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 30px;
    padding: 0 20px;
}

.hamburger_menu_list > li > a {
    color: white;
    font-size: 22px;
    text-decoration: none;
}

.hamburger_call_to_action {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta_button_overlay {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    background-color: white;
    border: 2px solid white;
    color: var(--red-primary);
    font-size: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cta_button_overlay > span {
    color: var(--red-primary);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* Media queries */
@media screen and (max-width: 980px) {
    .call_to_action {
        display: none;
    }

    .navigation_list {
        width: 75%;
        gap: 35px;
        justify-content: start;
        padding-left: 40px;
    }

    .logo_container {
        width: 25%;
    }
}

@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .navigation_list {
        display: none; /* Hide navigation links on small screens */
    }

    .hamburger_overlay {
        display: block; /* Show overlay menu when hamburger is clicked */
    }

    .header_container{
        height: 100%;
    }

    .logo_container {
        width: 100%;
        height: auto; 
        max-height: 100px;
        padding: 10px; 
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo_container > img{
        width: 100%;
        height: 100%;
        max-width: 250px;
    }
}

@media screen and (max-width: 380px) {
    .logo_container > img{
        max-width: 150px;
    }

    header{
        height: 100px;
    }
}