/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s ease;
}

.dark-mode .navbar {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled {
    height: 70px;
    background-color: rgba(42, 47, 79, 0.98);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #2a2f4f;
    position: relative;
    transition: all 0.3s ease;
}

.dark-mode .logo {
    color: #e0e0e0;
}

.navbar.scrolled .logo {
    color: #ffffff;
}

.logo-text {
    position: relative;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #82c3ec, #4b56d2);
    border-radius: 50%;
    margin-left: 2px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover .logo-dot {
    animation: pulse 1s infinite;
}

/* Nav Links Styles */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    position: relative;
    padding: 10px 5px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dark-mode .nav-link {
    color: #e0e0e0;
}

.navbar.scrolled .nav-link {
    color: #ffffff;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #82c3ec, #4b56d2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4b56d2;
}

.dark-mode .nav-link:hover,
.dark-mode .nav-link.active {
    color: #82c3ec;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #82c3ec;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(75, 86, 210, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.dark-mode .mobile-menu-btn {
    background-color: rgba(130, 195, 236, 0.08);
}

.mobile-menu-btn:hover {
    background-color: rgba(75, 86, 210, 0.15);
}

.dark-mode .mobile-menu-btn:hover {
    background-color: rgba(130, 195, 236, 0.15);
}

.menu-icon {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #4b56d2;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.dark-mode .menu-icon span {
    background: #82c3ec;
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 8px;
}

.menu-icon span:nth-child(3) {
    top: 16px;
}

.menu-icon.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-icon.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-icon.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        gap: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        z-index: 999;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .dark-mode .nav-links {
        background-color: rgba(18, 18, 18, 0.98);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    .navbar.scrolled .nav-links {
        top: 70px;
        background-color: rgba(42, 47, 79, 0.98);
    }

    .nav-links.active {
        height: calc(100vh - 80px);
        padding: 20px 0;
    }

    .navbar.scrolled .nav-links.active {
        height: calc(100vh - 70px);
    }

    .nav-link {
        width: 80%;
        padding: 15px 20px;
        border-radius: 10px;
        margin: 5px 0;
        text-align: center;
    }

    .nav-link::after {
        bottom: 5px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .nav-link {
        width: 90%;
    }
}
