/* --- THEME & VARIABLES --- */ 
:root {
    --bg-color: #0f172a;      
    --second-bg: #1e293b;      
    --text-color: #f8fafc;     
    --main-color: #f97316;     
    --accent-color: #fb923c;   
}

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- NAVIGATION --- */
.navbar {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 10%; background: rgba(15, 23, 42, 0.95);
    z-index: 1000;
}
.nav-logo { height: 40px; width: auto; }
.nav-links { display: flex; list-style: none; }
.nav-links li a {
    color: white; text-decoration: none;
    margin-left: 2rem; font-weight: 500;
    transition: 0.3s;
}
.nav-links li a:hover { color: var(--main-color); }

/* --- HERO --- */
.hero {
    height: 100vh; display: flex;
    align-items: center; padding: 0 10%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/turkana-1.jpeg');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero h1 { font-size: 4rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }

/* --- STATS GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.stat-card {
    background: var(--second-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border-bottom: 3px solid var(--main-color);
}


.category-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--main-color);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.project-info p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-info strong {
    color: var(--text-color);
    font-weight: 600;
}



.trust-signals {
    background: var(--second-bg);
    padding: 2rem 0;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
    text-align: center;
}

.trust-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.logo-cloud {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.7; /* Subtly dim them so they don't distract */
    transition: 0.3s;
}

.logo-cloud:hover {
    opacity: 1; /* Brighten when user scrolls over */
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--main-color);
}

.trust-item span {
    font-size: 0.9rem;
    font-weight: 500;
}


/* --- SKILLS --- */
.skills-container { max-width: 800px; margin: auto; padding: 4rem 10%; }
.skill-box { margin-bottom: 1.5rem; }
.bar { background: #334155; height: 10px; border-radius: 5px; margin-top: 5px; }
.progress { height: 100%; border-radius: 5px; background: var(--main-color); transition: 1s ease-in-out; }
.html { width: 95%; } .css { width: 90%; } .js { width: 75%; } .git { width: 85%; } .python { width: 40%; }

/* --- PROJECTS --- */
.project-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; padding: 4rem 10%;
}
.project-card {
    background: var(--second-bg); padding: 1.5rem;
    border-radius: 15px; transition: 0.3s;
}
.project-card:hover { transform: translateY(-10px); border: 1px solid var(--main-color); }

/* --- TIMELINE (RESTORED) --- */
.timeline-section { padding: 4rem 10%; }
.timeline {
    border-left: 2px solid var(--main-color);
    margin-left: 20px;
    padding-left: 30px;
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
    content: '';
    position: absolute; left: -41px; top: 5px;
    width: 20px; height: 20px;
    background: var(--main-color); border-radius: 50%;
}
.date { font-weight: bold; color: var(--main-color); }

/* --- BUTTONS --- */
.btn { padding: 0.8rem 2rem; border-radius: 8px; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn.primary { background: var(--main-color); color: white; border: none; }
.btn.secondary { border: 2px solid var(--main-color); color: var(--main-color); }

/* --- CONTACT & MODAL --- */
.contact-container { display: flex; flex-wrap: wrap; gap: 2rem; padding: 4rem 10%; }
form { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 1rem; }
input, textarea { padding: 1rem; border-radius: 8px; border: none; background: var(--second-bg); color: white; }

.modal {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9);
}
.modal-content {
    background: var(--second-bg); margin: 15% auto;
    padding: 30px; width: 80%; max-width: 600px; border-radius: 15px; border: 1px solid var(--main-color);
    position: relative;
}
.close-btn { position: absolute; right: 20px; top: 10px; font-size: 30px; cursor: pointer; color: var(--main-color); }

/* --- RESPONSIVE HAMBURGER --- */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.bar { width: 25px; height: 3px; background: white; transition: 0.4s; }

@media (max-width: 768px) {
    .hamburger { display: flex; z-index: 1001; }
    .nav-links {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: var(--bg-color); flex-direction: column; padding: 2rem; text-align: center;
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 2.5rem; }
}

footer {
    padding: 3rem 10%;
    text-align: center;
    background: #0a0f1d; /* Slightly darker than your main background */
    border-top: 1px solid rgba(249, 115, 22, 0.1); /* Very subtle orange divider */
}

footer p {
    color: #94a3b8; /* Soft slate gray - much better than pure white */
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Optional: Make the "Kenya" part stand out slightly */
footer p::after {
    content: ' 🇰🇪'; /* Adding the flag icon adds a nice personal touch */
}
