@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent-color: #1e3a8a; /* Professional Navy Blue */
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* Subtle gray outside the page */
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 11pt; /* Standard resume font size */
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 3rem 4rem;
    background-color: var(--bg-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

#subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Contact Info in Header */
.contact-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-header a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-header a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1.5px solid var(--border-color);
    margin: 1rem 0;
}

/* Sections */
section {
    margin-bottom: 1.25rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    border-bottom: 1.5px solid var(--accent-color);
    padding-bottom: 0.2rem;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Shared Grid layout for Education and Experience */
.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.entry-title {
    font-weight: 600;
}

.entry-meta {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.entry-subtitle {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* Experience & Education Grids */
.experience-grid, .education-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grid-card {
    display: block; /* Removing flex to allow normal document flow */
    margin-bottom: 0.5rem;
}

/* Skills List */
.skills ul {
    list-style: none;
}

.skills li {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.skills strong {
    color: var(--text-primary);
}

/* Projects */
.project {
    margin-bottom: 1rem;
}

.project ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.project li {
    margin-bottom: 0.25rem;
}

.tech-stack {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Hide footer for print */
footer {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
    font-size: 0.8rem;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        font-size: 10pt;
    }
    
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    
    footer {
        display: none;
    }
}
