/* ===================================
   The Turtle Hole — Custom Styles
   Warm & Friendly | Navy + Gold
   =================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f6;
}
::-webkit-scrollbar-thumb {
    background: #112240;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #233554;
}

/* Selection color */
::selection {
    background: #f6c90e;
    color: #0a192f;
}

/* Base animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* Navbar scroll state */
.navbar-scrolled #navbar-bg {
    opacity: 1;
}

/* Image lazy-load placeholder */
img {
    background-color: #f5f5f0;
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
