body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --button-bg: #007bff;
    --button-hover: #0056b3;
    --button-text: #fff;
    --container-bg: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark {
    --bg-color: #121212;
    --text-color: #f4f4f4;
    --button-bg: #1e90ff;
    --button-hover: #1c86ee;
    --container-bg: #1e1e1e;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

.container {
    background: var(--container-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease-in-out;
}

.profile-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.profile-name {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.profile-title {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
}

.skills, .expertise {
    margin-bottom: 12px;
    text-align: left;
    background: var(--bg-color);
    padding: 12px;
    border-radius: 8px;
}

.skills h4, .expertise h4 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills-list li {
    display: inline-block;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.tag {
    display: inline-block;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.divider {
    border: none;
    border-top: 1px solid var(--shadow-color);
    margin: 16px 0;
}

h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 600;
}

.button-wrapper {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    padding: 12px;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

.button:hover {
    background-color: var(--button-hover);
    transform: scale(1.05);
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.modal-content {
    background: var(--container-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    text-align: center;
    max-width: 90%;
    width: 400px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.modal img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: black;
    margin: 10px;
}

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

@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        padding: 15px;
    }
    .modal img {
        max-height: 60vh;
    }
}
