/* Custom styles to complement Tailwind */

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

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

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

::-webkit-scrollbar-thumb {
    background: #E07A5F;
    border: 2px solid #F4F1DE;
}

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

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Geometric pattern background */
.geometric-pattern {
    background-image: 
        linear-gradient(45deg, rgba(224, 122, 95, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(224, 122, 95, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(224, 122, 95, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(224, 122, 95, 0.1) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(3deg);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

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

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}

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

/* Pulse animation for CTA buttons */
@keyframes pulse-border {
    0%, 100% {
        box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
    }
    50% {
        box-shadow: 12px 12px 0px 0px rgba(0,0,0,1);
    }
}

.pulse-shadow:hover {
    animation: pulse-border 1s ease-in-out infinite;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

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

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

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card-1,
    .floating-card-2 {
        animation: none;
        transform: none;
    }
}
