/* ===== VIDEO BACKGROUND STYLES ===== */
.hero {
    position: relative;
    background: transparent !important;
    /* Ensure body/hero background doesn't hide video */
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Ensure above background */
    pointer-events: none;
    /* Let clicks pass through */
}

.hero-video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.hero {
    min-height: 80vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-centered {
    position: relative;
    z-index: 3;
    margin-top: -5vh;
    /* Pull content up slightly */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay for text readability */
    background: linear-gradient(135deg, rgba(10, 30, 63, 0.7) 0%, rgba(10, 30, 63, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

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

/* ===== CHECKERED DRAUGHT DESIGN FOR BRANDS ===== */
.brands-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 0 !important;
    /* No gap for checkered effect */
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    animation: none !important;
    transform: none !important;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.brand-card-custom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    height: 180px;
    transition: all 0.3s ease;
    border: 0.5px solid rgba(162, 174, 191, 0.1);
    position: relative;
    overflow: hidden;
}

.brand-card-custom:nth-child(odd) {
    background: #ffffff;
}

.brand-card-custom:nth-child(even) {
    background: #0A1E3F;
}

.brand-card-custom:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.brand-card-custom i {
    font-size: 3.5rem !important;
    margin-bottom: 15px;
}

.brand-card-custom span {
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-card-custom:nth-child(odd) i,
.brand-card-custom:nth-child(odd) span {
    color: #0A1E3F !important;
}

.brand-card-custom:nth-child(even) i,
.brand-card-custom:nth-child(even) span {
    color: #ffffff !important;
}

.brand-card-custom img {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    width: auto;
    height: auto;
}

.brand-card-custom:nth-child(even) img {
    filter: brightness(0) invert(1);
}

.brand-card-custom:nth-child(odd) img {
    mix-blend-mode: multiply !important;
}

/* ===== STATIC BRANDS SECTION (REPLICATED FROM ABOUT PAGE) ===== */
.homepage-brands-static {
    padding: 80px 0;
    background: #fdfdfd;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.brands-static-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brands-static-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    flex-wrap: wrap;
}

.brand-item-static {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #333;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(1);
}

.brand-item-static:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-5px);
}

.brand-item-static i {
    font-size: 2.2rem;
}

.brand-item-static span {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.testimonials-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card-modern {
    flex: 0 0 auto;
    width: 380px;
    /* Reduced width as requested */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    scroll-snap-align: start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00FFFF 0%, #40E0D0 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.15);
}

.testimonial-card-modern:hover::before {
    opacity: 1;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #FFD700;
}

.testimonial-quote-modern {
    font-size: 15px;
    line-height: 1.7;
    color: #E0E0E0;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.testimonial-quote-modern::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -12px;
    font-size: 40px;
    color: rgba(0, 255, 255, 0.2);
    font-family: Georgia, serif;
}

.testimonial-author-modern {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00FFFF;
}

.author-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 3px 0;
}

.author-info p {
    font-size: 13px;
    color: #00FFFF;
    margin: 0;
}

.scroll-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.scroll-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00FFFF;
    color: #00FFFF;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: #00FFFF;
    color: #0A1E3F;
    transform: scale(1.1);
}

.scroll-btn:active {
    transform: scale(0.95);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .testimonial-card-modern {
        width: 85vw;
        padding: 25px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-video-background video {
        min-height: 100%;
        width: auto;
    }

    .trust-testimonials-grid-redesigned {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: 0 var(--spacing-md);
    }

    .trust-testimonial-card-redesigned {
        padding: var(--spacing-xl);
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: 0 var(--spacing-md);
    }

    .reason-card {
        padding: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    .testimonial-card-modern {
        width: 90vw;
        padding: 20px;
    }

    .brands-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-quote-modern {
        font-size: 14px;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .trust-testimonials-grid-redesigned {
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }

    .trust-testimonial-card-redesigned {
        padding: var(--spacing-lg);
    }
}

/* ===== STATIC TESTIMONIALS GRID (From About Page) ===== */
.trust-testimonials-grid-redesigned {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
    padding: 0 var(--spacing-lg);
}

.trust-testimonial-card-redesigned {
    background: linear-gradient(145deg, rgba(10, 30, 63, 0.98) 0%, rgba(22, 36, 71, 0.98) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 255, 255, 0.1);
    height: auto;
    display: flex;
    flex-direction: column;
}

.trust-testimonial-card-redesigned:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow:
        0 25px 70px rgba(0, 255, 255, 0.3),
        0 0 50px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.testimonial-quote-icon {
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.5;
    transition: all 0.5s ease;
}

.trust-testimonial-card-redesigned:hover .testimonial-quote-icon {
    opacity: 1;
    transform: rotate(15deg) scale(1.1);
    background: rgba(0, 255, 255, 0.2);
}

.trust-rating-redesigned {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--spacing-xl);
    color: #FFD700;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
    justify-content: flex-start;
    /* Changed from center to left align for homepage if needed */
}

.trust-quote-redesigned {
    color: #FFFFFF !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    position: relative;
    z-index: 2;
    font-weight: 400;
    flex: 1;
    text-align: left;
    opacity: 1 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.trust-author-redesigned {
    position: relative;
    z-index: 2;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.author-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-info-wrapper strong {
    color: var(--primary) !important;
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.author-info-wrapper span {
    color: #FFFFFF !important;
    opacity: 0.9 !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.testimonial-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.trust-testimonial-card-redesigned:hover .testimonial-accent {
    width: 100%;
}

/* ===== MODERN CLEAN FLAT DESIGN FOR HOMEPAGE SECTIONS ===== */
/* PARALLAX SERVICES SECTION */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 120px 0;
    position: relative;
    background-color: #0A1E3F;
}

.solid-header {
    background: #ffffff;
    padding: 40px;
    text-align: center;
    border: 3px solid #00FFFF;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.solid-header .section-title {
    color: #0A1E3F !important;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: none !important;
}

.solid-header .section-subtitle {
    color: #4a5568 !important;
    font-size: 1.1rem;
    text-shadow: none !important;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* FLAT SERVICE CARDS */
.service-card-flat {
    background: #ffffff;
    border: 3px solid #0A1E3F;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.service-card-flat:hover {
    transform: translateY(-8px);
    background: #fdfdfd;
    border-color: #00FFFF;
}

.service-card-flat .icon-wrapper {
    width: 80px;
    height: 80px;
    border: 3px solid #00FFFF;
    background: #0A1E3F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #00FFFF;
    margin-bottom: 25px;
}

.service-card-flat h3 {
    color: #0A1E3F;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: none !important;
}

.service-card-flat p {
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.service-card-flat blockquote {
    background: #f8fbff;
    border-left: 4px solid #00FFFF;
    padding: 15px 20px;
    font-style: normal;
    color: #0A1E3F;
    font-weight: 600;
    width: 100%;
    text-align: left;
    margin-bottom: 25px;
    margin-top: 0;
}

.btn-flat {
    background: #0A1E3F;
    color: #00FFFF;
    border: 2px solid #0A1E3F;
    padding: 12px 25px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-flat:hover {
    background: #00FFFF;
    color: #0A1E3F;
    border-color: #00FFFF;
    text-decoration: none;
}

.accent-btn {
    background: #fadb24;
    color: #0A1E3F;
    border-color: #fadb24;
}

.accent-btn:hover {
    background: #0A1E3F;
    color: #fadb24;
    border-color: #0A1E3F;
}

/* FLAT TESTIMONIAL CARDS */
.flat-section {
    background: #0A1E3F;
    padding: 120px 0;
    border-top: 4px solid #00FFFF;
    position: relative;
    z-index: 10;
}

.clean-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-badge-flat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #00FFFF;
    color: #00FFFF;
    padding: 8px 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.clean-header .testimonials-main-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: none !important;
}

.clean-header .testimonials-subtitle {
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-card-flat {
    background: #ffffff;
    border: 4px solid #00FFFF;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.testimonial-card-flat:hover {
    transform: translateY(-8px);
    border-color: #fadb24;
}

.testimonial-card-flat .quote-icon {
    font-size: 2.5rem;
    color: #0A1E3F;
    margin-bottom: 20px;
}

.testimonial-card-flat .rating {
    color: #fadb24;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
}

.testimonial-card-flat .quote-text {
    color: #0A1E3F;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 30px;
    flex-grow: 1;
    text-shadow: none !important;
}

.testimonial-card-flat .author-info {
    border-top: 2px solid #e2e8f0;
    padding-top: 20px;
}

.testimonial-card-flat .author-info strong {
    color: #0A1E3F;
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
    text-shadow: none !important;
}

.testimonial-card-flat .author-info span {
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .solid-header {
        padding: 20px;
    }

    .clean-header .testimonials-main-title {
        font-size: 2rem;
    }

    .service-card-flat {
        padding: 30px 20px;
    }

    .testimonial-card-flat {
        padding: 30px 20px;
    }
}