:root {
    --blue-deep: #003399;
    --blue-main: #0066FF;
    --blue-light: #4DA6FF;
    --blue-pale: #EBF5FF;
    --navy-dark: #0B192C;
    --navy-mid: #1E3E62;
    --navy-light: #508C9B;
    --navy-pale: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.50);
    --shadow-glass: 0 8px 32px rgba(0, 102, 255, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL RESETS & ANTI-OVERFLOW ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
    accent-color: var(--blue-main) !important;
}

*:focus,
*:focus-visible,
*:active {
    outline: none !important;
    box-shadow: none !important;
}

::selection {
    background-color: var(--blue-main) !important;
    color: #ffffff !important;
}

::-moz-selection {
    background-color: var(--blue-main) !important;
    color: #ffffff !important;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: var(--navy-dark);
}

img, iframe, video, canvas, table, select, input {
    max-width: 100%;
    height: auto;
}

/* ===== GLASSMORPHISM UTILITY ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* ===== NAVBAR ===== */
.navbar {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
    width: 100%;
    z-index: 1050;
}

.navbar.scrolled {
    background: rgba(10, 26, 43, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff !important;
    letter-spacing: -0.5px;
    transition: color var(--transition);
}
.navbar-brand i {
    color: var(--blue-main) !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition);
    position: relative;
    background-color: transparent !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--blue-main);
    transition: all var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: transparent !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link:active::after {
    width: 60%;
}

/* Dropdown toggle arrow */
.navbar-nav .dropdown-toggle::after {
    margin-left: 0.4rem;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    transition: transform var(--transition);
}
.navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ===== DESKTOP DROPDOWN ===== */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block !important;
        animation: fadeDropdown 0.3s ease forwards;
    }
    .navbar-nav .dropdown-menu {
        display: none;
        background: rgba(10, 26, 43, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 0.5rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        margin-top: 0;
        min-width: 200px;
        position: absolute;
    }
}

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

/* CTA Button in nav */
.btn-nav-cta {
    background: var(--blue-main) !important;
    color: #fff !important;
    padding: 0.5rem 1.8rem !important;
    border-radius: 40px !important;
    font-weight: 700 !important;
    transition: all var(--transition) !important;
}
.btn-nav-cta::after {
    display: none !important;
}
.btn-nav-cta:hover,
.btn-nav-cta:focus,
.btn-nav-cta:active {
    background: var(--blue-deep) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3) !important;
}

/* Navbar toggler (hamburger) */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2) !important;
    padding: 0.4rem 0.6rem;
    background: transparent !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.3) !important;
}

/* ===== RESPONSIVE MOBILE NAV & DROPDOWN ===== */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.8rem 0;
    }
    .navbar.scrolled {
        padding: 0.4rem 0;
    }
    .navbar-collapse {
        background: rgba(10, 26, 43, 0.98) !important;
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-radius: 24px;
        padding: 1.5rem;
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        max-height: 80vh;
        overflow-y: auto;
    }
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.85) !important;
        background-color: transparent !important;
    }
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .navbar-nav .dropdown-menu {
        display: none;
        background: rgba(255, 255, 255, 0.06) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 16px !important;
        padding: 0.5rem !important;
        margin: 0.5rem 0 0.5rem 0.5rem !important;
        box-shadow: inset 0 1px 2px rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.2) !important;
        position: static !important;
        float: none !important;
    }
    .navbar-nav .dropdown.show .dropdown-menu,
    .navbar-nav .dropdown-menu.show {
        display: block !important;
        animation: mobileDropdownFade 0.3s ease forwards;
    }
    .btn-nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 0.8rem;
        padding: 0.75rem 0 !important;
    }
}

@keyframes mobileDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== HERO SECTION ===== */
.hero,
.hero-section,
#hero,
header.hero,
section.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-dark);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 30% 30%, rgba(0, 102, 255, 0.25), rgba(10, 26, 43, 0.85) 70%) !important;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    width: 100%;
}
.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 1.5rem auto 2.5rem;
    font-weight: 300;
}

/* ===== HERO BUTTONS ===== */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 100%;
}
.hero-actions .btn {
    position: relative;
    padding: 0.9rem 2.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: none;
    cursor: pointer;
    z-index: 1;
}
.btn-hero-primary {
    background: linear-gradient(135deg, var(--blue-main), var(--blue-deep)) !important;
    color: #fff !important;
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.35);
}
.btn-hero-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 102, 255, 0.5);
    color: #fff !important;
}
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px) scale(1.02);
    color: #fff;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}
.btn-hero-whatsapp {
    background: linear-gradient(135deg, #25D366, #1DA851);
    color: #fff;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}
.btn-hero-whatsapp:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(37, 211, 102, 0.5);
    color: #fff;
}
.btn .btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}
.btn:hover .btn-glow {
    opacity: 1;
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
    background: var(--blue-main) !important;
    color: #fff !important;
    border: none;
    padding: 0.9rem 3rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
}
.btn-submit:hover {
    background: var(--blue-deep) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3) !important;
    color: #fff !important;
}
.btn-submit:active {
    transform: translateY(0px);
    box-shadow: none !important;
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 8rem 0 4rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-actions .btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-actions .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ===== SECTION HEADERS ===== */
.section-badge {
    display: inline-block;
    background: var(--blue-main);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.section-title .highlight {
    color: var(--blue-main);
}
.section-sub {
    font-size: 1.15rem;
    color: var(--navy-light);
    max-width: 640px;
    margin-top: 0.8rem;
}

/* ===== COVERAGE SECTION ===== */
#coverage {
    background: var(--blue-pale);
    padding: 5rem 0;
    width: 100%;
}

.city-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    min-height: 200px;
    background: var(--navy-dark);
}
.city-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity var(--transition);
}
.city-card:hover img {
    opacity: 0.9;
}
.city-card .city-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.5px;
}
.city-card .city-label i {
    color: var(--blue-main);
    margin-right: 0.5rem;
}

/* ===== RELOCATION SECTION ===== */
#relocation {
    padding: 5rem 0;
    background: #fff;
    width: 100%;
}
.relocation-form .form-control {
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 0.7rem 1rem;
    transition: border var(--transition);
}
.relocation-form .form-control:focus {
    border-color: var(--blue-main);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15) !important;
}
.relocation-form .btn-submit {
    background: var(--blue-main) !important;
    color: #fff !important;
    border: none;
    padding: 0.9rem;
    border-radius: 40px;
    font-weight: 700;
    transition: all var(--transition);
    width: 100%;
}
.relocation-form .btn-submit:hover {
    background: var(--blue-deep) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3) !important;
}

/* ===== SPEED TEST SECTION ===== */
#speedtest {
    background: var(--navy-dark);
    padding: 5rem 0;
    color: #fff;
    width: 100%;
}
#speedtest .section-sub {
    color: rgba(255, 255, 255, 0.7);
}
.speedtest-iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.speedtest-iframe-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all var(--transition);
    animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
    color: #fff;
}
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== BLUE TILES ===== */
.blue-tile,
.orange-tile {
    background: var(--blue-main) !important;
    color: #fff !important;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.2);
}
.blue-tile:hover,
.orange-tile:hover {
    transform: translateY(-6px);
}
.blue-tile i,
.orange-tile i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.blue-tile h5,
.orange-tile h5 {
    font-weight: 700;
}

/* ===== FOOTER ===== */
footer {
    background: var(--navy-dark) !important;
    color: #fff;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}
footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition);
}
footer a:hover,
footer a:focus {
    color: #fff !important;
    text-decoration: underline;
}
.footer-brand h3 {
    color: #fff;
    font-weight: 800;
}
.footer-brand h3 i {
    color: #fff;
}
footer .footer-brand img {
    filter: brightness(0) invert(1);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    .speedtest-iframe-wrapper iframe {
        height: 300px;
    }
    .city-card {
        min-height: 160px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}
@media (max-width: 576px) {
    .city-card {
        min-height: 140px;
    }
}

/* ===== LEAFLET MAP CONTAINER ===== */
#coverageMap {
    height: 100%;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ===== ABSOLUTE NUCLEAR OVERRIDE FOR DROPDOWNS, SELECTS & HOVER STATES ===== */
.dropdown-menu,
.dropdown-menu * {
    -webkit-tap-highlight-color: transparent !important;
}

.dropdown-item,
.dropdown-menu .dropdown-item,
.dropdown-menu a,
.dropdown-menu li a,
.nav-item.dropdown .dropdown-menu .dropdown-item,
.navbar-nav .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    background-color: transparent !important;
    background: transparent !important;
    transition: all 0.25s ease !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:focus-visible,
.dropdown-item:active,
.dropdown-item.active,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:focus-visible,
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active,
.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-menu a:active,
.dropdown-menu li:hover,
.dropdown-menu li:focus,
.dropdown-toggle:hover,
.dropdown-toggle:focus,
.dropdown-toggle:active,
.show > .dropdown-toggle,
.nav-item.dropdown:hover > .nav-link,
select option:hover,
select option:focus,
select option:active,
select option:checked {
    background-color: var(--blue-main) !important;
    background: linear-gradient(135deg, #0066FF, #003399) !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}