/* Custom styles for Retrography */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5b21b6;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f3e8ff;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll reveal animations - progressive enhancement only */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Hero stat cards floating animation */
.hero-card {
    animation: float 6s ease-in-out infinite;
}

.hero-card:nth-child(2) {
    animation-delay: -1.5s;
}

.hero-card:nth-child(3) {
    animation-delay: -3s;
}

.hero-card:nth-child(4) {
    animation-delay: -4.5s;
}

/* Mobile menu animations */
.mobile-menu-open .mobile-link {
    animation: fadeInUp 0.5s ease forwards;
}

.mobile-menu-open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-open .mobile-link:nth-child(5) { animation-delay: 0.5s; }

/* Hamburger menu animation */
#menu-toggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active #bar2 {
    opacity: 0;
}

#menu-toggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid rgba(212, 168, 67, 0.5);
    outline-offset: 2px;
}

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

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-plum-900\/50 {
        background-color: rgba(26, 10, 46, 0.9) !important;
    }

    .border-plum-700\/30 {
        border-color: rgba(91, 33, 182, 0.6) !important;
    }
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    #mobile-menu {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .bg-plum-950,
    .bg-plum-900 {
        background: white !important;
    }

    .text-white,
    .text-plum-100,
    .text-plum-200 {
        color: black !important;
    }
}
