/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF7B00;
    --primary-dark: #E66F00;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: white;
}

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

section {
    padding: 80px 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #0d9668;
    /* Slightly darker than --secondary */
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary);
    background: white;
    padding: 6px 16px;
    border-radius: 50px;
    /* Pill shape for a modern look */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.logo:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 48px;
    /* Increased from 38px */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform: scale(1.1);
    /* Zoom effect */
}

.logo:hover img {
    transform: scale(1.2);
    /* Even more zoom on hover */
}

.logo span {
    color: var(--dark);
    letter-spacing: -0.02em;
    /* Tighter tracking for a premium feel */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--primary);
    font-weight: 700;
}

.bg-light {
    background: var(--light) !important;
}

.section-padding {
    padding: 80px 0;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: radial-gradient(at 0% 0%, hsla(210, 100%, 98%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(217, 91%, 95%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(210, 100%, 98%, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(217, 91%, 98%, 1) 0, transparent 50%);
    background-color: #f8fafc;
    margin-top: 80px;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.1;
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    color: var(--dark);
    letter-spacing: -0.04em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 540px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature i {
    color: var(--primary);
    font-size: 1.4rem;
}

.feature span {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.floating-badge {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid white;
    animation: float 5s ease-in-out infinite reverse;
}

.floating-badge i {
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.floating-badge strong {
    display: block;
    font-size: 1.2rem;
    color: var(--dark);
}

.floating-badge span {
    font-size: 0.8rem;
    color: var(--gray);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 24px;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 8px solid white;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.service-icon {
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

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

.service-features {
    list-style: none;
    margin: 20px 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.service-features i {
    color: var(--secondary);
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

/* Pricing */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.price-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.price-card.popular {
    border: 2px solid var(--primary);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--gray);
}

.price-card ul {
    list-style: none;
    margin: 25px 0;
}

.price-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-card i.fa-check {
    color: var(--secondary);
}

.price-card i.fa-times {
    color: var(--gray);
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-tag {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    text-align: center;
    margin-top: 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Trust Badges */
.trust-badges {
    background: #f8fafc;
    padding: 60px 0;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.badge-item i {
    font-size: 2rem;
    color: var(--primary);
}

/* Process Section */
.process {
    background: white;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    border-top: 4px solid var(--primary);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* M-Pesa Payment */
.payment-methods {
    background: #f0fdf4;
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    border: 1px dashed var(--secondary);
}

.payment-methods h4 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.mpesa-button {
    background: #39b54a;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
}

.mpesa-button i {
    font-size: 1.5rem;
}

.payment-note {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Testimonials */
.testimonials {
    background: #f8fafc;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 2px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

/* Client Logos */
.clients {
    padding: 40px 0;
    background: white;
}

.client-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.6;
    filter: grayscale(1);
    transition: all 0.3s;
}

.client-logos img {
    max-height: 40px;
    width: auto;
}

.client-logos:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Case Studies */
.case-studies {
    background: white;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.case-image {
    position: relative;
    height: 100%;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.stat {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    flex: 1;
}

.stat span {
    display: block;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.2rem;
}

.stat small {
    font-size: 0.7rem;
    color: var(--gray);
}

.case-content {
    padding: 40px;
}

.case-content h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.case-content p {
    margin-bottom: 15px;
}

/* Google Reviews */
.google-reviews-section {
    padding: 40px 0;
    background: #f8fafc;
}

.google-reviews {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.review-score {
    margin: 20px 0;
}

.stars-large {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.score {
    font-size: 2rem;
    font-weight: bold;
}

/* FAQ Section */
.faq {
    background: white;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--dark);
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 20px 20px;
    max-height: 200px;
}

/* Resources Section */
.resources-section {
    background: #f1f5f9;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.resource-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Booking Widget */
.booking-widget {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
    margin-top: 30px;
}

.booking-widget h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.slot {
    padding: 10px;
    background: var(--light);
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.slot:hover {
    background: var(--light-gray);
}

/* Newsletter */
.newsletter h4 {
    color: white;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: none;
}

.newsletter-form button {
    padding: 10px 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Calculator Modal specifics */
.calculator-step {
    margin-bottom: 20px;
}

.calculator-step label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.calculator-step select,
.calculator-step input[type="range"] {
    width: 100%;
    padding: 10px;
}

.feature-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calculator-result {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 20px;
}

.total-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

/* Footer (adjustment for newsletter) */
.footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Live Chat */
.live-chat {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 2001;
    overflow: hidden;
    flex-direction: column;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-body {
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 80%;
    word-wrap: break-word;
}

.chat-message.bot {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-message.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

/* Footer (Adjustment) */
.footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .live-chat {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
}

/* Performance Metrics */
.metrics {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.metric {
    text-align: center;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Technology Stack */
.technologies {
    padding: 60px 0;
    background: white;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tech-item img {
    height: 50px;
    width: auto;
}

.tech-item span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

/* Tech Loader Styles */
.loader-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-outer {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-top-color: #FF7B00;
    border-right-color: #FF7B00;
    border-bottom-color: #FF7B00;
    border-radius: 50%;
    animation: spin-cw 2s linear infinite;
    filter: drop-shadow(0 0 5px #FF7B00);
}

.circle-inner {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-top-color: #FFA500;
    border-left-color: #FFA500;
    border-bottom-color: #FFA500;
    border-radius: 50%;
    animation: spin-ccw 1.5s linear infinite;
    filter: drop-shadow(0 0 4px #FFA500);
}

.brand-letter {
    font-size: 3rem;
    font-weight: 800;
    font-style: italic;
    color: #FF7B00;
    position: relative;
    z-index: 10;
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.8);
    animation: pulse-d 2s ease-in-out infinite;
}

/* Spinning Animations */
@keyframes spin-cw {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-ccw {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

/* Pulse Animation */
@keyframes pulse-d {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 123, 0, 0.8);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(255, 123, 0, 1), 0 0 30px rgba(255, 123, 0, 0.6);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 123, 0, 0.8);
        opacity: 1;
    }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 3000;
    transform: translateY(100%);
    transition: transform 0.5s;
}

.cookie-consent.active {
    transform: translateY(0);
}

/* Footer (Adjustment for mobile) */
@media (max-width: 768px) {
    .metrics {
        justify-content: center;
    }
}

.mpesa-button:hover {
    background: #2e913b;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.3);
}

/* Booking Slots Active State (via JS) */
.slot {
    transition: all 0.3s ease;
}

/* Calculator Modal Improvements */
.calculator-modal h3 {
    margin-bottom: 25px;
    color: var(--primary);
}

.feature-checkboxes label {
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Coming Soon Toast (Optional logic) */
.coming-soon-link {
    cursor: help;
}

/* Loader fade */
.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Responsive fixes */
@media (max-width: 992px) {
    .case-study {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    align-items: start;
}

.footer-logo h3 {
    margin: 15px 0 10px;
    font-size: 1.5rem;
}

.footer-links h4,
.newsletter h4,
.footer-contact h4 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.newsletter h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin: 20px 0 10px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

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

    .pricing-table,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Cookie Consent */
#cookieConsent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
}

#cookieConsent.active {
    display: flex;
}

#cookieConsent p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

#cookieConsent button {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

#cookieConsent button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

/* Floating WhatsApp Button */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 90px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

/* Button Group for Packages */
.package-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn-whatsapp-outline {
    background: transparent;
    color: #25d366;
    border: 2px solid #25d366;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    display: block;
    margin-top: 5px;
}

.btn-whatsapp-outline:hover {
    background: #25d366;
    color: white;
}

/* ==========================================================================
   New Subpages Styles (About, Portfolio, Blog, Privacy)
   ========================================================================== */

/* Page Header (Subpages Hero) */
.page-header {
    background: var(--dark);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.page-header .hero-title {
    color: white;
    margin-bottom: 10px;
    font-size: 3rem;
}

.page-header .hero-subtitle {
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

.page-header .highlight {
    color: var(--primary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: var(--dark);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.philosophy-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.philosophy-items {
    margin-top: 30px;
}

.philosophy-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.philosophy-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--light-gray);
    transform: translateX(10px);
}

.phi-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 123, 0, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.phi-text h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.phi-text p {
    margin-bottom: 0;
    font-size: 1rem;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Portfolio Detailed */
.portfolio-detailed .container {
    max-width: 1100px;
}

.case-study-item {
    padding: 60px 0;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.case-study-grid.reverse {
    direction: rtl;
}

.case-study-grid.reverse .case-study-content {
    direction: ltr;
}

.case-study-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.case-study-content .tag {
    display: inline-block;
    background: rgba(255, 123, 0, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 15px;
}

.case-study-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.result-card {
    background: var(--light);
    padding: 25px;
    border-radius: 16px;
    margin-top: 25px;
    border-left: 4px solid var(--primary);
}

.divider {
    border: 0;
    height: 1px;
    background: var(--light-gray);
    margin: 40px 0;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--light-gray);
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.blog-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
}

/* Privacy Section */
.privacy-section {
    line-height: 1.8;
}

.privacy-section h2 {
    margin: 40px 0 20px;
    font-size: 1.8rem;
}

.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.privacy-section li {
    margin-bottom: 10px;
}

/* Responsive Overrides */
@media (max-width: 992px) {

    .about-grid,
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-study-grid.reverse {
        direction: ltr;
    }

    .case-study-content h2 {
        font-size: 1.8rem;
    }
}