/* Custom styles and animations */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

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

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-text-color {
    color: #064e3b !important;
}

.nav-scrolled .nav-subtext-color {
    color: #059669 !important;
}

.nav-scrolled .nav-link-color {
    color: #374151 !important;
}

.nav-scrolled .nav-link-color:hover {
    color: #059669 !important;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #d1fae5;
    color: #064e3b;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[src] {
    opacity: 1;
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Input focus ring animation */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Print styles */
@media print {
    nav, .animate-float, .animate-float-delayed {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
