/* ======================================
   HOME PAGE – CUSTOM STYLES
   Pre Aim Technology
   ====================================== */


/* ── AI Neural Background Canvas ─────────────────────────── */
#ai-neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    display: block;
}

/* Let the canvas serve as the full-page background */
html { background: transparent !important; }
body { background: transparent !important; }

/* Remove hero's own gradient so the canvas shows through */
.hero-section {
    background: transparent !important;
}
.hero-section::before,
.hero-section::after {
    display: none !important;
}


/* ── Stats Section ────────────────────────────────────────── */
/* Transparent so canvas glows show through the dark overlay */
.stats-section {
    background: transparent !important;
    position: relative;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 15, 0.72);
    pointer-events: none;
    z-index: 0;
}
.stats-section .container {
    position: relative;
    z-index: 1;
}


/* ── Clients Marquee ──────────────────────────────────────── */
.clients-marquee-wrapper {
    position: relative;
    overflow: hidden;
    padding: 12px 0;
}

.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 130px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #0F172A 60%, transparent);
}

.clients-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #0F172A 60%, transparent);
}

.clients-marquee-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: marquee-rtl 28s linear infinite;
}

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

@keyframes marquee-rtl {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    min-width: 150px;
    height: 110px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.client-logo-item:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

.client-logo-item img {
    max-height: 46px;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(0);
    opacity: 0.65;
    transition: all 0.3s;
}

.client-logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.client-logo-placeholder {
    font-size: 1.8rem;
    color: #475569;
}

.client-logo-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94A3B8;
    text-align: center;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.client-logo-item:hover .client-logo-name {
    color: var(--primary);
}


/* ── Blessings Carousel Controls ─────────────────────────── */
.blessings-ctrl {
    width: 44px;
    top: 0;
    bottom: auto;
    height: calc(100% - 48px);
}

.blessings-ctrl.carousel-control-prev { left: 0; }
.blessings-ctrl.carousel-control-next { right: 0; }

.blessings-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.4);
    background: var(--bg-secondary, #fff);
    color: #3b82f6;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.blessings-ctrl:hover .blessings-arrow {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}


/* ── Fixed-height Testimonial Cards ──────────────────────── */
.testimonial-card-fixed {
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.testimonial-msg-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    overflow: hidden;
}

.testimonial-msg-area p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 4px;
    white-space: nowrap;
}

.read-more-link i { font-size: 0.65rem; }

.read-more-link:hover { color: var(--accent); }

.testimonial-author { margin-top: auto; }


/* ── Testimonials Nav Buttons ─────────────────────────────── */
.testimonials-nav-wrapper {
    padding: 0 58px;
}

@media (max-width: 576px) {
    .testimonials-nav-wrapper {
        padding: 0 44px;
    }
}

.testimonials-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    left: -58px;
    right: -58px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    margin: 0;
}

@media (max-width: 576px) {
    .testimonials-carousel .owl-nav {
        left: -44px;
        right: -44px;
    }
}

.testimonials-carousel .owl-prev,
.testimonials-carousel .owl-next {
    pointer-events: all;
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%) !important;
    border: none;
    color: #fff !important;
    font-size: 0.95rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    line-height: 1;
}

.testimonials-carousel .owl-prev:hover,
.testimonials-carousel .owl-next:hover {
    transform: scale(1.13);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.55);
    background: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%) !important;
}

.testimonials-carousel .owl-prev.disabled,
.testimonials-carousel .owl-next.disabled {
    opacity: 0.35;
    pointer-events: none;
}


/* ── Testimonials Dots ────────────────────────────────────── */
.testimonials-carousel .owl-dots {
    margin-top: 22px;
    text-align: center;
    line-height: 1;
}

.testimonials-carousel .owl-dot {
    display: inline-block;
    margin: 0 4px;
}

.testimonials-carousel .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonials-carousel .owl-dot.active span {
    width: 26px;
    border-radius: 4px;
    background: linear-gradient(90deg, #3B82F6, #06B6D4);
}

.testimonials-carousel .owl-dot:hover span {
    background: #3B82F6;
}
