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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* Back Button */
.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 1000;
    padding: 1rem 1.5rem;
    border: 2px solid #fff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.back-button:hover {
    background: #fff;
    color: #000;
    transform: translateX(-5px);
}

/* Image Cloud Sections */
.image-cloud {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 5% 5%;
    margin-bottom: 10vh; /* Small overlap so you can see next cloud */
}

.image-cloud:last-child {
    margin-bottom: 0;
    padding-bottom: 15vh;
}

/* Cloud Container - Where images float */
.cloud-container {
    position: relative;
    width: 100%;
    height: 90vh;
}

/* Individual Cloud Items */
.cloud-item {
    position: absolute;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
}

.cloud-item:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 100 !important;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.8));
}

.cloud-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid #fff;
}

/* Cloud Description Box - Appears on hover of ANY image in cloud */
.cloud-description {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 4px solid #000;
    padding: 3rem;
    z-index: 200;
    box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.3);
    color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Show description when hovering any item in the cloud */
.image-cloud:hover .cloud-description {
    opacity: 1;
}

.cloud-description h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid #000;
    padding-bottom: 1rem;
}

.cloud-description p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .back-button {
        top: 1rem;
        left: 1rem;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .image-cloud {
        min-height: auto;
        padding: 10% 5%;
        margin-bottom: 5vh;
    }
    
    .cloud-container {
        height: auto;
        min-height: 100vh;
    }
    
    .cloud-item {
        position: relative !important;
        width: 90% !important;
        max-width: 350px;
        margin: 2rem auto !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        transform: rotate(0deg) !important;
    }
    
    .cloud-description {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 3rem auto;
        padding: 2rem;
        opacity: 1;
        pointer-events: all;
    }
    
    .cloud-description h2 {
        font-size: 2rem;
    }
}

/* Subtle background gradient per cloud */
#cloud-bicycles {
    background: radial-gradient(circle at 30% 40%, rgba(80, 80, 100, 0.1) 0%, transparent 70%);
}

#cloud-guitars {
    background: radial-gradient(circle at 70% 50%, rgba(100, 80, 80, 0.1) 0%, transparent 70%);
}

#cloud-amplifiers {
    background: radial-gradient(circle at 50% 60%, rgba(80, 100, 80, 0.1) 0%, transparent 70%);
}

/* Grain texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}
