/* Custom styles for EL Placer De Vivir */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0c;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #941a3c;
}

/* Selection color */
::selection {
    background: rgba(184, 37, 78, 0.4);
    color: #fce7eb;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 10, 12, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(120, 24, 52, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover effect */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(101, 22, 44, 0.15);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.testimonial-card:hover {
    box-shadow: 0 20px 60px rgba(101, 22, 44, 0.12);
}

/* Gold shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Pulse animation for scroll indicator */
@keyframes pulse-line {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.6; transform: scaleY(1.2); }
}

/* Fade in animation for mobile menu */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open .mobile-link {
    animation: fadeIn 0.3s ease forwards;
}

.mobile-menu-open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

/* Mobile menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(212, 63, 107, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(212, 63, 107, 0.1) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .testimonial-card,
    a,
    button {
        transition: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    #contactForm,
    .mobile-menu-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .service-card,
    .testimonial-card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .font-display {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .service-card:hover {
        transform: translateY(-4px);
    }
    
    .testimonial-card:hover {
        transform: translateY(-4px);
    }
}
