:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --card-background: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
    background: var(--background);
    padding: 0.25rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.875rem;
}

.lang-btn:hover {
    background: var(--card-background);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Main Container */
.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: var(--background);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.profile-image-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Services Section */
.services-section {
    background: var(--card-background);
}

.service-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Section */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-background);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.contact-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.email-protected {
    color: var(--text-primary);
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Projects Section */
.projects-section {
    background: var(--card-background);
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    border-color: var(--primary-color);
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-link span {
    flex: 1;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem 0;
    color: white;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        padding: 1rem 0.5rem;
    }

    .container {
        border-radius: 1rem;
    }

    .profile-section {
        padding: 2rem 1.5rem 1.5rem;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    .name {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .service-description {
        font-size: 1.125rem;
    }

    .language-switcher {
        top: 1rem;
        right: 1rem;
    }
}

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

    .name {
        font-size: 1.75rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
    }

    .language-switcher {
        display: none;
    }
}
