/* Custom styles for Loving Life Cottages */

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

/* Hero geometric shapes */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: rgba(20, 184, 166, 0.04);
    top: 20%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-rect-2 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(20, 184, 166, 0.15);
    bottom: 20%;
    left: 10%;
    transform: rotate(30deg);
    animation: float 6s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(20, 184, 166, 0.05);
    top: 40%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
}

/* Navbar */
nav.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-blur-lg;
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

/* Room cards */
.room-card {
    transition: transform 0.3s ease;
}

.room-card:hover {
    transform: translateY(-4px);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.shape-rect-1 {
    animation: spin 20s linear infinite;
}

.shape-rect-2, .shape-triangle {
    animation: float 6s ease-in-out infinite;
}

/* Scroll reveal (progressive enhancement - only when JS runs and user prefers motion) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

/* Button focus styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #fff;
}
