:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-info {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 10px;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: 2rem 0;
    background-color: var(--white);
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Experience & Projects */
.job, .project {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.job:last-child, .project:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.job-header, .project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.job-title, .project-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.project-title a:hover {
    text-decoration: underline;
    color: var(--secondary-color) !important;
}

.company, .date {
    font-style: italic;
    color: #666;
}

.tech-stack {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

ul {
    list-style-position: inside;
    margin-left: 1rem;
}

li {
    margin-bottom: 0.3rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Education */
.education-item {
    margin-bottom: 1.5rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.school {
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .job-header, .project-header {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2rem;
    }
}
