/* Enhanced styles for Olimp App: EventOps Manager website */

/* Global styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Enhanced gradient backgrounds - matching app screenshots */
.gradient-bg {
    background: linear-gradient(135deg, #FF4757 0%, #FF3742 50%, #FF4757 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

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

/* Enhanced hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Feature icon animations - matching app coral/red theme */
.feature-icon {
    background: linear-gradient(135deg, #FF4757 0%, #FF3742 100%);
    position: relative;
    overflow: hidden;
}

.feature-icon::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;
}

.feature-icon:hover::before {
    left: 100%;
}

/* Enhanced button animations - matching app coral/red theme */
.btn-primary {
    background: linear-gradient(135deg, #FF4757 0%, #FF3742 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF3742 0%, #FF2635 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Screenshot gallery animations */
.screenshot-container {
    perspective: 1000px;
}

.screenshot {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.screenshot:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.05);
}

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

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

/* Pulse animation for call-to-action buttons - coral/red theme */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Enhanced mobile responsiveness */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .screenshot {
        width: 100%;
        max-width: 280px;
    }

    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-mobile {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }
}

/* Tablet responsiveness */
@media (min-width: 641px) and (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .screenshot {
        width: 100%;
        max-width: 220px;
    }
}

/* Very narrow screens (like tall phones) */
@media (max-width: 480px) and (min-aspect-ratio: 1/2) {
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .btn-download {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Very wide screens */
@media (min-width: 1536px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .container-xl {
        max-width: 1400px;
    }
}

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

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

/* Loading animations - coral/red theme */
.loading-spinner {
    border: 3px solid rgba(255, 71, 87, 0.3);
    border-radius: 50%;
    border-top: 3px solid #FF4757;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Form enhancements - coral/red theme */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    ring-width: 2px;
    ring-color: #FF4757;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2);
}

.form-group label {
    transition: color 0.2s ease;
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label {
    color: #FF4757;
}

/* Success message animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    animation: slideInUp 0.5s ease;
}

/* File drop area enhancement - coral/red theme */
.file-drop-area {
    transition: all 0.3s ease;
}

.file-drop-area.drag-over {
    border-color: #FF4757;
    background-color: rgba(255, 71, 87, 0.05);
    transform: scale(1.02);
}

/* Privacy button enhancement */
#acceptButton {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#acceptButton:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .screenshot {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .card-hover {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    .card-hover:hover {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }
}

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

/* Focus indicators - coral/red theme */
.focus-visible:focus-visible {
    outline: 2px solid #FF4757;
    outline-offset: 2px;
}

/* Print styles - coral/red theme */
@media print {
    .no-print {
        display: none !important;
    }

    .gradient-bg {
        background: #FF4757 !important;
    }
}

/* Dark theme sections - matching app dashboard */
.dark-section {
    background: linear-gradient(135deg, #2d3436 0%, #1e1e1e 100%);
    color: #ffffff;
}

.dark-card {
    background: rgba(45, 52, 54, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.dark-card:hover {
    background: rgba(45, 52, 54, 1);
    border-color: rgba(255, 71, 87, 0.3);
}

/* Statistics cards style - matching app dashboard */
.stat-card {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(255, 71, 87, 0.5);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF4757;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}