/* Import a professional font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@500;700&display=swap');

:root {
    --primary-color: #2c3e50; /* Dark Blue/Charcoal for headings */
    --secondary-color: #3498db; /* Professional Blue for accents */
    --text-color: #333;
    --border-color: #ccc;
    --background-color: #f7f9fb;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px 30px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- HEADER / CONTACT STYLES --- */
.header {
    text-align: center;
    padding: 20px 0 20px 0; 
    background-color: var(--header-bg);
    border-bottom: none;
    margin: -20px -30px 20px -30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	position: relative;
}
.profile-photo {
    width: 120px; /* Size of the image */
    height: 120px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border: 4px solid var(--secondary-color); /* A nice border around the photo */
    margin: 0 auto 15px auto; /* Centering and adding spacing below */
    display: block;
}

.header h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 2.5em;
    text-transform: uppercase;
}

.header .title {
    font-size: 1.2em;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 0 0 15px 0;
}

/* Updated Contact Info Styles for Wrapping */
.contact-info {
    font-size: 0.9em;
    color: #444;
    padding: 0 10px;
    
    /* Enable Flexbox for wrapping */
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: center; /* Centers the wrapped items */
    gap: 10px 20px; /* Space between rows (10px) and columns (20px) */
}

/* Style for individual contact items */
.contact-item {
    white-space: nowrap; /* Prevents individual items from breaking mid-text */
}

.contact-info a {
    color: #057bf1;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* --- SECTION STYLES --- */
.section {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 10px;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

/* --- EXPERIENCE STYLES --- */
.job-entry {
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 2px solid #ddd;
}

.job-entry h3 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin: 0;
}

.job-entry .company, .job-entry .duration {
    display: inline-block;
    font-style: italic;
    font-size: 0.9em;
    margin-top: 2px;
}

.job-entry .company {
    font-weight: bold;
    color: #666;
    margin-right: 15px;
}

.job-entry ul {
    margin-top: 5px;
    padding-left: 20px;
    list-style-type: square;
    font-size: 0.95em;
}

/* --- SKILLS & LAYOUTS --- */
.two-column-layout {
    display: flex;
    gap: 30px;
}

.two-column-layout .section {
    flex: 1;
    border-bottom: none; /* Only apply border to main sections */
}

.skill-group h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    border-bottom: 1px dashed #eee;
}

.skill-group p {
    margin: 0 0 10px 0;
    font-size: 0.95em;
}

/* --- EDUCATION/TRAINING STYLES --- */
.education-entry, .training-entry {
    margin-bottom: 10px;
    padding: 5px 0;
}

.education-entry h4, .training-entry h4 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.05em;
}

.education-entry p, .training-entry p {
    margin: 0;
    font-size: 0.9em;
}

/* --- PERSONAL DETAILS TABLE --- */
.personal-block {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.personal-block table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.personal-block td:first-child {
    font-weight: bold;
    width: 40%;
    padding-right: 10px;
}

.personal-block td {
    padding: 3px 0;
    border-bottom: 1px dotted #eee;
}

/* --- FOOTER / DECLARATION --- */
.declaration {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8em;
    font-style: italic;
    color: #666;
    text-align: justify;
}

.declaration h3 {
    font-size: 1em;
    color: var(--primary-color);
    margin: 0 0 5px 0;
}

/* --- PRINT MEDIA QUERY for Clean CV Printing --- */
@media print {
    body {
        background: none;
    }
    .container {
        box-shadow: none;
        margin: 0;
        max-width: 100%;
        padding: 0;
    }
    .contact-info a {
        color: var(--text-color);
        text-decoration: none;
    }
}