:root {
    --primary-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #e9ecef;
    --accent-color: #0066cc;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 2rem;
}

.profile-section {
    background: var(--background);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 3rem;
    align-items: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--background);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.profile-content {
    flex: 1;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-family: var(--font-serif);
    letter-spacing: -0.5px;
}

.title {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.bio {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.companies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.company-badge {
    background: var(--background-alt);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.skills-compact {
    margin-bottom: 2rem;
}

.skills-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.skills-list {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--background-alt);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.contact-icon {
    width: 24px;
    height: 24px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
}

.contact-link:hover .contact-icon {
    filter: grayscale(0%) brightness(0) invert(1);
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 1rem;
    }

    .container {
        margin: 1rem;
    }

    .profile-section {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

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

    .name {
        font-size: 2rem;
    }

    .companies {
        justify-content: center;
    }

    .contact-links {
        justify-content: center;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ecf0f1;
        --text-color: #ecf0f1;
        --text-light: #95a5a6;
        --background: #1a1a1a;
        --background-alt: #2c2c2c;
        --border-color: #3a3a3a;
        --accent-color: #3498db;
    }

    body {
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    }

    .profile-section {
        background: var(--background);
    }

    .company-badge {
        background: var(--background-alt);
        border-color: var(--border-color);
        color: var(--text-light);
    }

    .contact-link {
        background: var(--background-alt);
        border-color: var(--border-color);
    }

    .contact-link:hover {
        background: var(--accent-color);
    }
    
    .contact-icon {
        filter: brightness(1.5);
    }
    
    .contact-link:hover .contact-icon {
        filter: brightness(0) invert(1);
    }
}

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

.profile-section {
    animation: fadeIn 0.8s ease;
}