/* Custom styles and animations */

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

/* Hero animations */
.reveal-hero {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s ease-out forwards;
}

.reveal-hero:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal-hero:nth-child(2) {
    animation-delay: 0.3s;
}

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

.reveal-hero:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.floating-card:nth-child(2) {
    animation-delay: 1s;
}

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

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

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

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

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu button animation */
#mobile-menu-btn.active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #line2 {
    opacity: 0;
}

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

/* Mobile links animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* Navbar scroll effect */
#navbar.scrolled {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(14, 63, 37, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-bottom-color: rgb(20, 83, 49) !important;
}

/* Button hover effect */
button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Image hover zoom effect */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}

/* Reduced motion preferences */
@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;
    }
}
