/* --- GLOBAL FIX: Prevents Horizontal Scrolling --- */
html, body {
    width: 100%;
    overflow-x: hidden; 
}
/* ------------------------------------------------ */

/* === BASE STYLES & INITIAL SCROLL FIX === */
html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 100px;  
}
body {  
    font-family: 'Inter', sans-serif;  
}

/* --- Floating CTA Tab Style --- */
#floating-cta {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-90deg) translate(-25px);  
    transform-origin: 0 0;  
    
    background-color: #f59e0b;
    color: #1e40af;
    padding: 10px 20px;
    font-weight: 700;  
    border-radius: 0 0 8px 8px;  
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 30;  
    white-space: nowrap;  
    
    animation: 
        pulse-glow 2.5s infinite, 
        button-vibrate 0.4s ease-in-out 3s infinite alternate;  
}

#floating-cta:hover {
    transform: translateY(-50%) rotate(-90deg) translate(-20px);  
    background-color: #fbbf24;  
}

#floating-cta i {
    transform: rotate(90deg);
    display: inline-block;
    margin-right: 5px;
}

/* === MODAL STYLES === */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);  
    display: flex; justify-content: center; align-items: center;
    z-index: 50; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {  
    opacity: 1;  
    visibility: visible;  
}
.modal-content {
    background-color: white;  
    padding: 2rem;  
    border-radius: 0.75rem;  
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);  
    position: relative;  
    width: 90%;  
    max-width: 500px;
    transform: translateY(-20px);  
    opacity: 0;  
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;  
}
.modal-overlay.active .modal-content {
    transform: translateY(0);  
    opacity: 1;
}
.close-button {
    position: absolute;  
    top: 0.75rem;  
    right: 0.75rem;
    background: none;  
    border: none;  
    font-size: 2rem;
    line-height: 1;  
    cursor: pointer;  
    color: #9ca3af;
    padding: 0.25rem;  
    transition: color 0.2s;
}
.close-button:hover {  
    color: #1f2937;  
}

/* === PRELOADER STYLES === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;  
    transition: opacity 0.5s ease;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ffffff;  
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.2s linear infinite;
    margin-bottom: 20px;
}

.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- NAV LINK EFFECT & MOBILE WRAP FIX --- */
.nav-link-effect {
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
}

.nav-link-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3b82f6;  
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-link-effect:hover::after {
    transform: scaleX(1);  
    transform-origin: bottom left;
}

#preloader-text {
    word-break: break-all;  
    text-align: center;
}

/* --- ANIMATION: Vibrate Keyframes --- */
@keyframes button-vibrate {
    0% { transform: translateY(-50%) rotate(-90deg) translate(-25px) rotate(0deg); }
    10% { transform: translateY(-50%) rotate(-90deg) translate(-25px) rotate(-1deg); }
    20% { transform: translateY(-50%) rotate(-90deg) translate(-25px) rotate(1deg); }
    30% { transform: translateY(-50%) rotate(-90deg) translate(-25px) rotate(-1deg); }
    40% { transform: translateY(-50%) rotate(-90deg) translate(-25px) rotate(1deg); }
    50% { transform: translateY(-50%) rotate(-90deg) translate(-25px) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(-90deg) translate(-25px) rotate(0deg); }
}

/* ================= TESTIMONIAL – BRAND ALIGNED ================= */

.testimonial-container {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

/* Carousel track */
#testimonial-carousel {
    display: flex;
    align-items: center;
    will-change: transform;
}

/* Slide wrapper */
.testimonial-slide {
    width: 33.3333%;
    padding: 0 18px;
    box-sizing: border-box;
    transition: all 0.5s ease;
    transform: scale(0.92);
    opacity: 0.45;
    z-index: 1;
}

/* Card */
.testimonial-slide > div {
    background: linear-gradient(
        145deg,
        #0b1f33,   /* matches hero navy */
        #12385c    /* matches hero depth */
    );
    color: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    filter: blur(2px);
    transition: all 0.5s ease;
}

/* Google Reviews strip */
.testimonial-slide .google-label {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #e5e7eb;
}

/* ⭐ Center (Active) Card */
.testimonial-slide.is-active-center {
    transform: scale(1);
    opacity: 1;
    z-index: 5;
}

.testimonial-slide.is-active-center > div {
    filter: none;
    box-shadow:
        0 35px 80px rgba(245, 158, 11, 0.25), /* gold glow */
        0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Stars */
.testimonial-slide .text-accent-gold,
.testimonial-slide .fa-star {
    color: #f59e0b; /* exact brand gold */
}

/* Review text */
.testimonial-slide p {
    color: #e5e7eb;
    line-height: 1.6;
}

/* Author name */
.testimonial-slide .font-semibold {
    color: #fbbf24;
}

/* Arrows */
#carousel-prev,
#carousel-next {
    background: #ffffff;
    color: #1e40af;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Dots */
#carousel-indicators button {
    background: #cbd5e1;
}
#carousel-indicators button.bg-primary-blue {
    background: #1e40af;
}

/* Mobile */
@media (max-width: 768px) {
    .testimonial-slide {
        width: 100%;
        transform: scale(1);
        opacity: 1;
        padding: 0 10px;
    }

    .testimonial-slide > div {
        filter: none;
    }
}

#carousel-indicators {
    display: none !important;
}
