/* CSS Variables */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #4CAf8F;
    --accent-color-1: #936A5B;
    --accent-color-2: #E6B89C;
    --light-text-color: #F7F9FA;
    --dark-text-color: #3B3C3F;
    --card-bg-light: rgba(255, 255, 255, 0.05);
    --card-border-light: rgba(255, 255, 255, 0.1);
    --white-color: #fff;
    --gray-light: #E5E7EB;
    --black-color: #1e1e1e;
    --card-border: rgba(0, 0, 0, 0.05);
    --card-shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
}

nav {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 76px;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

nav.scrolled {
    background: linear-gradient(to right, rgba(44, 62, 80, 0.8), rgba(76, 175, 143, 0.8));
    backdrop-filter: blur(12px);
}

.brand img {
    width: 175px;
    padding-top: .40rem;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    /* Keep above menu for clickability */
}

ul.menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

ul.menu li a {
    color: var(--light-text-color);
    text-decoration: none;
    padding: 12px 0;
    position: relative;
    transition: 0.3s;
}

ul.menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: var(--light-text-color);
    transition: width 0.3s;
}

ul.menu li a:hover::after {
    width: 100%;
}

/* Buttons */
.btn-nav {
    padding: 1rem 2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--light-text-color);
    border-radius: 8px;
    background: none;
    color: var(--light-text-color);
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    /* For the custom button effect */
    z-index: 1;
    /* For the custom button effect */
}

/* Liquid button effect (for desktop nav) */
.btn-nav.liquid-nav {
    background: linear-gradient(var(--light-text-color) 0 0) no-repeat calc(200% - var(--p, 0%)) 100%/200% var(--p, 0.2em);
    transition: 0.3s var(--t, 0s), background-position 0.3s calc(0.3s - var(--t, 0s));
}

.btn-nav.liquid-nav:hover {
    --p: 100%;
    --t: 0.3s;
    color: gray;
}

/* Responsive Styles */
@media (max-width: 920px) {
    .brand img {
        position: relative;
        right: 20px;
        width: 150px;
    }

    .menu-btn {
        display: block;
    }

    .btn-nav.liquid-nav {
        display: none;
    }

    ul.menu {
        display: none;
        flex-direction: column;
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        padding: 56px 32px;
        text-align: center;
    }

    ul.menu.active {
        display: flex;
    }

    ul.menu li a::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: 2px;
    }
}