/* index.css - OPU Kenya Premium Design System */

:root {
    --primary-color: #0d3b14; /* Deep Forest Green */
    --secondary-color: #d4af37; /* Metallic Gold */
    --accent-color: #1a4d2e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-color: #050a06; /* Very Dark Green/Black */
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(212, 175, 55, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Navigation */
header {
    background: rgba(5, 10, 6, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    font-size: 0.9rem;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #c5a02c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

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

/* Sections */
section {
    padding: 30px 10%; /* Reduced from 40px */
}

.hero {
    min-height: 250px; /* Specific height instead of vh for subpages */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px; /* Ensures title starts below the fixed header */
    background: linear-gradient(rgba(5, 10, 6, 0.8), rgba(5, 10, 6, 0.8)), url('../images/breadcrumb.jpg');
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero h1 {
    margin: 0;
    line-height: 1.2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Who We Are & Content Cards */
.intro {
    background: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.intro::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent, rgba(0,0,0,0.5));
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    padding: 50px 10%;
    background: #030603;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

footer .footer-links {
    margin-bottom: 2rem;
}

/* Mobile Responsive */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hamburger to X Animation */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
    nav ul {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 5%;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: rgba(5, 10, 6, 0.98);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        transition: var(--transition);
        backdrop-filter: blur(15px);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        font-size: 1.1rem;
        display: block;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }

    section {
        padding: 40px 5%;
    }

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