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

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/wallpaper.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.5);
    z-index: -1;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card {
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: transparent;
    padding: 0;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 1.25rem;
    background-color: #2a2a2a;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}

.bio {
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e0e0e0;
    position: relative;
}

.bio::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 24px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent #1a1a1a transparent transparent;
}

.interests {
    display: flex;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    padding: 1rem 1.5rem;
    gap: 1.25rem;
}

.interests-label {
    font-weight: 500;
    font-size: 1rem;
    padding-right: 1.25rem;
    border-right: 1px solid #333;
}

.interest-tags {
    display: flex;
    gap: 0.75rem;
}

.tag {
    background-color: #2a2a2a;
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.skills-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skills-card .label {
    font-weight: 500;
    white-space: nowrap;
}

.skills-card .divider {
    width: 1px;
    height: 30px;
    background-color: #333;
}

.skills-card .icons {
    display: flex;
    gap: 0.5rem;
}

.skill-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.skill-icon-svg {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon-svg svg {
    width: 100%;
    height: 100%;
}

.education-card .title {
    font-size: 1.4rem;
    font-weight: 600;
}

.education-card .subtitle {
    color: #888;
    font-size: 0.9rem;
}

.education-card .location {
    color: #666;
    font-size: 0.85rem;
}

.education-card .date {
    float: right;
    background-color: #2a2a2a;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.languages-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.languages-card .label {
    font-weight: 500;
}

.languages-card .divider {
    width: 1px;
    height: 30px;
    background-color: #333;
}

.languages-card .flags {
    display: flex;
    gap: 0.75rem;
    font-size: 1.5rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-card .label {
    font-weight: 500;
}

.social-card .divider {
    width: 1px;
    height: 30px;
    background-color: #333;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    background-color: #2a2a2a;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    background-color: #3a3a3a;
}

.social-divider {
    width: 1px;
    height: 14px;
    background-color: #444;
}

.redirect-icon {
    width: 14px;
    height: 14px;
    color: #888;
    transition: color 0.2s ease;
}

.social-link:hover .redirect-icon {
    color: #fff;
}

.details-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.details-card .label {
    font-weight: 500;
}

.details-card .divider {
    width: 1px;
    height: 30px;
    background-color: #333;
}

.detail-items {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.detail-item {
    background-color: #2a2a2a;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expand-langs-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-langs-btn:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.langs-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.2s ease;
}

.langs-dialog-overlay.active {
    display: flex;
    background-color: rgba(0, 0, 0, 0.7);
    animation: overlayFadeIn 0.2s ease forwards;
}

.langs-dialog-overlay.closing {
    display: flex;
    animation: overlayFadeOut 0.2s ease forwards;
}

@keyframes overlayFadeIn {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

@keyframes overlayFadeOut {
    from {
        background-color: rgba(0, 0, 0, 0.7);
    }
    to {
        background-color: rgba(0, 0, 0, 0);
    }
}

.langs-dialog {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1.25rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
}

.langs-dialog-overlay.active .langs-dialog {
    animation: dialogFadeIn 0.2s ease forwards;
}

.langs-dialog-overlay.closing .langs-dialog {
    animation: dialogFadeOut 0.2s ease forwards;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes dialogFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.langs-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.langs-dialog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.langs-dialog-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.langs-dialog-close:hover {
    color: #fff;
}

.langs-dialog-content {
    display: flex;
    justify-content: center;
}

.langs-dialog-content img {
    max-width: 100%;
    height: auto;
}