/* Page Load Animation Targets */
body.loading header,
body.loading .page-header,
body.loading .nav-section,
body.loading .content-section,
body.loading footer {
    opacity: 0;
    filter: blur(20px);
}

body.loading header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(-20px);
}

body.loading .page-header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(10px);
}

body.loading .nav-section,
body.loading .content-section,
body.loading footer {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Page Header - page-specific overrides */
.page-header {
    background:
        linear-gradient(135deg,
            rgba(255, 87, 64, 0.85) 0%,
            rgba(255, 138, 101, 0.75) 100%
        ),
        var(--page-header-bg-image, none) center/cover;
}

/* Content Section - page-specific overrides */
.content-section {
    padding: 100px 0;
}

.content-section:nth-child(even) {
    background: #fafafa;
}

.section-title {
    margin-bottom: 1.2rem;
}

/* Solution Grid */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Page-specific card grids */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.core-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

/* System development two-column block */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.solution-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border-top: 4px solid #FF5740;
    transition: all 0.3s;
}

.solution-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.solution-card h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Features List - page-specific overrides (different icon) */
.features li {
    padding: 0.2rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.features li:before {
    content: "\203A";
    position: absolute;
    left: 0;
    color: #FF5740;
    top: 0.35rem;
    font-weight: bold;
    font-size: 1.3rem;
    line-height: 1;
}

/* Info Box - page-specific override */
.info-box {
    padding: 2.5rem;
}

/* Avoid double spacing (grid gap + info-box margin) in these card groups */
.why-us-grid .info-box,
.core-services-grid .info-box,
.scenario-grid .info-box,
.dev-grid .info-box {
    margin: 0;
}

/* Navigation Tabs (goto navigation) */
.nav-section {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.62) 0%,
        rgba(255, 245, 242, 0.56) 100%
    );
    backdrop-filter: blur(12px) saturate(125%);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 16px rgba(255, 87, 64, 0.05);
    position: sticky;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-button {
    background: transparent;
    border: none;
    color: #666;
    padding: 20px 24px 15px;
    font-size: 1.15rem;
    line-height: 1.1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-family: inherit;
}

.nav-button:hover {
    color: #1a1a1a;
    background: rgba(255, 87, 64, 0.05);
}

.nav-button.active {
    color: #FF5740;
    border-bottom-color: #FF5740;
}

/* Arrow Chevron Process */
.chevron-process {
    display: flex;
    gap: 0;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

.chevron-step {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem 2rem 2.5rem;
    background: #f8f9fa;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
    transition: background 0.3s;
}

.chevron-step:first-child {
    padding-left: 1.5rem;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
}

.chevron-step:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%);
}

/* Progressive warm tones */
.chevron-step:nth-child(1) { background: #fff7f5; }
.chevron-step:nth-child(2) { background: #ffefeb; }
.chevron-step:nth-child(3) { background: #ffe7e1; }
.chevron-step:nth-child(4) { background: #ffdfd7; }
.chevron-step:nth-child(5) { background: #ffd7cd; }

.chevron-step:hover {
    background: #FF5740;
}

.chevron-step:hover h4 { color: white; }
.chevron-step:hover h5 { color: rgba(255,255,255,0.7); }
.chevron-step:hover p { color: rgba(255,255,255,0.85); }

.chevron-step:hover .chevron-number {
    background: white;
    color: #FF5740;
    box-shadow: 0 2px 8px rgba(255,255,255,0.4);
}

.chevron-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #FF5740, #ff8a65);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin: 0 auto 0.8rem;
    box-shadow: 0 2px 8px rgba(255, 87, 64, 0.3);
    transition: all 0.3s;
}

.chevron-step h4 {
    color: #1e3c72;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    transition: color 0.3s;
}

.chevron-step h5 {
    color: #999;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.chevron-step p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s;
}

/* Network hardware brands */
.network-brand-section {
    margin-top: 3rem;
}

.network-brand-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.network-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto;
}

.network-brand-card {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 14px;
    padding: 0.9rem 0.75rem;
    min-height: 122px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.network-brand-card img {
    width: 92px;
    height: 92px;
    display: block;
    object-fit: contain;
}

/* Optical balancing for long logos (Cisco intentionally unchanged) */
.network-brand-card img.logo-wide-sm {
    transform: scale(1.1);
}

.network-brand-card img.logo-wide-md {
    transform: scale(1.35);
}

.network-brand-card img.logo-wide-lg {
    transform: scale(1.5);
}

/* Bottom CTA with background image */
.bottom-cta {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
    z-index: 1;
}

.bottom-cta .container {
    position: relative;
    z-index: 2;
}

.bottom-cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bottom-cta h3 {
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.bottom-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* ==========================================================================
   Responsive - Page-specific
   ========================================================================== */

@media (max-width: 768px) {
    .nav-section .container {
        padding: 0;
    }

    /* Nav tabs (goto navigation) */
    .nav-tabs {
        gap: 0.5rem;
        padding: 0 20px;
        margin: 0;
        scroll-padding-inline: 20px;
    }

    .nav-button {
        padding: 20px 15px 15px;
        font-size: 1rem;
        line-height: 1.1;
    }

    .nav-section {
        padding: 0;
    }

    /* Chevron responsive */
    .chevron-process {
        flex-direction: column;
        gap: 0;
    }

    .chevron-step {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), 50% 100%, 0 calc(100% - 15px));
        padding: 1.5rem 1.5rem 2rem;
    }

    .chevron-step:first-child {
        padding-left: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), 50% 100%, 0 calc(100% - 15px));
    }

    .chevron-step:last-child {
        clip-path: polygon(0 15px, 50% 0, 100% 15px, 100% 100%, 0 100%);
    }

    .chevron-step:not(:first-child):not(:last-child) {
        clip-path: polygon(0 15px, 50% 0, 100% 15px, 100% calc(100% - 15px), 50% 100%, 0 calc(100% - 15px));
    }

    /* Solution grid */
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-us-grid,
    .core-services-grid,
    .scenario-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dev-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .network-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .network-brand-card {
        min-height: 108px;
        padding: 0.75rem 0.6rem;
    }

    .network-brand-card img {
        width: 78px;
        height: 78px;
    }

    .network-brand-card img.logo-wide-sm {
        transform: scale(1.1);
    }

    .network-brand-card img.logo-wide-md {
        transform: scale(1.35);
    }

    .network-brand-card img.logo-wide-lg {
        transform: scale(1.5);
    }
}
