@font-face {
    font-family: 'outfit';
    src: url('/font/OutfitRegular.ttf') format('truetype');
    font-weight: normal;
    font-display: swap; 
}
@font-face {
    font-family: 'outfit-bold';
    src: url('/font/OutfitBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-weight: 600; */
    font-family: 'outfit', Arial, sans-serif; 
}

body {
    background-color: #f5f5f5;
    /* overflow-x: hidden; */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo span {
    color: black;
    font-weight: 100;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.6rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size:0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #e63946;
    bottom: -4px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar-icons{
    display: flex;
    gap: 20px;
    align-items: center;
}
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.5s ease-in-out;
        z-index: 1000;
        gap: 2.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Animation for hamburger to X */
.hamburger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .line2 {
    opacity: 0;
}

.hamburger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}