/* Custom Styles & Overrides */

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

/* Selection Color */
::selection {
    background-color: #C05A43;
    color: white;
}

/* Animation Keyframes */
@keyframes scroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.animate-scroll {
    animation: scroll 1.5s linear infinite;
}

/* Reveal on Scroll Logic */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Initial state for reveal animations (handled by JS, but safe fallback) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(20px);
    }
    
    /* Staggered delays for grid items */
    .reveal-on-scroll:nth-child(1) { transition-delay: 0ms; }
    .reveal-on-scroll:nth-child(2) { transition-delay: 100ms; }
    .reveal-on-scroll:nth-child(3) { transition-delay: 200ms; }
    .reveal-on-scroll:nth-child(4) { transition-delay: 300ms; }
}

/* Hero Text Reveal */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-text:nth-child(1) { animation-delay: 0.2s; }
.reveal-text:nth-child(2) { animation-delay: 0.4s; }
.reveal-text:nth-child(3) { animation-delay: 0.6s; }
.reveal-text:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Scroll State */
.nav-scrolled {
    background-color: rgba(248, 247, 245, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9E4A36;
}

/* Image Aspect Ratios */
img {
    max-width: 100%;
    height: auto;
}
