/* Custom styles to complement Tailwind */

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

/* Scroll reveal animations - Progressive enhancement, content visible by default */
.reveal-on-scroll {
    /* Content is visible by default for accessibility */
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

    /* Staggered delays for grid items */
    .reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }
    .reveal-on-scroll:nth-child(2) { transition-delay: 0.15s; }
    .reveal-on-scroll:nth-child(3) { transition-delay: 0.25s; }
    .reveal-on-scroll:nth-child(4) { transition-delay: 0.35s; }
    .reveal-on-scroll:nth-child(5) { transition-delay: 0.45s; }
    .reveal-on-scroll:nth-child(6) { transition-delay: 0.55s; }
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

/* Subtle hover effects */
a {
    transition: color 0.2s ease, background-color 0.2s ease;
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #fce7e7;
    color: #6c1a1a;
}
