/**
 * Nxtlogic - Index/Homepage specific styles
 */

/* --- GLOBAL FIXES --- */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.image-p-0 {
    padding: 0 !important;
}

/* --- MOBILE SPECIFIC FIXES (FAQ, etc.) --- */
@media (max-width: 991px) {
    .text-box {
        padding: 20px 15px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .faqs .container-fluid, .faqs .row {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    .section_padding, .sec-padding, .service_area, .about_area {
        padding: 40px 0 !important;
    }
    .banner_h1 {
        font-size: 26px !important;
        margin-top: 20px !important;
    }
    .flip-boxes-style-classic-right, .col-sm-6 {
        margin-bottom: 20px;
    }
}

/* --- STATS BOX STYLES --- */
.about-cards-row {
    margin-top: 30px;
    padding-bottom: 20px;
}

.stats-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    height: 100%;
}

@media (min-width: 768px) {
    .stats-box { animation: float-up-down 4s ease-in-out infinite; }
    .col-md-3:nth-child(1) .stats-box { animation-delay: 0s; }
    .col-md-3:nth-child(2) .stats-box { animation-delay: 1s; }
    .col-md-3:nth-child(3) .stats-box { animation-delay: 2s; }
    .col-md-3:nth-child(4) .stats-box { animation-delay: 0.5s; }
}

@media (max-width: 767px) {
    .stats-box { margin-bottom: 20px; }
}

.stats-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(145, 156, 35, 0.2);
    border-bottom: 3px solid #919c23;
    animation-play-state: paused;
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: rgba(145, 156, 35, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    transition: 0.4s;
}

.stats-icon img {
    width: 30px;
    height: auto;
}

.stats-box:hover .stats-icon {
    background: #919c23;
    transform: rotateY(180deg);
}

.stats-box:hover .stats-icon img {
    filter: brightness(0) invert(1);
}

.stats-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brand-primary);
    display: block;
    margin-bottom: 5px;
}

.stats-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin: 0;
    letter-spacing: 0.5px;
}

@keyframes float-up-down {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- SERVICE BOXES --- */
.service_area {
    background-color: #f4f6f9;
    position: relative;
}

.service-box-card {
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.service-box-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #919c23;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-box-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(145, 156, 35, 0.15);
}

.service-box-card:hover::after {
    transform: scaleX(1);
}

.service-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 50%;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-icon-wrapper i {
    font-size: 38px;
    color: var(--color-brand-primary);
    transition: all 0.4s ease;
}

.service-box-card:hover .service-icon-wrapper {
    background: #919c23;
    border-color: var(--color-brand-primary);
    transform: rotateY(180deg);
    box-shadow: 0 10px 20px rgba(145, 156, 35, 0.3);
}

.service-box-card:hover .service-icon-wrapper i {
    color: var(--color-white-hex);
    transform: rotateY(-180deg);
}

.service-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-section);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.service-box-card:hover .service-card-title {
    color: var(--color-brand-primary);
}

.service-card-desc {
    font-size: 15px;
    color: var(--color-text-form-muted);
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 400;
}

/* --- EXPERTISE SECTION --- */
.expertise-highlights-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-left: -10px;
    margin-right: -10px;
}

.expertise-card-col {
    width: 50%;
    padding: 0 10px;
    margin-bottom: 20px;
}

.expertise-mini-card {
    background: #fff;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.expertise-mini-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-brand-primary);
}

.expertise-card-icon {
    width: 45px;
    height: 45px;
    background: rgba(145, 156, 35, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.expertise-card-icon i {
    color: var(--color-brand-primary);
    font-size: 20px;
}

.expertise-card-text h5 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--color-text-primary);
}

.expertise-card-text span {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.expertise-main-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.left-section-push {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .left-section-push {
        padding-top: 0;
    }
}
