:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #777;
}

* {
    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);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 2.5rem;
    text-align: center;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-info h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    color: var(--light);
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
}

/* Aside */
aside {
    background: var(--secondary);
    padding: 2rem;
    order: 2;
    color: var(--light);
}

aside section {
    margin-bottom: 2.5rem;
}

aside h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    font-size: 1.4rem;
}

/* Skills */
.skill, .language {
    margin-bottom: 1.2rem;
}

.skill p, .language p {
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.skill-bar, .language-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.skill-level, .language-level {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary), #2ecc71);
}

.skill-level.html { width: 85%; }
.skill-level.js { width: 78%; }
.skill-level.react { width: 70%; }
.skill-level.python { width: 75%; }
.skill-level.java { width: 80%; }

.language-level.native { width: 100%; }
.language-level.advanced { width: 80%; }
.language-level.intermediate { width: 60%; }

.lang-level {
    font-size: 0.85rem;
    color: #bdc3c7;
}

/* Interests */
.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    background: linear-gradient(135deg, var(--primary) 0%, #2ecc71 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main */
main {
    padding: 2rem;
    order: 1;
    background: var(--light);
}

main section {
    margin-bottom: 3rem;
}

main h3 {
    color: var(--secondary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    font-size: 1.6rem;
}

/* About */
.about {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Timeline */
.timeline {
    position: relative;
    margin-left: 1.2rem;
    padding-left: 1.8rem;
    border-left: 3px solid var(--primary);
}

.timeline-item {
    margin-bottom: 2.2rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    position: absolute;
    left: -2rem;
    top: 0;
    transform: translateX(-100%);
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 600;
}

.timeline-content {
    background: white;
    padding: 1.2rem;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    color: var(--secondary);
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
}

.company {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.timeline-content ul {
    margin-left: 1.5rem;
    color: var(--dark);
}

.timeline-content li {
    margin-bottom: 0.4rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.project-card h4 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

/* Media Queries */
@media (min-width: 768px) {
    .profile-header {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .contact-info p {
        justify-content: flex-start;
    }
    
    .main-content {
        flex-direction: row;
    }
    
    aside {
        flex: 1;
        order: 1;
    }
    
    main {
        flex: 2;
        order: 2;
    }
    
    .timeline-date {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 0.8rem;
    }
    
    .timeline {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
    
    .timeline-item {
        display: flex;
        flex-direction: column;
        margin-left: 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .contact-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .profile-img {
        width: 180px;
        height: 180px;
    }
}