/* ==========================================
   AMO MUSIC - ANIMATION STYLES
   ========================================== */

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Base Section Animations */
.fade-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-section.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

/* Slide In Right Animation */
.slide-in-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.fade-in-active {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   GLITCH TEXT EFFECT
   ========================================== */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text.glitch-active::before {
    animation: glitch-top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    color: #9db89d;
    z-index: -1;
}

.glitch-text.glitch-active::after {
    animation: glitch-bottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    color: #566c76;
    z-index: -2;
}

@keyframes glitch-top {
    0% {
        transform: translate(0);
        opacity: 0;
    }
    20% {
        transform: translate(-2px, 2px);
        opacity: 1;
    }
    40% {
        transform: translate(-2px, -2px);
        opacity: 1;
    }
    60% {
        transform: translate(2px, 2px);
        opacity: 1;
    }
    80% {
        transform: translate(2px, -2px);
        opacity: 1;
    }
    100% {
        transform: translate(0);
        opacity: 0;
    }
}

@keyframes glitch-bottom {
    0% {
        transform: translate(0);
        opacity: 0;
    }
    20% {
        transform: translate(3px, 3px);
        opacity: 1;
    }
    40% {
        transform: translate(3px, -3px);
        opacity: 1;
    }
    60% {
        transform: translate(-3px, 3px);
        opacity: 1;
    }
    80% {
        transform: translate(-3px, -3px);
        opacity: 1;
    }
    100% {
        transform: translate(0);
        opacity: 0;
    }
}

/* ==========================================
   PULSE ANIMATIONS - DISABLED (Static after load)
   ========================================== */
.pulse-text {
    /* No animation - stays in place */
    transform: scale(1);
    opacity: 1;
}

.pulse-arrow {
    /* No animation - stays in place */
    transform: translateX(0);
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes pulse-arrow {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(10px);
        opacity: 0.7;
    }
}

/* ==========================================
   FLOATING ANIMATION - ONE-TIME ONLY
   ========================================== */
.float-image {
    animation: float-once 2s ease-out forwards;
}

@keyframes float-once {
    0% {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ==========================================
   WAVE TEXT ANIMATION
   ========================================== */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ==========================================
   ROTATE ANIMATION - DISABLED
   ========================================== */
.rotate-text {
    /* No rotation - stays in place */
    transform: rotate(0deg);
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   HOVER EFFECTS
   ========================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

.hover-3d {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-3d:hover {
    transform: scale(1.05) translateZ(10px);
    box-shadow: 0 10px 40px rgba(157, 184, 157, 0.3);
}

/* ==========================================
   RIPPLE EFFECT
   ========================================== */
.social-link {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(157, 184, 157, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================
   NAVBAR SCROLL EFFECT
   ========================================== */
.navbar {
    transition: all 0.3s ease;
}

.navbar-scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(26, 29, 26, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   TEXT ANIMATIONS
   ========================================== */
.animate-text {
    animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {
    0%, 100% {
        text-shadow: 0 0 10px rgba(157, 184, 157, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(157, 184, 157, 0.6);
    }
}

/* ==========================================
   PARALLAX EFFECTS
   ========================================== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================
   SECTION TRANSITIONS
   ========================================== */
section {
    position: relative;
    transition: all 0.5s ease;
}

.section-active {
    animation: section-reveal 1s ease-out;
}

@keyframes section-reveal {
    from {
        opacity: 0.8;
        filter: blur(5px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* ==========================================
   AUDIO WAVE VISUALIZATION
   ========================================== */
.audio-wave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    pointer-events: none;
    z-index: 5;
    opacity: 0.1;
}

.wave-bar {
    width: 4px;
    background: linear-gradient(to top, #9db89d, #6b8e6b);
    border-radius: 2px;
    animation: wave-pulse 1s ease-in-out infinite;
}

@keyframes wave-pulse {
    0%, 100% {
        height: 10px;
    }
    50% {
        height: 60px;
    }
}

/* ==========================================
   GRADIENT ANIMATIONS
   ========================================== */
.hero-content,
.bookings-section,
.newsletter-section {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================
   IMAGE ZOOM ON HOVER
   ========================================== */
.live-left img,
.studio-left img,
.mixing-left img,
.coming-soon-left img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.live-container:hover .live-left img,
.studio-container:hover .studio-left img,
.mixing-container:hover .mixing-left img,
.coming-soon-container:hover .coming-soon-left img {
    transform: scale(1.05);
}

/* ==========================================
   SMOOTH TRANSITIONS
   ========================================== */
* {
    scroll-behavior: smooth;
}

/* ==========================================
   LOADING STATES
   ========================================== */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* ==========================================
   STAGGER ANIMATIONS FOR LISTS
   ========================================== */
.nav-menu li {
    animation: fade-in-down 0.6s ease-out backwards;
}

.nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.nav-menu li:nth-child(4) { animation-delay: 0.4s; }

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   MAGNETIC BUTTON EFFECT
   ========================================== */
.order-button,
.newsletter-button {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================
   BLUR ENTRANCE FOR IMAGES
   ========================================== */
img {
    animation: blur-in 0.8s ease-out;
}

@keyframes blur-in {
    from {
        filter: blur(10px);
        opacity: 0;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* ==========================================
   TWINKLING STARS FOR O.O.O SECTION ✨
   ========================================== */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* Apply twinkling to the section starfield */
.out-now-section::before {
    animation: twinkle-field 4s ease-in-out infinite;
}

@keyframes twinkle-field {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.7;
    }
}

/* ==========================================
   SHOOTING STAR ANIMATION FOR O.O.O SECTION
   ========================================== */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #e8dcc8;
    border-radius: 50%;
    box-shadow: 0 0 4px 2px rgba(232, 220, 200, 0.8);
    z-index: 10;
    pointer-events: none;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, rgba(232, 220, 200, 0.8), transparent);
    transform: translateX(3px) translateY(-1px);
}

@keyframes shooting {
    0% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-300px, 300px) rotate(-45deg);
        opacity: 0;
    }
}

.shooting-star.active {
    animation: shooting 1.5s ease-out forwards;
}

/* Subtle hero shooting stars */
.hero-shooting-star {
    opacity: 0.6;
}

.hero-shooting-star::before {
    width: 60px;
    background: linear-gradient(to right, rgba(157, 184, 157, 0.6), transparent);
}

/* ==========================================
   RESPONSIVE ANIMATIONS
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    #particles-canvas {
        opacity: 0.2;
    }
    
    .parallax-layer {
        transform: none !important;
    }
    
    .glitch-text::before,
    .glitch-text::after {
        display: none;
    }
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */
.parallax-layer,
.fade-section,
.hover-lift,
.hover-3d {
    will-change: transform, opacity;
}
