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

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

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(159, 30, 56, 0.08);
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c02746;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Service cards */
.service-card {
    transform: translateY(0);
}

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

/* Testimonial cards */
.testimonial-card {
    transform: translateY(0);
}

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

/* Mobile menu */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(192, 39, 70, 0.08), transparent);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: calc(100% + 12px);
}

/* Scroll reveal animations (below fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.from-bottom {
        transform: translateY(30px);
    }

    .reveal.from-left {
        transform: translateX(-30px);
    }

    .reveal.from-right {
        transform: translateX(30px);
    }

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

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #f5a5b8;
    box-shadow: 0 0 0 3px rgba(245, 165, 184, 0.2);
}

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

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

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

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #71192b;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Floating card animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

/* Button hover effects */
a[class*="bg-burgundy-700"] {
    position: relative;
    overflow: hidden;
}

a[class*="bg-burgundy-700"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

a[class*="bg-burgundy-700"]:hover::before {
    left: 100%;
}
