/* ==========================================================================
   Marley Lux Website Styles
   Author: Cartez Augustus, Appdore, LLC
   ========================================================================== */

/* CSS Variables */
:root {
    --midnight-gold: #FFD700;
    --static-purple: #9D4EDD;
    --glitch-cyan: #00F5FF;
    --chrome-silver: #C0C0C0;
    --travel-amber: #FFBF00;
    --deep-black: #0a0a0a;
    --off-white: #f5f5f5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--deep-black);
    color: var(--off-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Hero content sits above video and overlay */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 8rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--midnight-gold), var(--static-purple), var(--glitch-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero .tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: rgba(245, 245, 245, 0.9);
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .ai-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.95);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .credit {
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.85);
    margin-top: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.5);
    animation: bounce 2s infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    font-weight: 300;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* Mobile optimization - hide video, show poster image only */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
    
    .hero {
        background-image: url('../images/bg-marley-nods.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* ==========================================================================
   Album Section Base Styles
   ========================================================================== */

.album-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
    transition: background 0.5s ease;
}

.album-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.album-image {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.album-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.album-info h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.album-theme {
    font-size: 1.1rem;
    color: rgba(245, 245, 245, 0.6);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.album-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(245, 245, 245, 0.8);
}

/* Tracklist Styles */
.tracklist {
    margin: 2rem 0;
}

.tracklist h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: rgba(245, 245, 245, 0.9);
}

.tracklist ol {
    list-style: none;
    counter-reset: track-counter;
}

.tracklist li {
    counter-increment: track-counter;
    padding: 0.5rem 0;
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.95rem;
}

.tracklist li::before {
    content: counter(track-counter, decimal-leading-zero) ". ";
    color: rgba(245, 245, 245, 0.4);
    margin-right: 0.5rem;
}

/* Streaming Links */
.streaming-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.streaming-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--off-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.streaming-btn i {
    font-size: 1.2rem;
}

.streaming-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* View Album Page Button - Gradient */
.view-album-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(157, 78, 221, 0.2));
    border-color: var(--midnight-gold);
}

.view-album-btn:hover {
    background: linear-gradient(135deg, var(--midnight-gold), var(--static-purple));
    border-color: var(--midnight-gold);
}

/* Spotify Button - Brand Color */
.spotify-btn:hover {
    background: #1DB954;
    border-color: #1DB954;
}

/* Apple Music Button - Brand Color */
.apple-btn:hover {
    background: #FA243C;
    border-color: #FA243C;
}

/* ==========================================================================
   Album-Specific Styles
   ========================================================================== */

/* Album 1: Midnight Gold */
.album-1 {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.album-1 h2 {
    color: var(--midnight-gold);
}

.album-1 .album-image {
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Album 2: Static at Midnight */
.album-2 {
    background: linear-gradient(180deg, #16213e 0%, #1f0954 100%);
}

.album-2 h2 {
    color: var(--static-purple);
}

.album-2 .album-image {
    border: 2px solid rgba(157, 78, 221, 0.3);
}

/* Album 3: Glitch After Midnight */
.album-3 {
    background: linear-gradient(180deg, #1f0954 0%, #0d1b2a 100%);
}

.album-3 h2 {
    color: var(--glitch-cyan);
}

.album-3 .album-image {
    border: 2px solid rgba(0, 245, 255, 0.3);
}

/* Album 4: The Chrome Garden */
.album-4 {
    background: linear-gradient(180deg, #0d1b2a 0%, #1b2838 100%);
}

.album-4 h2 {
    color: var(--chrome-silver);
}

.album-4 .album-image {
    border: 2px solid rgba(192, 192, 192, 0.3);
}

/* Album 5: Many Moods - Warm Shift */
.album-5 {
    background: linear-gradient(180deg, #1b2838 0%, #3d2f1f 100%);
}

.album-5 h2 {
    color: var(--travel-amber);
}

.album-5 .album-image {
    border: 2px solid rgba(255, 191, 0, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: rgba(245, 245, 245, 0.5);
    font-size: 0.9rem;
}

footer a {
    color: var(--midnight-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    color: var(--static-purple);
}

.contact-link {
    cursor: pointer;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .album-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Force album image to always appear first on mobile */
    .album-image {
        order: -1;
    }
    
    /* Mobile font size optimizations */
    .album-info h2 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .album-theme {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .album-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .tracklist h3 {
        font-size: 1.1rem;
    }
    
    .tracklist li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    /* Mobile streaming buttons */
    .streaming-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
    
    /* Mobile hero adjustments */
    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .hero .tagline {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }
    
    .hero .ai-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero .credit {
        font-size: 0.85rem;
    }
    
    .scroll-indicator {
        font-size: 0.8rem;
        bottom: 1.5rem;
    }
}