/* ===== Custom Styles for Woods Villas ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF5EA;
}
::-webkit-scrollbar-thumb {
    background: #C05A3A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9E472D;
}

/* Blob animations */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.blob-terra {
    background: #C05A3A;
}
.blob-sand {
    background: #D4A552;
}
.blob-ocean {
    background: #00838F;
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    opacity: 0.5;
}
.shape-circle {
    border-radius: 50%;
}
.shape-square {
    border-radius: 12px;
}
.shape-diamond {
    border-radius: 8px;
}
.shape-arc {
    border-radius: 50%;
    border-style: dashed;
}

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #C05A3A;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192, 90, 58, 0.3);
}
.btn-primary:hover {
    background: #9E472D;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 90, 58, 0.4);
}

/* Nav links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C05A3A;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

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

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero animations */
.hero-title {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}
.hero-badge {
    opacity: 0;
    animation: slideUp 0.8s ease 0.2s forwards;
}
.hero-subtitle {
    opacity: 0;
    animation: slideUp 0.8s ease 0.4s forwards;
}
.hero-cta {
    opacity: 0;
    animation: slideUp 0.8s ease 0.6s forwards;
}

/* Amenity cards stagger */
.amenity-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.amenity-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery items */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-item.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu open */
.mobile-menu-open #mobileMenu {
    translate: 0 0;
}
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal, .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .amenity-card, .amenity-card.revealed {
        opacity: 1;
        transform: none;
    }
    .gallery-item, .gallery-item.revealed {
        opacity: 1;
        transform: none;
    }
}

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

/* Print styles */
@media print {
    .fixed, .geo-shape, .blob {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
