/*========== Navigation bar ==========*/
.navbar {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 5rem 0.75rem 1rem;
    background-image: linear-gradient(135deg, #2a0d06 0%, #4D190E 60%, black 100%);
    box-shadow: 0 10px 5px -5px rgba(0, 0, 0, 1);
}

.navbar-hamburger {
    display: none;
}

.navbar-hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    background-color: var(--secondary-color);
}

.navbar-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-item {
    padding: 0 2rem;
    border-left: 2px solid white;
}

.navbar-link {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: var(--normal-font-size);
    font-weight: var(--font-max-bold);
}

.navbar-link:hover {
    background-color: transparent;
    color: var(--tertiary-color);
    transition: transform ease-in-out 0.5s;
}

.navbar .navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 3rem;
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem 0.75rem 1rem;
    }

    .navbar-menu {
        position: fixed;
        text-align: center;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        left: -100%;
        top: 4.5rem;
        z-index: 1000;
        transition: 0.5s ease;
        padding-bottom: 1rem;
        box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 1);
        border-top: 1px solid var(--secondary-color);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        background-image: linear-gradient(45deg, #2a0d06 0%, #4D190E 60%, black 100%);
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-item {
        padding: 1rem 0;
        border-left: none;
    }

    .navbar-hamburger {
        display: block;
        cursor: pointer;
    }

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

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

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



/*========== Header ==========*/
.header {
    background-image: linear-gradient(315deg, white 0%, rgb(23, 22, 22) 60%, black 100%);
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.header-logo {
    position: absolute; 
    display: flex;
    justify-content: flex-end;
    top: 50%;
    right: 25%;
    left: 45%; 
    transform: translateY(-50%); 
}

.header-logo img {
    max-width: auto;
}

.header-section {
    z-index: 10;
}

.header-section {
    margin-left: 4rem; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}

.header-section h1 {
    font-size: var(--header-h1-size);
}

.header-section .header-item {
    font-size: var(--header-quote-size);
}

@media screen and (max-width: 820px) {
    .header-section {
        margin-left: 1rem;
    }

    .header-logo {
        left: 10%;
        right: 10%;
    }
}



/*========== Social bar ==========*/
.social-bar {
    top: 50%;
    right: 0;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    width: var(--icon-size) + var(--icon-margin);
    z-index: 1000;
    margin-right: var(--icon-margin);
}

.social-bar a {
    cursor: pointer;
}

.social-bar svg {
    fill: var(--secondary-color);
    height: var(--icon-size);
}



/*========== Dropdown ==========*/
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    background-image: linear-gradient(45deg, #2a0d06 0%, #4D190E 60%, black 100%);
    box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    flex-direction: column;
    border: 1px solid var(--secondary-color);
}

.dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-menu .dropdown-item:first-child {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.dropdown-menu .dropdown-item:last-child {
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.dropdown.active .dropdown-menu {
    display: flex;
}

.dropdown-item {
    cursor: pointer;
    border-bottom: 1px solid var(--secondary-color);
}

.dropdown-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: var(--text-color);
    font-size: var(--normal-font-size);
    font-weight: var(--font-max-bold);
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
}

.dropdown-item:hover .dropdown-link {
    color: var(--tertiary-color);
    transition: transform ease-in-out 0.5s;
}

.dropdown .dropdown-button {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: var(--normal-font-size);
    font-weight: var(--font-max-bold);
}

.dropdown .dropdown-button:hover {
    color: var(--tertiary-color);
}

.dropdown .dropdown-button:hover .custom-arrow {
    border-top: 6px solid var(--tertiary-color);
}

.dropdown.active .custom-arrow {
    transform: rotate(0);
}

@media screen and (max-width: 768px) {
    .dropdown .dropdown-button {
        padding-bottom: 1rem;
    }

    .dropdown {
        position: relative;
        padding-bottom: 0;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-menu {
        position: relative;
        display: none;
        flex-direction: column;
        border: none;
        top: 0;
        box-shadow: none;
        background-image: none;
    }

    .dropdown-item:hover {
        background-color: transparent;
    }

    .dropdown-item:hover .dropdown-link {
        color: var(--tertiary-color);
        font-size: var(--normal-font-size);
        font-weight: var(--font-max-bold);
        transform: none;
        transition: none;
    }

    .dropdown-item {
        border: none;
        background-color: unset;
    }

    .dropdown-link {
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--text-color);
        font-size: var(--normal-font-size);
        font-weight: var(--font-max-bold);
    }
}