:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-lime: #ccff00;
    --bg-dark: #050505;
    --bg-panel: #111111;
    --text-main: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; } /* TÄRKEÄ: Estää sivun heilumisen */
body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-dark);
    /* Cyberpunk grid-tausta */
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden; /* Varmistus */
    width: 100%;
}

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1rem 2rem; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    background: transparent;
    clip-path: none;
}

nav::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 98% 100%, 2% 100%, 0 85%);
    z-index: -1;
}
.logo {
    z-index: 1101; /* Varmistetaan että logo on valikon päällä */
    display: flex;
    align-items: center;
}
.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}
.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links a {
    color: white; text-decoration: none; font-size: 18px;
    font-weight: 700; font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase; letter-spacing: 1px; position: relative;
    transition: all 0.3s;
}
.nav-links a:hover { 
    color: var(--neon-pink); 
    text-shadow: 0 0 8px var(--neon-pink);
}

/* Hamburger */
.hamburger { display: none; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 1100; }
.hamburger span {
    display: block; position: absolute; height: 3px; width: 100%;
    background: var(--neon-cyan); border-radius: 0; transition: .25s ease-in-out;
    box-shadow: 0 0 5px var(--neon-cyan);
}
.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.active span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.hamburger.active span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; 
        top: 0; 
        right: 0; /* Kiinnitetään oikeaan reunaan */
        width: 100%; 
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        border-left: 2px solid var(--neon-pink);
        flex-direction: column; 
        justify-content: center;
        align-items: center; 
        gap: 2rem; 
        transition: transform 0.4s ease-in-out; /* Käytetään transformia */
        transform: translateX(100%); /* Siirretään sivuun ilman layout-muutoksia */
        z-index: 1000;
    }
    .nav-links.active { 
        transform: translateX(0); /* Tuodaan näkyviin */
        box-shadow: -10px 0 30px rgba(255, 0, 255, 0.2);
    }
    .nav-links a { font-size: 2rem; }
}

/* --- SECTIONS --- */
/* Yleinen section-tyyli: Laatikkomainen, leijuva paneeli */
section { 
    padding: 4rem 2rem; 
    position: relative; 
    width: 90%; 
    max-width: 1200px;
    margin: 4rem auto; /* Keskittää laatikot ja tekee väliä */
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.1);
    /* Sci-fi kulmat */
    clip-path: polygon(
        20px 0, 100% 0, 
        100% calc(100% - 20px), calc(100% - 20px) 100%, 
        0 100%, 0 20px
    );
}

/* Eri tyylit eri osioille (väriteemat) */
.section-light { 
    border-left: 4px solid var(--neon-cyan);
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.3));
}
.section-dark { 
    border-left: 4px solid var(--neon-pink);
    filter: drop-shadow(0 0 5px rgba(255, 0, 255, 0.3));
}
.section-accent { 
    border-left: 4px solid var(--neon-lime);
    filter: drop-shadow(0 0 5px rgba(204, 255, 0, 0.3));
}

.section-content { max-width: 1200px; margin: 0 auto; }
section[id] { scroll-margin-top: 80px; }

h2 { font-family: 'Bebas Neue', sans-serif; font-size: 4rem; margin-bottom: 3rem; text-align: center; letter-spacing: 3px; text-transform: uppercase; }
.section-dark h2 { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }
.section-light h2 { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
.section-accent h2 { color: var(--neon-lime); text-shadow: 0 0 10px var(--neon-lime); }

.section-dark h3 { color: var(--neon-pink); }
.section-light h3 { color: var(--neon-cyan); }

/* --- HERO & SLIDER --- */
/* Hero on poikkeus: se on täysleveä */
.hero {
    width: 100%; margin: 0; max-width: none;
    height: 100vh; background: #000; display: flex; align-items: center;
    justify-content: center; text-align: center; position: relative;
    /* Aggressiivisempi leikkaus alareunassa */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    border: none; filter: none;
    z-index: 20; padding-top: 0; color: white; overflow: hidden;
    isolation: isolate; /* Korjaa Firefoxin pinoamisongelmat paremmin */
}
/* Scanline-efekti heron päälle */
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 5; pointer-events: none;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem, 15vw, 10rem);
    line-height: 0.9; color: white; 
    text-shadow: 2px 2px 0px var(--neon-pink), -2px -2px 0px var(--neon-cyan);
    position: relative; z-index: 10; pointer-events: none;
}
.slider-container { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; 
    overflow: hidden; /* TÄRKEÄ: Estää slider-strippien ylivuodon */
}
.slider-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; /* filter: brightness(0.5) contrast(1.2); */ z-index: 0;
    clip-path: polygon(0% 0%, 0% 0%, -20% 100%, -20% 100%);
    object-position: center top;
}
.slider-image.active { z-index: 1; clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
.slider-image.next { z-index: 2; animation: revealImage 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes revealImage { to { clip-path: polygon(0% 0%, 150% 0%, 130% 100%, -20% 100%); } }

.strips-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; }
.white-strip {
    position: absolute; top: -20%; height: 140%; width: 10%;
    background: rgba(0, 243, 255, 0.2); transform: skewX(-20deg); left: -50%;
    box-shadow: 0 0 15px var(--neon-cyan); will-change: left; /* backdrop-filter poistettu Firefox-bugin takia */
}
.strip-moving { left: 120% !important; transition: left 1.5s cubic-bezier(0.4, 0.0, 0.2, 1); }

/* --- VIDEO --- */
.responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0; overflow: hidden; 
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1); background: #000;
}
.responsive-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- COMPONENTS --- */
.shop-btn {
    display: inline-block; padding: 1.5rem 4rem; 
    background: transparent; color: var(--neon-lime);
    border: 2px solid var(--neon-lime);
    text-decoration: none; font-size: 1.5rem; font-family: 'Rajdhani', sans-serif;
    font-weight: 800; 
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: all 0.3s;
    text-shadow: 0 0 5px var(--neon-lime);
    box-shadow: inset 0 0 10px rgba(204, 255, 0, 0.2);
}
.shop-btn span { display: block; }
.shop-btn:hover { 
    background: var(--neon-lime); color: black;
    box-shadow: 0 0 20px var(--neon-lime);
    text-shadow: none;
}

.instagram-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.insta-post { 
    aspect-ratio: 1; background: #222; 
    border: 1px solid var(--neon-pink);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    display: flex; align-items: center; justify-content: center; color: white; transition: transform 0.3s; 
}
.insta-post:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(255, 0, 255, 0.3); }

.gig-item { 
    background: rgba(255,255,255,0.03); padding: 2rem; margin: 1rem 0; 
    border-left: 4px solid var(--neon-pink); 
    border-right: 1px solid rgba(255,0,255,0.3);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 98% 100%, 0 100%);
    transition: all 0.3s; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; 
}
.gig-item:hover { background: rgba(255, 0, 255, 0.1); box-shadow: 0 0 15px rgba(255, 0, 255, 0.1); }
.gig-date { color: var(--neon-pink); font-weight: 700; font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; text-shadow: 0 0 5px var(--neon-pink); }
.gig-venue { font-size: 2rem; font-weight: 700; font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }

.gig-link {
    display: inline-block;
    color: var(--neon-cyan); text-decoration: none;
    font-family: 'Rajdhani', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.2rem;
    transition: color 0.3s;
    border: 1px solid var(--neon-cyan); padding: 0.5rem 1rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.gig-link:hover { background: var(--neon-cyan); color: black; box-shadow: 0 0 10px var(--neon-cyan); }

footer { 
    text-align: center; padding: 4rem 2rem; 
    background: #000; color: white; position: relative; z-index: 1; 
    border-top: 1px solid var(--neon-cyan);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    h2 { font-size: 2.5rem; }
    section { width: 95%; padding: 3rem 1.5rem; margin: 2rem auto; }
    .hero { clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%); }
}