/* Modern Terminal Theme Colors (Based on Coolors.co: E63946, F1FAEE, A8DADC, 457B9D, 1D3557) */
:root {
    --bg-dark: #0D1B2A; /* Very Dark Blue/Navy */
    --bg-medium: #1B263B; /* Slightly lighter deep blue for sections */
    --text-light: #F1FAEE; /* Off-white/Light Cream for primary text */
    --text-accent1: #E0E1DD; /* Gray/White for key labels/bullets */
    --text-accent2: #E63946; /* Strong Red for main titles/section headers */
    --text-accent3: #457B9D; /* Medium Blue/Gray-Blue for links/job titles */
    --border-color: #3C6788; /* A darker shade of the medium blue for borders */
    --shadow-color: rgba(230, 57, 70, 0.15); /* Subtle red glow */
}

/* Base styles for the terminal aesthetic */
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
    box-sizing: border-box;
}

.resume-container {
    max-width: 960px; 
    width: 100%;
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem; /* Rounded corners */
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* --- Contact & Summary Section --- */
.header-block {
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 2rem;
    background-color: #243D5C; /* Slightly darker variation of medium blue */
    border-radius: 0.25rem;
}

.header-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adaptive columns */
    gap: 0.75rem 1.5rem; /* Row gap, column gap */
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
}

.header-field {
    display: flex;
    align-items: baseline;
    white-space: nowrap; /* Keep label and value on one line */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for long values */
}

.field-label {
    color: var(--text-accent1); /* Light Blue/Cyan for labels */
    font-weight: 600;
    margin-right: 0.5rem;
    flex-shrink: 0; /* Prevent label from shrinking */
}

.field-value {
    color: var(--text-light);
    flex-grow: 1; /* Allow value to take remaining space */
}

.field-value a {
    color: var(--text-accent3); /* Medium Blue/Gray-Blue for links */
    text-decoration: none;
}
.field-value a:hover {
    text-decoration: underline;
}

/* --- Section Styling --- */
.section-header {
    font-weight: 600;
    color: var(--text-accent2); /* Strong Red for section headers */
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.section-header::before {
    content: "// "; /* Simple prefix */
    color: var(--text-accent1); /* Light Blue/Cyan */
}

.entry {
    margin-bottom: 2rem;
}

.entry-title {
    color: var(--text-accent1); /* Medium Blue/Gray-Blue for job titles */
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}
/* Style for the company name within entry-title */
.entry-title span { 
    color: var(--text-accent3) !important; /* Light Blue/Cyan for company name */
}

.entry-meta {
    color: var(--text-accent1); /* Light Blue/Cyan for meta info */
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.company-description {
    color: var(--text-accent1); /* Ensure main text color */
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

li::before {
    content: "• "; /* Simple bullet */
    position: absolute;
    left: 0;
    color: var(--text-accent1); /* Light Blue/Cyan bullet */
    font-weight: bold;
}

/* --- Skills Section Styling (Segmented Fields) --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Flexible columns for skills */
    gap: 1.5rem;
}

.skills-category-block {
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    background-color: #243D5C; /* Consistent block background with header */
}

.skills-category-label {
    color: var(--text-accent2); /* Strong Red for skill category labels */
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.25rem;
}

.skill-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-item {
    display: inline-block;
    background-color: #457B9D; /* Medium Blue/Gray-Blue for individual skills */
    color: var(--text-light);
    padding: 0.2rem 0.6rem;
    border-radius: 0.2rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    .resume-container {
        padding: 1.5rem;
    }
    .header-field-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .section-header {
        font-size: 1.25rem;
    }
    .entry-title {
        font-size: 1.05rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
}
