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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Top Header */
.top-header {
    background-color: #fff;
    color: #333;
    padding: 10px 0;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.top-header.scrolled {
    background-color: #fff;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
    font-family: 'Bahnschrift SemiBold' ,Verdana, Arial, Helvetica, sans-serif;  ;
    font-size: 15px;
}

.contact-info span {
    display: flex;
    align-items: center;
}

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

.top-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #4CAF50;
    color: #4CAF50;
    background-color: transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.top-header-btn:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* Connection Request button in top header */
.top-header-btn.btn-connection {
    border-color: #0ea5e9;
    color: #0ea5e9;
}
.top-header-btn.btn-connection:hover {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

.top-header-btn:focus-visible {
    outline: 2px solid rgba(76, 175, 80, 0.5);
    outline-offset: 2px;
}

/* Main Header */
.main-header {
    background-color: #002633;
    padding: 0px 0px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: 200px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.main-header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled .logo-img {
    height: 55px;
    width: 200px;
}

.main-header.scrolled .main-nav a {
    color: #000;
}

.main-header.scrolled .main-nav a:hover {
    color: #000;
}

.main-header.scrolled .main-nav > ul > li > a.active {
    color: #4CAF50;
    font-weight: 600;
}

.main-header.scrolled .dropdown-menu {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-header.scrolled .dropdown-menu a {
    color: #000;
    text-transform: capitalize;
}

.main-header.scrolled .dropdown-menu a:hover {
    background-color: #4caf50;
    color: #fff;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: left;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    color: #4caf50;
}

.main-nav .arrow {
    font-size: 10px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #002633;
    min-width: 200px;
    display: none !important;
    flex-direction: column;
    padding: 0px 0;
    margin-top: 0;
    gap: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover > .dropdown-menu {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    gap: 0px;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
}

.dropdown-menu a {
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    text-transform:capitalize;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.dropdown-menu .arrow-right {
    font-size: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

.dropdown-menu a:hover {
    background-color: #4caf50;
    color: #fff;
}

.dropdown-menu a.active {
    background-color: #4caf50;
    color: #fff;
}

/* Mobile nav (hamburger base styles) */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.35);
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.main-header.scrolled .nav-toggle {
    border-color: rgba(0,0,0,0.2);
}

.nav-toggle-lines {
    position: relative;
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    border-radius: 2px;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.nav-toggle-lines::before { top: -7px; }
.nav-toggle-lines::after { top: 7px; }

.main-header.scrolled .nav-toggle-lines,
.main-header.scrolled .nav-toggle-lines::before,
.main-header.scrolled .nav-toggle-lines::after {
    background: #000;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
}

body.nav-open-body {
    overflow: hidden;
}

/* Nested Sub Dropdown Menu (Sub-submenu) */
.dropdown-menu li .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #002633;
    min-width: 200px;
    display: none !important;
    flex-direction: column;
    padding: 0px 0;
    margin-left: 0;
    gap: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 0;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu li:hover > .dropdown-menu,
.dropdown-menu li .dropdown-menu:hover {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

/* Scrolled State for Nested Sub Dropdown */
.main-header.scrolled .dropdown-menu li .dropdown-menu {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-header.scrolled .dropdown-menu li .dropdown-menu a {
    color: #000;
    text-transform: capitalize;
}

.main-header.scrolled .dropdown-menu li .dropdown-menu a:hover {
    background-color: #4caf50;
    color: #fff;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #1a237e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.slide-left {
    flex: 1;
    padding-right: 50px;
}

.hero-text {
    text-align: left;
}

.hero-text h2 {
    font-size: 80px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 
        3px 3px 0px #fff,
        5px 5px 0px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.hero-text .hi-speed {
    color: #2196f3;
}

.hero-text .internet {
    color: #4caf50;
}

.slide-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
}

.image-placeholder {
    width: 400px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder svg {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4caf50;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background-color: #45a049;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Hero Actions */
.hero-actions {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.details-btn {
    background-color: #4caf50;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.details-btn:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.details-btn.secondary {
    background-color: #0ea5e9;
}
.details-btn.secondary:hover {
    background-color: #0284c7;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active,
.dot:hover {
    background-color: #fff;
    transform: scale(1.3);
}

/* Fiber Optic Decoration */
.fiber-optic {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    z-index: 1;
    opacity: 0.6;
}

.fiber-cable {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 8px;
    height: 150px;
    background: linear-gradient(to top, #4caf50, #2196f3);
    border-radius: 4px;
    box-shadow: 0 0 20px #4caf50, 0 0 40px #2196f3;
    animation: pulse 2s infinite;
}

.fiber-cable::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #4caf50, transparent);
    border-radius: 50%;
    animation: glow 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px #4caf50, 0 0 40px #2196f3;
    }
    50% {
        box-shadow: 0 0 30px #4caf50, 0 0 60px #2196f3;
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Services Section */
.services-section {
    padding: 20px 0px 10px 0px;
    background-color: #F0F0F0;
}

/* Index page: Packages tab section background (only index.php uses this wrapper) */
.index-tab-section {
    background-color: #F0F0F0 !important;
    padding: 30px 0px 0px 0px;
}

.index-tab-section .packages-tab-selector {
    margin-top: 0;
    margin-bottom: 0;
    background-color: #F0F0F0 !important; /* remove white pill bg on index only */
}

.index-tab-section .tab-btn:not(.active) {
    background-color: transparent;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1D3E4A;
    margin-bottom: 20px;
    position: relative;
    display: block;
    width: 100%;
    font-family: Georgia, 'Times New Roman', serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: #1D3E4A;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.service-card {
    background-color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    text-align: left;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.service-category {
    font-size: 18px;
    font-weight: bold;
    color: #1D3E4A;
    margin-bottom: 5px;
    font-family: Georgia, 'Times New Roman', serif;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    color: #2196f3;
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: color 0.3s;
}

.service-list li:hover {
    color: #1976d2;
}

/* Make service list items clickable links without changing the look */
.service-list li a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.service-list li a:hover {
    color: inherit;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
    }

    .logo-img {
        height: 40px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    /* off-canvas menu */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        width: auto;
        max-width: none;
        background: #002633;
        padding: 80px 16px 16px 16px;
        transform: translateX(105%);
        transition: transform 0.25s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-header.scrolled .main-nav {
        background: #002633;
    }

    /* Ensure menu text is always visible on mobile (even when header gets .scrolled) */
    .main-nav,
    .main-nav a {
        color: #fff;
    }
    .main-header.scrolled .main-nav a {
        color: #fff !important;
    }
    .main-nav .arrow,
    .main-nav .arrow-right {
        color: #fff;
    }

    .main-header.nav-open .main-nav {
        transform: translateX(0);
    }

    .main-header.nav-open .nav-backdrop {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-nav > ul > li > a {
        padding: 10px 10px;
        border-radius: 10px;
        justify-content: flex-start;
        white-space: normal;
        word-break: break-word;
    }

    .main-nav > ul > li > a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .main-nav > ul > li > a .arrow,
    .main-nav > ul > li > a .arrow-right {
        margin-left: auto;
        flex-shrink: 0;
    }

    .main-nav > ul > li > a.active {
        background: #4caf50;
        border: 1px solid #4caf50;
        color: #fff !important;
    }

    /* dropdown behavior on mobile: click to open */
    .dropdown:hover > .dropdown-menu {
        display: none !important;
        opacity: 0;
        visibility: hidden;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        display: none !important;
        padding: 6px 0 6px 10px;
    }

    /* Override desktop scrolled dropdown styling that caused white blocks on mobile */
    .main-header.scrolled .dropdown-menu {
        background: transparent !important;
        box-shadow: none !important;
    }

    /* nested submenu (sub-submenu) should NOT fly-out on mobile */
    .dropdown-menu li .dropdown-menu {
        position: static;
        left: auto;
        top: auto;
        min-width: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        display: none !important;
        padding: 6px 0 6px 10px;
        margin-left: 0;
    }

    .dropdown.open > .dropdown-menu {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu li.open > .dropdown-menu {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu a {
        color: #fff;
        padding: 8px 10px;
        border-radius: 10px;
        white-space: normal;
        word-break: break-word;
    }

    .main-header.scrolled .dropdown-menu a {
        color: #fff !important;
    }

    .main-header:not(.scrolled) .dropdown-menu a {
        color: #fff;
    }

    .main-header.scrolled .main-nav > ul > li > a {
        color: #fff;
    }

    .main-header.scrolled .main-nav > ul > li > a.active {
        color: #fff !important;
    }

    .hero-text h2 {
        font-size: 50px;
    }

    .slide-content {
        flex-direction: column;
        padding: 40px 20px;
    }

    .slide-left {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .image-placeholder {
        width: 300px;
        height: 375px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }
}

@media (max-width: 600px) {
    .hero-text h2 {
        font-size: 36px;
    }

    .top-header {
        font-size: 12px;
    }

    .contact-info {
        flex-direction: column;
        gap: 5px;
    }

    .top-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logo-img {
        height: 35px;
    }

    .main-nav ul {
        gap: 10px;
    }

    .main-nav a {
        font-size: 12px;
    }

    /* Make off-canvas menu spacing tighter on very small screens */
    .main-nav {
        padding-top: 70px;
    }

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