:root {
    --text-color: #333;
    --bg-overlay: rgba(255, 255, 255, 0.15);
    --primary-color: #f0f0f0;
    --text-color: #fff;
    --link-color: #6dd5fa;
    --link-hover-color: #ff758c;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

.background-container {
    background-image: url('assets/background.png');
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Darker overlay to ensure text contrast with the transparent card */
.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.content-card {
    position: relative;
    z-index: 2;
    background: var(--bg-overlay);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
    width: 90%;
    text-align: center;
    color: var(--text-color);
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.content-card h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 1.1em;
    font-weight: 500;
    color: #ddd;
    margin-bottom: 25px;
    display: block;
    letter-spacing: 1px;
}

.bio {
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1em;
    text-align: left;
}

.bio p {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-links a {
    text-decoration: none;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    /* Slightly rounded corners for a modern tech feel */
    transition: all 0.3s ease;
    font-size: 1.5em;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.social-links a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.social-links a:hover::after {
    opacity: 1;
}

/* Specific icon adjustments if needed */
.social-links i {
    z-index: 1;
}

@media (max-width: 480px) {
    .content-card {
        padding: 25px;
    }

    .content-card h1 {
        font-size: 1.8em;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
}

.glass-corner {
    position: fixed;
    top: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#language-switcher {
    left: 20px;
}

#site-logo {
    right: 20px;
}

#site-logo img {
    height: 34px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.lang-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    /* Size of the flag */
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    /* Slightly tighter radius for flags */
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.5;
    filter: grayscale(100%);
    display: flex;
    /* Center the icon */
    align-items: center;
    justify-content: center;
}

.lang-btn .fi {
    width: 1.2em;
    /* Ensure nice proportions */
    line-height: 1em;
    border-radius: 2px;
    /* Small corner radius on the flag itself */
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}