:root {
    --primary: #6705A5; /* viola */
    --bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Syne', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: white;
    overflow-x: hidden;
}

h1, h2, .logo {
    font-family: var(--font-display);
}

/* --- ANIMAZIONI GLOBALI --- */

@keyframes liquidPurpleFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes glitchEntry {
    0% { opacity: 0; transform: scale(1.1); clip-path: inset(0 0 0 0); }
    10% { opacity: 1; clip-path: inset(10% 0 85% 0); transform: translate(-10px, 5px) skew(10deg); filter: hue-rotate(90deg) contrast(200%); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(10px, -5px) skew(-10deg); filter: hue-rotate(-90deg); }
    30% { clip-path: inset(40% 0 40% 0); transform: translate(-5px, 0); filter: invert(1); }
    40% { clip-path: inset(0 0 0 0); transform: translate(5px, 5px); filter: none; }
    50% { clip-path: inset(20% 0 60% 0); transform: translate(-5px, 0); }
    60% { opacity: 1; clip-path: inset(0 0 0 0); transform: translate(0, 0); }
    70% { opacity: 0.5; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); filter: none; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes intenseGlowPulse {
    0% { box-shadow: 0 0 40px var(--primary), 0 0 80px var(--primary); }
    50% { box-shadow: 0 0 60px var(--primary), 0 0 120px 30px var(--primary), 0 0 15px #fff; }
    100% { box-shadow: 0 0 40px var(--primary), 0 0 80px var(--primary); }
}

@keyframes modalEntrance {
    0% { opacity: 0; transform: translate(-50%, -30%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes liquidFlowSmooth {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden; /* FONDAMENTALE per non vedere i bordi sfumati */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

/* Immagine sfocata di sfondo */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), var(--bg)), url('../assets/hero-artist.jpg');
    background-size: cover;
    background-position: center center;
    filter: blur(10px);
    transform: scale(1.1);
    z-index: -1;
}

.hero-content {
    transform: translateY(-50px);
    position: relative;
    z-index: 2;
}

/* Immagine Overlay (Logo/Scritta suegg) */
.hero-png-overlay {
    display: block;
    margin: 50px auto 0 auto; /* Margine 0 sotto per attaccare le icone */
    width: 100%;
    max-width: 500px;
    height: auto;
    z-index: 10;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(128, 0, 128, 0.5));
    opacity: 0;
    animation: glitchEntry 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.5s;
}

/* --- SOCIAL HERO (Sotto il logo, Sopra il testo) --- */
.hero-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* 5px sopra (vicino al logo), 80px sotto (lontano dal testo) */
    margin: 5px auto 80px auto; 
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.3s;
}

.hero-socials a {
    display: block;
    width: 30px;
    height: 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
}

.hero-socials svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    transition: all 0.3s ease;
}

.hero-socials a:hover {
    transform: scale(1.2) translateY(-3px);
}

.hero-socials a:hover svg {
    fill: white;
    filter: drop-shadow(0 0 10px var(--primary)) drop-shadow(0 0 20px var(--primary));
}

/* --- TESTI HERO CON EFFETTO LIQUIDO VIOLA --- */

/* H1: NUOVO SINGOLO FUORI ORA */
.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: 700;

    /* Gradiente Liquido */
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #e0c0ff 25%, 
        #6705A5 50%, 
        #e0c0ff 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(103, 5, 165, 0.4);

    /* Animazione combinata: Entrata + Flusso */
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, 
               liquidFlowSmooth 3s linear infinite;
    
    opacity: 0; 
}

/* P: disponibile su tutte le piattaforme */
.hero-content p {
    font-size: 1rem;
    letter-spacing: 1px;
    
    /* Stesso gradiente perfetto */
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #debdfc 25%,
        #6705A5 50%, 
        #debdfc 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(103, 5, 165, 0.15);

    /* Flusso continuo più lento (4s) */
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               liquidFlowSmooth 4s linear infinite;

    opacity: 0;
    /* Delay solo per l'entrata (gestito dall'animazione fadeInUp, ma qui ritardiamo l'inizio visivo) */
    animation-delay: 0.2s; /* Piccolo ritardo globale */
}


/* --- SEZIONE RELEASE (Pikkante + Card) --- */
.release {
    padding: 0 5% 150px 5%; /* Padding abbondante sotto per non tagliare la luce */
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: -25vh; /* Margine negativo per sovrapporsi alla Hero */
}

/* Titolo "pikkante" */
.release h2 {
    font-size: 3rem;
    margin-top: 180px; /* Spazio enorme sopra per distanziare dal testo hero */
    margin-bottom: 40px; 
    text-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary), 0 0 5px white;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.6s;
}

.preview-card {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    background-color: var(--card-bg);
    box-shadow: 0 0 60px var(--primary), 0 0 20px #fff;
    
    /* Animazione entrata */
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.8s;
}

.preview-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 80px var(--primary), 0 0 40px #fff;
}

.play-overlay {
    position: absolute; top:0; left:0; width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s;
    border-radius: 15px;
}
.preview-card:hover .play-overlay { opacity: 1; }

.cover-img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; border-radius: 15px;
}


/* --- MODAL (STANDARD) --- */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.95);
    backdrop-filter: blur(15px);
}
.modal-content {
    margin: auto; display: block; width: 75%; max-width: 340px;
    text-align: center; position: absolute; top: 50%; left: 50%;
    animation: modalEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
video { width: 100%; border-radius: 10px; animation: intenseGlowPulse 2s ease-in-out infinite; }

.store-links {
    margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.store-links a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 5px;
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;
    color: white; text-decoration: none; transition: all 0.3s ease;
}
.store-links a:hover {
    background: var(--primary); color: white; border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary); transform: translateY(-2px);
}

.close { position: absolute; top: -40px; right: 0; color: white; font-size: 30px; cursor: pointer; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg);
    position: relative;
    z-index: 10;
}
footer h3 {
    margin-bottom: 20px; letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1.0s;
}
footer p {
    margin: 10px 0; font-size: 0.95rem; color: #ccc;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1.2s;
}
footer a, 
footer a:visited, 
footer a:hover, 
footer a:active {
    color: var(--primary) !important; /* Forza il viola in ogni stato */
    text-decoration: none; /* Toglie la sottolineatura blu standard */
    opacity: 1; /* Assicura che sia ben visibile */
}

.copyright {
    margin-top: 50px !important; /* Forza lo spazio dai contatti */
    font-size: 0.75rem !important; /* Scritta piccola ed elegante */
    opacity: 0.4; /* Grigio scuro per non disturbare */
    letter-spacing: 1px;
    text-transform: uppercase;
}
