/* Custom Styles for Vindhya Infrastructure */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }

/* Fade In Left Animation */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translate3d(-40px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.animate-fade-in-left { animation: fadeInLeft 0.8s ease-out forwards; opacity: 0; }

/* Fade In Right Animation */
@keyframes fadeInRight {
    from { opacity: 0; transform: translate3d(40px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.animate-fade-in-right { animation: fadeInRight 0.8s ease-out forwards; opacity: 0; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

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

/* Make sure footer stays at bottom */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

/* Button Shine Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    opacity: 0;
    transform: rotate(30deg);
    background: rgba(255, 255, 255, 0.3);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 77%, rgba(255, 255, 255, 0.1) 100%);
}
.btn-shine:hover::after {
    opacity: 1;
    left: 130%;
    transition-property: left, top, opacity;
    transition-duration: 0.7s, 0.7s, 0.15s;
    transition-timing-function: ease-in-out;
}

/* Form inputs styling improvement */
input[type="file"]::file-selector-button {
    border: none;
    background-color: #1e3a8a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
input[type="file"]::file-selector-button:hover { background-color: #1e40af; }

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* --- Typewriter Animation --- */
.typewriter-container { display: inline-block; }
.typewriter-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #f59e0b;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    display: inline-block;
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #f59e0b; } }

/* Image Hover Effects */
.hover-zoom { overflow: hidden; }
.hover-zoom img { transition: transform 0.7s ease; }
.hover-zoom:hover img { transform: scale(1.15); }

/* Filter buttons active state */
.filter-btn.active { background-color: #1e3a8a; color: white; }

/* --- Scroll Reveal --- */
.reveal { opacity: 0; }

/* --- Lightbox / Project Modal --- */
#lightbox img, #project-modal img { animation: fadeInUp 0.4s ease-out; }

/* ===============================
   CLIENT LOGO MARQUEE
================================ */

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    width: max-content;
    animation: clientLogoMarquee 30s linear infinite;
}

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

.client-logo {
    min-width: 160px;
    height: 90px;
}

.client-logo img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes clientLogoMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

/* Mobile */
@media (max-width: 768px) {

    .marquee-content {
        gap: 40px;
        animation-duration: 25s;
    }

    .client-logo {
        min-width: 130px;
        height: 75px;
    }

    .client-logo img {
        max-width: 130px;
        max-height: 65px;
 

/* --- Floating Badge --- */
.floating-badge { animation: float 4s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* Gradient overlay for cards */
.card-gradient-overlay { background: linear-gradient(to top, rgba(17,24,39,0.95) 0%, rgba(17,24,39,0.4) 50%, rgba(17,24,39,0) 100%); }

/* Parallax Backgrounds */
.bg-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
