/* Custom styles for Pin Curls and Pomps */

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

/* Custom selection color */
::selection {
    background-color: #C9A961;
    color: #102a43;
}

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

/* Mobile menu styles */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Navbar transition */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(16, 42, 67, 0.1);
}

.navbar-scrolled .nav-link {
    color: #102a43 !important;
}

.navbar-scrolled .nav-logo-text {
    color: #102a43 !important;
}

.navbar-scrolled .nav-logo-sub {
    color: #627d98 !important;
}

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

/* Apply float animation to stat cards */
@media (min-width: 1024px) {
    .absolute.top-0.right-0 {
        animation: float 4s ease-in-out infinite;
    }
    
    .absolute.top-32.left-0 {
        animation: float 4s ease-in-out infinite 0.5s;
    }
    
    .absolute.bottom-16.right-8 {
        animation: float 4s ease-in-out infinite 1s;
    }
    
    .absolute.bottom-0.left-8 {
        animation: float 4s ease-in-out infinite 1.5s;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
    
    .absolute.top-0.right-0,
    .absolute.top-32.left-0,
    .absolute.bottom-16.right-8,
    .absolute.bottom-0.left-8 {
        animation: none;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #C9A961;
    outline-offset: 2px;
}

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

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

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

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