/* Villa Nevas Custom Styles - v1.1 */
::selection {
    background: #87CEEB;
    /* Sky Blue */
    color: #1A1A1A;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #FAF9F6;
}

::-webkit-scrollbar-thumb {
    background: #4A3728;
    /* Wood Dark */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8D6E63;
}

/* Base Styles */
body {
    background-color: #FAF9F6;
    /* villa-cream off-white */
    overflow-x: hidden;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Button Styles - Standard CSS replacement for @apply */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    /* px-8 py-3 */
    background-color: #4A3728;
    /* villa-wood-dark */
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    /* text-sm */
    transition: all 0.3s;
    transform: scale(1);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #87CEEB;
    /* villa-sky */
    color: #1A1A1A;
    /* villa-dark */
    transform: scale(1.05);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: all 0.3s;
    transform: scale(1);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #1A1A1A;
    transform: scale(1.05);
}

.btn-gold {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid #4A3728;
    /* villa-wood-dark */
    color: #4A3728;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: all 0.3s;
    transform: scale(1);
    cursor: pointer;
}

.btn-gold:hover {
    background-color: #4A3728;
    color: #ffffff;
    transform: scale(1.05);
}

/* Filter Button Active State */
.filter-btn.active {
    border-color: #1A1A1A;
    color: #1A1A1A;
}

/* Masonry Fallback for Gallery */
.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Parallax Class */
.parallax-bg {
    will-change: transform;
}

/* Hero Slideshow */
.hero-slide {
    transition: opacity 0.5s ease-in-out;
    will-change: opacity, transform;
}

/* Site Loader Animations */
@keyframes loader-text {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loader-line {
    0% {
        transform: translateX(-50%) scaleX(0);
    }

    100% {
        transform: translateX(-50%) scaleX(1);
    }
}

.animate-loader-text {
    animation: loader-text 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-loader-line {
    animation: loader-line 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

.loader-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}