/* Garplunk Swamp Theme - Simplified CSS */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
    color: #74c69d;
    background: #051814;
    overflow-x: hidden;
    height: 100vh;
}

/* Tunnel background styles */
.tunnel-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

.tunnel-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

/* Fallback animated background */
.fallback-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: #051814;
    overflow: hidden;
}

#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Floating Header */
.floating-header {
    position: absolute;
    top: 5vh;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

/* Futuristic title styling */
h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #52b788;
    text-shadow: 0 0 10px rgba(82, 183, 136, 0.8),
                 0 0 20px rgba(82, 183, 136, 0.5),
                 0 0 30px rgba(82, 183, 136, 0.3);
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    display: inline-block;
}

h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    text-shadow: 0 0 10px #52b788, 
                 0 0 20px #52b788,
                 0 0 40px #52b788;
    opacity: 0.7;
    filter: blur(7px);
    z-index: -1;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.3;
        filter: blur(5px);
    }
    100% {
        opacity: 0.7;
        filter: blur(10px);
    }
}

/* Main Content Container */
.main-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 70vh;
    background: rgba(17, 45, 28, 0.95);
    border: 2px solid rgba(59, 255, 128, 0.7);
    border-radius: 15px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(59, 255, 128, 0.5);
    backdrop-filter: blur(5px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(82, 183, 136, 0.3);
}

.nav-item {
    background: rgba(10, 47, 28, 0.7);
    border: 2px solid rgba(82, 183, 136, 0.7);
    border-radius: 25px;
    padding: 8px 16px;
    color: #74c69d;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-item:hover, .nav-item.active {
    background: rgba(24, 93, 61, 0.9);
    border-color: #52b788;
    color: #b5e48c;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(82, 183, 136, 0.5);
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h2 {
    font-family: 'Orbitron', sans-serif;
    color: #52b788;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(82, 183, 136, 0.3);
    padding-bottom: 10px;
}

h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #b5e48c;
    margin-bottom: 15px;
    margin-top: 25px;
}

h4 {
    font-size: 1.1rem;
    color: #74c69d;
    margin-bottom: 8px;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #74c69d;
}

a {
    color: #52b788;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-weight: bold;
}

a:hover {
    color: #b5e48c;
    text-shadow: 0 0 5px rgba(181, 228, 140, 0.5);
}

/* Project Styling */
.music-project, .web-project {
    background: rgba(17, 78, 45, 0.6);
    border-left: 3px solid #52b788;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s;
}

.music-project:hover, .web-project:hover {
    background: rgba(24, 93, 61, 0.8);
    transform: translateX(5px);
    border-left-color: #b5e48c;
}

.music-project {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.music-project-info {
    flex: 1;
}

.music-project img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid rgba(82, 183, 136, 0.5);
    border-radius: 5px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.music-project:hover img {
    border-color: #b5e48c;
    box-shadow: 0 0 10px rgba(181, 228, 140, 0.5);
}

/* External Gallery Styling */
.external-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.gallery-option {
    background: rgba(17, 78, 45, 0.6);
    border: 2px solid rgba(82, 183, 136, 0.5);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.gallery-option:hover {
    background: rgba(24, 93, 61, 0.8);
    border-color: #b5e48c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(82, 183, 136, 0.3);
}

.gallery-link {
    display: inline-block;
    background: rgba(82, 183, 136, 0.2);
    color: #b5e48c;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #52b788;
    margin-top: 10px;
    transition: all 0.3s;
}

.gallery-link:hover {
    background: rgba(82, 183, 136, 0.4);
    transform: scale(1.05);
}

/* Featured Content */
.featured-content {
    margin: 30px 0;
}

/* Video Styling */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.video-item {
    background: rgba(17, 78, 45, 0.4);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(82, 183, 136, 0.3);
}

.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Footer */
footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: rgba(82, 183, 136, 0.5);
    font-size: 0.8rem;
    z-index: 5;
}

/* Scrollbar Styling */
.main-container::-webkit-scrollbar {
    width: 8px;
}

.main-container::-webkit-scrollbar-track {
    background: rgba(17, 45, 28, 0.3);
    border-radius: 4px;
}

.main-container::-webkit-scrollbar-thumb {
    background: rgba(82, 183, 136, 0.6);
    border-radius: 4px;
}

.main-container::-webkit-scrollbar-thumb:hover {
    background: rgba(82, 183, 136, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .main-container {
        width: 95%;
        max-height: 80vh;
        padding: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-item {
        text-align: center;
    }
    
    .music-project {
        flex-direction: column;
        text-align: center;
    }
    
    .music-project img {
        width: 120px;
        height: 120px;
        margin: 0 auto 15px;
    }
    
    .external-gallery {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .main-container {
        width: 98%;
        max-height: 85vh;
        padding: 15px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Performance optimizations */
.main-container {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

video {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.tunnel-background {
    will-change: auto;
    backface-visibility: hidden;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #bg-canvas {
        display: none;
    }
    
    .tunnel-background video {
        animation: none;
    }
    
    h1::after {
        animation: none;
    }
    
    .content-section {
        animation: none;
    }
}