/* --- Table of Contents ---
1.  Global Styles & Variables
2.  Header & Navigation
3.  Hero Section
4.  Stats Section
5.  Coverage Section & Network Map (Updated)
6.  Packages Section
7.  Clients Section (Updated)
8.  Speed Test Section
9.  FTP Servers Section (Updated)
10. Contact Section
11. Footer (Updated)
12. Animations & Keyframes
13. Responsive Design
--------------------------- */

/* 1. Global Styles & Variables */
:root {
    --primary: #D32F2F; /* Vibrant Red */
    --primary-dark: #B71C1C;
    --secondary: #0D1B2A; /* Deep Navy Blue */
    --secondary-light: #1B263B;
    --accent: #FFC107; /* Bright Yellow */
    --light: #F8F9FA; /* Off-white */
    --dark: #343A40;
    --success: #10B981;
    --white: #ffffff;
    --gray: #ADB5BD;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fluid container for full-width sections */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}


section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* 2. Header & Navigation */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.4rem;
    color: var(--secondary);
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
    line-height: 1;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: var(--primary);
}

.nav a:hover::after, .nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px 20px;
    background: var(--white);
    border-top: 1px solid #eee;
    text-align: center;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 12px 0;
    border-radius: 8px;
    transition: all 0.3s;
}
.mobile-nav a:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* 3. Hero Section */
.hero {
    background-color: var(--secondary);
    padding-top: 100px;
    padding-bottom: 100px;
    color: var(--white);
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}
.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-text .btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}
.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.needle {
    transform-origin: bottom center;
    animation: sweep 2s ease-in-out infinite alternate;
}
.wifi-pulse {
    animation: wifiPulseAnimation 2s infinite ease-out;
}
.float-1 { animation: float 8s infinite ease-in-out alternate; }
.float-2 { animation: float 12s infinite ease-in-out alternate-reverse; }

/* 4. Stats Section */
.stats { background-color: var(--light); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.stat-card { background: var(--white); padding: 30px; border-radius: var(--border-radius); text-align: center; transition: all 0.3s ease; border: 1px solid #e9ecef; }
.stat-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--primary); }
.stat-icon { width: 60px; height: 60px; background: linear-gradient(45deg, var(--primary), var(--primary-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: white; font-size: 1.8rem; }
.stat-card h3 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 5px; }
.stat-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--dark); font-weight: 600; }
.stat-card p { color: #6c757d; }

/* 5. Coverage Section & Network Map (Updated) */
.coverage-section { background-color: var(--light); }
.coverage-map-wrapper { 
    width: 100%;
    max-width: 1400px; /* Wider map */
    margin: 0 auto;
}
.network-map-container { 
    background-color: var(--secondary);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    border-radius: var(--border-radius); 
    padding: 20px; 
    border: 1px solid var(--secondary-light); 
}
.network-svg .server-core { fill: var(--primary); }
.network-svg .server-pulse { fill: var(--primary); opacity: 0.3; transform-origin: center; animation: networkPulse 2s infinite ease-out; }
.network-svg .node-line { stroke: #4A5568; stroke-width: 1.5; fill: none; }
.network-svg .node circle { fill: var(--success); transition: r 0.3s ease; }
.network-svg .node:hover circle { r: 11px; fill: var(--accent); }
.network-svg .node .expanding-node { fill: var(--warning); animation: nodePulse 1.5s infinite; }
.network-svg .node .expanding-line { stroke: var(--warning); stroke-dasharray: 4 4; animation: dash 2s linear infinite reverse;}
.network-svg .node .planned-line { stroke: var(--gray); stroke-dasharray: 2 4; }
.network-svg .node .planned-node { fill: var(--gray); }
.network-svg .node text, .network-svg .server-text { font-size: 12px; font-weight: 500; fill: var(--light); text-anchor: middle; }
.network-svg .data-packet { fill: var(--accent); }

/* 6. Packages Section */
.packages-section { background-color: var(--white); }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.package-card { background: var(--white); border-radius: var(--border-radius); text-align: center; transition: all 0.3s ease; position: relative; overflow: hidden; border: 1px solid #e9ecef; display: flex; flex-direction: column; }
.package-card:hover { transform: scale(1.05); box-shadow: var(--shadow); z-index: 10; }
.package-card.popular { border: 2px solid var(--primary); transform: scale(1.05); }
.popular-badge { position: absolute; top: 20px; right: -45px; background: var(--primary); color: white; padding: 5px 40px; font-size: 0.8rem; font-weight: 600; transform: rotate(45deg); z-index: 1; }
.package-header { padding: 30px; }
.package-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 1.8rem; color: white; }
.package-icon.bronze { background: #cd7f32; }
.package-icon.silver { background: #c0c0c0; }
.package-icon.gold { background: #ffd700; }
.package-icon.platinum { background: #e5e4e2; color: var(--dark); }
.package-icon.diamond { background: #b9f2ff; color: var(--dark); }
.package-icon.ruby { background: #e0115f; }
.package-icon.emerald { background: #50c878; }
.package-icon.sapphire { background: #0f52ba; }
.package-header h3 { font-size: 1.6rem; margin-bottom: 10px; color: var(--secondary); }
.package-header p { color: #6c757d; margin-bottom: 15px; height: 40px; }
.package-price { margin-bottom: 15px; }
.package-price .price { font-size: 2.5rem; font-weight: 700; color: var(--secondary); }
.package-price .period { color: var(--gray); }
.package-speed { display: inline-block; background: var(--light); color: var(--primary); padding: 5px 15px; border-radius: 50px; font-weight: 600; border: 1px solid var(--primary); }
.package-features { padding: 0 30px; list-style: none; text-align: left; flex-grow: 1; }
.package-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--dark); }
.package-features li i { color: var(--success); font-size: 1.2rem; }
.package-card .btn { margin: 30px; width: calc(100% - 60px); justify-content: center; }

/* 7. Clients Section (Updated) */
.clients-section { background: var(--light); }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.client-item { background: #fff; border: 1px solid #e9ecef; border-radius: var(--border-radius); padding: 20px; display: flex; justify-content: center; align-items: center; height: 100px; transition: all 0.4s ease; }
.client-item img { max-width: 100%; max-height: 50px; filter: grayscale(100%); opacity: 0.7; transition: all 0.3s ease; }
.client-item:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-5px); }
.client-item:hover img { filter: grayscale(0%); opacity: 1; }

/* 8. Speed Test Section */
.speed-test { background-color: var(--light); }
.speed-test-container { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); overflow: hidden; max-width: 800px; margin: 0 auto; border: 5px solid var(--white); padding: 10px; }
.speed-test-container iframe { border-radius: 8px; }

/* 9. FTP Servers Section (Updated) */
.servers-section { background-color: var(--white); }
.servers-table-container { background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); overflow-x: auto; }
.servers-table { width: 100%; border-collapse: collapse; text-align: left; }
.servers-table th, .servers-table td { padding: 18px 20px; border-bottom: 1px solid #e9ecef; }
.servers-table thead { background-color: var(--secondary); color: white; }
.servers-table th { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.servers-table tbody tr:last-child td { border-bottom: none; }
.servers-table tbody tr:hover { background-color: var(--light); }
.status-icon-green { color: var(--success); margin-right: 8px; }
.status-icon-red { color: var(--danger); margin-right: 8px; }
.status-icon-orange { color: var(--warning); margin-right: 8px; }
.site-type { padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.site-type.ftp { background: rgba(211, 47, 47, 0.1); color: var(--primary); }
.status-badge { padding: 5px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; color: white; }
.status-badge.open { background-color: var(--success); }
.status-badge.closed { background-color: var(--danger); }
.status-badge.maintenance { background-color: var(--warning); }
.visit-btn { padding: 8px 15px; font-size: 0.9rem; border-radius: 6px; }
.visit-btn.disabled { background-color: var(--gray); cursor: not-allowed; opacity: 0.7; }

/* 10. Contact Section */
.contact { background-color: var(--light); }
.contact-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; background: white; padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.contact-info-col h3, .contact-form-col h3 { font-size: 1.8rem; color: var(--secondary); margin-bottom: 25px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-item i { font-size: 1.5rem; color: var(--primary); margin-top: 5px; }
.contact-item h4 { font-size: 1.1rem; color: var(--dark); margin-bottom: 5px; }
.contact-item p { margin: 0; color: #6c757d; }
.contact-item a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
.contact-item a:hover { color: var(--secondary); }
.map-container { border-radius: 8px; overflow: hidden; margin-top: 20px; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: var(--dark); font-weight: 500; }
input, textarea { width: 100%; padding: 12px 15px; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem; font-family: var(--font-family); transition: all 0.3s; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2); }
textarea { min-height: 120px; resize: vertical; }
#formMessage { padding: 12px; border-radius: 8px; margin-bottom: 20px; text-align: center; }
.form-message.success { background: #d1fae5; color: #065f46; }
.form-message.error { background: #fee2e2; color: #991b1b; }

/* 11. Footer (Updated) */
.footer { background: var(--secondary); color: var(--light); padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-about .footer-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; text-decoration: none;}
.footer-about .logo-img { height: 50px; width: auto; }
.footer-title { margin-bottom: 20px; color: white; font-weight: 600; }
.footer-about .footer-title { margin-bottom: 0; font-size: 1.4rem; color: var(--white); }
.footer p { margin-bottom: 20px; opacity: 0.8; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--secondary); background: white; font-size: 1.1rem; text-decoration: none; transition: all 0.3s; }
.social-icon:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 12px; }
.footer-section ul li a, .footer-contact li a { color: var(--light); opacity: 0.8; text-decoration: none; transition: all 0.3s; }
.footer-section ul li a:hover, .footer-contact li a:hover { opacity: 1; color: var(--accent); padding-left: 5px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; opacity: 0.8; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.7; font-size: 0.9rem; }
.btn-google-play { background-color: #000; color: #fff; border-radius: 8px; padding: 10px 20px; display: inline-flex; align-items: center; text-decoration: none; gap: 15px; transition: background-color 0.3s; }
.btn-google-play:hover { background-color: #333; }
.btn-google-play i { font-size: 2rem; }
.btn-google-play div { text-align: left; line-height: 1.1; }
.btn-google-play span { font-size: 0.7rem; }
.btn-google-play strong { font-size: 1rem; }

/* 12. Animations & Keyframes */
.hidden { display: none; }
.scroll-animate { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.scroll-animate.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes sweep { 0% { transform: rotate(-60deg); } 100% { transform: rotate(30deg); } }
@keyframes wifiPulseAnimation { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }
@keyframes networkPulse { 0% { r: 15px; opacity: 0.3; } 100% { r: 40px; opacity: 0; } }
@keyframes nodePulse { 0% { r: 8px; } 50% { r: 11px; } 100% { r: 8px; } }
@keyframes dash { to { stroke-dashoffset: -20; } }

/* 13. Responsive Design */
@media (max-width: 992px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-nav.active { display: flex; }
    .section-header h2 { font-size: 2.4rem; }
    .contact-content { grid-template-columns: 1fr; }
    .packages-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .hero { min-height: 0; padding-top: 60px; padding-bottom: 60px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text { order: 2; }
    .hero-image { order: 1; margin-bottom: 30px; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-actions .btn { display: none; }
    .hero-text h1 { font-size: 2.2rem; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .packages-grid { grid-template-columns: 1fr; }
    .package-card.popular { transform: scale(1); }
    .servers-table thead { display: none; }
    .servers-table, .servers-table tbody, .servers-table tr, .servers-table td { display: block; width: 100%; }
    .servers-table tr { margin-bottom: 15px; border: 1px solid #eee; border-radius: 8px; }
    .servers-table td { text-align: right; padding-left: 50%; position: relative; border-bottom: 1px solid #eee; }
    .servers-table td::before { content: attr(data-label); position: absolute; left: 15px; width: 45%; padding-right: 10px; text-align: left; font-weight: 600; color: var(--secondary); }
    .servers-table td:last-child { border-bottom: none; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-about .footer-logo, .social-icons { justify-content: center; }
}

@media (max-width: 576px) {
    section { padding: 60px 0; }
    .hero-text h1 { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
    .contact-content { padding: 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .btn-google-play { margin: 0 auto; }
}

