/* =========================================================================
   Modern CSS Reset & Base Variables
   ========================================================================= */
:root {
    /* Harmony Palettes and Sleek Gradients */
    --primary-gradient: linear-gradient(135deg, #4259b3 0%, #293f94 100%);
    --primary-gradient-hover: linear-gradient(135deg, #4f6bc8 0%, #3451b2 100%);
    --stats-gradient: linear-gradient(135deg, #293f94 0%, #4259b3 100%);
    
    /* Branding Colors */
    --accent-blue: #3451b2;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-color: #fcfdfe;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    
    /* Spacing & Utilities */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --box-shadow-md: 0 8px 20px rgba(0, 0, 0, 0.04);
    --box-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 14px; /* Reduced scale for a more compact UI */
    scroll-behavior: smooth;
    height: auto;
    min-height: 100%;
    overflow-y: visible !important;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: visible !important;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

img, svg {
    max-width: 100%;
    display: block;
}

/* =========================================================================
   Typography
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* =========================================================================
   Buttons & Links
   ========================================================================= */
a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem; /* Tightened padding */
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: #ffffff;
    color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

.btn-secondary {
    background-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(52, 81, 178, 0.12);
}

.btn-secondary:hover {
    background-color: #293f94;
    box-shadow: 0 8px 20px rgba(52, 81, 178, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 5%; /* Thinner navbar */
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(52, 81, 178, 0.15);
}

.menu-toggle {
    background: #f1f5f9;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #e2e8f0;
    color: var(--accent-blue);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.mobile-menu.active {
    height: 220px;
}

.menu-links {
    list-style: none;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-links li a {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.menu-links li a:hover {
    color: var(--accent-blue);
    padding-left: 0.5rem;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    position: relative;
    background: var(--primary-gradient);
    padding: 2.5rem 5% 4rem; /* Reduced padding */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    animation: fadeUp 0.8s ease-out forwards;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 2px; /* User requested spaces */
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.badge-text {
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: inline-block;
}

.badge-text.fade {
    opacity: 0;
    transform: translateY(-5px);
}

.badge i {
    color: #fbcd0a; /* Yellow star */
}

.hero h1 {
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero p.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-inline: auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3.5rem;
    align-items: center;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    .hero-features {
        flex-direction: row;
        gap: 2.5rem;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fbcd0a;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

/* =========================================================================
   Sections Basics
   ========================================================================= */
section {
    padding: 3rem 5%; /* Tightened section spacing */
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* =========================================================================
   Services Section
   ========================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 3rem 2.25rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(52, 81, 178, 0.06);
    border-color: rgba(52, 81, 178, 0.15);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition-normal);
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.blue-glow {
    background: rgba(52, 81, 178, 0.1);
    color: var(--accent-blue);
}

.green-glow {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.yellow-glow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-yellow);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-list li i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

/* =========================================================================
   Supported Networks
   ========================================================================= */
.networks {
    background-color: var(--card-bg);
}

.network-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background-color: var(--bg-color);
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.network-badge:hover {
    box-shadow: var(--box-shadow-sm);
    transform: translateY(-2px);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mtn .dot { background-color: #fbcd0a; }
.vodafone .dot { background-color: #e60000; }
.airteltigo .dot { background-color: #0044ff; }
.glo .dot { background-color: #009933; }

/* =========================================================================
   Stats Section
   ========================================================================= */
.stats {
    padding-bottom: 5rem;
}

.stats-card {
    background: var(--stats-gradient);
    border-radius: var(--radius-lg);
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    color: white;
    text-align: center;
    box-shadow: var(--box-shadow-lg);
}

@media (min-width: 768px) {
    .stats-card {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: white;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* =========================================================================
   Animations
   ========================================================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================================================
   Network Logo Grid (Landing Page)
   ========================================================================= */
.network-logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0;
}

.network-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
    cursor: pointer;
}

.network-item:hover {
    transform: translateY(-8px);
}

.network-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    padding: 3px;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.network-item:hover img {
    border-color: var(--accent-blue);
    box-shadow: 0 15px 35px rgba(52, 81, 178, 0.2);
}

.network-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

