/* ===== Root variables (easy theme edits) ===== */
:root {
    --accent: #1e73be; /* Academic blue */
    --accent-dark: #155285;
    --accent-light: #e7f1fb;
    --text: #1c1c1c;
    --text-light: #555;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --max-width: 900px;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --transition: 0.25s;
    --font-body: 'Poppins', sans-serif;
}

/* ===== Global reset ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: var(--bg-alt);
    color: var(--text);
}

/* ===== Layout wrapper ===== */
.page-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== Navbar ===== */
.navbar {
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-dark);
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-light);
        font-weight: 500;
        transition: color var(--transition);
    }

        .nav-links a:hover,
        .nav-links a:focus,
        .nav-links a.active {
            color: var(--accent-dark);
        }

/* Mobile nav toggle (simple) */
.nav-toggle {
    display: none;
}

@media (max-width:600px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem 2rem;
        border: 1px solid #ddd;
        box-shadow: var(--shadow);
    }

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

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--accent-dark);
    }
}

/* ===== Hero ===== */
.hero {
    width: 100%;
    background: var(--accent-light);
    border-bottom: 1px solid #ddd;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.25rem;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-dark);
}

.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-dark);
}

.hero-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-btns a {
    display: inline-block;
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--accent-dark);
    color: var(--accent-dark);
    transition: all var(--transition);
}

    .hero-btns a:hover {
        background: var(--accent-dark);
        color: #fff;
    }

/* Mobile hero */
@media (max-width:600px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-photo {
        margin: 0 auto;
    }
}

/* ===== Section generic ===== */
.section {
    width: 100%;
    background: var(--bg);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.25rem;
}

    .section-inner h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        color: var(--accent-dark);
    }

    .section-inner p {
        margin-bottom: 1rem;
        color: var(--text-light);
    }

    .section-inner ul {
        margin-left: 1.25rem;
        list-style: disc;
        margin-bottom: 1.5rem;
    }

    .section-inner li {
        margin-bottom: 0.5rem;
    }

/* ===== Project cards ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-alt);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }

    .project-card h3 {
        margin-bottom: 0.5rem;
        color: var(--accent-dark);
    }

    .project-card p {
        font-size: 0.95rem;
    }

    .project-card a {
        display: inline-block;
        margin-top: 0.75rem;
        text-decoration: none;
        font-weight: 500;
        color: var(--accent-dark);
    }

/* ===== Timeline (Experience) ===== */
.timeline {
    position: relative;
    margin-top: 2rem;
    padding-left: 2rem;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 0.5rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--accent-dark);
    }

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -0.25rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-dark);
}

.timeline-item h3 {
    margin-left: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--accent-dark);
}

.timeline-item h4 {
    margin-left: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.timeline-item p {
    margin-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ===== Footer ===== */
footer {
    width: 100%;
    background: #222;
    color: #eee;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
    margin-top: auto;
}

    footer a {
        color: var(--accent);
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }
