/* =========================
   PREMIUM EFFECTS & ANIMATIONS
   Ultra-Modern Design System
   ========================= */

/* Premium Color Palette - MAROON THEME */
:root {
    --gradient-primary: linear-gradient(135deg, #8B1538 0%, #5D0E29 100%);
    --gradient-secondary: linear-gradient(135deg, #C41E3A 0%, #8B1538 100%);
    --gradient-success: linear-gradient(135deg, #A0153E 0%, #5D0E29 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #8B1538 100%);
    --gradient-fire: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    --gradient-ocean: linear-gradient(135deg, #B76E79 0%, #8B1538 100%);
    --gradient-sunset: linear-gradient(135deg, #E0B0B0 0%, #A0153E 100%);
    --gradient-aurora: linear-gradient(135deg, #800020 0%, #3D0814 100%);
    --glow-primary: 0 0 20px rgba(139, 21, 56, 0.5);
    --glow-gold: 0 0 30px rgba(212, 175, 55, 0.6);
    --glow-fire: 0 0 25px rgba(220, 20, 60, 0.5);
}

/* =========================
   PREMIUM ANIMATED BUTTONS
   ========================= */

/* Gradient Animated Button */
.btn-premium {
    position: relative;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 21, 56, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 21, 56, 0.6);
}

.btn-premium:active {
    transform: translateY(-1px) scale(1.02);
}

/* Pulsing Glow Button */
.btn-glow {
    background: var(--gradient-fire);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(220, 20, 60, 0.5),
            0 0 40px rgba(220, 20, 60, 0.3),
            0 0 60px rgba(220, 20, 60, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(220, 20, 60, 0.7),
            0 0 60px rgba(220, 20, 60, 0.5),
            0 0 90px rgba(220, 20, 60, 0.3);
    }
}

.btn-glow:hover {
    transform: scale(1.1);
    animation: pulse-glow 1s infinite;
}

/* 3D Flip Button */
.btn-flip {
    perspective: 1000px;
    position: relative;
    padding: 15px 40px;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    background: var(--gradient-ocean);
    color: #333;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.btn-flip:hover {
    transform: rotateX(360deg);
}

/* Ripple Effect Button */
.btn-ripple {
    position: relative;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    background: var(--gradient-success);
    color: white;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* Shine Effect Button */
.btn-shine {
    position: relative;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    background: var(--gradient-gold);
    color: white;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 216, 155, 0.5);
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 70%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -200%;
    }

    100% {
        left: 200%;
    }
}

.btn-shine:hover {
    transform: scale(1.05);
}

/* Neon Glow Button */
.btn-neon {
    padding: 15px 40px;
    border: 3px solid #00f2fe;
    border-radius: 50px;
    background: transparent;
    color: #00f2fe;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    text-shadow: 0 0 10px #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5),
        inset 0 0 20px rgba(0, 242, 254, 0.2);
    transition: all 0.3s;
    animation: neon-pulse 1.5s infinite alternate;
}

@keyframes neon-pulse {
    from {
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.5),
            inset 0 0 20px rgba(0, 242, 254, 0.2);
    }

    to {
        box-shadow: 0 0 40px rgba(0, 242, 254, 0.8),
            inset 0 0 40px rgba(0, 242, 254, 0.4);
    }
}

.btn-neon:hover {
    background: #00f2fe;
    color: #000;
    text-shadow: none;
}

/* =========================
   ANIMATED BACKGROUNDS
   ========================= */

/* Gradient Animation Background - MAROON THEME */
.bg-animated-gradient {
    background: linear-gradient(-45deg,
            #8B1538,
            #C41E3A,
            #5D0E29,
            #800020);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Particles Background - MAROON THEME */
.bg-particles {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8B1538 0%, #5D0E29 100%);
}

.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite;
}

.bg-particles::before {
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.bg-particles::after {
    bottom: -150px;
    right: -150px;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Waves Background - MAROON THEME */
.bg-waves {
    position: relative;
    background: linear-gradient(135deg, #8B1538 0%, #5D0E29 100%);
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================
   PREMIUM CARD EFFECTS
   ========================= */

.card-premium {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.card-premium:hover::before {
    left: 100%;
}

.card-premium:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

/* Glassmorphism Card */
.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    transition: all 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* =========================
   FLOATING ANIMATIONS
   ========================= */

.float-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-slow {
    animation: floating 6s ease-in-out infinite;
}

.float-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* =========================
   GLOW EFFECTS
   ========================= */

.glow-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(102, 126, 234, 0.4);
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(102, 126, 234, 0.4);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(102, 126, 234, 0.6);
    }
}

.glow-box {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5),
        0 0 40px rgba(102, 126, 234, 0.3);
    animation: box-glow 2s ease-in-out infinite;
}

@keyframes box-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5),
            0 0 40px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.7),
            0 0 60px rgba(102, 126, 234, 0.5);
    }
}

/* =========================
   HOVER EFFECTS
   ========================= */

.hover-lift {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hover-tilt {
    transition: all 0.3s;
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg);
}

.hover-scale {
    transition: transform 0.3s;
}

.hover-scale:hover {
    transform: scale(1.1);
}

/* =========================
   LOADING ANIMATIONS
   ========================= */

.spinner-gradient {
    width: 50px;
    height: 50px;
    border: 5px solid transparent;
    border-top: 5px solid #667eea;
    border-right: 5px solid #764ba2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =========================
   TEXT EFFECTS
   ========================= */

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animated-underline:hover::after {
    width: 100%;
}

/* =========================
   PREMIUM SCROLLBAR
   ========================= */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-fire);
}

/* =========================
   RESPONSIVE UTILITIES
   ========================= */

@media (max-width: 768px) {

    .btn-premium,
    .btn-glow,
    .btn-flip,
    .btn-ripple,
    .btn-shine,
    .btn-neon {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .card-premium,
    .card-glass {
        padding: 20px;
    }
}