/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #282828;
    line-height: 1.6;
    font-size: 11pt;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Topbar Navigation */
.topbar {
    padding: 30px 40px;
    max-width: 880px;
    margin: 0 auto;
}

.topbar a {
    font-size: 11pt;
    font-weight: 300;
    color: #282828;
    text-decoration: none;
    border-bottom: none;
    margin-right: 30px;
}

.topbar a.active {
    font-weight: 600;
}

.topbar a:hover {
    opacity: 0.6;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 80px 40px;
}

/* Typography */
h1 {
    font-size: 30pt;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: -0.2pt;
}

h2 {
    font-size: 16pt;
    font-weight: 400;
    margin-top: 60px;
    margin-bottom: 4px;
    letter-spacing: -0.2pt;
}

h3 {
    font-size: 11pt;
    font-weight: 600;
    margin-bottom: 6px;
}

p {
    margin-bottom: 16px;
}

a {
    color: #282828;
    text-decoration: none;
    border-bottom: 1px solid #282828;
}

a:hover {
    opacity: 0.6;
}

/* Header */
header {
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16pt;
    font-weight: 300;
    margin-bottom: 0;
}

/* Intro */
.intro {
    margin-bottom: 40px;
    font-size: 11pt;
    line-height: 1.7;
}

.intro p {
    font-weight: 400;
}

/* Sections */
section {
    margin-bottom: 40px;
}

/* Meta Info */
.meta {
    font-size: 9pt;
    color: #666;
    margin-bottom: 12px;
    font-weight: 400;
}

/* Role/Project Blocks */
.role, .project {
    margin-bottom: 40px;
}

.role:last-child, .project:last-child {
    margin-bottom: 0;
}

/* GitHub Projects Section */
.github-projects {
    margin-bottom: 60px;
}

.github-project {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.github-project:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.github-project h3 {
    margin-bottom: 8px;
}

.github-project h3 a {
    color: #282828;
    text-decoration: none;
    border-bottom: 1px solid #282828;
}

.github-project h3 a:hover {
    opacity: 0.6;
}

.github-project p {
    margin-bottom: 6px;
}

/* Lists */
ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Skills */
.skills p {
    margin-bottom: 12px;
}

/* Certifications */
.certifications {
    margin-top: 20px;
    font-size: 10pt;
}

/* Placeholder Media */
.placeholder-media {
    background: #f5f5f5;
    border: 1px dashed #ccc;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 9pt;
    margin-top: 16px;
    margin-bottom: 20px;
}

/* Image Carousel */
.image-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.carousel-placeholder {
    background: #f5f5f5;
    border: 1px dashed #ccc;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 9pt;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Project/Experience Images */
.project img,
.role img {
    width: 100%;
    margin: 16px 0;
    border: 1px solid #eee;
}

.image-carousel img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    margin: 0;
}

/* Contact */
.contact a {
    border-bottom: 1px solid #282828;
}

/* Project Links and Badges */
.project-link {
    font-size: 10pt;
    margin-top: 12px;
}

.award-badge {
    font-size: 10pt;
    margin-top: 12px;
    color: #666;
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

footer p {
    font-size: 9pt;
    color: #999;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 840px) {
    .topbar {
        padding: 20px 30px;
    }

    .container {
        padding: 0 30px 60px 30px;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 14pt;
        margin-top: 40px;
    }

    .subtitle {
        font-size: 14pt;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 20px;
    }

    .topbar a {
        margin-right: 20px;
    }

    .container {
        padding: 0 20px 40px 20px;
    }

    h1 {
        font-size: 20pt;
    }

    h2 {
        font-size: 12pt;
    }

    .subtitle {
        font-size: 12pt;
    }

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