/* ==========================================================================
   ONETOMAX AGENCY - STATS, PARTNERS & PROJECTS STYLESHEET
   ========================================================================== */

/* Stats & Partners Section - Exact match to template */
.stats-partners-section {
    background: linear-gradient(90deg, #1ea1f2 0%, #0080e1 35%, #006ec4 70%, #00569e 100%);
    padding: 70px 0 155px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.constellation-bg-layer {
    position: absolute;
    inset: 0;
    background: url('../images/video/image.png') center/cover no-repeat;
    opacity: 0.85;
    animation: constellationDrift 16s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

.constellation-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

@keyframes constellationDrift { 0% { transform: scale(1) translate(0, 0); opacity: 0.75; }
50% { transform: scale(1.05) translate(-15px, -10px); opacity: 0.95; }
100% { transform: scale(1.02) translate(12px, 8px); opacity: 0.8; }
}

.stats-tag {
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    position: relative;
    z-index: 3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.stats-title {
    text-align: center;
    font-size: 2.35rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 38px;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.stat-col { display: flex; align-items: center; gap: 14px; }

.stat-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    color: #0080e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.stat-col:hover .stat-icon-circle { transform: scale(1.08); }

.stat-text-wrap { display: flex; flex-direction: column; }

.stat-num {
    color: #f8f102;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: baseline;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.stat-plus {
    font-size: 0.6em;
    vertical-align: super;
    font-weight: 800;
    margin-left: 2px;
}

.stat-lbl {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.partners-floating-card {
    max-width: 1060px;
    margin: -110px auto 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(94, 186, 77, 0.06);
    padding: 30px 24px 34px;
    position: relative;
    z-index: 10;
    text-align: center;
    border: 1px solid rgba(237, 242, 247, 0.8);
}

.partners-floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0080e1 30%, #ffd700 50%, #0080e1 70%, transparent);
    border-radius: 3px;
}

.brand-static-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 10px 0 16px;
    perspective: 800px;
}

.brand-card-item {
    width: 100%;
    height: 74px;
    background: #ffffff;
    border: 1.5px solid #edf2f7;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease, opacity 0.28s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.brand-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.85) 50%, transparent 80%);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.brand-card-item:hover::before { left: 150%; }

.brand-card-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0, 128, 225, 0.16), 0 4px 10px rgba(0, 0, 0, 0.04);
    border-color: #0080e1;
}

.brand-card-item.dimmed { opacity: 0.4; transform: scale(0.97); }

.brand-card-item.focused {
    border-color: #0080e1;
    box-shadow: 0 8px 22px rgba(0, 128, 225, 0.2);
    transform: translateY(-3px);
}

.brand-card-item img {
    max-width: 86%;
    max-height: 48px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    z-index: 1;
}

.brand-card-item:hover img { transform: scale(1.08); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06)); }

.brand-card-item:active { transform: translateY(-2px) scale(0.98); }

.partner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 14px;
}

.p-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.p-dot:hover { background: #94a3b8; transform: scale(1.2); }

.p-dot.active {
    background: #0080e1;
    width: 22px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 128, 225, 0.35);
}

.partner-affirmation {
    font-size: 1.08rem;
    font-weight: 800;
    color: #1e2329;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.partner-btn-wrap { display: flex; justify-content: center; }

.btn-profile {
    display: inline-block;
    background: #0080e1;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 11px 36px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 128, 225, 0.35);
    transition: all 0.25s ease;
}

.btn-profile:hover {
    background: #0066b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 128, 225, 0.45);
    color: #ffffff;
}

/* Projects Section - Compact Layout matching template */
.projects-section { padding: 70px 0 80px; background-color: #ffffff; }

.projects-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 26px;
}

.projects-heading {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.18;
    color: #1e2329;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.projects-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e2329;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}

.projects-view-all:hover { color: #0080e1; }

.projects-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 15px;
}

.projects-tab-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.p-tab-btn {
    padding: 8px 18px;
    border-radius: 4px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.p-tab-btn.active { background: #0080e1; color: #ffffff; }

.p-tab-btn:hover:not(.active) { background: #e2e8f0; color: #1e293b; }

.projects-tab-arrows { display: flex; gap: 6px; flex-shrink: 0; }

.tab-arrow-nav {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    background: #f1f5f9;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.tab-arrow-nav:hover { background: #0080e1; color: #ffffff; }

.projects-compact-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.project-featured-card {
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-featured-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09); }

.p-featured-img {
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    background: #000;
}

.p-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-featured-card:hover .p-featured-img img { transform: scale(1.02); }

.p-featured-bar {
    padding: 16px 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #f1f5f9;
}

.p-featured-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #1e2329;
    margin: 0;
}

.btn-project-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0080e1;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 128, 225, 0.3);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.btn-project-detail:hover {
    background: #0066b3;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 128, 225, 0.4);
    color: #ffffff;
}

.projects-sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.project-sub-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
}

.project-sub-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.project-sub-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }

.project-sub-card:hover img { transform: scale(1.04); }
