body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #24292f;
    background-color: #f0f2f5; 
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack Nav on top of Content */
    align-items: center;
}

/* --- NAVIGATION BAR --- */
nav {
    width: 100%;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky; /* Stays at top when you scroll */
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.nav-container {
    width: 95%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #57606a;
    margin-left: 20px;
    font-weight: 500;
}

.nav-links a:hover {
    color: #0969da;
}

/* --- MAIN LAYOUT --- */
#content-wrapper {
    background-color: white;
    width: 95%;
    max-width: 1100px;
    min-height: 80vh;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin-bottom: 5rem; /* Space at the very bottom */
}

/* Two-Column Grid */
.site-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #d0d7de;
    margin-top: 20px;
}

/* Container for the tags */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* Individual skill tag */
.skill-tag {
    background-color: #f1f8ff; /* Light blue tech vibe */
    color: #0550ae;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #c8e1ff;
}

/* --- HEADINGS --- */
h1, h2, h3 {
    margin-top: 0;
    color: #1f2328; /* Slightly darker than body text for contrast */
}

h1 {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em; /* Tighter letters look more modern */
    margin-bottom: 0; /* Removes the gap below your name */
}

h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #d0d7de; /* Adds a line under sections like 'Experience' */
    padding-bottom: 8px;
    margin-top: 2rem;
}

/* Remove the bottom space from the Contact header */
aside h3 {
    margin-bottom: 5px; 
}

h1 + p {
    margin-top: 4px; /* Tiny gap between name and occupation */
    color: #57606a;   /* Optional: makes the occupation look like a subtle sub-header */
}

/* Remove the top space from paragraphs in the sidebar */
aside p {
    margin-top: 0;
    margin-bottom: 4px; /* Control the spacing between the lines themselves */
}

/* --- LINKS --- */
a {
    color: #0969da; /* The classic GitHub blue */
    text-decoration: none; /* Removes the underline */
}

a:hover {
    text-decoration: underline; /* Shows underline only when you hover over it */
}

/* Button styles that we can use on any page */
/* .btn {
    text-decoration: none; 
    border: 1px solid #0969da; 
    padding: 10px 20px; 
    border-radius: 5px;
    color: #0969da;
    display: inline-block;
}

.btn:hover {
    background-color: #0969da;
    color: white;
} */

.btn {
    display: inline-block;
    background-color: #f6f8fa;
    border: 1px solid #d0d7de;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    color: #24292f;
    transition: 0.2s; /* Makes the hover effect smooth */
}

.btn:hover {
    background-color: #0969da;
    color: white;
    border-color: #0969da;
    text-decoration: none;
}

.header-row h3 {
    margin-bottom: 5px;
}

.date {
    font-weight: bold;
    color: #57606a;
}

.publication {
    background-color: #f6f8fa;
    padding: 15px;
    border-left: 4px solid #0969da;
    margin: 20px 0;
    border-radius: 0 6px 6px 0; /* Optional: rounds the right corners to match your buttons */
}

/* Container for the projects grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* The 3D Card Button */
.project-card {
    background-color: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    
    /* 3D "Raised" Effect */
    box-shadow: 0 4px 0 #d0d7de; 
    transition: all 0.1s ease;
    position: relative;
    top: 0;
}

/* Hover: Slightly lift */
.project-card:hover {
    border-color: #0969da;
    box-shadow: 0 6px 0 #0969da;
    top: -2px;
}

.project-card:hover h3 {
    text-decoration: underline;
}

/* Click: "Push" the button down */
.project-card:active {
    box-shadow: 0 0px 0 #0969da;
    top: 4px;
}

.project-card h3 {
    margin: 0 0 10px 0;
    color: #0969da;
    font-size: 1.2rem;
}

.project-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #57606a;
    margin-bottom: 15px;
    text-decoration: none;
    display: block;
}

.project-tag {
    font-size: 0.75rem;
    background: #f6f8fa;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #d0d7de;
    margin-right: 5px;
    text-decoration: none;
    display: inline-block;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .site-grid {
        grid-template-columns: 1fr; /* Stacks sidebar on top of main on phones */
    }
    #content-wrapper {
        padding: 1.5rem;
    }
}
