/**
 * File: home.css
 * Description: Custom styles and transitions for the homepage extracted from sample-theme.
 * Version: 1.0.0
 */

/* =========================================================================
   GLOBAL & LAYOUT STYLES
   ========================================================================= */
html {
    scroll-behavior: smooth;
}

body {
    background: #f8fafc;
}

.glass {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
}

.line-grid {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
}

/* =========================================================================
   HERO TRANSITIONS & MASKS
   ========================================================================= */
.hero-mask {
    background: linear-gradient(90deg,
            #ffffff 0%,
            #ffffff 30%,
            rgba(255, 255, 255, 0.99) 39%,
            rgba(255, 255, 255, 0.94) 47%,
            rgba(255, 255, 255, 0.72) 56%,
            rgba(255, 255, 255, 0.25) 68%,
            rgba(255, 255, 255, 0) 80%);
}

.hero-image {
    transition: opacity 0.55s ease, transform 7s ease;
}

.hero-image.zoom {
    transform: scale(1.045);
}

.hero-copy {
    transition: opacity 0.28s ease, transform 0.38s ease;
}

.hero-copy.out {
    opacity: 0;
    transform: translateY(10px);
}

/* =========================================================================
   SERVICE CARDS & SLIDERS
   ========================================================================= */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
}

.service-card img {
    transition: transform 0.65s ease;
}

.service-card:hover img {
    transform: scale(1.06);
}

.dot {
    transition: 0.3s;
}

.dot.active {
    width: 30px;
    background: #2563eb;
}

.stat-divider:last-child {
    border-right: 0;
}

/* =========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* =========================================================================
   INFINITE LOGO SLIDER
   ========================================================================= */
@keyframes logoSlide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.logos {
    overflow: hidden;
    padding: 30px 0;
    white-space: nowrap;
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(226, 232, 240, 0.10);
    border-bottom: 1px solid rgba(226, 232, 240, 0.10);
    z-index: 20;
}

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

.logos::before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgb(255, 255, 255));
}

.logos::after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgb(255, 255, 255));
}

.logo_items {
    display: inline-block;
    animation: 35s logoSlide infinite linear;
}

.logos:hover .logo_items {
    animation-play-state: paused;
}

.logo_items img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.logo_items img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

.logo_items .logo_link {
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
}

.logo_items .logo_text {
    display: inline-block;
    margin: 0 40px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.logo_items .logo_text:hover {
    color: #2563eb;
}

/* =========================================================================
   HERO PARTNER TICKER LOGOS (BALANCED SPACING - ONE LOGO WIDTH)
   ========================================================================= */
.hero-ticker-container {
    mask-image: linear-gradient(to right, transparent, black 25px, black calc(100% - 35px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 25px, black calc(100% - 35px), transparent);
}

.hero-ticker-track {
    display: flex !important;
    align-items: center !important;
    width: max-content !important;
    gap: 84px !important;
    animation: heroTickerLoop 38s linear infinite !important;
}

.hero-ticker-track:hover {
    animation-play-state: paused !important;
}

.hero-ticker-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 65px !important;
    flex-shrink: 0 !important;
}

.hero-ticker-item img {
    height: 22px !important;
    max-width: 85px !important;
    object-fit: contain !important;
    opacity: 0.7 !important;
    transition: opacity 0.3s ease, filter 0.3s ease !important;
    filter: grayscale(100%) !important;
}

.hero-ticker-item img:hover {
    opacity: 1 !important;
    filter: grayscale(0%) !important;
}

/* =========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================= */
@media (max-width: 900px) {
    .hero-mask {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.9) 45%,
                rgba(255, 255, 255, 0.25) 72%,
                rgba(255, 255, 255, 0) 100%);
    }
}
