/* Base Reset & Design Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #2980b9;
    --text-color: #333333;
    --bg-color: #f4f6f7;
    --card-bg: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

/* Page Container Layout */
.cv-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header Section styling */
header {
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    text-align: left;
}

/* Profile Photo Formatting */
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
}

header p {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Contact Info Two-Line Alignment */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.contact-main {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-social {
    display: flex;
}

/* Download Button Styling */
.download-container {
    margin-top: 12px;
}

.download-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.download-btn:hover {
    background-color: #216a9c;
}

.download-btn:active {
    transform: scale(0.98);
}

/* Main Content Split (2 Column Desktop Grid) */
.cv-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
}

/* Typography Rules */
section {
    margin-bottom: 25px;
}

h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Item Lists formatting */
.item {
    margin-bottom: 15px;
}

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

.item-title {
    font-weight: bold;
    color: var(--secondary-color);
}

.item-title-project {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.project-description {
    font-size: 0.85rem;
    color: #555;
    text-align: justify;
}

.item-company {
    font-style: italic;
    color: #555;
}

.item-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-left: auto;
}

.item ul {
    margin-left: 15px;
    font-size: 0.9rem;
    color: #333;
}

.item ul li {
    margin-bottom: 5px;
}

/* Badge Layouts for Skills */
.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills-list li {
    background: #f0f2f3;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #444;
    border: 1px solid #e1e4e6;
}

/* ==========================================================================
   Responsive Breakpoint: Activates on screens 768px wide or smaller (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .cv-container {
        padding: 20px;
        gap: 20px;
    }

    .cv-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .contact-main {
        justify-content: center;
    }

    .contact-social {
        justify-content: center;
    }
    
    .download-container {
        text-align: center;
    }
}
