/* --- 1. HERO SLIDER --- */
#hero-slider {
    height: 100vh;
    width: 100%;
    position: relative;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20, 85, 131, 0.9), rgba(43, 42, 41, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.3s;
}

.hero-slide.swiper-slide-active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

/* --- 2. SERVICES GRID --- */
.service-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--color-secondary);
}

.service-icon {
    color: var(--color-primary);
    transition: color 0.3s;
}

.service-card:hover .service-icon {
    color: var(--color-secondary);
}

/* --- 3. WHY CHOOSE US (Matches About Us) --- */
.feature-box {
    background-color: var(--color-light);
    border: 1px solid #e5e5e5;
    border-radius: 0.75rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 10;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    background: linear-gradient(145deg, var(--color-primary) 40%, var(--color-secondary) 100%);
    transform: translate(-100%, -100%) rotate(45deg);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

.feature-box:hover::before {
    transform: translate(0, 0) rotate(0deg);
}

.feature-box .content-wrap {
    position: relative;
    z-index: 2;
    transition: color 0.5s ease;
}

.feature-box:hover .content-wrap {
    color: var(--color-light);
}

.feature-box .content-wrap svg {
    color: var(--color-primary) !important;
}

.feature-box:hover .content-wrap svg {
    color: var(--color-light) !important;
}

.feature-box:hover .content-wrap p {
    color: var(--color-light);
}

/* --- 4. STATS COUNTER --- */
#stats-section {
    background-color: var(--color-dark);
    color: var(--color-light);
    position: relative;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-secondary);
}

/* --- 5. PARTNER MARQUEE --- */
#partners {
    overflow: hidden;
    background: #f8fafc;
    padding: 4rem 0;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 50s linear infinite;

}

.logo-item img {
    height: 50px;
    object-fit: contain;
}

/* Continuous scroll */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

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

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

.logo-item {
    min-width: 12.5%;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
}

.logo-item img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- 6. CTA SECTION --- */
#final-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    position: relative;
    overflow: hidden;
}

#final-cta::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* --- MODAL STYLES --- */
#quote-modal {
    /* Fix for backdrop opacity with custom colors */
    background-color: rgba(43, 42, 41, 0.85);
    z-index: 5000;
    /* Ensure it's on top of everything */
}

#quote-modal-content {
    background-color: var(--color-light);
    width: 90%;
    max-width: 500px;
    border-radius: 1rem;
    border-top: 6px solid var(--color-secondary);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Class triggering the reveal animation */
#quote-modal.open #quote-modal-content {
    transform: scale(1);
    opacity: 1;
}