/* Top Navigation Bar - Prominent and Consistent Across All Pages */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-bottom: 3px solid #4a90e2;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
    z-index: 10000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.top-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.top-nav-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #4a90e2;
    text-decoration: none;
    text-shadow: 2px 2px 0 #000;
    transition: all 0.3s ease;
}

.top-nav-logo:hover {
    color: #60a5fa;
    transform: scale(1.05);
}

/* YouTube Icon in Top Nav */
.top-nav-youtube {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 30px;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid transparent;
}

.top-nav-youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.youtube-nav-icon {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.top-nav-youtube:hover .youtube-nav-icon {
    filter: brightness(1.5) drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
    transform: scale(1.1);
}

.top-nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav-item {
    position: relative;
}

.top-nav-link {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    border: 2px solid transparent;
    position: relative;
}

/* Gamepad-Inspired Button Colors */
.top-nav-item:nth-child(1) .top-nav-link {
    /* HOME - Blue like PlayStation X */
    border-color: #4169e1;
}

.top-nav-item:nth-child(1) .top-nav-link:hover {
    background: linear-gradient(145deg, #4169e1, #1e40af);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(65, 105, 225, 0.6);
}

.top-nav-item:nth-child(2) .top-nav-link {
    /* PORTFOLIO - Green like Xbox A */
    border-color: #32cd32;
}

.top-nav-item:nth-child(2) .top-nav-link:hover {
    background: linear-gradient(145deg, #32cd32, #228b22);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.6);
}

.top-nav-item:nth-child(3) .top-nav-link {
    /* ABOUT - Red like PlayStation Circle */
    border-color: #dc143c;
}

.top-nav-item:nth-child(3) .top-nav-link:hover {
    background: linear-gradient(145deg, #dc143c, #8b0000);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
}

.top-nav-item:nth-child(4) .top-nav-link {
    /* GAMES - Yellow like PlayStation Triangle */
    border-color: #ffd700;
}

.top-nav-item:nth-child(4) .top-nav-link:hover {
    background: linear-gradient(145deg, #ffd700, #ffb300);
    border-color: #fff;
    color: #000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.top-nav-item:nth-child(5) .top-nav-link {
    /* LINKS - Purple accent */
    border-color: #9370db;
}

.top-nav-item:nth-child(5) .top-nav-link:hover {
    background: linear-gradient(145deg, #9370db, #6a5acd);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.6);
}

/* Active state with gamepad colors */
.top-nav-item:nth-child(1) .top-nav-link.active {
    background: linear-gradient(145deg, #4169e1, #1e40af);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.7);
}

.top-nav-item:nth-child(2) .top-nav-link.active {
    background: linear-gradient(145deg, #32cd32, #228b22);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.7);
}

.top-nav-item:nth-child(3) .top-nav-link.active {
    background: linear-gradient(145deg, #dc143c, #8b0000);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.7);
}

.top-nav-item:nth-child(4) .top-nav-link.active {
    background: linear-gradient(145deg, #ffd700, #ffb300);
    border-color: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.7);
}

.top-nav-item:nth-child(5) .top-nav-link.active {
    background: linear-gradient(145deg, #9370db, #6a5acd);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.7);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: #4a90e2;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #fff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #2c5aa0;
    transform: scale(1.05);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .top-nav-container {
        padding: 0 20px;
    }
    
    .top-nav-logo {
        font-size: 12px;
    }
    
    .top-nav-youtube {
        margin-left: 15px;
    }
    
    .youtube-nav-icon {
        height: 24px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .top-nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-bottom: 3px solid #4a90e2;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .top-nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .top-nav-link {
        font-size: 12px;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    }
    
    .top-nav-item:last-child .top-nav-link {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .top-nav-logo {
        font-size: 10px;
    }
    
    .top-nav-youtube {
        margin-left: 10px;
        padding: 4px;
    }
    
    .youtube-nav-icon {
        height: 20px;
    }
    
    .mobile-menu-toggle {
        font-size: 10px;
        padding: 8px 12px;
    }
    
    .top-nav-link {
        font-size: 10px;
        padding: 12px 15px;
    }
}

/* Adjust body padding to account for fixed nav */
body {
    padding-top: 80px !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 65px !important;
    }
}
