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

:root {
    --primary: #253d38;
    --secondary: #66877c;
    --background: #f5f3ed;
    --surface: #e9e8df;
    --text: #52625b;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--primary);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 6%;
    position: sticky;
    top: 0;
    background: var(--background);
    z-index: 100;
}

.logo {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 22px;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    color: var(--primary);
}

/* Hero */
.hero {
    min-height: 68vh;
    display: flex;
    align-items: center;
    padding: 65px 6%;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-image {
    flex: 0 0 320px;
    width: 320px;
    height: 370px;
    overflow: hidden;
    border-radius: 160px 160px 20px 20px;
    border: 6px solid #e2e8df;
    box-shadow: 0 15px 40px rgba(37, 61, 56, 0.12);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.eyebrow {
    color: var(--secondary);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.12;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.hero-description {
    font-size: 17px;
    color: var(--text);
    max-width: 700px;
    margin-bottom: 22px;
}

.btn {
    display: inline-block;
    padding: 10px 21px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    margin: 4px 6px 4px 0;
}

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

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

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* General sections */
.section {
    padding: 58px 6%;
}

.container {
    max-width: 1160px;
    margin: auto;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 14px;
}

.section-intro {
    color: var(--text);
    margin-bottom: 28px;
}

/* About and expertise */
.about, .expertise {
    background: var(--surface);
}

.about .container > p:not(.eyebrow) {
    max-width: 950px;
    color: var(--text);
    margin-bottom: 12px;
}

/* Experience timeline */
.timeline {
    border-left: 2px solid #b4c5bb;
    padding-left: 25px;
    margin-left: 8px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
}

.timeline-item h3 {
    font-size: 19px;
}

.timeline-item h4 {
    color: var(--secondary);
    font-size: 14px;
}

.timeline-item p {
    color: var(--text);
}

.date {
    color: #829088;
    font-size: 13px;
}

/* Cards and grids */
.project-grid, .expertise-grid,
.certification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.project-card, .expertise-card,
.certification-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e5de;
    transition: transform 0.3s;
}

.project-card:hover, .expertise-card:hover,
.certification-card:hover {
    transform: translateY(-4px);
}

.project-placeholder {
    background: #dce6df;
    color: var(--primary);
    padding: 25px;
    font-size: 28px;
    font-weight: bold;
}

.project-content, .expertise-card,
.certification-card {
    padding: 20px;
}

.project-content h3, .expertise-card h3,
.certification-card h3 {
    margin-bottom: 7px;
}

.project-content p, .expertise-card p,
.certification-card p {
    color: var(--text);
    font-size: 14px;
}

/* Education */
.education-list {
    border-left: 2px solid #b4c5bb;
    padding-left: 22px;
}

.education-item {
    margin-bottom: 18px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item h3 {
    font-size: 18px;
}

.education-item p {
    color: var(--text);
}

.subheading {
    margin: 32px 0 18px;
}

/* Certifications */
.certification-card {
    border: 1px solid #d9ddd6;
}

/* Contact */
.contact {
    background: var(--primary);
    color: white;
    text-align: center;
}

.contact .eyebrow {
    color: #a9c7b7;
}

.contact p:not(.eyebrow) {
    color: #d0ddd5;
    margin-bottom: 20px;
}

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

.btn-light:hover {
    background: #dce6df;
}

/* Footer */
footer {
    background: #1b302b;
    color: #b9c8c0;
    text-align: center;
    padding: 18px;
    font-size: 13px;
}

/* Mobile layout */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 14px 6%;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 25px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 15px;
        gap: 14px;
    }

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

    .hero {
        min-height: auto;
        padding: 45px 6%;
    }

    .hero-image {
        flex: 0 0 auto;
        width: 230px;
        height: 270px;
    }

    h1 {
        font-size: 38px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section {
        padding: 42px 6%;
    }

    .section h2 {
        font-size: 28px;
    }

    .section-intro {
        margin-bottom: 22px;
    }

    .project-grid, .expertise-grid,
    .certification-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-content, .expertise-card,
    .certification-card {
        padding: 18px;
    }
}
