* {
    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: #f4f4f4;
    scroll-behavior: smooth;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

/* Portrait Styling */
.portrait-container {
    margin-bottom: 30px;
    animation: fadeInScale 1s ease-out;
}

.portrait-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.portrait-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
header p {
    font-size: 1.2em;
    opacity: 0.9;
}
.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.contact-info a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}
.contact-info a .icon {
    font-size: 28px;
    margin-bottom: 5px;
}
.contact-info a .label {
    font-size: 14px;
    opacity: 0.9;
}
.contact-info a:hover {
    transform: translateY(-3px);
}
.contact-info a:hover .label {
    opacity: 1;
}

/* Navigation Buttons - Option 7: Subtle Gradient */
.nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
}

.nav-button {
    background: linear-gradient(135deg, #8b9af7 0%, #8b6bba 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.section {
    padding: 40px;
    border-bottom: 1px solid #eee;
}
.section:last-child {
    border-bottom: none;
}
.section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}
.job, .education-item, .skill-category {
    margin-bottom: 30px;
}
.job h3, .education-item h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 5px;
}
.job-meta, .education-meta {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}
.job ul {
    margin-left: 20px;
    margin-top: 10px;
}
.job li {
    margin-bottom: 8px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.skill-category h4 {
    color: #667eea;
    margin-bottom: 10px;
}
.skill-category ul {
    list-style: none;
}
.skill-category li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}
.skill-category li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #667eea;
}
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
}
/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    header {
        padding: 40px 20px;
    }
    
    .portrait-image {
        width: 150px;
        height: 150px;
    }
    
    header h1 {
        font-size: 2em;
    }
    .section {
        padding: 30px 20px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .nav-buttons {
        gap: 10px;
    }
    .nav-button {
        padding: 10px 18px;
        font-size: 14px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
