:root {
    --bg-dark: #050508;
    --primary: #00f0ff;
    --secondary: #7000ff;
    --accent: #ff003c;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(15, 23, 42, 0.7);
    --navbar-height: 80px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: floatGlow 10s ease-in-out infinite alternate;
}
.glow-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
}
.glow-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    animation-delay: -5s;
}

@keyframes floatGlow {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    /* needed so the mobile dropdown is contained */
    position: fixed;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container .logo {
    height: 45px;
    margin-left: -60px;
    transform: scale(3.5) translateY(2px);
    transform-origin: left center;
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.5));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}
.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 10% 0;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-wide-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
    position: relative;
    z-index: 10;
}

.hero-wide-h1 {
    font-size: 4rem;
    line-height: 1.1;
}

.hero-wide-p {
    font-size: 1.5rem;
    margin: 20px 0;
}

.hero-buttons-centered {
    justify-content: center;
    margin-top: 40px;
}

.intro-strip {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.intro-strip span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Graphic Animations */
.hero-graphic {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

/* Wide Hero Background Fiber */
.hero.hero-wide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 100px; /* offset navbar */
    position: relative;
    overflow: hidden;
}

.hero-bg-graphic {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero.hero-wide .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
}

.wide-fiber-svg {
    filter: drop-shadow(0 0 10px var(--primary)) drop-shadow(0 0 40px var(--secondary));
    width: 100vw;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.w-cable {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-linecap: round;
    stroke-width: 6px;
}

.w-light {
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-dasharray: 100 1500;
    animation: flowLightWide 15s linear infinite;
    stroke-width: 3px;
}

.w-light.l2 {
    stroke: var(--secondary);
    stroke-dasharray: 150 1200;
    animation: flowLightWide 12s linear infinite;
    animation-delay: 1s;
    stroke-width: 5px;
}

.w-light.l3 {
    stroke: var(--accent);
    stroke-dasharray: 200 1800;
    animation: flowLightWide 18s linear infinite;
    animation-delay: 2.5s;
    stroke-width: 4px;
}

.w-light.l4 {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-dasharray: 80 1000;
    animation: flowLightWide 10s linear infinite;
    animation-delay: 0.5s;
    stroke-width: 2px;
}

@keyframes flowLightWide {
    from { stroke-dashoffset: 2000; }
    to { stroke-dashoffset: 0; }
}

/* General Sections */
.section-padding {
    padding: 100px 10%;
    max-width: 1400px;
    margin: 0 auto;
}
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 60px;
}
.text-center { text-align: center; }
.mb-2 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 20px; }
.mt-4 { margin-top: 20px; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

/* Cards */
.card {
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
}
.card:hover {
    transform: translateY(-10px);
    background: var(--glass-hover);
}
.card .icon-wrap {
    font-size: 3rem;
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.card p {
    color: var(--text-muted);
}

/* Packages Table / Grid */
.package-card {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.package-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0,240,255,0.1);
}
.package-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: #000;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.8rem;
}
.package-speed {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
    color: var(--primary);font-family: 'Outfit', sans-serif;
}
.package-features {
    list-style: none;
    margin: 20px 0 30px;
    text-align: left;
    flex-grow: 1;
}
.package-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}
.package-features li:last-child { border: none; }

.package-info-grid {
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.info-list {
    flex: 1;
    min-width: 300px;
}

.check-list {
    list-style: none;
    color: var(--text-muted);
}

.info-sidebar {
    flex: 1;
    min-width: 300px;
    background: rgba(0,0,0,0.5);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    .package-info-grid {
        padding: 25px;
        flex-direction: column;
    }
    .info-list, .info-sidebar {
        min-width: 100%;
    }
}

/* How It Works Steps */
.step-card { text-align: center; padding: 30px; }
.step-number {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.2), rgba(0, 240, 255, 0.2));
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
}
.cta-banner h2 { font-size: 2.5rem; margin-bottom: 20px; }

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}
.faq-question:hover { background: var(--glass-hover); }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
}
.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}
.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Page Headers */
.page-header {
    padding: 150px 10% 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(15,23,42,0.6) 100%);
}
.page-header h1 { font-size: 3.5rem; }

/* Coverage Section (Legacy) */
.coverage-container {
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    height: 700px;
    position: relative;
    border: 1px solid var(--glass-border);
}
.coverage-sidebar {
    width: 400px;
    padding: 40px;
    background: rgba(10, 10, 15, 0.9);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.coverage-sidebar h3 { font-size: 1.8rem; margin-bottom: 20px; }
.search-wrap { position: relative; width: 100%; }
.search-wrap input { width: 100%; padding: 15px; background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); border-radius: 10px; color: white; margin-bottom: 15px; }
.btn-map { width: 100%; padding: 14px 0; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.location-btn { background: linear-gradient(135deg, #10b981, #059669); }
.map-wrapper { flex: 1; position: relative; }
#map { width: 100%; height: 100%; background: #000; }
.pop-marker { background: rgba(10,10,15,0.8); border-radius: 50%; border: 2px solid var(--primary); box-shadow: 0 0 15px var(--primary); }
.user-marker { width: 22px; height: 22px; background-color: var(--accent); border-radius: 50%; box-shadow: 0 0 20px var(--accent); border: 3px solid #fff; }

#suggestions {
    position: absolute; top: 60px; left: 0; right: 0; background: #0f172a; border: 1px solid var(--glass-border); border-radius: 10px; max-height: 250px; overflow-y: auto; z-index: 2000; display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.suggestion-item { padding: 12px 16px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); }
.suggestion-item:hover { background: rgba(0,240,255,0.1); }
#result { margin-top: 20px; color: var(--text-muted); }

/* Footer */
footer {
    padding: 60px 10% 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
    background: rgba(15, 23, 42, 0.2);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { height: 75px; border-radius: 8px; margin-bottom: 20px; margin-left: -20px; transform: scale(1.5); transform-origin: left center; filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.7)); }
.footer-col h4 { margin-bottom: 20px; font-size: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid var(--glass-border); color: var(--text-muted); }

.about-main-card {
    padding: 50px;
    border-radius: 20px;
}

.description-large {
    font-size: 1.1rem;
}

.glass-hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 40px 0;
}

.value-card {
    padding: 30px;
}

@media (max-width: 768px) {
    .about-main-card {
        padding: 25px !important;
    }
    .description-large {
        font-size: 1rem !important;
    }
    .glass-hr {
        margin: 25px 0 !important;
    }
}

.contact-card {
    padding: 30px;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
}

.contact-form-wrapper {
    padding: 40px;
    border-radius: 20px;
}

.contact-submit {
    width: 100%;
    border: none;
    font-family: 'Outfit';
    font-size: 1.1rem;
}

.mt-80 {
    margin-top: 80px;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 25px !important;
    }
    .mt-80 {
        margin-top: 40px !important;
    }
}

.mt-60 {
    margin-top: 60px;
}

@media (max-width: 768px) {
    .mt-60 {
        margin-top: 30px !important;
    }
}

/* Animations */
.animate-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-up.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    .hero-content { margin-bottom: 50px; }
    .hero h1 { font-size: 3rem !important; }
    .hero p { font-size: 1.2rem !important; }
    .hero-buttons { justify-content: center; }
    .intro-strip { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 2.5rem; }
    .section-padding { padding: 80px 6%; }
}

@media (max-width: 768px) {
    /* ---- Navbar ---- */
    .navbar {
        width: 92%;
        padding: 10px 20px;
        top: 15px;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .logo-container .logo {
        transform: scale(3) translateY(2px) !important;
        margin-left: -45px !important;
        height: 38px !important;
    }
    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 25px 20px;
        border: 1px solid rgba(0, 240, 255, 0.2);
        border-radius: 20px;
        display: none;
        gap: 10px;
        box-shadow: 0 15px 50px rgba(0,0,0,0.8);
        animation: menuSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes menuSlideDown {
        from { opacity: 0; transform: translateY(-10px) scale(0.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { padding: 15px 10px; font-size: 1.1rem; display: block; text-align: center; }
    .mobile-toggle { display: block; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border-radius: 10px; }

    /* ---- Hero ---- */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 130px !important;
        padding-bottom: 70px !important;
        min-height: auto !important;
    }
    .hero h1 { font-size: 2.4rem !important; line-height: 1.15 !important; letter-spacing: -1px; }
    .hero p { font-size: 1.1rem !important; margin: 15px 0 30px !important; color: var(--text-main); opacity: 0.9; }
    .hero-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 30px !important;
        align-items: stretch;
        padding: 0 10%;
    }
    .hero-wide { padding-top: 110px !important; }

    /* ---- Sections ---- */
    .section-padding { padding: 75px 6% !important; }
    .section-title { font-size: 2.2rem !important; letter-spacing: -0.5px; }

    /* ---- Grids & Cards ---- */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 25px; }
    
    .glass {
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.4) !important;
        position: relative;
        overflow: hidden;
    }
    /* Animated glowing border effect for mobile sleekness */
    .glass::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary), transparent);
        animation: cardGlow 3s linear infinite;
        opacity: 0.5;
    }
    @keyframes cardGlow {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }

    /* ---- Buttons ---- */
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 24px !important;
        font-size: 1rem !important;
        border-radius: 14px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .btn-primary { 
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    }

    /* ---- Page Headers ---- */
    .page-header { padding: 110px 5% 40px !important; }
    .page-header h1 { font-size: 2rem !important; }

    /* ---- Cards ---- */
    .card, .package-card { padding: 20px !important; }
    /* Fix about page large glass card padding */
    .glass[style] { padding: 25px !important; }

    /* ---- Coverage Map ---- */
    .coverage-container { flex-direction: column !important; height: auto !important; min-height: 750px; }
    .coverage-sidebar { width: 100% !important; border-right: none !important; border-bottom: 1px solid var(--glass-border); }
    .map-wrapper { height: 380px; width: 100%; }

    /* ---- CTA ---- */
    .cta-banner { padding: 40px 20px !important; }
    .cta-banner h2 { font-size: 1.8rem !important; }
    .cta-banner .hero-buttons { margin-top: 15px !important; }

    /* ---- Footer ---- */
    footer { 
        padding: 60px 8% 40px !important; 
        margin-top: 80px !important; 
        background: rgba(0,0,0,0.3);
    }
    .footer-grid { grid-template-columns: 1fr !important; gap: 40px; text-align: center; }
    .footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; color: var(--primary); }
    .footer-logo {
        margin: 0 auto 20px !important;
        transform: none !important;
        height: 50px !important;
    }
    .footer-links { padding: 0; display: flex; flex-direction: column; gap: 12px; }
    .copyright { font-size: 0.85rem; opacity: 0.7; }
}

@media (max-width: 480px) {
    .navbar { padding: 10px 16px; }
    .logo-container .logo {
        transform: scale(2) translateY(2px) !important;
        margin-left: -25px !important;
        height: 40px !important;
    }
    .hero h1 { font-size: 1.8rem !important; }
    .section-title { font-size: 1.6rem !important; }
    .package-speed { font-size: 2rem !important; }
    .step-number { width: 50px; height: 50px; font-size: 1.2rem; }
}
