/* Coder Tech Kenya - Custom Styles */
:root {
    --primary: #0d47a1;
    --primary-dark: #002171;
    --accent: #ff6f00;
    --accent-hover: #e65100;
    --dark: #1a1a2e;
    --light-bg: #f5f7fa;
    --text-muted: #6c757d;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--accent);
}

/* Navbar */
.navbar {
    background: var(--primary) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}
img.site-logo {
    display: block;
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}
@media (max-width: 575.98px) {
    img.site-logo { height: 34px; max-width: 160px; }
}

.text-accent {
    color: var(--accent) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-accent {
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 500;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1565c0 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
}

.hero h1 {
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* Section Styles */
.section-title {
    font-weight: 700;
    color: var(--dark);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-top: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
}

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #1976d2);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

/* About Section */
.about-img {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-box h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

/* Project Cards */
.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    background: #fff;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.project-card .card-body {
    padding: 1.5rem;
}

/* Contact Form */
.contact-form {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.15);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 0;
    border-radius: 16px;
}

/* Footer */
.footer {
    background: #12121f;
    color: #e2e8f0;
}

.footer h5, .footer h6 {
    font-weight: 600;
    color: #ffffff !important;
}

/* Override Bootstrap text-muted inside footer for readability */
.footer .text-muted,
.footer p,
.footer small {
    color: #cbd5e1 !important;
}

.footer-links a,
.footer-contact li {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact li i {
    color: var(--accent);
    width: 1.1rem;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.15) !important;
    opacity: 1;
}

.footer-bottom {
    color: #94a3b8;
}
.footer-desc {
    color: #cbd5e1 !important;
    line-height: 1.7;
    font-size: 0.92rem;
}

.social-links a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 0 50px;
}

/* Why Choose Us */
.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Admin styles will be separate */

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero {
        padding: 70px 0 50px;
    }
}
