/* Custom styles for Mi Habana Studio */

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

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

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

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

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

/* Selection color */
::selection {
    background: #F4C2C2;
    color: #800020;
}

/* Reveal on scroll animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 250, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

.nav-scrolled .nav-link {
    color: #1A1A1A !important;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, color 0.3s ease-out;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* Geometric pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle, #F4C2C2 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.3;
}

/* Hero card hover effect */
.room-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(128, 0, 32, 0.15);
}

/* Feature card hover glow */
.feature-card:hover {
    box-shadow: 0 0 40px rgba(244, 194, 194, 0.3);
}

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

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(128, 0, 32, 0.12);
}

/* Form input focus animations */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Geometric shape animations */
@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    33% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    66% { border-radius: 30% 70% 50% 50% / 30% 70% 30% 70%; }
}

.morph-shape {
    animation: morph 8s ease-in-out infinite;
}

/* Floating animation variants */
@keyframes floatGentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-gentle {
    animation: floatGentle 4s ease-in-out infinite;
}

/* Print styles */
@media print {
    nav, #back-to-top, .reveal-on-scroll {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
