:root {
    --bg: #eef3fb;
    --bg-soft: #f8fbff;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --text: #18253a;
    --text-soft: #5f6f86;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #8ec5ff;
    --border: rgba(140, 170, 210, 0.22);
    --shadow: 0 18px 45px rgba(32, 65, 118, 0.10);
    --shadow-soft: 0 10px 25px rgba(20, 35, 70, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(142, 197, 255, 0.28), transparent 30%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 25%),
        linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
    line-height: 1.65;
}

.language-switch {
    max-width: var(--max-width);
    margin: 1.2rem auto 0;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: 0 8px 20px rgba(35, 55, 95, 0.06);
}

.lang-btn:hover {
    background: rgba(83, 142, 238, 0.3);
    border-color: rgba(59, 130, 246, 0.30);
}

.lang-btn.active {
    background: rgba(83, 142, 238, 0.3);
    border-color: rgba(59, 130, 246, 0.40);
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(24, 37, 58, 0.06);
    padding: 1rem 1.5rem;
    text-align: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s ease;
}

nav a:hover {
    color: var(--primary-dark);
}

.hero {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding: 5.5rem 2rem 4.5rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 1.5rem 1rem 0 1rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
    border: 1px solid var(--border);
    border-radius: 36px;
    box-shadow: var(--shadow);
    z-index: -1;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    font-weight: 800;
    color: var(--text);
}

.hero p {
    max-width: 720px;
    margin: 1rem auto 0;
    font-size: 1.14rem;
    color: var(--text-soft);
}

.profile-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    margin: 1.5rem auto 1.5rem;
    border: 5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 30px rgba(32, 65, 118, 0.18);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.4rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.section h1,
.section h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--text);
    position: relative;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 1rem;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.section h2::after,
.section h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section p {
    color: var(--text-soft);
    font-size: 1.03rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.4rem;
}

.card {
    background: var(--surface-strong);
    border: 1px solid rgba(140, 170, 210, 0.18);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(35, 55, 95, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(35, 55, 95, 0.12);
    border-color: rgba(59, 130, 246, 0.26);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.18rem;
    color: var(--text);
}

.card p {
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.95rem 1.4rem;
    margin: 0.5rem 0.35rem 0 0.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    transition: all 0.28s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: white;
    border: 1px solid rgba(59, 130, 246, 0.42);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: rgba(83, 142, 238, 0.3);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.42);
    box-shadow: 0 10px 24px rgba(35, 55, 95, 0.10);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(59, 130, 246, 0.24);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: rgba(83, 142, 238, 0.3);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.30);
    box-shadow: 0 10px 24px rgba(35, 55, 95, 0.10);
}

ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
    color: var(--text-soft);
}

li {
    margin-bottom: 0.6rem;
}

footer {
    margin-top: 2rem;
    padding: 2.4rem 1.5rem;
    text-align: center;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(24, 37, 58, 0.06);
}

.footer-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    color: inherit;
    text-decoration: underline;
}

a {
    transition: 0.25s ease;
}

@media (max-width: 768px) {
    .hero {
        padding: 4.5rem 1rem 3.2rem;
        margin-top: 1rem;
    }

    .hero::before {
        inset: 1rem 0.5rem 0 0.5rem;
        border-radius: 28px;
    }

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

    .language-switch {
        padding: 0 1rem;
        justify-content: center;
    }

    .container {
        padding: 1rem;
    }

    .section {
        padding: 1.6rem;
        border-radius: 22px;
    }

    .btn {
        width: 100%;
        margin: 0.5rem 0 0;
    }

    .hero div {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}