/* Custom styles for Casa Ramon */

/* Smooth scroll behavior is handled by Tailwind's scroll-smooth */

/* Reveal animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Header scroll state */
header.scrolled {
    background: rgba(247, 243, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(107, 76, 98, 0.08);
}

header.scrolled .font-display {
    color: #6B4C62 !important;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #F2C078;
    border-radius: 1px;
    transition: transform 0.3s ease, width 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
    width: 30px;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    width: 30px;
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

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

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

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

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

/* Selection color */
::selection {
    background: #F2C078;
    color: #2D1F29;
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #F2C078;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
}

/* Subtle pulse for the hero CTA */
@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(107, 76, 98, 0.2);
    }
    50% {
        box-shadow: 0 10px 50px rgba(107, 76, 98, 0.3);
    }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
    }
}

/* Print styles */
@media print {
    header,
    #back-to-top,
    button {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
