/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

h1 {
    margin-top: 15px;
    color: #2c3e50;
}

.tagline {
    font-size: 1.1em;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.contact-info {
    font-size: 0.9em;
    color: #555;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* Sections */
h2 {
    color: #2980b9;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 5px;
    margin-bottom: 20px;
    display: inline-block;
}

.instruction {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #e0e0e0;
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
    cursor: pointer; /* Indicates interactivity */
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: #2980b9;
    border-radius: 50%;
    position: absolute;
    left: -39px;
    top: 5px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #2980b9;
    transition: background 0.3s;
}

.timeline-content {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: box-shadow 0.3s;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.date {
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: bold;
}

.company {
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

/* Logic for expand/collapse */
.job-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    opacity: 0;
}

.timeline-item.active .job-details {
    max-height: 500px; /* Arbitrary large height */
    opacity: 1;
    margin-top: 10px;
    transition: max-height 0.5s ease-in, opacity 0.5s;
}

.timeline-item.active .timeline-dot {
    background: #2ecc71;
    box-shadow: 0 0 0 2px #2ecc71;
}

/* Education */
.education-item {
    margin-bottom: 15px;
}