/* static/css/style.css */

/* 1. Variables za Rangi (Premium Tech Colors) */
:root {
    --bg-dark: #050a15;        /* Nyeusi iliyokozeana na bluu */
    --bg-card: #0f172a;        /* Rangi ya Cards */
    --primary-blue: #0066ff;   /* Bluu angavu ya logo */
    --glow-blue: #00f0ff;      /* Bluu ya mwanga (Neon) */
    --text-main: #e2e8f0;      /* Nyeupe isiyochoma macho */
    --text-muted: #94a3b8;     /* Kijivu kwa maelezo */
    --gradient: linear-gradient(135deg, #0066ff 0%, #00f0ff 100%);
}

/* 2. General Settings */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* 3. Navbar (Glassmorphism Effect) */
.navbar {
    background: rgba(5, 10, 21, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 2px;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    margin-left: 20px;
    position: relative;
    transition: 0.3s;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--glow-blue) !important;
}

/* 4. Hero Section (Ya Kuvutia Sana) */
.hero-section {
    position: relative;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 102, 255, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.1), transparent 25%);
    padding: 180px 0 120px 0;
    text-align: center;
    overflow: hidden;
}

/* Grid background effect */
.hero-section::before {
    content: "";
    position: absolute;
    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: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* 5. Buttons (Za Kisasa) */
.btn-premium {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    color: white;
}

/* 6. Sections & Cards (Kwa ajili ya Services, Values, n.k.) */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 102, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

/* 7. Founder Message (Modern Box) */
.founder-box {
    background: linear-gradient(145deg, #0f172a, #050a15);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 20px;
    padding: 50px;
    position: relative;
}

.founder-box::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 30px;
    font-size: 8rem;
    color: rgba(0, 102, 255, 0.1);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}

/* 8. Footer */
footer {
    background-color: #02050a;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-muted);
}

/* 9. Animations (JavaScript itatumia hizi) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* =========================================
   ABOUT PAGE ENHANCEMENTS (Spacing & Layout)
   ========================================= */

/* 1. Kuongeza nafasi kubwa kwenye section zote za About */
.about-section {
    padding: 120px 0; /* Nafasi kubwa juu na chini */
}

/* 2. Sanduku la Maelezo ya Kampuni (Kupanua na kupumzisha maandishi) */
.about-card {
    background: rgba(15, 23, 42, 0.8); /* Rangi nzito kidogo */
    border: 1px solid rgba(0, 102, 255, 0.15); /* Mstari mwembamba wa bluu */
    border-radius: 24px;
    padding: 60px; /* Nafasi kubwa ndani ya sanduku */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* Kivuli kizito */
    position: relative;
    z-index: 2;
}

.about-card p {
    font-size: 1.15rem;
    line-height: 2; /* Nafasi kati ya mistari */
    color: #cbd5e1; /* Rangi laini ya maandishi */
    text-align: justify; /* Maandishi yalingane */
}

/* 3. Kupunguza ukubwa wa Founder Box ili isishindane na About Card */
.founder-box {
    background: linear-gradient(145deg, #0f172a, #050a15);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 24px;
    padding: 50px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* 4. Kupamba alama ya nukuu (Quote mark) */
.founder-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 8rem;
    color: rgba(0, 102, 255, 0.15);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}

/* 5. Kupunguza ukubwa wa Section Title kidogo ili usishinde maandishi */
.about-section .section-title {
    margin-bottom: 70px;
    font-size: 2.2rem;
}

/* =========================================
   ENTERPRISE HOMEPAGE STYLES (RTS THEME)
   ========================================= */

/* 1. Nyota (Top Badge) kwenye Hero */
.hero-badge {
    display: inline-block;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    color: var(--glow-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* 2. Takwimu (Stats) kwenye Hero */
.stats-row {
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--glow-blue); /* Rangi ya Bluu Angavu */
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Solution Pillars (Kadi 4) */
.pillar-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--gradient); /* Mstari wa juu wa rangi */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 4. Blog Cards (Kama kwenye picha yako) */
.blog-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    transition: 0.3s;
}

.blog-card:hover {
    background: rgba(15, 23, 42, 1);
    border-color: var(--primary-blue);
}

.blog-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-link {
    color: var(--glow-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

/* 5. Call to Action (CTA) Section */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 240, 255, 0.05) 100%);
    border-top: 1px solid rgba(0, 102, 255, 0.2);
    border-bottom: 1px solid rgba(0, 102, 255, 0.2);
    padding: 100px 0;
    text-align: center;
}

/* =========================================
   PREMIUM FOUNDER SECTION
   ========================================= */

.founder-section-wrapper {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 100px 0;
}

.founder-card {
    background: linear-gradient(145deg, #0f172a, #050a15);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 24px;
    overflow: hidden; /* Ili picha isitoke nje ya mviringo wa kadi */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Upande wa Picha */
.founder-image-col {
    padding: 0;
    position: relative;
}

.founder-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    /* Kama unataka picha iwe na rangi ya bluu kidogo */
    /* filter: grayscale(20%) contrast(110%); */
}

/* Upande wa Maandishi */
.founder-text-col {
    padding: 60px 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Alama ya Nukuu (Quote mark) */
.founder-text-col::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 8rem;
    color: rgba(0, 102, 255, 0.1);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
    z-index: 0;
}

.founder-message-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #cbd5e1;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Jina na Cheo */
.founder-signature {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    display: flex;
    align-items: center;
}

.founder-signature h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.founder-signature small {
    color: var(--glow-blue);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================
   PREMIUM SERVICES PAGE
   ========================================= */

/* 1. Category Filter Pills (Kama kwenye picha) */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.category-pill {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.category-pill:hover, .category-pill.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
}

/* 2. Alternating Layout (Split Sections) */
.service-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.service-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    transition: transform 0.5s ease;
}

.service-image-wrapper:hover img {
    transform: scale(1.05); /* Zoom effect on hover */
}

.service-content {
    padding: 20px 40px;
}

.service-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.service-content .category-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* 3. Sub-services Cards (Vikadi vidogo ndani) */
.sub-service-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.sub-service-card:hover {
    border-color: var(--primary-blue);
    background: rgba(15, 23, 42, 1);
}

.sub-service-card h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

/* 4. Industries Grid */
.industry-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    height: 100%;
}

.industry-card:hover {
    border-color: var(--glow-blue);
    transform: translateY(-5px);
}

.industry-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--glow-blue);
    font-size: 1.5rem;
}

/* =========================================
   PREMIUM CLIENTS PAGE
   ========================================= */

/* 1. Filter Pills */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

/* 2. Client Grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.client-card {
    background: #ffffff; /* Nyeupe kwa ajili ya logos */
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Premium Border Effect */
.client-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2);
}

.client-card:hover::before {
    opacity: 1;
}

.client-logo {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.client-card:hover .client-logo {
    transform: scale(1.1);
}

.client-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a; /* Rangi nzito kwa ajili ya logo */
    margin-bottom: 5px;
}

.client-category {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.client-website-link {
    font-size: 0.85rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.client-website-link:hover {
    color: var(--glow-blue);
    gap: 10px; /* Arrow inasogea mbele ukipitisha mouse */
}

/* 3. Hide/Show Logic (Kwa ajili ya JavaScript) */
.client-item.hide {
    display: none;
}

/* =========================================
   PREMIUM TEAM PAGE
   ========================================= */

.team-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 50px 40px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Mstari wa juu wa rangi unatokea ukipitisha mouse */
.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
}

.team-card:hover::before {
    opacity: 1;
}

/* Picha ya Mtu */
.team-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 240, 255, 0.05) 100%);
    border: 3px solid rgba(0, 102, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar i {
    font-size: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Jina na Cheo */
.team-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.team-role {
    font-size: 1rem;
    color: var(--glow-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

/* Orodha ya Majukumu */
.team-responsibilities {
    text-align: left; /* Weka maandishi kushoto ili yasomeke vizuri */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 25px;
}

.team-responsibilities p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.team-responsibilities ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.team-responsibilities ul li {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

/* Alama ya Check (Tick) badala ya dot */
.team-responsibilities ul li::before {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-blue);
    font-size: 0.8rem;
}

/* =========================================
   PREMIUM CONTACT PAGE
   ========================================= */

.contact-wrapper {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Upande wa Kushoto: Taarifa */
.contact-info-side {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 240, 255, 0.05) 100%);
    padding: 50px 40px;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--glow-blue);
    font-size: 1.3rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-info-item h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Upande wa Kulia: Fomu */
.contact-form-side {
    padding: 50px 40px;
    background: rgba(15, 23, 42, 0.8);
}

.contact-form-side h3 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-control-custom {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 20px;
    transition: 0.3s;
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.form-control-custom::placeholder {
    color: #64748b;
}

/* Social Icons */
.social-links-contact {
    margin-top: 40px;
}

.social-links-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.social-links-contact a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    color: #fff;
}

/* =========================================
   PREMIUM FOOTER - REVISED
   ========================================= */

.premium-footer {
    background: #050a15; /* Rangi nzito iliyokozeana na bluu */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px 0;
    position: relative;
    z-index: 1;
}

/* 1. Brand na Maelezo (Kushoto) */
.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: block; /* Inasaidia kuchukua nafasi yake */
    text-decoration: none;
    line-height: 1.2;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left; /* Maandishi ya kushoto */
}

/* 2. Vichwa vya Habari (Headings) */
.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 30px; /* Nafasi kubwa chini ya kichwa */
    position: relative;
    text-align: left;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px; /* Mstari unashuka chini kidogo */
    width: 30px;
    height: 2px;
    background: var(--primary-blue);
}

/* 3. Links (Quick Links & Resources) */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-links li {
    margin-bottom: 15px; /* Nafasi kati ya links */
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--glow-blue);
    transform: translateX(5px); /* Inasogea kulia ukipitisha mouse */
}

/* 4. Contact Info (Get In Touch) */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-contact-info li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.footer-contact-info i {
    color: var(--primary-blue);
    margin-right: 15px;
    margin-top: 3px; /* Kuiweka sawa na mstari wa kwanza wa maandishi */
    font-size: 1.1rem;
}

/* 5. Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-start; /* Weka kushoto */
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

/* 6. Footer Bottom (Copyright) */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom span {
    color: var(--glow-blue);
    font-weight: 600;
}

/* =========================================
   PREMIUM FOOTER - REVISED
   ========================================= */

.premium-footer {
    background: #050a15; /* Rangi nzito iliyokozeana na bluu */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px 0;
    position: relative;
    z-index: 1;
}

/* 1. Brand na Maelezo (Kushoto) */
.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: block; /* Inasaidia kuchukua nafasi yake */
    text-decoration: none;
    line-height: 1.2;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left; /* Maandishi ya kushoto */
}

/* 2. Vichwa vya Habari (Headings) */
.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 30px; /* Nafasi kubwa chini ya kichwa */
    position: relative;
    text-align: left;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px; /* Mstari unashuka chini kidogo */
    width: 30px;
    height: 2px;
    background: var(--primary-blue);
}

/* 3. Links (Quick Links & Resources) */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-links li {
    margin-bottom: 15px; /* Nafasi kati ya links */
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--glow-blue);
    transform: translateX(5px); /* Inasogea kulia ukipitisha mouse */
}

/* 4. Contact Info (Get In Touch) */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-contact-info li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.footer-contact-info i {
    color: var(--primary-blue);
    margin-right: 15px;
    margin-top: 3px; /* Kuiweka sawa na mstari wa kwanza wa maandishi */
    font-size: 1.1rem;
}

/* 5. Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-start; /* Weka kushoto */
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

/* 6. Footer Bottom (Copyright) */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom span {
    color: var(--glow-blue);
    font-weight: 600;
}

/* =========================================
   LEGAL PAGES CONTENT STYLING
   ========================================= */

.legal-content h2, 
.legal-content h3 {
    color: var(--glow-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-content h2:first-child,
.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul, 
.legal-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content strong {
    color: #fff;
}

/* =========================================
   FLOATING WHATSAPP & BACK TO TOP
   ========================================= */

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 110px; /* Juu kidogo ya WhatsApp */
    right: 45px;
    background: var(--bg-card);
    color: var(--glow-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-3px);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}