/* Custom styles beyond Tailwind */

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

/* Floating card animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}

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

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.3deg); }
}

.floating-card-1 {
    animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 4.5s ease-in-out infinite;
}

.floating-card-4 {
    animation: float4 5.5s ease-in-out infinite;
}

/* Staggered animation delays */
.floating-card-2 { animation-delay: -1s; }
.floating-card-3 { animation-delay: -2s; }
.floating-card-4 { animation-delay: -0.5s; }

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(250, 250, 245, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

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

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

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
}

/* Custom selection color */
::selection {
    background: #A7F3D0;
    color: #064E3B;
}

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

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

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Subtle gradient text */
.gradient-text {
    background: linear-gradient(135deg, #059669, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Ensure proper aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .floating-card-1 {
        width: 260px !important;
    }

    section {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .floating-card {
        display: none;
    }
}
