/* ==========================================
   1. GLOBAL STYLES & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Inazuia kabisa kuscroll kushoto na kulia */
}

body {
    background-color: #f1f5f9; /* Slate Light Gray */
    color: #334155;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   2. NAVBAR & HEADER
   ========================================== */
header {
    background: #0f172a; /* Dark Tech Blue */
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo span {
    color: #0284c7; /* Cyan Blue Accent */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #38bdf8;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* ==========================================
   3. HERO & PAGE HEADERS
   ========================================== */
.hero, .page-header {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 60%, #047857 100%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.hero h1, .page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero p, .page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 25px auto;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-slogan {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f0f9ff;
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* ==========================================
   4. BUTTON STYLES
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.primary-btn {
    background: #0284c7;
    color: #fff;
}

.primary-btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.whatsapp-btn {
    background: #10b981;
    color: #fff;
}

.whatsapp-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sms-btn {
    background: #f59e0b;
    color: #fff;
}

.sms-btn:hover {
    background: #d97706;
}

.email-btn {
    background: #ef4444;
    color: #fff;
}

.email-btn:hover {
    background: #dc2626;
}

/* ==========================================
   5. SERVICES GRID & CARDS
   ========================================== */
.services {
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 1.3rem;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Multi-Image Grid (Kwa Ajili ya Bando na Router) */
.multi-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 15px;
}

.multi-image-grid img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* ==========================================
   6. INDIVIDUAL SERVICE DETAILS PAGE & SIDEBAR
   ========================================== */
.service-detail {
    padding: 50px 0;
}

.service-detail-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.service-main-content {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.detail-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.service-main-content h2 {
    color: #0f172a;
    margin-bottom: 15px;
}

.service-main-content h3 {
    color: #1e293b;
    margin: 25px 0 15px;
}

.service-main-content p {
    line-height: 1.7;
    color: #475569;
    margin-bottom: 15px;
}

.feature-list, .step-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.feature-list li {
    list-style: none;
    margin-bottom: 12px;
    color: #334155;
}

.feature-list i {
    color: #10b981;
    margin-right: 8px;
}

.step-list li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.6;
}

.action-box {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

.action-box h3 {
    margin-top: 0;
    color: #0284c7;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.service-sidebar h3 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 15px;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-links li a {
    display: block;
    padding: 12px 20px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.sidebar-links li a:hover,
.sidebar-links li a.active {
    background: #0284c7;
    color: #fff;
}

.sidebar-contact-card {
    background: #0f172a;
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.sidebar-contact-card h4 {
    margin-bottom: 10px;
}

.sidebar-contact-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #94a3b8;
}

/* ==========================================
   7. CONTACT FORM & FOOTER
   ========================================== */
.contact-form {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #0284c7;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.form-buttons .btn {
    flex: 1;
}

footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid #1e293b;
}

/* ==========================================
   8. RESPONSIVE DESIGN (MOBILE ADAPTATION)
   ========================================== */

/* Tablets na chini yake */
@media (max-width: 992px) {
    .service-detail-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Simu (moja tu, rule zote za nav-links zimeunganishwa hapa) */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Inaonyesha icon ya menu kwenye simu */
    }

    .nav-links {
        display: none; /* Inaficha menu mpaka pale icon inapobonyezwa */
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #0f172a;
        padding: 20px 0;
        gap: 15px;
        border-top: 1px solid #1e293b;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex; /* Inafungua menu kupitia JavaScript */
    }

    .form-buttons {
        flex-direction: column;
    }

    .hero h1, .page-header h1 {
        font-size: 2.1rem;
    }

    .hero, .page-header {
        padding: 60px 15px;
    }

    .service-main-content,
    .contact-form {
        padding: 25px;
    }
}

/* Simu ndogo sana (iPhone SE na sawa nazo) */
@media (max-width: 400px) {
    .hero h1, .page-header h1 {
        font-size: 1.7rem;
    }

    .hero p, .page-header p {
        font-size: 1rem;
    }

    .service-main-content,
    .contact-form {
        padding: 18px;
    }

    .multi-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .multi-image-grid img {
        height: 90px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}
