/* Networking Page Styles - Matching Website Design */

/* Body overflow fix */
body {
    overflow-x: hidden !important;
    position: relative;
}

html {
    overflow-x: hidden !important;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    max-width: 100vw !important;
}

/* Prevent any pseudo-elements from creating overflow */
body::after, body::before,
html::after, html::before {
    display: none !important;
}

/* Hero Section */
.services-hero {
    padding: 60px 0 50px;
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
        background: rgba(255, 255, 255, 0.78);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.gradient-mesh {
    display: none;
}

.hero-content {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content > div:first-child {
    text-align: left;
}

.services-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-top: 20px;
    color: var(--text-primary);
    line-height: 1.2;
}

@supports (-webkit-background-clip: text) {
    .services-hero h1 {
        background: linear-gradient(135deg, var(--text-primary) 0%, var(--gradient-start) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
    max-width: 500px;
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 550px;
}

.badge {
    background: var(--white);
    padding: 25px 18px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.badge svg {
    color: var(--gradient-start);
    margin-bottom: 12px;
}

.badge h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.badge p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Services Overview Section */
.services-overview {
    padding: 80px 0;
    background: var(--white);
}

.services-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* Network Solutions Section */
.network-solutions-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

.network-solutions-images {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    flex-wrap: nowrap;
}

.solution-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF;
    padding: 30px 20px 24px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #D1D5DB;
}

.solution-item:hover::before {
    opacity: 1;
}

.solution-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    border-radius: 8px;
}

.solution-item:hover img {
    transform: scale(1.05);
}

.solution-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.solution-item:hover h3 {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: #F8F9FA;
    padding: 40px 30px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E9ECEF;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-icon svg {
    width: 14px;
    height: 14px;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card ul li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gradient-start);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: #F8F9FA;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E9ECEF;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon svg {
    width: 36px;
    height: 36px;
    color: var(--white);
}

.benefit-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.benefit-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section - Smaller Version */
.cta-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    text-align: center;
}

.cta-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--gradient-start);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content > div:first-child {
        text-align: center;
    }
    
    .hero-subtitle {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-badges {
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 50px 0 40px;
    }
    
    .services-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-badges {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 350px;
    }
    
    .badge {
        padding: 20px 15px;
    }
    
    .network-solutions-images {
        gap: 15px;
    }
    
    .solution-item {
        padding: 25px 15px 20px;
    }
    
    .solution-item img {
        height: 160px;
        margin-bottom: 16px;
    }
    
    .solution-item h3 {
        font-size: 0.95rem;
    }
    
    .services-overview h2,
    .why-choose-us h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .services-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .badge {
        padding: 18px 12px;
    }
    
    .badge h3 {
        font-size: 0.95rem;
    }
    
    .badge p {
        font-size: 0.8rem;
    }
    
    .network-solutions-section {
        padding: 40px 0;
    }
    
    .network-solutions-images {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .solution-item {
        flex: 0 0 calc((100% - 40px) / 2);
        padding: 20px 15px 18px;
    }
    
    .solution-item img {
        height: 140px;
        margin-bottom: 14px;
    }
    
    .solution-item h3 {
        font-size: 0.9rem;
    }
    
    .solution-item:hover {
        transform: translateY(-5px);
    }
    
    .service-card,
    .benefit-item {
        padding: 30px 20px;
    }
    
    .services-overview h2,
    .why-choose-us h2,
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle,
    .cta-content p {
        font-size: 1rem;
    }
}

/* Hide any large decorative circular elements that may appear */
* {
    max-width: 100vw;
}

.footer ~ * {
    display: none !important;
}

/* Ensure no elements escape the viewport */
body > *:not(header):not(section):not(footer):not(script):not(a.whatsapp-float):not(.floating-ad) {
    max-height: 100vh;
    overflow: hidden;
}
