/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: auto;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    background-color: transparent;
}

.header-logo {
    max-width: 180px;
    height: auto;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .header-logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        max-width: 120px;
    }
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo:hover circle {
    fill: #f4e34c;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: 1px;
}

.logo-tech {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-blue);
    margin-left: 5px;
    letter-spacing: 1px;
}

/* Hamburger Menu */
.nav-menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu-toggle:focus {
    outline: 2px solid var(--green);
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--yellow);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.nav-menu-toggle.active .hamburger span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.nav-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.nav-menu-toggle.active .hamburger span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: rgba(2, 4, 6, 0.95);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 1000;
}

.nav-menu.active {
    right: 0;
}

.nav-list {
    list-style: none;
    padding: 100px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item {
    margin-bottom: 30px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--yellow);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--yellow);
}

.nav-link:hover::after {
    width: 100%;
}

/* Desktop Navigation */
@media (min-width: 769px) {
    nav {
        padding: 1.2rem 5%;
        transition: all 0.3s ease;
    }

    .nav-menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        backdrop-filter: none;
        transition: none;
        overflow: visible;
        z-index: auto;
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .nav-item {
        margin: 0 0 0 2.5rem;
        position: relative;
        display: flex;
        align-items: center;
    }

    .nav-link {
        color: #00ff00;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
        padding: 0.5rem 1rem;
        display: inline-block;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background-color: #00ff00;
        transition: width 0.4s ease;
    }

    .nav-link:hover {
        color: #ffffff;
        background-color: #f4e34c;
        font-weight: 800;
        transform: translateY(-2px);
        text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
        transition: color 0.3s ease, background-color 0.3s ease;
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }

    .nav-link:hover::after {
        width: 100%;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }

    .logo {
        font-size: 1.5rem;
        font-weight: bold;
        color: #00ff00;
        text-decoration: none;
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
        transition: all 0.3s ease;
    }

    .nav-menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        z-index: 1001;
        min-width: 44px;
        min-height: 44px;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

    .nav-menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(0, 255, 0, 0.2);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        color: #00ff00;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
        display: inline-block;
        padding: 0.5rem 0;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #00ff00;
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: #ffffff;
        font-weight: 700;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
        transform: scale(1.05);
    }

    .nav-link:hover::after {
        width: 100%;
    }
}