/* ============================================================
   HOY LA LIAMOS — Styles
   ============================================================ */

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

body {
    font-family: 'Inter', sans-serif;
    background: #0A0A0F;
    color: #fff;
    overflow-x: hidden;
}

/* --- NOISE TEXTURE --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- GRADIENT TEXT HELPERS --- */
.gradient-text {
    background: linear-gradient(to bottom, #ffffff, #ffffff, #a3a3a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-fade {
    background: linear-gradient(to bottom, #ffffff, #a3a3a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- RADIAL LINES (like logo) --- */
.radial-lines {
    background: repeating-conic-gradient(from 0deg,
            transparent 0deg 8deg,
            rgba(255, 214, 0, 0.06) 8deg 10deg);
}

/* --- SOUND WAVE BARS --- */
@keyframes soundWave {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 32px;
    }
}

.wave-bar {
    animation: soundWave ease-in-out infinite;
    animation-play-state: paused;
    background: linear-gradient(to top, #FF2D7B, #FFD600);
    border-radius: 999px;
    width: 3px;
    transition: opacity 0.3s ease;
}

body.sound-playing .wave-bar,
.wave-bar.playing {
    animation-play-state: running;
}

/* --- FLOATING ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-12px) rotate(1deg);
    }

    66% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-anim-2 {
    animation: float2 4s ease-in-out infinite;
}

/* --- PULSE RING --- */
@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.pulse-ring {
    animation: pulseRing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* --- GLOW PULSE --- */
@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* --- MARQUEE --- */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track {
    animation: marquee 20s linear infinite;
}

/* --- SPIN SLOW --- */
@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin-slow {
    animation: spinSlow 20s linear infinite;
}

/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- TOAST ANIMATIONS --- */
@keyframes toastIn {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }
}

.toast-enter {
    animation: toastIn 0.3s ease-out forwards;
}

.toast-exit {
    animation: toastOut 0.3s ease-in forwards;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0A0A0F;
}

::-webkit-scrollbar-thumb {
    background: #FF2D7B;
    border-radius: 999px;
}

body.no-scroll {
    overflow: hidden;
}

/* ============================================================
   AUDIO PLAYER
   ============================================================ */
.audio-player {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(18, 18, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    max-width: calc(100vw - 48px);
}

.audio-player:hover {
    border-color: rgba(255, 45, 123, 0.3);
}

.audio-player.expanded {
    max-width: calc(100vw - 32px);
}

@media (max-width: 640px) {
    .audio-player {
        bottom: 16px;
        left: 16px;
        padding: 10px 14px;
        gap: 8px;
    }

    .progress-track {
        width: 50px;
    }
}

.play-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #FF2D7B;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.play-btn:hover {
    background: #D4145A;
    transform: scale(1.05);
}

.play-btn:active {
    transform: scale(0.95);
}

.player-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
}

.player-wave .bar {
    width: 2px;
    background: linear-gradient(to top, #FF2D7B, #FFD600);
    border-radius: 999px;
    transition: height 0.1s ease;
}

.player-wave.paused .bar {
    height: 4px !important;
}

.sound-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.sound-toggle:hover {
    border-color: rgba(255, 45, 123, 0.4);
    color: #FF2D7B;
}

.sound-toggle.muted {
    opacity: 0.4;
}

.progress-track {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #FF2D7B, #FFD600);
    border-radius: 999px;
    width: 0%;
    transition: width 0.3s linear;
}

/* ============================================================
   VINYL SPIN (for the record in About section)
   ============================================================ */
@keyframes vinylSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   INSTAGRAM REELS CARDS & EMBEDS
   ============================================================ */
.instagram-reel-card {
    background: rgba(18, 18, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    width: 100%;
}

.instagram-reel-card:hover {
    border-color: rgba(255, 45, 123, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 45, 123, 0.15);
}

.reel-embed-wrapper {
    width: 100%;
    position: relative;
    background: #0A0A0F;
    overflow: hidden;
}

.instagram-reel-iframe {
    width: 100%;
    height: 640px;
    border: none;
    background: #0A0A0F;
    display: block;
}

@media (max-width: 640px) {
    .instagram-reel-iframe {
        height: 580px;
    }
}