/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #db2777;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animation for loading */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.animate-pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Glass effect enhancement */
.glass {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-full {
        width: 100vw;
        max-width: 100vw;
    }
    
    /* Adjust video preview height on mobile */
    #previewVideo {
        max-height: 60vh;
    }
}

/* Desktop enhancements */
@media (min-width: 769px) {
    .hover-lift {
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .hover-lift:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 40px -10px rgba(236, 72, 153, 0.3);
    }
}

/* Button press effect */
button:active {
    transform: scale(0.98);
}

/* Input autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #1f2937 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Gradient text animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.animate-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }

/* Click ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.ripple:active::after {
    animation: ripple 0.6s ease-out;
}

/* Bounce animation for buttons */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hover-bounce:hover {
    animation: bounce 0.5s ease infinite;
}

/* Pulse glow animation */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.4); }
    50% { box-shadow: 0 0 40px rgba(236, 72, 153, 0.8); }
}

.pulse-glow {
    animation: pulse-glow 2s ease infinite;
}

/* Slide up animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* Bottom nav active state */
.bottom-nav-active {
    color: #ec4899 !important;
    position: relative;
}

.bottom-nav-active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ec4899;
    border-radius: 50%;
    box-shadow: 0 0 10px #ec4899;
}

/* Smooth scroll behavior enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Loading shimmer effect */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #1f2937 4%, #374151 25%, #1f2937 36%);
    background-size: 1000px 100%;
}

/* Tool card active state */
.tool-active {
    border-color: #ec4899 !important;
    background: rgba(236, 72, 153, 0.1) !important;
}

/* Responsive bottom padding for mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
}