﻿body {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

.navbar-wrapper {
    width: 100%;
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    font-style: italic;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    gap: 0.3rem;
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: scale(1.05);
}

.brand-accent {
    color: #4a90e2;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: #4a90e2;
    color: #ffffff;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a2a2a;
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #4a90e2;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .navbar-container {
        flex-wrap: wrap;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        gap: 0;
    }

    .nav-menu.open {
        max-height: 500px;
        margin-top: 1rem;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #333333;
        transform: none;
        margin-top: 0;
    }

    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}
