:root {
    --bg-color: #0a192f;
    --text-color: #ccd6f6;
    --card-bg: rgba(17, 34, 64, 0.95);
    --card-text: #ccd6f6;
    --accent-color: #64ffda;
    --heading-color: #e6f1ff;
    --muted-text: #8892b0;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 32px;
    background: rgba(10, 25, 47, 0.96);
    border-bottom: 1px solid rgba(100, 255, 218, 0.12);
}

.logo-container,
.menu-toggle,
#theme-toggle {
    color: var(--accent-color);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 60px;
    padding: 0;
}

.site-logo {
    display: block;
    width: auto;
    max-width: 112px;
    max-height: 54px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-container:focus {
    outline: none;
}

.logo-container:focus-visible {
    border-radius: 6px;
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

#navbar ul {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#navbar a,
.lang-btn {
    color: var(--card-text);
    font-weight: 600;
    white-space: nowrap;
}

.nav-extras,
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

#home,
.hub-section,
.section-offset {
    padding-top: 56px;
    padding-bottom: 48px;
}

.home-content {
    max-width: 720px;
}

.intro,
.subtitle,
.section-intro,
.section-description {
    color: var(--muted-text);
}

h1,
h2,
h3,
.section-title {
    color: var(--heading-color);
    margin-top: 0;
    letter-spacing: 0;
}

h1 {
    max-width: 900px;
    font-size: clamp(2.1rem, 7vw, 4.5rem);
    line-height: 1.08;
}

.home-content h1 .hero-name,
.home-content h1 .hero-role {
    display: block;
}

.home-content h1 .hero-role {
    font-size: 0.82em;
}

.hero-actions,
.callout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary,
.text-link,
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--accent-color);
    font-weight: 700;
}

.profile-img-wrapper {
    margin-top: 32px;
}

.profile-img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 1200px) {
    header {
        padding: 0 18px;
    }

    #navbar ul {
        display: none;
    }

    #navbar.active ul {
        position: absolute;
        top: var(--header-height);
        right: 16px;
        left: 16px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: var(--card-bg);
        border: 1px solid rgba(100, 255, 218, 0.16);
        border-radius: 8px;
    }
}
