/* Language + theme controls */
.site-controls {
    position: fixed;
    top: 20px;
    right: 22px;
    z-index: 10050;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(19, 13, 13, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.lang-switch button,
.theme-toggle {
    border: 0;
    background: transparent;
    color: #c4cfde;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lang-switch button {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 7px 11px;
    border-radius: 999px;
}

.lang-switch button.is-active {
    background: var(--color-primary);
    color: #fff;
}

.lang-switch button:hover,
.theme-toggle:hover {
    color: #fff;
}

.theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    display: block;
}

.theme-toggle .icon-sun {
    display: none;
}

body.white-version .theme-toggle .icon-moon {
    display: none;
}

body.white-version .theme-toggle .icon-sun {
    display: block;
}

.lang-switch button:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

body.white-version .site-controls {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(30, 33, 37, 0.08);
    box-shadow: 5px 5px 15px #d1d9e6, -5px -5px 15px #ffffff;
}

body.white-version .lang-switch {
    background: #ecf0f3;
}

body.white-version .lang-switch button,
body.white-version .theme-toggle {
    color: #3c3e41;
}

body.white-version .lang-switch button.is-active,
body.white-version .lang-switch button.is-active:hover {
    color: #fff;
}

body.white-version .theme-toggle:hover {
    background: rgba(19, 13, 13, 0.06);
    color: #1e2125;
}

@media only screen and (max-width: 1199px) {
    .site-controls {
        top: 16px;
        right: 68px;
    }
}

/* Hero network canvas sits above the dark overlay, below the copy */
#home.with-particles {
    overflow: hidden;
}

#mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

#home .wrapper {
    position: relative;
    z-index: 3;
}

body.white-version #home.with-particles {
    background-color: #ffffff;
}

body.white-version #home.with-particles::before {
    background-color: #ffffff;
    opacity: 1;
}

body.white-version #home .banner-inner h1 {
    color: #1e2125;
}

body.white-version #home .cd-headline span {
    color: #3c3e41 !important;
}

body.white-version #home .cd-headline .cd-words-wrapper b {
    color: var(--color-primary) !important;
}

body.white-version #home .cd-headline.clip .cd-words-wrapper::after {
    background-color: rgba(30, 33, 37, 0.45);
}

/* Light mode: global links are white (--color-heading) and disappear on light surfaces. */
body.white-version .page-wrapper-two a:not(.rn-btn) {
    color: var(--color-heading-wv);
}

body.white-version .page-wrapper-two a:not(.rn-btn):hover,
body.white-version .page-wrapper-two a:not(.rn-btn):focus {
    color: var(--color-primary);
}

body.white-version .rn-service:hover .inner .content h4.title a,
body.white-version .rn-service:hover .inner .content h4.title a:hover,
body.white-version .rn-service:hover .inner .content h4.title a:focus,
body.white-version .resume-single-list:hover .description a,
body.white-version .resume-single-list:hover .description a:hover,
body.white-version .resume-single-list:hover .description a:focus {
    color: #ffffff;
}
