/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Color scheme variables */
:root {
    --primary-color: #2d6a4f;
    --primary-hover: #1b4332;
    --primary-light: #e7f4ed;
    --primary-dark: #1b4332;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 40px;
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.profile-info h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.profile-info h2 {
    font-size: 1.5rem;
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 10px;
}

.location {
    color: #6c757d;
    font-size: 1.1rem;
}

.location i {
    margin-right: 5px;
}

/* Social Links */
.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: #495057;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Sections */
.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.section h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Experience & Education Row */
.experience-education-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.half-section {
    margin-bottom: 0;
}

.half-section h2 {
    font-size: 1.75rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 20px;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -5px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-item:after {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 2px;
    height: calc(100% + 15px);
    background: #e9ecef;
}

.timeline-item:last-child:after {
    display: none;
}

.timeline-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 3px;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.timeline-note {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

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

.skill-category h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

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

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

.skill-category li:before {
    content: "▹ ";
    color: var(--primary-color);
    margin-right: 5px;
}

/* Projects - Vertical Layout */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-card-vertical {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; /* Prevent content overflow */
}

.project-card-vertical:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.project-card-vertical h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-card-vertical p {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Project Images - Simple static display */
.project-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    width: 100%;
}

.project-thumbnail {
    flex: 1;
    min-width: 0; /* Allow shrinking below content size */
    width: 100%;
    max-width: 50%; /* Each image takes max 50% when multiple images */
    height: auto;
    max-height: 200px; /* Reduced height so both fit */
    object-fit: contain;
    border-radius: 4px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.95rem;
}

.project-links a:hover {
    text-decoration: underline;
}

.project-links a i {
    margin-right: 5px;
}

/* Additional Information */
.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.additional-category h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.additional-category ul {
    list-style: none;
}

.additional-category li {
    padding: 4px 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.additional-category li:before {
    content: "• ";
    color: var(--primary-color);
    margin-right: 5px;
}

/* Contact Section */
.contact-info {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s;
}

.contact-button:hover {
    background: var(--primary-hover);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .profile-section {
        flex-direction: column;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .profile-info h2 {
        font-size: 1.2rem;
    }
    
    .experience-education-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .half-section {
        margin-bottom: 30px;
    }
    
    .skills-grid,
    .additional-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix project images on mobile */
    .project-card-vertical {
        padding: 15px;
    }
    
    .project-images {
        flex-direction: column; /* Stack images vertically on mobile */
        gap: 10px;
    }
    
    .project-thumbnail {
        flex: none; /* Remove flex sizing */
        width: 100%;
        max-width: 100%;
        max-height: 180px; /* Reduce max height on mobile */
    }
    
    .project-tech {
        gap: 6px;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .project-links a {
        display: inline-block;
        margin-right: 15px;
        margin-bottom: 5px;
        font-size: 0.9rem;
    }
}