/* Custom styles to supplement Tailwind */
html {
    scroll-behavior: smooth;
}

body {
    /* Prevent horizontal scroll from negative margins if any */
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8604d;
}

/* Selection Color */
::selection {
    background: #ebd3cc;
    color: #622b25;
}

/* Fade In Animation for Scroll Reveal */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Navbar Glass Effect on Scroll */
.nav-scrolled {
    background: rgba(252, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}
img[loading="lazy"] {
    opacity: 0;
}
img.loaded {
    opacity: 1;
}
