/* Modems and Routers Page Styles */

/* Hero Section */
.modem-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.modem-hero h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 auto 24px;
    max-width: 900px;
}

.modem-hero h2 em {
    font-style: italic;
    font-weight: 700;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 auto 40px;
    max-width: 800px;
    opacity: 0.95;
}

/* Gateway Header Section */
.gateway-header {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
}

.gateway-header h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    max-width: 900px;
    margin: 0 auto;
}

.gateway-header h2 em {
    font-style: italic;
    color: #6B4CE6;
}

/* Connect Devices Section */
.connect-devices-section {
    background: #f8f8f8;
    padding: 80px 20px;
}

.connect-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.connect-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    line-height: 1.3;
}

.connect-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.link-arrow {
    color: #6B4CE6;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.link-arrow:hover {
    color: #5a3cc5;
    transform: translateX(5px);
}

/* Xfinity App Section */
.xfinity-app-section {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
}

.app-content {
    max-width: 800px;
    margin: 0 auto;
}

.app-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.xfinity-app-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
    line-height: 1.3;
}

/* Ultra-Low Lag Section */
.ultra-low-lag-section {
    background: #f8f8f8;
    padding: 80px 20px;
    text-align: center;
}

.lag-content {
    max-width: 800px;
    margin: 0 auto;
}

.lag-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.ultra-low-lag-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    line-height: 1.3;
}

.lag-content > p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.lag-disclaimer {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-top: 30px !important;
    font-style: italic;
}

/* Security Section */
.security-section {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
}

.security-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.security-section > p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.security-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.link-purple {
    color: #6B4CE6;
    text-decoration: underline;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.link-purple:hover {
    color: #5a3cc5;
}

/* Tech Specs Section */
.tech-specs-section {
    background: #f8f8f8;
    padding: 80px 20px;
}

.tech-specs-section h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #000;
    line-height: 1.3;
}

.tech-specs-section h2 em {
    font-style: italic;
    color: #6B4CE6;
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-spec-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tech-spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.spec-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.spec-icon img {
    width: 100%;
    height: 100%;
}

.tech-spec-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #000;
}

.spec-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-features li {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.spec-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6B4CE6;
    font-weight: 700;
}

/* Xfinity Pro Section */
.xfinity-pro-section {
    background: #fff;
    padding: 80px 20px;
}

.xfinity-pro-section h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #000;
    line-height: 1.3;
}

.xfinity-pro-section h2 em {
    font-style: italic;
    color: #6B4CE6;
}

.pro-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.pro-feature-card {
    background: #f8f8f8;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pro-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.pro-feature-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #e0e0e0;
}

.pro-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-feature-content {
    padding: 30px;
}

.pro-feature-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #000;
}

.pro-feature-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 20px;
}

/* Better Together Section */
.better-together-section {
    background: #f8f8f8;
    padding: 80px 20px;
}

.better-together-section h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #000;
    line-height: 1.3;
}

.better-together-section h2 em {
    font-style: italic;
    color: #6B4CE6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e0e0e0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding: 20px;
    color: #000;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #6B4CE6;
    color: #fff;
}

.btn-primary:hover {
    background: #5a3cc5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 76, 230, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #6B4CE6;
    border: 2px solid #6B4CE6;
}

.btn-secondary:hover {
    background: #6B4CE6;
    color: #fff;
    transform: translateY(-2px);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .modem-hero h2,
    .gateway-header h2,
    .tech-specs-section h2,
    .xfinity-pro-section h2,
    .better-together-section h2 {
        font-size: 38px;
    }

    .connect-content h2,
    .xfinity-app-section h2,
    .ultra-low-lag-section h2,
    .security-section h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .modem-hero {
        padding: 60px 20px;
    }

    .modem-hero h2,
    .gateway-header h2 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 18px;
    }

    .connect-content h2,
    .xfinity-app-section h2,
    .ultra-low-lag-section h2,
    .security-section h2 {
        font-size: 28px;
    }

    .tech-specs-section h2,
    .xfinity-pro-section h2,
    .better-together-section h2 {
        font-size: 32px;
    }

    .tech-specs-grid {
        grid-template-columns: 1fr;
    }

    .pro-features-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-cta {
        flex-direction: column;
        gap: 20px;
    }

    .gateway-header,
    .connect-devices-section,
    .xfinity-app-section,
    .ultra-low-lag-section,
    .security-section,
    .tech-specs-section,
    .xfinity-pro-section,
    .better-together-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .modem-hero h2,
    .gateway-header h2 {
        font-size: 28px;
    }

    .connect-content h2,
    .xfinity-app-section h2,
    .ultra-low-lag-section h2,
    .security-section h2 {
        font-size: 24px;
    }

    .tech-specs-section h2,
    .xfinity-pro-section h2,
    .better-together-section h2 {
        font-size: 28px;
    }

    .hero-description,
    .connect-content p,
    .security-section > p {
        font-size: 16px;
    }

    .app-icon,
    .lag-icon {
        width: 60px;
        height: 60px;
    }

    .tech-spec-card,
    .pro-feature-content {
        padding: 30px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card h3 {
        font-size: 18px;
        padding: 16px;
    }
}