/* ===================================
   Network Page Specific Styles
   =================================== */

/* Network Hero Section */
.network-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.network-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.network-hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.network-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.45), rgba(0, 51, 102, 0.45));
}

.network-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    padding: 60px 20px 40px;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.6s ease;
}

.hero-title-xl {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

.network-stats-hero {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 0;
    flex-wrap: wrap;
}

.network-stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.12);
    padding: 20px 30px;
    border-radius: 60px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.network-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.network-stat-item:hover::before {
    left: 100%;
}

.network-stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.network-stat-item:hover .stat-icon {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(360deg);
}

.stat-pulse {
    position: absolute;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-data h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 3px;
    position: relative;
}

.stat-data h3::after {
    content: '+';
    font-size: 24px;
    margin-left: 2px;
}

.stat-data p {
    font-size: 13px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Coverage Map */
.map-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.map-container-network {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border: 1px solid rgba(0, 51, 102, 0.1);
}

.map-image-network {
    width: 100%;
    display: block;
    opacity: 0.95;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.05));
}

.map-markers {
    position: absolute;
    top: 30px;
    left: 30px;
    width: calc(100% - 60px);
    height: calc(100% - 60px);
}

.map-marker {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-marker:hover {
    transform: scale(1.3);
    z-index: 100;
}

.marker-dot {
    width: 18px;
    height: 18px;
    background: var(--primary-red);
    border-radius: 50%;
    border: 3px solid var(--white);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4), 0 0 0 0 rgba(227, 30, 36, 0.7);
    animation: ripple 2.5s ease-out infinite;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.map-marker:hover .marker-dot {
    box-shadow: 0 6px 25px rgba(227, 30, 36, 0.6), 0 0 0 0 rgba(227, 30, 36, 0.7);
    transform: scale(1.1);
}

/* HQ Marker - Special styling for headquarters */
.marker-dot.hq-marker {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #003366, #E31E24);
    border: 4px solid var(--white);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.5), 0 0 20px rgba(227, 30, 36, 0.3);
    animation: pulseHQ 2s ease-in-out infinite;
}

.marker-dot.hq-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

.marker-dot.hq-marker::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    border: 1px solid var(--white);
}

@keyframes pulseHQ {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0, 51, 102, 0.5), 0 0 20px rgba(227, 30, 36, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(0, 51, 102, 0.7), 0 0 30px rgba(227, 30, 36, 0.5);
    }
}

/* Hub Marker - For regional hubs */
.marker-dot.hub-marker {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    border: 3px solid var(--white);
    box-shadow: 0 5px 18px rgba(107, 70, 193, 0.4);
}

.marker-dot.hub-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
}

.marker-label {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-marker:hover .marker-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Tooltip for detailed info */
.map-marker::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.92);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-marker::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.92);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.map-marker:hover::after,
.map-marker:hover::before {
    opacity: 1;
}

/* Connection lines between regions (optional visual enhancement) */
.map-container-network::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.02), rgba(227, 30, 36, 0.02));
    pointer-events: none;
}

@keyframes ripple {
    0% {
        box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4), 0 0 0 0 rgba(227, 30, 36, 0.7);
    }
    50% {
        box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4), 0 0 0 12px rgba(227, 30, 36, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4), 0 0 0 0 rgba(227, 30, 36, 0);
    }
}

/* Coverage Highlights */
.highlights-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.highlight-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.highlight-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.highlight-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.highlight-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.highlight-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-gray);
}

/* Regional Coverage */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.region-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 5px solid transparent;
    position: relative;
}

.region-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.03), rgba(107, 70, 193, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.region-card:hover::before {
    opacity: 1;
}

.region-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.2);
    border-top-color: var(--primary-red);
}

.region-card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.region-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: transform 0.6s ease;
}

.region-card:hover .region-card-header::before {
    transform: translate(-25%, -25%);
}

.region-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.region-card:hover .region-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotateY(360deg) scale(1.1);
}

.region-name {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 600;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.region-card-body {
    padding: 28px;
}

.region-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 22px;
}

.region-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.region-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--charcoal);
    padding: 12px 15px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.region-card:hover .region-detail-item {
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.05), rgba(107, 70, 193, 0.05));
    border-left-color: var(--primary-red);
    transform: translateX(5px);
}

.region-detail-item i {
    color: var(--primary-red);
    font-size: 17px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.region-card:hover .region-detail-item i {
    transform: scale(1.2);
}

/* Infrastructure Section */
.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 60px;
}

.infra-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.infra-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.15);
}

.infra-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.infra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.infra-card:hover .infra-image img {
    transform: scale(1.1);
}

.infra-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.7), rgba(107, 70, 193, 0.7));
}

.infra-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 35px;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.infra-content {
    padding: 30px 25px;
}

.infra-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.infra-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-gray);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .network-hero {
        height: 100vh;
    }
    
    .network-hero-content {
        padding: 50px 20px 30px;
    }
    
    .hero-title-xl {
        font-size: 42px;
        margin-bottom: 18px;
    }
    
    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 35px;
    }
    
    .network-stats-hero {
        gap: 20px;
    }
    
    .network-stat-item {
        padding: 18px 25px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .stat-pulse {
        width: 50px;
        height: 50px;
    }
    
    .stat-data h3 {
        font-size: 32px;
    }

    .map-content {
        grid-template-columns: 1fr;
    }

    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .infrastructure-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .network-hero {
        height: 100vh;
    }
    
    .network-hero-content {
        padding: 40px 20px 25px;
    }
    
    .hero-label {
        font-size: 12px;
        padding: 7px 18px;
        margin-bottom: 15px;
    }
    
    .hero-title-xl {
        font-size: 34px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .network-stat-item {
        padding: 16px 22px;
        gap: 15px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .stat-pulse {
        width: 48px;
        height: 48px;
    }

    .stat-data h3 {
        font-size: 30px;
    }
    
    .stat-data p {
        font-size: 12px;
    }

    .regions-grid {
        grid-template-columns: 1fr;
    }

    .map-marker {
        transform: scale(0.8);
    }

    .marker-label {
        font-size: 11px;
        padding: 4px 10px;
    }
}

@media (max-width: 576px) {
    .network-hero {
        height: 100vh;
    }
    
    .network-hero-content {
        padding: 35px 20px 20px;
    }
    
    .hero-label {
        font-size: 11px;
        padding: 6px 16px;
        margin-bottom: 12px;
    }
    
    .hero-title-xl {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .network-stats-hero {
        flex-direction: column;
        gap: 12px;
    }

    .network-stat-item {
        width: 100%;
        justify-content: center;
        padding: 16px 25px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .stat-pulse {
        width: 50px;
        height: 50px;
    }
    
    .stat-data h3 {
        font-size: 32px;
    }

    .infra-image {
        height: 200px;
    }

    .infra-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
}