/* ===== CUSTOM STYLES ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F6;
}
::-webkit-scrollbar-thumb {
    background: #F9C2CA;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #EAB8B0;
}

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

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

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

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Testimonial card hover */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card:hover {
    transform: translateY(-6px);
}

/* Process step hover */
.process-step {
    transition: transform 0.4s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

.process-step:hover .step-number {
    color: rgba(107, 29, 42, 0.2);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(107, 29, 42, 0.08);
}

nav.scrolled .font-serif {
    color: #6B1D2A !important;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

/* Hero entrance animations */
.hero-content {
    opacity: 0;
    animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content-delay-1 { animation-delay: 0.2s; }
.hero-content-delay-2 { animation-delay: 0.4s; }
.hero-content-delay-3 { animation-delay: 0.6s; }

.hero-image {
    opacity: 0;
    animation: heroImageIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

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

/* Mobile link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

.mobile-link:hover {
    padding-left: 0.75rem;
}

/* Selection color */
::selection {
    background: rgba(107, 29, 42, 0.15);
    color: #6B1D2A;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #6B1D2A;
    outline-offset: 2px;
}

/* Reduced motion */
@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;
    }
    .floating-card {
        animation: none;
    }
}

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

    .step-number {
        font-size: 4rem !important;
    }
}

@media (max-width: 640px) {
    .service-card {
        padding: 1.5rem !important;
    }

    .testimonial-card {
        padding: 1.5rem !important;
    }
}
