/* =========================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa; /* Very light gray/off-white for a clean look */
    padding-bottom: 50px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #003d82;
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
nav {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container h1 {
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -0.5px;
}

.nav-container ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-container ul li a {
    color: #555;
    font-weight: 500;
}

.nav-container ul li a:hover {
    color: #111;
}

/* =========================================
   HERO / ABOUT ME SECTION
   ========================================= */
header {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   SECTIONS & GRID LAYOUT
   ========================================= */
section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 0.5rem;
}

/* The magic of CSS Grid for responsive cards */
.grid-container {
    display: grid;
    /* This automatically creates columns that are at least 300px wide. 
       If the screen is smaller, it stacks them. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* =========================================
   PROJECT CARDS
   ========================================= */
.card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Slight lift effect on hover */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* =========================================
   RESEARCH CONTAINER (Single column focus)
   ========================================= */
.research-container {
    background-color: #ffffff;
    border-left: 4px solid #0056b3;
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.page-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid #eaeaea;
    color: #777;
}
