* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: "Funnel Display", sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* VHS Effect Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 64, 0.02) 2px,
            rgba(255, 0, 64, 0.02) 4px
        );
    pointer-events: none;
    z-index: 9999;
    animation: vhs-static 0.1s infinite linear;
}

/* VHS Static Animation */
@keyframes vhs-static {
    0% { transform: translateX(0px); opacity: 1; }
    25% { transform: translateX(-1px); opacity: 0.95; }
    50% { transform: translateX(1px); opacity: 1; }
    75% { transform: translateX(-0.5px); opacity: 0.98; }
    100% { transform: translateX(0px); opacity: 1; }
}

/* VHS Scanlines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 0, 0, 0.1) 1px,
        rgba(0, 0, 0, 0.1) 2px
    );
    pointer-events: none;
    z-index: 9998;
    animation: vhs-flicker 3s infinite ease-in-out;
}

@keyframes vhs-flicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.6; }
}

/* Single Language Button */
.language-selector {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1001;
}

.lang-btn-single {
    background: rgba(255, 0, 64, 0.2);
    border: 2px solid rgba(255, 0, 64, 0.5);
    color: #fff;
    padding: 5px;
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lang-btn-single:hover {
    background: rgba(255, 0, 64, 0.4);
    border-color: rgba(255, 0, 64, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 64, 0.3);
}

.lang-btn-single:active {
    transform: translateY(0px);
}

/* Enhanced Navigation with Glitch Effects */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 0, 64, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Animated background scanlines */
nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 64, 0.05) 50%,
        transparent
    );
    animation: scan 4s infinite ease-in-out;
}

@keyframes scan {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Scrolled state */
nav.scrolled {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(255, 0, 64, 0.3);
    box-shadow: 0 2px 20px rgba(255, 0, 64, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 5px 0;
    flex-wrap: wrap;
    position: relative;
}

nav li {
    margin: 0 25px;
    position: relative;
}

/* Enhanced link styling with glitch effects */
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 20px;
    border-radius: 32px;
    transition: all 0.3s ease;
    display: block;
    overflow: hidden;
}

/* Glitch text effect */
nav a::before,
nav a::after {
    content: attr(data-text);
    position: absolute;
    top: 10px;
    left: 20px;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

nav a::before {
    color: #ff0040;
    z-index: -1;
    animation: glitch-1 2s infinite linear alternate-reverse;
}

nav a::after {
    color: #00ffff;
    z-index: -2;
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0%, 95% { 
        opacity: 0; 
        transform: translate(0);
    }
    96%, 100% { 
        opacity: 0.8; 
        transform: translate(-1px, 1px);
    }
}

@keyframes glitch-2 {
    0%, 97% { 
        opacity: 0; 
        transform: translate(0);
    }
    98%, 100% { 
        opacity: 0.6; 
        transform: translate(1px, -1px);
    }
}

/* Active state with enhanced glow */
nav a.active {
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.2), rgba(255, 0, 64, 0.1));
    color: #ff0040;
    text-shadow: 0 0 15px #ff0040;
    border: 1px solid rgba(255, 0, 64, 0.3);
}

nav a.active::before {
    opacity: 0.3;
}

/* Underline animation */
nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0040, #ff4080, #00ffff);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

/* Noise overlay for extra grittiness */
nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj4KICA8ZmlsdGVyIGlkPSJub2lzZSI+CiAgICA8ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9IjAuOSIgbnVtT2N0YXZlcz0iNCIgc2VlZD0iMSIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPgogIDwvZmlsdGVyPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjAuNCIvPgo8L3N2Zz4=') repeat;
    pointer-events: none;
    animation: noise 0.2s infinite;
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1px, -1px); }
    20% { transform: translate(1px, 1px); }
    30% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    50% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    70% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
    90% { transform: translate(-1px, -1px); }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Circles */
.circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    pointer-events: none;
}

.circle {
    position: absolute;
    border: 1px solid;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 0, 64, 0.3);
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 0, 64, 0.2);
    animation-delay: 1s;
}

.circle:nth-child(3) {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 0, 64, 0.1);
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Logo with Glitch Effect */
.logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    animation: glow 3s ease-in-out infinite alternate;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Glitch Effect */
.logo::before,
.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/miura-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    pointer-events: none;
}

.logo::before {
    filter: hue-rotate(90deg) saturate(2);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.logo::after {
    filter: hue-rotate(270deg) saturate(2);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glow {
    from {
        filter: invert(1) drop-shadow(0 0 10px rgba(255, 0, 64, 0.4));
    }
    to {
        filter: invert(1) drop-shadow(0 0 20px rgba(255, 0, 64, 0.4));
    }
}

.tagline {
    font-size: 24px;
    color: #ccc;
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 48px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 0 30px #ff004081;
}

.section p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    text-align: center;
    color: #ccc;
    margin-bottom: 20px;
}

.linktree-btn {
    background: #ff0040;
    border: 2px solid;
    border-color:#ff0040;
    background-color:transparent;
    border-radius:32px;
    color: white;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 30px;
}

/* Footer */
footer {
    background: #000;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.mini-logo {
    width: 80px;
    height: 20px;
    filter: invert(1) opacity(50%);
    display: flex;
    align-items: center;
}

.copyright {
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hide language selector on mobile */
    .language-selector {
        display: none;
    }
    
    /* Mobile Navigation */
    nav {
        padding: 0 10px;
    }
    
    nav ul {
        padding: 15px 0;
        gap: 5px;
    }
    
    nav li {
        margin: 8px 15px;
    }
    
    nav a {
        font-size: 14px;
        padding: 8px 12px;
        border-radius: 32px;
        transition: all 0.3s ease;
    }
    
    /* Adjust logo for mobile */
    .logo {
        max-width: 280px;
    }
    
    .logo img {
        width: 100%;
        height: auto;
    }
    
    /* Mobile sections */
    .section {
        padding: 80px 20px;
        min-height: auto;
        padding-top: 100px;
    }
    
    .section h2 {
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .section p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    /* Mobile hero adjustments */
    .hero {
        padding: 0 20px;
    }
    
    /* Mobile circles */
    .circles {
        width: 300px;
        height: 300px;
    }
    
    .circle:nth-child(1) { width: 120px; height: 120px; }
    .circle:nth-child(2) { width: 200px; height: 200px; }
    .circle:nth-child(3) { width: 280px; height: 280px; }
    
    /* Mobile button */
    .linktree-btn {
        padding: 15px 30px;
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    /* Mobile footer */
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .mini-logo {
        width: 60px;
        height: 15px;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    /* Mobile music embeds */
    #music iframe {
        width: 90% !important;
        max-width: 400px;
        margin: 10px 0;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    nav a {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    nav li {
        margin: 6px 10px;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .section p {
        font-size: 15px;
    }
    
    .logo {
        max-width: 240px;
    }
    
    .linktree-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .lang-btn-single:hover {
        background: rgba(255, 0, 64, 0.4);
        transform: translateY(-2px);
    }
    
    nav a:hover {
        color: #ff0040;
        background: rgba(255, 0, 64, 0.1);
        text-shadow: 0 0 10px #ff0040;
        transform: translateY(-2px);
    }

    nav a:hover::before,
    nav a:hover::after {
        animation-duration: 0.2s;
    }

    nav a:hover::after,
    nav a.active::after {
        width: 80%;
    }
    
    .linktree-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(255, 0, 64, 0.5);
    }
}

/* Hide default cursor only on devices with mouse */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: rgba(255, 0, 64, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    animation: cursor-pulse 2s infinite ease-in-out;
    display: none;
}

/* Only show custom cursor on devices with mouse */
@media (hover: hover) and (pointer: fine) {
    .custom-cursor {
        display: block;
    }
}

@keyframes cursor-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(255, 0, 64, 0.8);
    }
}

.custom-cursor.hover {
    background: rgba(255, 0, 64, 0.5);
    transform: translate(-50%, -50%) scale(1.5);
    animation: cursor-pulse-fast 0.5s infinite ease-in-out;
}


/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    margin: 40px 0;
}

.album-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 0, 64, 0.2);
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.album-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.album-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.album-year {
    font-size: 14px;
    color: #ccc;
}

/* Hover effects with red shadow like your button */
.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.5);
    border-color: rgba(255, 0, 64, 0.6);
}

.album-item:hover .album-cover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.album-item:hover .album-info {
    transform: translateY(0);
}

/* Placeholder for missing covers */
.album-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.2), rgba(255, 0, 64, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 0, 64, 0.8);
    border: 2px dashed rgba(255, 0, 64, 0.4);
    text-align: center;
}

/* Responsive adjustments for album grid */
@media (max-width: 768px) {
    .album-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .album-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}