/* Custom styles and overrides */

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

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
    }
}

/* Floating animation for decorative elements */
.floating {
    animation: float 6s ease-in-out infinite;
}

/* Glow effect for important elements */
.glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #064e3b;
}

/* Image hover zoom effect */
img {
    transition: transform 0.3s ease;
}

/* Ensure proper spacing for fixed navbar */
body {
    padding-top: 0;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 4rem);
    }
}

/* Subtle pattern for sections */
.pattern-bg {
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 30px 30px;
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 20px 20px 0px #064e3b;
}

/* Button focus states for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

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

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

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-emerald-dark {
        background: white !important;
        color: black !important;
    }
    
    .text-cream {
        color: black !important;
    }
}
