/* --- Global Setup & Fonts --- */
:root {
    --primary-color: #007BFF; /* A professional blue for links and highlights */
    --secondary-color: #3498db; /* A slightly lighter blue for section headers */
    --dark-text: #2c3e50;      /* A dark, soft black for body text */
    --light-text: #7f8c8d;     /* A grey for subtitles and less important text */
    --container-bg: #ffffff;
    --page-bg: #f4f7f6;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    background-color: var(--page-bg);
    color: var(--dark-text);
    margin: 0;
    padding: 30px;
    -webkit-font-smoothing: antialiased;
}

.resume-container {
    max-width: 1100px;
    margin: 20px auto;
    background-color: var(--container-bg);
    padding: 50px 60px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0056b3;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
    color: var(--dark-text);
    margin: 0;
    padding: 0;
}

/* --- Header Section --- */
header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

header h1 {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 8px;
}

header .subtitle {
    font-size: 1.4em;
    font-weight: 300;
    color: var(--light-text);
    margin-bottom: 25px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
    font-size: 0.95em;
    color: #555;
}

.contact-info i {
    margin-right: 7px;
    color: var(--primary-color);
}

/* --- Two-Column Layout --- */
.main-content {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 60px;
}

.sidebar {
    width: 33%;
    flex-shrink: 0;
}

.main-column {
    width: calc(67% - 60px); /* Adjust width considering the gap */
    flex-grow: 1;
}

/* --- Section Styling --- */
section h2 {
    font-size: 1.7em;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--secondary-color);
    margin-bottom: 25px;
    color: var(--secondary-color);
}

/* --- Sidebar Sections (Skills, Education) --- */
.sidebar h3 {
    font-size: 1.15em;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #333;
    margin-top: 15px;
    margin-bottom: 8px;
}

.sidebar p, .sidebar .date {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    color: #555;
}

.education-entry .institution {
    font-weight: 700;
    color: #444;
}

/* --- Main Column Sections (Projects, Experience) --- */
.project, .job {
    margin-bottom: 30px;
}

.project h3, .job-header h3 {
    font-size: 1.3em;
    margin-bottom: 4px;
}

.technologies, .company {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 12px;
    display: block;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.job-header .date {
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-size: 0.9em;
    color: #555;
    white-space: nowrap;
}

ul {
    padding-left: 20px;
    margin-top: 5px;
    list-style-type: disc;
}

li {
    margin-bottom: 10px;
}

/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: #95a5a6;
    font-size: 0.9em;
}

footer p { margin-bottom: 5px; }

#visitor-count {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1em;
}

/* --- Sidebar-specific list styling for a cleaner look --- */
.sidebar ul {
    list-style-position: outside;
    padding-left: 18px; /* Slightly less padding */
}

.sidebar li {
    margin-bottom: 5px; /* Tighter spacing between items */
    font-size: 0.95em;
    color: #555;
}