/* Custom styles for Cabana Beach House */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Geometric shape animations */
@media (prefers-reduced-motion: no-preference) {
    .geo-circle, .geo-rect {
        animation: float 8s ease-in-out infinite;
    }
    .geo-circle:nth-child(2) {
        animation-delay: -2s;
        animation-duration: 10s;
    }
    .geo-rect {
        animation-delay: -4s;
        animation-duration: 12s;
    }
}

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

/* Scroll reveal base - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Mobile menu animations */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f4;
}
::-webkit-scrollbar-thumb {
    background: #8fb886;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a7c42;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4a7c42;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #4a7c42;
    color: #fdfcfa;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}
