/* 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: #e0e0e0;
    background: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #2c2c2c;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #2980b9;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 10px;
}

nav li {
    margin: 5px 10px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header Section */
.profile-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-align: center;
    padding: 60px 20px 40px;
}

.profile-image {
    margin-bottom: 20px;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Section Styles */
section {
    padding: 40px 50px;
    border-bottom: 1px solid #404040;
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    color: #e6f0ff;
    font-size: 2em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    border-radius: 2px;
}

/* About Section */
.about p {
    font-size: 1.1em;
    color: #cccccc;
    line-height: 1.8;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.skill-item {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.4);
}

/* Experience Section */
.experience-item {
    margin-bottom: 30px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item h3 {
    color: #e0e0e0;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.company {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.experience-item p:last-child {
    color: #b0b0b0;
    line-height: 1.7;
}

/* Education Section */
.education-item {
    margin-bottom: 25px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item h3 {
    color: #e0e0e0;
    font-size: 1.5em;
    margin-bottom: 5px;
}

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

.education-item p:last-child {
    color: #cccccc;
}

/* Languages Section */
.languages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #404040;
}

.language-item:last-child {
    border-bottom: none;
}

.language-name {
    font-weight: 600;
    color: #e0e0e0;
}

.language-level {
    color: #3498db;
    font-style: italic;
}

/* Contact Section */
.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3);
}

.contact-btn span {
    font-size: 1.3em;
}

.cv-download {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-color: #27ae60;
    font-size: 1.1em;
    padding: 18px 25px;
}

.cv-download:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.4);
}

/* Footer */
footer {
    background: #1a1a1a;
    text-align: center;
    padding: 20px;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }

    nav ul {
        padding: 0 5px;
    }

    nav li {
        margin: 5px 5px;
    }

    nav a {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    section {
        padding: 30px 25px;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }
}
