/* Home page overrides */

.px-10 {
    padding: 0 10%;
}

.gap-6 {
    gap: 20px;
}

.gap-10 {
    gap: 30px;
}

.gap-12 {
    gap: 40px;
}

.lg-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .lg-grid-2 {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
    }
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(15px, 2vw, 32px);
}

.grid-auto-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(20px, 4vw, 32px);
}

/* .logo {
    letter-spacing: 1px;
} */

.main-nav .nav-list {
    gap: 1.5rem;
    margin-left: auto;
}

@media (max-width: 992px) {
    .main-nav {
        top: 70px;
        right: 0;
        height: calc(100vh - 60px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: flex;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    }

    .main-nav.mobile-active {
        transform: translateX(0);
    }

    .mobile-close-btn {
        display: none;
    }
}

.mega-menu {
    min-width: 280px;
    padding: 16px;
    display: flex;
    gap: 0;
}

@media (max-width: 992px) {
    .mega-menu {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        gap: 0;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transform: scaleY(0);
        transform-origin: top;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.25s ease, padding-top 0.25s ease, transform 0.25s ease;
    }

    .dropdown.active .mega-menu {
        max-height: 320px;
        padding-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: scaleY(1);
        pointer-events: auto;
    }
}

.mega-column {
    flex: 1;
    min-width: 100%;
}

.mega-column h4,
.mega-column p {
    display: none;
}

.hero-blob-1,
.hero-blob-2 {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    filter: blur(120px);
    border-radius: 50%;
}

.hero-blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(108, 111, 255, 0.12);
}

.hero-blob-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(143, 240, 251, 0.08);
}

@media (max-width: 768px) {

    .hero-blob-1,
    .hero-blob-2 {
        display: none;
    }
}

.stats-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: -60px auto 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
}

@media (max-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 20px;
    }
}

.stat-item {
    position: relative;
    transition: text-shadow 0.3s;
}

.stat-item:hover h2 {
    text-shadow: 0 0 20px var(--accent-glow);
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
}

@media (max-width: 768px) {
    .stat-item:nth-child(2)::after {
        display: none;
    }
}

.service-cards-grid {
    align-items: stretch;
}

.card-know-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.card-know-more i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.card:hover .card-know-more {
    color: var(--accent2);
}

.card:hover .card-know-more i {
    transform: translateX(5px);
}

.service-thumb {
    margin: -36px -32px 22px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.service-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: ease-in 0.1s all;
}

.card:hover img {
    scale: 1.06;
}

@media (max-width: 768px) {
    .service-thumb {
        margin: -30px -24px 18px;
    }
}

.fancy-glass-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 28px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.coverage-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
}

.coverage-stats-grid .fancy-glass-item {
    padding: 20px 20px;
    margin-bottom: 0;
}

.coverage-stats-grid .fancy-glass-item p {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
    .coverage-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.fancy-glass-item:hover {
    border-color: var(--border-accent);
    background: rgba(108, 111, 255, 0.06);
}

.fancy-glass-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.fancy-glass-title-row i {
    color: var(--accent);
    font-size: 1.4rem;
}

.fancy-glass-title-row h3 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.fancy-glass-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.glance-title {
    text-align: left;
    margin-bottom: 24px;
}

.glance-subtitle {
    text-align: left;
    margin-bottom: 40px;
    margin-left: 0;
}

.business-services-showcase {
    background: linear-gradient(170deg, rgba(22, 28, 51, 0.9), rgba(12, 15, 29, 0.94));
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    width: 100%;
    box-shadow: 0 26px 70px rgba(4, 7, 16, 0.7);
}

.business-services-showcase::before {
    content: "";
    position: absolute;
    inset: -30% auto auto -10%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 111, 255, 0.26), rgba(108, 111, 255, 0));
    pointer-events: none;
}

.showcase-topbar {
    height: 46px;
    background: rgba(2, 6, 16, 0.66);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
}

.dash-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dash-dot.r {
    background: #ff5f56;
}

.dash-dot.y {
    background: #ffbd2e;
}

.dash-dot.g {
    background: #27c93f;
}

.showcase-body {
    padding: clamp(16px, 2.2vw, 26px);
    display: grid;
    gap: clamp(12px, 1.5vw, 18px);
}

.business-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(10px, 1.4vw, 14px);
}

.business-kpi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.kpi-label {
    color: var(--text-muted);
    font-size: 0.74rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
}

.kpi-value {
    color: var(--white);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1;
}

.business-kpi-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.service-lane-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: clamp(10px, 1.4vw, 14px);
}

.service-lane-card {
    background: rgba(14, 18, 34, 0.85);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.service-lane-card i {
    color: var(--accent2);
    font-size: 1.05rem;
}

.service-lane-card h3 {
    margin: 0;
    color: var(--white);
    font-size: 0.9rem;
}

.service-lane-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
}

/* Unified control section balance */
.unified-control-section .glance-title {
    margin-bottom: 15px;
}

.unified-control-section .glance-subtitle {
    margin-bottom: 20px;
    max-width: 56ch;
}

.unified-control-section .fancy-glass-item {
    padding: 16px 18px;
    margin-bottom: 15px;
}

.unified-control-section .fancy-glass-title-row {
    gap: 10px;
    margin-bottom: 7px;
}

.unified-control-section .fancy-glass-title-row i {
    font-size: 1.15rem;
}

.unified-control-section .fancy-glass-title-row h3 {
    font-size: 0.93rem;
}

.unified-control-section .fancy-glass-item p {
    font-size: 0.86rem;
    line-height: 1.45;
}

/* Premium Logo Ticker */
.logo-ticker-container {
    padding: 40px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scrollTicker 30s linear infinite;
    padding: 10px 0;
    will-change: transform;
}

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

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 135px;
    height: 91px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 13px;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.partner-logo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 15px 40px rgba(108, 111, 255, 0.2);
}

.partner-logo:hover img {
    filter: brightness(1.25);
    transform: scale(1.1);
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--loop-distance, -50%));
    }
}

.cert-carousel-container {
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.cert-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: certScroll 25s linear infinite;
    will-change: transform;
}

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

.cert-logo-circle {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Removing padding to allow image to fill the circle */
    overflow: hidden;
    /* Critical for forcing the circular crop */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    margin: 20px auto;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cert-logo-circle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.cert-logo-circle:hover {
    border-color: var(--accent);
    transform: scale(1.2) translateY(-10px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px var(--accent-glow),
        inset 0 0 10px rgba(108, 111, 255, 0.2);
}

.cert-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the circle perfectly */
    border-radius: 40%;
    /* Double safety for cropping */
    filter: brightness(1) contrast(1.1);
    transition: all 0.6s ease;
    transform: scale(1.0);
    /* Zooming in to hide any image edges and fill the circle with the badge content */
    clip-path: circle(60%);
    /* Reinforced circular mask */
}

.cert-logo-circle:hover img {
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.2);
    /* Slight zoom on hover */
}

.cert-logo-circle.touched {
    border-color: var(--accent);
    transform: scale(1.25) translateY(-5px);
    box-shadow: 0 12px 40px rgba(108, 111, 255, 0.3), 0 0 0 4px rgba(108, 111, 255, 0.1);
    z-index: 10;
}

.cert-logo-circle.touched img {
    transform: scale(1.05);
}

.map-bg {
    position: relative;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

.map-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, var(--bg-secondary) 80%);
    pointer-events: none;
}

@keyframes certScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--loop-distance, -50%));
    }
}

@media (max-width: 768px) {
    .showcase-topbar {
        height: 42px;
    }

    .glance-title,
    .glance-subtitle {
        text-align: center;
    }

    .glance-subtitle {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
    }

    .cert-logo-circle {
        width: 110px;
        height: 110px;
        padding: 14px;
    }

    .partner-logo {
        min-width: 170px;
        height: 96px;
        border-radius: 13px;
    }

    .partner-logo img {
        object-fit: contain;
        padding: 8px;
        background: #000;
    }

    .ticker-track {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .cert-logo-circle {
        width: 105px;
        height: 105px;
        padding: 0px;
    }

    .partner-logo {
        min-width: 100px;
        height: 86px;
        border-radius: 20px;
    }

    .partner-logo img {
        padding: 0px;
    }

    .ticker-track {
        gap: 25px;
    }

    .certSwiper {
        padding: 0 10px;
    }
}
