body {
    background: linear-gradient(135deg, #1c1c1c, #2c2c2c);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    padding: 4.2rem 1rem 2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: min(980px, 100%);
    position: relative;
    text-align: center;
    padding: 2rem 0 1rem;
    min-height: 180px;
}

header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.2;
}

.header-right-tools {
    position: fixed;
    top: 0.6rem;
    right: 0.7rem;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    max-width: calc(100vw - 1.4rem);
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.45rem;
    backdrop-filter: blur(6px);
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
}

.header-quick-links {
    display: flex;
    gap: 0.35rem;
    width: auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-quick-links::-webkit-scrollbar {
    display: none;
}

.header-quick-link {
    text-decoration: none;
    color: #fff;
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(59, 130, 246, 0.55);
    border-radius: 10px;
    padding: 0.48rem 0.75rem;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.header-quick-link strong {
    display: inline-block;
    font-size: 0.88rem;
}

.subtitle {
    margin: 0.5rem 0 1.4rem;
    color: #c7d2fe;
    opacity: 0.9;
    min-height: 1.6em;
}

.profile-hero {
    width: min(980px, 100%);
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 0.2rem 0 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    box-sizing: border-box;
}

.profile-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.profile-summary {
    text-align: left;
    line-height: 1.6;
    color: #e5e7eb;
}

.profile-summary p {
    margin: 0.25rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.58rem 1.1rem;
    transition: all 0.2s ease;
}

.nav-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.nav-button.active {
    background: #2563eb;
    border-color: #3b82f6;
}

.cards-container {
    width: min(1200px, 100%);
    margin-top: 1.2rem;
    margin-bottom: 2rem;
    padding: 0;
    position: relative;
}

.card {
    width: 280px;
    position: absolute;
    background: #333;
    margin: 0;
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #ddd;
    flex: 1;
}

.card-footer {
    margin-top: auto;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.card-footer a {
    color: #fff;
    text-decoration: none;
    background: #2563eb;
    padding: 0.46rem 0.9rem;
    border-radius: 999px;
    font-size: 0.86rem;
    transition: background 0.2s ease;
}

.card-footer a:hover {
    background: #1d4ed8;
}

footer {
    margin-top: auto;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

@media (max-width: 760px) {
    .header-right-tools {
        right: 0.5rem;
        top: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    .header-quick-links {
        max-width: calc(100vw - 7.2rem);
    }

    .cards-container {
        padding: 0;
    }

    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }

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