@import url("variables.css");

/* ========================================== GLOBAL TRANSITIONS ========================================== */
* {
    transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

/* ========================================== FADE REVEAL (JS adds .visible) ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

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

/* ========================================== LEFT / RIGHT REVEALS ========================================== */
.reveal-left {
    opacity: 0;
    transform: translateX(-70px);
    transition: opacity .9s ease, transform .9s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: none;
}

.reveal-right {
    opacity: 0;
    transform: translateX(70px);
    transition: opacity .9s ease, transform .9s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: none;
}

/* ========================================== HERO TITLE ========================================== */
.hero h1 {
    animation: heroTitle 1.4s ease both;
}

.hero p {
    animation: heroFade 1.8s ease both;
}

.cta {
    animation: heroFade 2.1s ease both;
}

@keyframes heroTitle {
    from {
        opacity: 0;
        transform: translateY(60px) scale(.94);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ========================================== KEN BURNS HERO ========================================== */
.hero {
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    transform: scale(1);
    animation: kenburns 18s ease-in-out infinite alternate;
    z-index: -2;
}

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

    to {
        transform: scale(1.08) translateY(-20px);
    }
}

/* ========================================== BUTTON GLOW ========================================== */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    left: -150%;
    top: 0;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
    transition: .8s;
}

.btn:hover::before {
    left: 130%;
}

/* ========================================== CARD LIFT ========================================== */
.card {
    transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover {
    transform: translateY(-8px);
}

/* ========================================== IMAGE ZOOM ========================================== */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform .7s ease, filter .7s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* ========================================== SOCIAL ICONS ========================================== */
.socials a {
    transition: transform .3s ease, background .3s ease;
}

.socials a:hover {
    transform: translateY(-6px) rotate(6deg);
}

/* ========================================== NAV UNDERLINE ========================================== */
.nav-menu a::after {
    transition: transform .3s ease;
}

/* ========================================== FLOATING SCROLL INDICATOR ========================================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2.5s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 14px);
    }
}

/* ========================================== GLOW ON HOVER ========================================== */
.release:hover,
.press-card:hover,
.gig:hover {
    box-shadow: 0 0 0 1px rgba(255, 212, 0, .3), 0 25px 60px rgba(0, 0, 0, .45);
}

/* ========================================== FADE IMAGES ========================================== */
img {
    animation: imageFade .9s ease;
}

@keyframes imageFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================== GRAIN OVERLAY ========================================== */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .04;
    z-index: 9999;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 6px 6px;
}

/* ========================================== SECTION TRANSITIONS ========================================== */
section {
    transition: background-color .5s ease;
}

/* ========================================== REDUCED MOTION ========================================== */
@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}