/* Custom styles for Russaw Renaissance at Riverdale */

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

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

::-webkit-scrollbar-track {
    background: #0f1f3d;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #86efac;
}

/* Selection color */
::selection {
    background: #4ade80;
    color: #0f1f3d;
}

/* Animation for scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Card hover effects */
.group:hover .group-hover\\:bg-mint-500 {
    background-color: #22c55e;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #4ade80 0%, #86efac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shadow utilities */
.shadow-midnight-900\/5 {
    box-shadow: 0 4px 20px rgba(15, 31, 61, 0.05);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Button hover lift effect */
button,
a {
    transition: all 0.2s ease;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.3s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.02);
}

/* Pulse animation for dot */
@keyframes pulse-custom {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Loading state for button */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 1.75rem;
    }
    
    .font-serif.text-5xl {
        font-size: 2.25rem;
    }
}
