@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Kenyan Brand Palette */
    --k-green: #009639;
    --k-green-dark: #007a2d;
    --k-green-glow: #00c34a;
    --k-red: #CE1126;
    --k-red-dark: #a10d1e;
    --k-red-glow: #ff1a35;
    --k-black: #0f172a;
    --k-black-alt: #1e293b;
    --k-white: #ffffff;
    --k-gold: #c39c00;
    --k-gold-glow: #fcd116;

    /* Brand Gradients */
    --grad-kenya-green: linear-gradient(135deg, var(--k-green) 0%, #007a2d 100%);
    --grad-kenya-red: linear-gradient(135deg, var(--k-red) 0%, #a10d1e 100%);
    --grad-kenya-gold: linear-gradient(135deg, var(--k-gold) 0%, #a68400 100%);
    --grad-premium: linear-gradient(135deg, #0f172a 0%, #334155 100%);

    /* Functional Colors - Light Premium Mode */
    --bg-dark: #e8ecf1;
    /* Richer slate/blue-tinted neutral */
    --bg-surface: rgba(15, 23, 42, 0.1);
    --bg-card: rgba(15, 23, 42, 0.08);
    --border-glass: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Advanced Shadows & Glows */
    --glow-green: 0 8px 20px rgba(0, 150, 57, 0.2);
    --glow-red: 0 8px 20px rgba(206, 17, 38, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);

    /* Animation Values */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.4s var(--ease-premium);
}

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

a {
    text-decoration: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    /* Subtle Maasai Geometric Background Overlay with Tinted Neutral */
    background-image:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(240, 244, 248, 0.5) 0%, var(--bg-dark) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.4rem, 4vw, 2rem);
}

p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* Advanced Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: blobMove 20s infinite alternate var(--ease-premium);
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--k-green);
    top: -10%;
    left: -10%;
    animation-duration: 15s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--k-red);
    bottom: -10%;
    right: -10%;
    animation-duration: 18s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--k-gold);
    top: 40%;
    left: 40%;
    opacity: 0.05;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Premium Navigation */
.navbar {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.4s var(--ease-premium);
}

.navbar--hidden {
    top: -100px !important;
}

.menu-toggle {
    display: none;
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    color: var(--k-black);
    text-decoration: none;
}

.nav-brand .brand-green {
    color: var(--k-green);
}

.nav-brand .brand-red {
    color: var(--k-red);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 150, 57, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 150, 57, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 150, 57, 0);
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--k-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--k-gold);
    transition: var(--transition);
}

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

/* Advanced Magnetic Buttons */
.btn {
    padding: 0.6rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 1;
}

.btn-primary {
    background: var(--grad-kenya-green);
    color: white;
    box-shadow: var(--glow-green);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 150, 57, 0.3);
}

.btn-secondary {
    background: var(--grad-kenya-red);
    color: white;
    box-shadow: var(--glow-red);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(206, 17, 38, 0.3);
}

.btn-accent {
    background: var(--grad-kenya-gold);
    color: var(--k-black);
    box-shadow: 0 8px 20px rgba(195, 156, 0, 0.2);
}

.btn-accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(195, 156, 0, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

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

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--k-black);
    color: var(--k-black);
    transform: translateY(-3px);
}

/* Glass Cards & Surfaces */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

/* Hero Section Refinement */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 150, 57, 0.1);
    color: var(--k-green-glow);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 150, 57, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--k-black) 0%, var(--k-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Carousel-based Services Section */
.services-section {
    padding: 8rem 5%;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 0 4rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .service-card {
    flex: 0 0 calc(33.333% - 1.35rem);
    scroll-snap-align: start;
    min-width: 320px;
}

@media (max-width: 1100px) {
    .carousel-track .service-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0;
    }

    .carousel-track .service-card {
        flex: 0 0 85%;
    }

    .carousel-btn {
        display: none !important;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--k-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}

.carousel-btn:hover {
    background: var(--k-gold);
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.service-card {
    position: relative;
    background: var(--k-black-alt);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    color: var(--k-white);
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service-icon {
    display: none;
}

.service-card .service-title {
    color: var(--k-white);
}

.service-card .service-desc {
    color: rgba(255, 255, 255, 0.7);
}

.service-card .price-tag {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.service-card .price-tag span {
    color: rgba(255, 255, 255, 0.7) !important;
}

.service-card .price-tag div span:last-child {
    color: var(--k-white) !important;
}

/* Badge Refinement for Dark Cards */
.service-card span[style*="background: rgba(0,0,0,0.02)"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--k-gold) !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: transparent;
    transition: var(--transition);
}

.service-card.card-green::before {
    background: var(--k-green);
    opacity: 0.3;
}

.service-card.card-red::before {
    background: var(--k-red);
    opacity: 0.3;
}

.service-card.card-gray::before {
    background: var(--text-muted);
    opacity: 0.3;
}

.service-card.card-green:hover::before {
    opacity: 1;
    width: 10px;
}

.service-card.card-red:hover::before {
    opacity: 1;
    width: 10px;
}

.service-card.card-gray:hover::before {
    opacity: 1;
    width: 10px;
}

.service-card.card-green:hover {
    border-color: var(--k-green);
    box-shadow: 0 10px 40px rgba(0, 150, 57, 0.1);
}

.service-card.card-red:hover {
    border-color: var(--k-red);
    box-shadow: 0 10px 40px rgba(206, 17, 38, 0.1);
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.price-tag {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-glass);
}

/* Form Styling Enhancements */
.login-container {
    max-width: 480px;
    margin: 8rem auto;
    background: var(--bg-surface);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: var(--glass-shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-glass);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--k-green);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 150, 57, 0.1);
}

/* Responsive Table Utility */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 10px;
}

/* Dashboard Specific Overhaul */
.dashboard-container {
    max-width: 1400px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    padding: 2.5rem 5%;
    margin: 0 auto;
}

.sidebar {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 3rem 2rem;
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
    margin-top: 3rem;
}

.sidebar-menu li {
    margin-bottom: 0.8rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(0, 150, 57, 0.08);
    color: var(--k-green);
}

.main-content {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 4rem;
}

/* Footer & Banner */
.info-banner {
    background: #ce1126;
    /* Solid Classic Red */
    padding: 1rem 2.5rem;
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1000;
}

.banner-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.banner-close:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

footer {
    padding: 6rem 5%;
    background: var(--k-black);
    /* Dark background */
    text-align: center;
    color: #94a3b8;
    /* Lighter muted text for contrast */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle dark border */
}

footer .nav-brand {
    color: var(--k-white) !important;
    /* Ensure 'K' in OSKEN is white on dark bg */
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100vh;
        background: var(--bg-surface);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 4rem;
        z-index: 1000;
        border-left: 1px solid var(--border-glass);
    }

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

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .sidebar {
        padding: 2rem;
        border-radius: 24px;
    }

    .main-content {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .btn {
        width: 100%;
    }
}

/* Final Global Polishes */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 5% 3rem !important;
        min-height: auto !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        margin-top: 1rem !important;
    }
    .mobile-m-0 { margin: 0 !important; }
    .mobile-p-2 { padding: 1.5rem !important; }
    .btn { justify-content: center; }
}