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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 40px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-pic {
    flex-shrink: 0;
}

.profile-pic img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.header-text h1 {
    font-size: 2.8rem;
    margin-bottom: 5px;
}

.header-text p#title {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 1.05rem;
}

.contact-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

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

main {
    padding: 0 20px;
}

section {
    margin-bottom: 50px;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 20px;
    height: 20px;
    background: #3498db;
    border: 4px solid white;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item .date {
    font-weight: bold;
    color: #3498db;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-item .company {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.timeline-item .role {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 12px;
}

.timeline-details {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.timeline-item.active .timeline-details {
    display: block;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.education-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.education-item:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.skills-list, .certifications {
    flex: 1;
    min-width: 280px;
}

.skills-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-list li {
    background: #3498db;
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.skills-list li:hover {
    transform: scale(1.05);
}

.certifications ul {
    list-style: none;
}

.certifications li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.certifications li:last-child {
    border-bottom: none;
}

footer {
    text-align: center;
    padding: 25px;
    color: #777;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-pic img {
        width: 160px;
        height: 160px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}
