/* ==================== 
   General Styles
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== 
   Header Styles
   ==================== */
.header {
    text-align: center;
    padding: 40px 0 30px;
    border-bottom: 3px solid var(--secondary-color);
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-info {
    font-size: 0.95em;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ==================== 
   Section Styles
   ==================== */
.section {
    margin-bottom: 35px;
}

.section h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.section ul {
    margin-left: 20px;
}

.section li {
    margin-bottom: 8px;
}

/* ==================== 
   Skills Grid
   ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-category {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1em;
}

.skill-category ul {
    list-style: none;
    margin-left: 0;
}

.skill-category li {
    padding: 5px 0;
    color: #555;
}

.skill-category li:before {
    content: "▪ ";
    color: var(--secondary-color);
    margin-right: 8px;
}

/* ==================== 
   Job Experience
   ==================== */
.job {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.job:last-of-type {
    border-bottom: none;
}

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

.job h3 {
    font-size: 1.3em;
    color: var(--primary-color);
}

.job-date {
    color: var(--secondary-color);
    font-size: 0.95em;
    font-weight: 600;
}

.job-company {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.job ul {
    margin-left: 20px;
}

.job li {
    margin-bottom: 8px;
    color: #555;
}

/* ==================== 
   Projects
   ==================== */
.project {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.project h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.project h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project h3 a:hover {
    color: var(--accent-color);
}

.project-tech {
    color: var(--secondary-color);
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 10px;
}

.project p {
    color: #555;
    margin-bottom: 0;
}

/* ==================== 
   Education
   ==================== */
.education {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.education:last-of-type {
    border-bottom: none;
}

.education h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.education .job-company {
    color: var(--secondary-color);
}

.education .job-date {
    color: #666;
    font-size: 0.95em;
}

/* ==================== 
   Footer
   ==================== */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 2px solid var(--border-color);
    color: #666;
    font-size: 0.9em;
}

/* ==================== 
   Print Styles
   ==================== */
@media print {
    body {
        background-color: white;
    }

    .container {
        max-width: 100%;
    }

    .contact-info a:after {
        content: none;
    }
}

/* ==================== 
   Responsive Design
   ==================== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .section h2 {
        font-size: 1.5em;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-date {
        margin-top: 5px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6em;
    }

    .tagline {
        font-size: 1em;
    }

    .section h2 {
        font-size: 1.3em;
    }

    .job h3 {
        font-size: 1.1em;
    }
}
