@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Waiting+for+the+Sunrise&display=swap');

:root {
    --main-bg: #0a0a0a;
    --text-color: #f5f5f5;
    --accent-color: #ff3c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--main-bg);
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    z-index: 1000;
    background: url('/noise.png');
}


.background-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-image: url('/texture.jpg');
    filter: contrast(2);
}

.container {
    position: relative;
    z-index: 1;
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: contrast(2.);
}

@keyframes roughness {
    0% { transform: translate(-50%, -50%) rotate(0.5deg); }
    50% { transform: translate(-50%, -50%) rotate(-0.5deg); }
    100% { transform: translate(-50%, -50%) rotate(0.5deg); }
}

.hero-text {
    animation: roughness 4s infinite ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 10vw, 6rem);
    font-family: 'Waiting for the Sunrise', cursive;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    mix-blend-mode: difference;
}

.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.handwritten {
    /* font-family: 'Covered By Your Grace', cursive; */
    font-size: 1.5rem;
    transform: rotate(-2deg);
    margin: 2rem 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    transform: rotate(var(--rotation));
    --rotation: 0deg;
}

.image-container:nth-child(odd) {
    --rotation: 2deg;
}

.image-container:nth-child(even) {
    --rotation: -2deg;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.text-block {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    position: relative;
}

.glitch-text {
    animation: glitch 4s infinite;
    display: inline-block;
}

@keyframes glitch {
    0% { transform: skew(0deg); }
    20% { transform: skew(2deg); }
    40% { transform: skew(-2deg); }
    60% { transform: skew(1deg); }
    80% { transform: skew(-1deg); }
    100% { transform: skew(0deg); }
}

@media (max-width: 768px) {
    .hero-text {
        font-size: 3rem;
    }
    
    .content {
        padding: 1rem;
    }
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.social-link img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.social-link:hover img {
    opacity: 1;
}

.social-link img:not([alt="Bandcamp"]) {
    filter: brightness(0) invert(1);
}

.sound-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#toggleSound {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 8px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

#toggleSound:hover {
    background: rgba(20, 20, 20, 0.8);
    transform: scale(1.05);
}

.sound-icon {
    font-size: 1.2em;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.5; transform: scale(1); }
}

/* When sound is active */
#toggleSound.active .sound-icon {
    animation: wave 0.5s infinite;
}

@keyframes wave {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

/* Media query for mobile */
@media (max-width: 768px) {
    .sound-control {
        bottom: 10px;
        right: 10px;
    }
    
    #toggleSound {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

.booking-link {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.booking-text {
    color: inherit;
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.booking-text:hover {
    opacity: 1;
}

.image-layout {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
    padding: 0 2rem;
}

.portrait-background {
    position: relative;
    opacity: 0.9;
    filter: contrast(1.1);
    transform: translateX(2rem);
}

.portrait-background img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.album-art {
    position: relative;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.album-art img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.album-art:hover img {
    transform: scale(1.02);
}

.album-info {
    margin-top: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.release-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.presave-button, .listen-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.presave-button:hover, .listen-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.listen-button {
    background: rgba(255, 60, 60, 0.1);
    border-color: var(--accent-color);
}

@media (max-width: 968px) {
    .image-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portrait-background {
        opacity: 1.0;
        filter: contrast(1.1) brightness(0.95);
        display: none; /* Hide portrait on mobile */
    }
    
    .album-art {
        margin: 0 auto;
    }
}