/* Custom supplementary stylesheet for engyintertech.com */

/* Grayscale Switcher logic */
html.grayscale-active, 
html.grayscale-active img, 
html.grayscale-active picture, 
html.grayscale-active iframe {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
}

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

/* Custom Outlines */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 157, 222, 0.15);
}

/* Hero Slider Animations */
.hero-slider-container {
    position: relative;
    overflow: hidden;
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1000ms ease-in-out;
    z-index: 10;
}

.slide-item.active {
    opacity: 1;
    z-index: 20;
}

/* Back-to-Top Button Show State */
#backToTop.show-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover scales */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
}

/* Custom Gradients */
.gradient-overlay-dark {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.2) 100%);
}

.gradient-overlay-primary {
    background: linear-gradient(135deg, rgba(0, 157, 222, 0.95) 0%, rgba(0, 123, 176, 0.85) 100%);
}

/* Modal Popup Transition */
.modal-overlay {
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-content-wrap {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden-modal {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.hidden-modal .modal-content-wrap {
    transform: scale(0.95) translateY(10px);
}

/* Infinite Scrolling Marquee */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

