/* ===================================
   CLEPER - Custom Styles
   =================================== */

/* Global Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

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

/* Video Container with Glow Effect */
.video-glow-container {
    position: relative;
}

.video-glow-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, #FF007A, #2D2E83);
    border-radius: 32px;
    opacity: 0.15;
    filter: blur(30px);
    transition: all 0.4s ease;
    z-index: -1;
}

.video-glow-container:hover::before {
    opacity: 0.3;
    filter: blur(40px);
    inset: -30px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF007A;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2D2E83;
}

/* Modal Animation */
#loginModal.show {
    display: flex !important;
}

#loginModal.show #modalContent {
    animation: modalSlideIn 0.4s ease-out forwards;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2D2E83, #FF007A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Ripple Effect */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after {
    width: 300px;
    height: 300px;
}

/* Header Scroll Effect */
#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

/* Hover Effects for Cards */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(45, 46, 131, 0.15);
}

/* Pulsing Animation for CTAs */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 122, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 0, 122, 0);
    }
}

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

/* Grid Pattern Background */
.grid-background {
    background-image: 
        linear-gradient(rgba(45, 46, 131, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 46, 131, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(45, 46, 131, 0.1);
    border-top: 3px solid #FF007A;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Video Container */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Mobile Menu Animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 500px;
}

/* Intersection Observer Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #FF007A;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header, footer, #loginModal {
        display: none;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if needed */
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    button {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}