/* TMES Complex Corporate Styles */

/* Base & Smooth Scroll */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Hero Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    height: 80vh;
    min-height: 600px;
}
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.05);
    z-index: 1;
}
.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}
.slide-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.4s;
}
.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Backgrounds */
.slide-bg-1 { background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=2000&auto=format&fit=crop') center/cover; }
.slide-bg-2 { background: url('https://images.unsplash.com/photo-1565439390234-fc539dfd1010?q=80&w=2000&auto=format&fit=crop') center/cover; }
.slide-bg-3 { background: url('https://images.unsplash.com/photo-1537462715879-360eeb61a0ad?q=80&w=2000&auto=format&fit=crop') center/cover; }

/* Overlapping Stats Bar */
.stats-bar {
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

/* Tabs */
.tab-content { display: none; animation: fadeIn 0.4s ease-in-out; }
.tab-content.active { display: block; }
.tab-btn.active {
    color: #1D4ED8;
    border-bottom: 2px solid #1D4ED8;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Service Cards Complex */
.service-box {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.service-box .overlay {
    position: absolute;
    bottom: -100%; left: 0; width: 100%;
    background: rgba(15, 40, 89, 0.95);
    padding: 20px;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service-box:hover .overlay { bottom: 0; }
.service-box:hover .default-content { opacity: 0; }
.default-content { transition: opacity 0.3s ease; }

@media (max-width: 1024px) {
    .service-box .overlay {
        bottom: 0;
        background: rgba(15, 40, 89, 0.85);
    }
    .service-box .default-content {
        opacity: 0;
    }
}

/* Image overlaps */
.img-overlap-1 { position: relative; z-index: 2; border: 8px solid white; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.img-overlap-2 { position: absolute; bottom: -10%; right: -10%; z-index: 3; width: 60%; border: 8px solid white; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Decorative Elements */
.section-title-line { width: 50px; height: 3px; background-color: #F59E0B; display: inline-block; margin-bottom: 15px; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Timeline Styles */
.timeline-container { position: relative; padding-left: 40px; }
.timeline-container::before {
    content: ''; position: absolute; left: 0; top: 10px; bottom: 0; width: 2px; background: #e2e8f0;
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -45px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
    background: #F59E0B; border: 3px solid white; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { background: #1D4ED8; box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2); }

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


/* Accordion Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}
.accordion-header.active {
    background-color: #f8fafc;
    border-left-color: #1D4ED8;
}

/* Staggered Animations */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}
