/* Smooth scrolling with offset for sticky header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; /* 80px (h-20) header height */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e293b;
}
::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Utility classes to help with specific React to HTML conversions */
.rtl-mirror {
    transform: scaleX(-1);
}

[dir="rtl"] .rtl-mirror {
    transform: scaleX(1);
}

/* Delay classes for animations generated by loop in React */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Gallery fade transition enhancements */
#gallery-slides {
    position: relative;
    overflow: hidden;
}

#gallery-slides > div {
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: opacity 1s ease-in-out !important;
}

#gallery-slides > div.gallery-active {
    opacity: 1 !important;
    z-index: 10;
}

#gallery-slides > div.gallery-inactive {
    opacity: 0 !important;
    z-index: 0;
}

#gallery-slides .gallery-overlay,
#gallery-slides .gallery-content {
    transition: opacity 1s ease-in-out !important;
}

#gallery-slides .gallery-overlay-active,
#gallery-slides .gallery-content-active {
    opacity: 1 !important;
}

#gallery-slides .gallery-overlay-inactive,
#gallery-slides .gallery-content-inactive {
    opacity: 0 !important;
}

/* Hero section fade transition enhancements */
#hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#hero-slider-container > div {
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    opacity: 0;
    transition: opacity 1s ease-in-out !important;
}

#hero-slider-container > div.hero-active {
    opacity: 1 !important;
    z-index: 0;
}

#hero-slider-container > div.hero-inactive {
    opacity: 0 !important;
    z-index: 0;
}

/* reCAPTCHA Badge - Hidden (we show notice in form instead) */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}