/* Custom styles supplementing Tailwind */

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

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

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

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

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

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

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

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F5C518, #D4A017);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 4px 4px 0 0;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(107, 63, 107, 0.12);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(107, 63, 107, 0.08);
}

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding: 0.5rem 0;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    border-color: #8B5E8B !important;
    box-shadow: 0 0 0 3px rgba(139, 94, 139, 0.15) !important;
}

/* Subtle pattern overlay for hero */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(107, 63, 107, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

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

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

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

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

/* Selection color */
::selection {
    background: #E8D0E8;
    color: #3D243D;
}
