/* GSDTI Custom Styles */

/* Hide Google Translate Banner and Widget Frames for Premium Feel */
.goog-te-banner-frame { display: none !important; }
body { top: 0px !important; }
.skiptranslate { display: none !important; }
iframe.goog-te-menu-frame { display: none !important; }

/* Scroll-triggered animation base */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.from-left { transform: translateX(-30px); }
.animate-on-scroll.from-left.visible { transform: translateX(0); }
.animate-on-scroll.from-right { transform: translateX(30px); }
.animate-on-scroll.from-right.visible { transform: translateX(0); }

/* Accessibility: Honor reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Marquee animation for announcement */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 30s linear infinite; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F0F4F8; }
::-webkit-scrollbar-thumb { background: #1B2A4A; border-radius: 4px; }

/* Smooth scroll & horizontal overflow protection */
html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Responsive Table & Media Wrappers */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Touch Target Compliance for Mobile (min 44px height) */
@media (max-width: 640px) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
