/* Custom styles for Island Oasis TOO Tanning Salon */

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

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #3d2b1f !important;
}

.nav-scrolled .nav-text {
    color: #3d2b1f !important;
}

.nav-scrolled #mobile-menu-btn {
    background: rgba(255, 255, 255, 0.9) !important;
}

.nav-scrolled #menu-icon {
    color: #3d2b1f !important;
}

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

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays */
.reveal[data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.reveal[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.reveal[data-reveal]nth-child(3) { transition-delay: 0.15s; }
.reveal[data-reveal]nth-child(4) { transition-delay: 0.2s; }
.reveal[data-reveal]nth-child(5) { transition-delay: 0.25s; }
.reveal[data-reveal]nth-child(6) { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: none;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#back-to-top:not(.visible) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e05c38;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #f2ad93;
    color: #3d2b1f;
}
