/* 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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Profile Header */
.profile-header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-header .title {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 0.9em;
    color: #555;
}

.contact-info span {
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -28px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.timeline-marker.education {
    background: #4CAF50;
}

.timeline-marker.experience {
    background: #2196F3;
}

.timeline-marker.skills {
    background: #FF9800;
}

.timeline-marker.projects {
    background: #9C27B0;
}

.timeline-marker.certifications {
    background: #F44336;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 20px;
}

.timeline-content h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.timeline-entry {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.timeline-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-entry h4 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 8px;
}

.timeline-entry .institution {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.timeline-entry .date {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-entry .description {
    color: #555;
    line-height: 1.6;
}

.timeline-entry .achievements {
    list-style: none;
    padding-left: 0;
}

.timeline-entry .achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #555;
}

.timeline-entry .achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8em;
}

/* Skills Section */
.skills-grid {
    display: grid;
    gap: 20px;
}

.skill-category h4 {
    margin-bottom: 12px;
    color: #333;
    font-size: 1.1em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Project Links */
.project-links {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-link {
    text-decoration: none;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.project-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .profile-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .profile-header h1 {
        font-size: 2em;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: -23px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        margin-left: 15px;
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.5em;
    }

    .timeline-entry h4 {
        font-size: 1.1em;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-header h1 {
        font-size: 1.8em;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-marker {
        left: -20px;
        width: 10px;
        height: 10px;
    }

    .timeline-content {
        margin-left: 12px;
        padding: 15px;
    }

    .skill-tags {
        justify-content: center;
    }
}

/* Animation for smooth appearance */
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}