* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.header {
    width: 100%;
    padding: 15px 30px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav {
    font-family: "Sora", sans-serif;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
}

.nav li {
    position: relative;
}

.nav a {
    white-space: nowrap;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav li:hover a {
    color: #4154f1;
}

.nav-link::before {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4154f1;
    visibility: hidden;
    transition: all 0.3s ease-in-out 0s;
}

.nav-link:hover:before {
    visibility: visible;
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    background: transparent;
}

.hamburger {
    width: 30px;
    height: 2px;
    background-color: #111;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #111;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle:hover .hamburger, .nav-toggle:hover .hamburger::before, .nav-toggle:hover .hamburger::after {
    background-color: #4154f1;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-toggle.active:hover .hamburger::before, .nav-toggle.active:hover .hamburger::after {
    background-color: #111;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        border-top: 1px solid #ddd;
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
    }

    .nav li {
        width: 100%;
    }

    .nav a {
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav.active {
        display: flex;
    }
}


