/* Custom styles for Anji's Beach House */

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

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

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

::-webkit-scrollbar-thumb {
    background: #d4a5a5;
    border-radius: 3px;
}

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #3d0a1c;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 250, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(161, 65, 93, 0.1);
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #c23060 !important;
}

/* Link hover underline animation */
a {
    text-decoration: none;
}

/* Image loading placeholder */
img {
    background-color: #f5f5f0;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Subtle line animations */
.divider-line {
    position: relative;
    overflow: hidden;
}

.divider-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f5a5bb, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.divider-line:hover::after {
    transform: translateX(0);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #c23060;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contact-form, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
