/* RESET - Clears default browser spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE STYLES - The dark theme */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: none;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
    min-height: 100vh;
    overflow: hidden;
    height: 100vh;
}

/* Glitch layer pseudo-elements create RGB split + scanline effect */
.hero::before,
.hero::after{
    display: none;
}
.hero::before{
    transform: translate3d(-8px,0,0);
    filter: hue-rotate(-10deg) saturate(1.05) contrast(1.02);
    animation: glitch-anim 2.8s infinite linear alternate-reverse;
}
.hero::after{
    mix-blend-mode: multiply;
    transform: translate3d(8px,0,0);
    filter: hue-rotate(40deg) saturate(1.1) contrast(1.02) blur(0.2px);
    opacity: 0.6;
    animation: glitch-anim 3.6s infinite steps(4,end);
}

/* thin scanlines overlay for texture */
.hero .glitch-scanlines{
    display: none;
}

@keyframes glitch-anim{
    0% { clip-path: inset(0% 0% 0% 0%); transform: translate3d(-8px,0,0); }
    10% { clip-path: inset(10% 0% 60% 0%); transform: translate3d(6px,-2px,0); }
    20% { clip-path: inset(0% 0% 20% 0%); transform: translate3d(-4px,1px,0); }
    30% { clip-path: inset(20% 0% 10% 0%); transform: translate3d(8px,-4px,0); }
    45% { clip-path: inset(0% 0% 0% 0%); transform: translate3d(-6px,2px,0); }
    60% { clip-path: inset(5% 0% 45% 0%); transform: translate3d(4px,0,0); }
    80% { clip-path: inset(0% 0% 0% 0%); transform: translate3d(-8px,0,0); }
    100% { clip-path: inset(0% 0% 0% 0%); transform: translate3d(8px,0,0); }
}

/* ensure hero content is above glitch layers */
.hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: 90vw;
    width: 100%;
    margin: 0 auto;
    padding: 1.2rem 1rem;
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));
    margin-top: 5vh;
    /* REMOVED: Old dark rounded panel background that was blocking the video */
    /* was: background: rgba(10,10,10,0.60); border-radius: 24px; box-shadow: 0 4px 32px 0 rgba(0,0,0,0.22); */
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after, .hero .glitch-scanlines { animation: none !important; transform: none !important; clip-path: none !important; filter: none !important; opacity: 1 !important; }
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 0.7rem;
    line-height: 1.1;
    text-align: center;
}

.subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1.2rem;
    text-align: center;
}

/* BUTTONS - The 'Listen Now' button */
.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background-color: #ffffff;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

.cta-button:hover {
    background-color: #cccccc;
    transform: scale(1.07) rotate(-1deg);
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
}

/* MUSIC LINKS GRID */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.music-link {
    display: block;
    padding: 18px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border: 1px solid #333;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.music-link:hover {
    background: #333;
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 4px 18px 0 rgba(0,0,0,0.18);
}

/* ICONS - Colors for specific brands */
.fa-spotify { color: #1DB954; margin-right: 8px; }
.fa-apple { color: #ffffff; margin-right: 8px; }
.fa-soundcloud { color: #ff5500; margin-right: 8px; }

/* SOCIALS */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 2rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #888;
    transition: color 0.3s, transform 0.2s;
}

.social-icons a:hover {
    color: #ffffff;
    transform: scale(1.18) rotate(-3deg);
}

/* FOOTER */
footer {
    padding: 0.7rem 1.5rem 0.5rem 1.5rem;
    background: rgba(10,10,10,0.45);
    border-top: 1px solid #222;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 24px 0 rgba(0,0,0,0.18);
}

.email-link {
    display: inline-block;
    margin-top: 1rem;
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.1rem;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #444;
}

/* MOBILE FIXES */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.1rem; }
    .hero .hero-content { 
        padding: 1rem 0.75rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        margin-top: 2vh;
    }
    .container { padding: 1rem 0.75rem; }
}

/* Landscape mobile optimization */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .hero-refresh {
        padding: 1rem;
        min-height: 100vh;
    }
    
    .hero-center {
        gap: 1rem;
    }
    
    .hero-name {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

/* Reveal scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.995);
    transition: opacity 600ms cubic-bezier(.2,.9,.2,1), transform 600ms cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.slide-left { transform: translateX(-20px); }
.reveal.slide-left.visible { transform: translateX(0); }
.reveal.fade-scale { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.visible {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ==================== FEATURED RELEASE SECTION ==================== */
.featured-release {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(.2,.9,.2,1), transform 0.6s cubic-bezier(.2,.9,.2,1);
    max-width: 380px;
}

.featured-release.loaded {
    opacity: 1;
    transform: translateY(0);
}

.featured-release.error {
    display: none;
}

.featured-release-card {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-release-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.featured-release-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.featured-release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-release-card:hover .featured-release-cover img {
    transform: scale(1.05);
}

.featured-release-info {
    text-align: left;
}

.featured-release-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.featured-release-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.3;
}

.featured-release-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.featured-release-mood {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.featured-release-btn {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.featured-release-btn:hover {
    background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5);
}

.featured-release-btn:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .featured-release {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .featured-release-card {
        padding: 1rem;
    }
    
    .featured-release-info h2 {
        font-size: 1.1rem;
    }
}

/* Minimal mode compatibility */
.featured-release.minimal-hidden {
    display: none;
}
