/* =========================================================
   ROOT
========================================================= */

:root {
    --background: #02050a;

    color-scheme: dark;

    --surface: rgba(4, 10, 18, 0.33);
    --surface-light: rgba(8, 16, 27, 0.25);
    --surface-strong: rgba(4, 10, 18, 0.48);

    --text: #f7f9fc;
    --text-soft: #c7d0dc;
    --text-muted: #8e99a8;

    --accent: #9fb9da;
    --accent-light: #d8e6f6;
    --accent-soft: rgba(159, 185, 218, 0.16);

    --border: rgba(255, 255, 255, 0.10);
    --border-soft: rgba(255, 255, 255, 0.055);
    --border-active: rgba(159, 185, 218, 0.42);

    --shadow:
        0 24px 70px
        rgba(0, 0, 0, 0.20);

    --max-width: 1180px;

    --radius-large: 24px;
    --radius-medium: 18px;
    --radius-small: 12px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    overflow-x: hidden;

    font-family:
        "Inter",
        sans-serif;

    line-height: 1.7;

    color: var(--text);

    background:
        var(--background);

    -webkit-font-smoothing:
        antialiased;

    text-rendering:
        optimizeLegibility;
}


h1,
h2,
h3,
.logo {
    font-family:
        "Manrope",
        sans-serif;
}


a {
    color: inherit;

    text-decoration: none;
}


button,
input,
textarea {
    font: inherit;
}


button {
    color: inherit;
}


img,
canvas {
    max-width: 100%;
}


ul {
    padding-left: 0;
}


main,
.footer {
    position: relative;

    z-index: 10;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    color: #02050a;

    background:
        #d7e7f7;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 10px;
}


::-webkit-scrollbar-track {
    background:
        #02050a;
}


::-webkit-scrollbar-thumb {
    border:
        3px solid
        #02050a;

    border-radius:
        999px;

    background:
        #46576a;
}


::-webkit-scrollbar-thumb:hover {
    background:
        #60758d;
}


/* =========================================================
   BACKGROUND
========================================================= */

.site-background {
    position: fixed;

    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(35, 92, 150, 0.14),
            transparent 60%
        ),
        radial-gradient(
            circle at 15% 25%,
            rgba(75, 124, 172, 0.05),
            transparent 34%
        ),
        #010409;
}


/* =========================================================
   BACKGROUND GRID
========================================================= */

.background-grid {
    position: absolute;

    inset: 0;

    z-index: 3;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.01) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.01) 1px,
            transparent 1px
        );

    background-size:
        86px 86px;

    opacity: 0.12;
}


/* =========================================================
   EARTH WRAPPER
========================================================= */

.globe-wrap {
    position: absolute;

    inset: 0;

    z-index: 0;

    display: grid;

    place-items: center;

    overflow: hidden;
}


/* =========================================================
   EARTH
========================================================= */

.globe {
    position: relative;

    width:
        min(
            1160px,
            90vw
        );

    aspect-ratio: 1;

    overflow: hidden;

    border-radius: 50%;

    background:
        #020811;

    box-shadow:
        0 0 0 1px
        rgba(215, 230, 247, 0.22),

        0 0 30px
        rgba(123, 179, 229, 0.20),

        0 0 100px
        rgba(64, 126, 187, 0.16),

        0 0 230px
        rgba(31, 81, 132, 0.11);
}


.globe-map {
    display: none;
}


/* =========================================================
   STATIC NASA FALLBACK
========================================================= */

.globe-photo {
    position: absolute;

    inset: -1%;

    width: 102%;
    height: 102%;

    border-radius: 50%;

    background-image:
        url(
            "assets/img/bluemarble-east.jpg"
        );

    background-repeat:
        no-repeat;

    background-position:
        center;

    background-size:
        cover;

    filter:
        saturate(1.22)
        brightness(1.08)
        contrast(1.08);

    transition:
        opacity
        0.8s ease;
}


/* =========================================================
   EARTH LIGHT
========================================================= */

.globe-light {
    position: absolute;

    inset: 0;

    z-index: 4;

    border-radius: 50%;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 27% 22%,
            rgba(255, 255, 255, 0.10),
            transparent 34%
        ),

        radial-gradient(
            circle at 45% 40%,
            transparent 48%,
            rgba(0, 0, 0, 0.04) 67%,
            rgba(0, 0, 0, 0.28) 100%
        );

    box-shadow:
        inset -38px -15px 78px
        rgba(0, 0, 0, 0.25),

        inset 20px 12px 60px
        rgba(220, 238, 255, 0.06);
}


/* =========================================================
   ATMOSPHERE
========================================================= */

.globe-atmosphere {
    position: absolute;

    inset: 1px;

    z-index: 5;

    border-radius: 50%;

    pointer-events: none;

    box-shadow:
        inset 0 0 15px
        rgba(205, 230, 255, 0.26),

        inset 0 0 4px
        rgba(242, 249, 255, 0.52),

        0 0 19px
        rgba(151, 199, 244, 0.23),

        0 0 65px
        rgba(83, 152, 216, 0.16);
}


/* =========================================================
   THREE.JS CANVAS
========================================================= */

.globe canvas {
    position: absolute;

    inset: 0;

    z-index: 3;

    width: 100% !important;
    height: 100% !important;

    border-radius: 50%;

    filter:
        saturate(1.27)
        brightness(1.07)
        contrast(1.07);
}


/* =========================================================
   BACKGROUND DARKENER
========================================================= */

.background-darkener {
    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            90deg,
            rgba(1, 4, 8, 0.22),
            rgba(1, 4, 8, 0.09) 28%,
            rgba(1, 4, 8, 0.02) 52%,
            rgba(1, 4, 8, 0.03) 72%,
            rgba(1, 4, 8, 0.10)
        ),

        linear-gradient(
            180deg,
            rgba(1, 4, 8, 0.02),
            rgba(1, 4, 8, 0.025) 45%,
            rgba(1, 4, 8, 0.09) 78%,
            rgba(1, 4, 8, 0.22)
        );
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background:
        rgba(2, 6, 11, 0.22);

    border-bottom:
        1px solid
        transparent;

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        backdrop-filter 0.3s ease;
}


.header.scrolled {
    background:
        rgba(2, 6, 11, 0.68);

    border-color:
        var(--border);

    backdrop-filter:
        blur(9px);

    -webkit-backdrop-filter:
        blur(9px);
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width:
        min(
            calc(100% - 48px),
            var(--max-width)
        );

    height: 82px;

    margin:
        auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        24px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    position: relative;

    z-index: 3;

    color:
        #ffffff;

    font-size:
        1.25rem;

    font-weight:
        800;

    letter-spacing:
        -0.04em;

    text-shadow:
        0 2px 9px
        rgba(0, 0, 0, 0.90);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.logo:hover {
    opacity: 0.82;

    transform:
        translateY(-1px);
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-links {
    list-style:
        none;

    display:
        flex;

    align-items:
        center;

    gap:
        27px;
}


.nav-links a {
    position:
        relative;

    color:
        #d8e0e9;

    font-size:
        0.8rem;

    font-weight:
        600;

    text-shadow:
        0 2px 9px
        rgba(0, 0, 0, 0.95);

    transition:
        color 0.25s ease;
}


.nav-links a:hover {
    color:
        #ffffff;
}


.nav-links a::after {
    content:
        "";

    position:
        absolute;

    left:
        0;

    bottom:
        -7px;

    width:
        0;

    height:
        1px;

    background:
        var(--accent-light);

    transition:
        width 0.25s ease;
}


.nav-links a:hover::after {
    width:
        100%;
}


/* =========================================================
   NAV ACTIONS
========================================================= */

.nav-actions {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;
}


/* =========================================================
   LANGUAGE SWITCH
========================================================= */

.language-switch {
    height:
        36px;

    padding:
        0 12px;

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    border:
        1px solid
        var(--border);

    border-radius:
        999px;

    background:
        rgba(2, 6, 11, 0.30);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);
}


.language-option {
    border:
        0;

    background:
        transparent;

    color:
        #9ca9b8;

    font-size:
        0.69rem;

    font-weight:
        700;

    cursor:
        pointer;

    transition:
        color 0.2s ease;
}


.language-option.active,
.language-option:hover {
    color:
        #ffffff;
}


.language-switch > span {
    color:
        #687483;

    font-size:
        0.65rem;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-button {
    display:
        none;

    width:
        40px;

    height:
        40px;

    padding:
        0;

    border:
        0;

    background:
        transparent;

    cursor:
        pointer;
}


.menu-button span {
    display:
        block;

    width:
        21px;

    height:
        1px;

    margin:
        5px auto;

    background:
        #ffffff;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.menu-button.active span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}


.menu-button.active span:nth-child(2) {
    opacity:
        0;
}


.menu-button.active span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* =========================================================
   GLASS CARDS
========================================================= */

.hero-content,
.hero-side,
.experience-item,
.education-item,
.project-item,
.technology,
.language-card,
.contact-form {
    border:
        1px solid
        var(--border);

    background:
        var(--surface);

    backdrop-filter:
        blur(7px)
        saturate(1.03);

    -webkit-backdrop-filter:
        blur(7px)
        saturate(1.03);
}


.hero-content,
.hero-side,
.contact-form {
    box-shadow:
        var(--shadow);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position:
        relative;

    z-index:
        10;

    width:
        min(
            calc(100% - 48px),
            var(--max-width)
        );

    min-height:
        100vh;

    margin:
        auto;

    padding:
        145px 0 95px;

    display:
        grid;

    grid-template-columns:
        1.2fr
        0.8fr;

    align-items:
        center;

    gap:
        80px;
}


.hero-content,
.hero-side {
    position:
        relative;

    z-index:
        20;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    padding:
        28px;

    border-radius:
        24px;

    background:
        rgba(2, 7, 13, 0.27);

    backdrop-filter:
        blur(8px)
        saturate(1.03);

    -webkit-backdrop-filter:
        blur(8px)
        saturate(1.03);
}


/* =========================================================
   HERO SIDE
========================================================= */

.hero-side {
    align-self:
        end;

    margin-bottom:
        85px;

    padding:
        0 18px;

    border-radius:
        18px;

    background:
        linear-gradient(
            90deg,
            rgba(2, 6, 11, 0.42),
            rgba(2, 6, 11, 0.20)
        );

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);
}


/* =========================================================
   HERO BADGE
========================================================= */

.career-badge {
    display:
        inline-flex;

    align-items:
        center;

    padding:
        7px 12px;

    margin-bottom:
        42px;

    border:
        1px solid
        rgba(190, 211, 235, 0.39);

    border-radius:
        999px;

    color:
        #e5eef8;

    background:
        rgba(2, 6, 11, 0.28);

    font-size:
        0.66rem;

    font-weight:
        700;

    letter-spacing:
        0.13em;

    text-transform:
        uppercase;

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);
}


/* =========================================================
   HERO INTRO
========================================================= */

.hero-intro {
    margin-bottom:
        12px;

    color:
        #d0d8e2;

    font-size:
        0.8rem;

    font-weight:
        600;

    text-transform:
        uppercase;

    letter-spacing:
        0.15em;

    text-shadow:
        0 3px 14px
        rgba(0, 0, 0, 0.95);
}


/* =========================================================
   HERO TITLE
========================================================= */

.hero-title {
    color:
        #ffffff;

    font-size:
        clamp(
            4.3rem,
            8vw,
            7.2rem
        );

    font-weight:
        800;

    line-height:
        0.91;

    letter-spacing:
        -0.065em;

    text-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.85),

        0 14px 40px
        rgba(0, 0, 0, 0.62);
}


.hero-title span {
    display:
        block;

    color:
        #dae7f5;

    font-weight:
        500;
}


/* =========================================================
   HERO ROLE
========================================================= */

.hero-role {
    margin-top:
        30px;

    color:
        #ffffff;

    font-size:
        1rem;

    font-weight:
        600;

    text-shadow:
        0 3px 13px
        rgba(0, 0, 0, 0.95);
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hero-description {
    max-width:
        640px;

    margin-top:
        20px;

    color:
        #d0d7e1;

    font-size:
        0.95rem;

    line-height:
        1.75;

    text-shadow:
        0 3px 13px
        rgba(0, 0, 0, 0.95);
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        13px;

    margin-top:
        34px;
}


/* =========================================================
   GENERAL BUTTONS
========================================================= */

.button {
    min-height:
        48px;

    padding:
        0 21px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    border:
        0;

    border-radius:
        999px;

    font-size:
        0.82rem;

    font-weight:
        600;

    cursor:
        pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.button:hover {
    transform:
        translateY(-2px);
}


.button-primary {
    color:
        #05090e;

    background:
        #f7f9fc;
}


.button-primary:hover {
    background:
        #dce9f6;
}


.button-secondary {
    color:
        #ffffff;

    border:
        1px solid
        var(--border-active);

    background:
        rgba(2, 7, 13, 0.34);
}


.button-secondary:hover {
    background:
        rgba(159, 185, 218, 0.12);
}


/* =========================================================
   HERO CONTACT
========================================================= */

.hero-contact {
    margin-top:
        30px;

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;

    color:
        #c0c9d4;

    font-size:
        0.72rem;

    text-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.95);
}


.hero-contact a {
    transition:
        color 0.2s ease;
}


.hero-contact a:hover {
    color:
        #ffffff;
}


/* =========================================================
   HERO SOCIALS
========================================================= */

.hero-socials {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        25px;

    margin-top:
        18px;
}


.hero-socials a {
    color:
        #d3dbe5;

    font-size:
        0.76rem;

    font-weight:
        600;

    transition:
        color 0.2s ease;
}


.hero-socials a:hover {
    color:
        #ffffff;
}


/* =========================================================
   HERO FACTS
========================================================= */

.hero-fact {
    min-height:
        73px;

    padding:
        15px 0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        25px;

    border-bottom:
        1px solid
        var(--border);
}


.hero-fact:last-child {
    border-bottom:
        0;
}


.hero-fact span {
    color:
        #b6c0cd;

    font-size:
        0.69rem;
}


.hero-fact strong {
    max-width:
        245px;

    color:
        #ffffff;

    text-align:
        right;

    font-size:
        0.77rem;

    font-weight:
        600;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    position:
        relative;

    z-index:
        10;

    width:
        min(
            calc(100% - 48px),
            var(--max-width)
        );

    margin:
        auto;

    padding:
        110px 0;

    border-top:
        1px solid
        var(--border);

    scroll-margin-top:
        95px;
}


/* =========================================================
   SECTION BACKDROP
========================================================= */

.section::before {
    content:
        "";

    position:
        absolute;

    inset:
        18px -20px;

    z-index:
        0;

    border:
        1px solid
        rgba(255, 255, 255, 0.035);

    border-radius:
        28px;

    background:
        rgba(3, 8, 15, 0.10);

    backdrop-filter:
        blur(5px)
        saturate(1.02);

    -webkit-backdrop-filter:
        blur(5px)
        saturate(1.02);

    pointer-events:
        none;
}


.section > * {
    position:
        relative;

    z-index:
        1;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        22px;

    margin-bottom:
        55px;
}


.section-number {
    margin-top:
        7px;

    color:
        #bed1e7;

    font-size:
        0.68rem;

    font-weight:
        700;
}


.section-label {
    margin-bottom:
        6px;

    color:
        #b8cee7;

    font-size:
        0.68rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.12em;
}


.section-heading h2 {
    color:
        #ffffff;

    font-size:
        clamp(
            2.1rem,
            4vw,
            3.3rem
        );

    font-weight:
        700;

    line-height:
        1.05;

    letter-spacing:
        -0.045em;
}


/* =========================================================
   PROFILE
========================================================= */

.profile-layout {
    display:
        grid;

    grid-template-columns:
        1fr
        1fr;

    gap:
        90px;
}


.profile-lead {
    color:
        #ffffff;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(
            1.6rem,
            3vw,
            2.5rem
        );

    font-weight:
        500;

    line-height:
        1.32;

    letter-spacing:
        -0.035em;
}


.profile-description {
    max-width:
        560px;

    color:
        #cbd3dd;

    font-size:
        0.94rem;

    line-height:
        1.85;
}


.profile-description p + p {
    margin-top:
        20px;
}


/* =========================================================
   EXPERIENCE LIST
========================================================= */

.experience-list,
.education-list,
.projects-list {
    display:
        grid;

    gap:
        14px;
}


/* =========================================================
   EXPERIENCE CARD
========================================================= */

.experience-item {
    display:
        grid;

    grid-template-columns:
        180px
        1fr;

    gap:
        70px;

    padding:
        42px 22px;

    border-radius:
        18px;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.experience-item:hover {
    border-color:
        var(--border-active);

    background:
        var(--surface-strong);

    transform:
        translateY(-2px);
}


.experience-date {
    color:
        #a5afbc;

    font-size:
        0.72rem;

    font-weight:
        600;

    letter-spacing:
        0.015em;
}


.experience-information {
    max-width:
        780px;
}


.experience-type {
    margin-bottom:
        8px;

    color:
        #bed2e9;

    font-size:
        0.66rem;

    font-weight:
        700;

    letter-spacing:
        0.10em;

    text-transform:
        uppercase;
}


.experience-information h3 {
    color:
        #ffffff;

    font-size:
        1.7rem;

    font-weight:
        700;

    line-height:
        1.25;

    letter-spacing:
        -0.035em;
}


.experience-information h4 {
    margin-top:
        5px;

    color:
        #cbd3dd;

    font-size:
        0.91rem;

    font-weight:
        500;

    line-height:
        1.55;
}


/* =========================================================
   EXPERIENCE TASKS
========================================================= */

.experience-tasks {
    max-width:
        735px;

    margin-top:
        19px;

    padding-left:
        20px;

    color:
        #aeb9c6;

    font-size:
        0.82rem;

    line-height:
        1.78;
}


.experience-tasks li {
    padding-left:
        4px;
}


.experience-tasks li + li {
    margin-top:
        7px;
}


.experience-tasks li::marker {
    color:
        #9fb9da;

    font-size:
        0.85em;
}


/* =========================================================
   EDUCATION CARD
========================================================= */

.education-item {
    display:
        grid;

    grid-template-columns:
        180px
        1fr;

    gap:
        70px;

    padding:
        40px 22px;

    border-radius:
        18px;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.education-item:hover {
    border-color:
        var(--border-active);

    background:
        var(--surface-strong);

    transform:
        translateY(-2px);
}


.education-date {
    color:
        #a5afbc;

    font-size:
        0.72rem;

    font-weight:
        600;
}


.education-information {
    max-width:
        760px;
}


.education-item h3 {
    color:
        #ffffff;

    font-size:
        1.35rem;

    font-weight:
        700;

    line-height:
        1.35;

    letter-spacing:
        -0.025em;
}


.education-item strong {
    display:
        block;

    margin-top:
        5px;

    color:
        #d3dbe4;

    font-size:
        0.88rem;

    font-weight:
        500;
}


/* =========================================================
   SKILLS
========================================================= */

.skills-list {
    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            1fr
        );

    gap:
        12px;
}


.technology {
    min-height:
        112px;

    padding:
        20px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        space-between;

    border-radius:
        15px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.technology:hover {
    transform:
        translateY(-3px);

    background:
        var(--surface-strong);

    border-color:
        var(--border-active);
}


.technology span {
    color:
        #9da8b6;

    font-size:
        0.63rem;

    font-weight:
        600;
}


.technology strong {
    color:
        #ffffff;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        0.94rem;

    font-weight:
        600;

    line-height:
        1.4;
}


/* =========================================================
   LANGUAGES
========================================================= */

.languages-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            5,
            1fr
        );

    gap:
        12px;
}


.language-card {
    min-height:
        150px;

    padding:
        22px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        space-between;

    border-radius:
        15px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.language-card:hover {
    transform:
        translateY(-3px);

    background:
        var(--surface-strong);

    border-color:
        var(--border-active);
}


.main-language {
    background:
        linear-gradient(
            145deg,
            rgba(119, 166, 214, 0.12),
            rgba(3, 8, 15, 0.31)
        );
}


.language-card span {
    color:
        #ccd5df;

    font-size:
        0.83rem;

    font-weight:
        500;
}


.language-card strong {
    color:
        #e2edf8;

    font-size:
        1.1rem;

    font-weight:
        700;
}


.language-card small {
    color:
        #9da8b6;

    font-size:
        0.68rem;
}


/* =========================================================
   PROJECT CARDS
========================================================= */

.project-item {
    display:
        grid;

    grid-template-columns:
        80px
        1fr;

    gap:
        35px;

    padding:
        46px 22px;

    border-radius:
        18px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.project-item:has(.project-shot) {
    grid-template-columns:
        80px
        1fr
        minmax(200px, 280px);

    align-items:
        center;
}


/* =========================================================
   PROJECT SCREENSHOT
========================================================= */

.project-shot {
    position:
        relative;

    display:
        block;

    width:
        100%;

    padding:
        0;

    overflow:
        hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        14px;

    background:
        #03060d;

    cursor:
        pointer;

    aspect-ratio:
        4 / 3;
}


.project-shot img {
    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform 0.4s ease;
}


.project-shot-play {
    position:
        absolute;

    right:
        10px;

    bottom:
        10px;

    padding:
        5px 11px;

    border-radius:
        999px;

    color:
        #02050a;

    background:
        var(--accent-light);

    font-size:
        0.68rem;

    font-weight:
        700;

    opacity:
        0.92;
}


.project-shot:hover img {
    transform:
        scale(1.04);
}


.project-shot:hover {
    border-color:
        var(--border-active);
}


@media (max-width: 1000px) {

    .project-item:has(.project-shot) {
        grid-template-columns:
            60px
            1fr;
    }


    .project-item .project-shot {
        grid-column:
            2;

        max-width:
            420px;
    }

}


@media (max-width: 520px) {

    .project-item:has(.project-shot) {
        grid-template-columns:
            1fr;
    }


    .project-item .project-shot {
        grid-column:
            1;

        max-width:
            none;
    }

}


.project-item:hover {
    transform:
        translateY(-2px);

    border-color:
        var(--border-active);

    background:
        var(--surface-strong);
}


/* =========================================================
   PROJECT NUMBER
========================================================= */

.project-number {
    width:
        42px;

    height:
        42px;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        50%;

    color:
        #a5afbc;

    background:
        rgba(2, 6, 11, 0.30);

    font-size:
        0.67rem;

    font-weight:
        700;
}


/* =========================================================
   PROJECT HEADER
========================================================= */

.project-header {
    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        30px;
}


.project-header h3 {
    color:
        #ffffff;

    font-size:
        1.55rem;

    line-height:
        1.25;

    letter-spacing:
        -0.03em;
}


.project-header div span {
    display:
        block;

    margin-top:
        5px;

    color:
        #bad0e8;

    font-size:
        0.67rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


/* =========================================================
   PROJECT STATUS
========================================================= */

.project-status {
    flex-shrink:
        0;

    padding:
        6px 10px;

    border:
        1px solid
        var(--border);

    border-radius:
        999px;

    color:
        #abb6c3;

    background:
        rgba(2, 6, 11, 0.34);

    font-size:
        0.64rem;

    font-weight:
        600;

    white-space:
        nowrap;
}


/* =========================================================
   PROJECT TEXT
========================================================= */

.project-main > p {
    max-width:
        750px;

    margin-top:
        15px;

    color:
        #c6cfda;

    font-size:
        0.88rem;

    line-height:
        1.75;
}


/* =========================================================
   PROJECT ACTIONS
========================================================= */

.project-actions {
    margin-top:
        22px;

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        10px;
}


.project-action {
    min-height:
        40px;

    padding:
        0 15px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    border:
        1px solid
        var(--border-active);

    border-radius:
        999px;

    color:
        #e3eef9;

    background:
        rgba(110, 157, 207, 0.14);

    font-size:
        0.71rem;

    font-weight:
        600;

    cursor:
        pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.project-action:hover {
    transform:
        translateY(-2px);

    background:
        rgba(122, 173, 224, 0.22);

    border-color:
        rgba(205, 224, 245, 0.58);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-layout {
    display:
        grid;

    grid-template-columns:
        0.85fr
        1.15fr;

    gap:
        90px;
}


/* =========================================================
   CONTACT INTRO
========================================================= */

.contact-introduction h2 {
    max-width:
        470px;

    margin-top:
        8px;

    color:
        #ffffff;

    font-size:
        clamp(
            2.1rem,
            4vw,
            3.5rem
        );

    line-height:
        1.08;

    letter-spacing:
        -0.05em;
}


.contact-introduction > p:not(.section-label) {
    max-width:
        450px;

    margin-top:
        24px;

    color:
        #cbd4df;

    line-height:
        1.8;
}


/* =========================================================
   CONTACT INFO
========================================================= */

.contact-information {
    margin-top:
        28px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    gap:
        8px;

    color:
        #c2ccd7;

    font-size:
        0.78rem;
}


.contact-information a {
    transition:
        color 0.2s ease;
}


.contact-information a:hover {
    color:
        #ffffff;
}


/* =========================================================
   CONTACT SOCIALS
========================================================= */

.contact-socials {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        22px;

    margin-top:
        28px;
}


.contact-socials a {
    color:
        #d1dae4;

    font-size:
        0.76rem;

    font-weight:
        600;

    transition:
        color 0.2s ease;
}


.contact-socials a:hover {
    color:
        #ffffff;
}


/* =========================================================
   CONTACT FORM
========================================================= */

.contact-form {
    padding:
        30px;

    border-radius:
        17px;

    background:
        rgba(2, 7, 13, 0.36);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);
}


/* =========================================================
   FORM ROW
========================================================= */

.form-row {
    display:
        grid;

    grid-template-columns:
        1fr
        1fr;

    gap:
        15px;
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
    margin-bottom:
        18px;
}


.form-group label {
    display:
        block;

    margin-bottom:
        7px;

    color:
        #cbd4df;

    font-size:
        0.72rem;

    font-weight:
        600;
}


/* =========================================================
   INPUTS
========================================================= */

.form-group input,
.form-group textarea {
    width:
        100%;

    padding:
        13px 14px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    outline:
        none;

    color:
        #ffffff;

    background:
        rgba(255, 255, 255, 0.04);

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.form-group input:hover,
.form-group textarea:hover {
    border-color:
        rgba(255, 255, 255, 0.16);
}


.form-group input:focus,
.form-group textarea:focus {
    border-color:
        var(--accent-light);

    background:
        rgba(255, 255, 255, 0.06);

    box-shadow:
        0 0 0 3px
        rgba(159, 185, 218, 0.08);
}


.form-group textarea {
    min-height:
        150px;

    resize:
        vertical;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color:
        #8b97a5;
}


/* =========================================================
   FORM MESSAGE
========================================================= */

.form-message {
    min-height:
        22px;

    margin-top:
        15px;

    color:
        var(--accent-light);

    font-size:
        0.75rem;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    position:
        relative;

    z-index:
        20;

    border-top:
        1px solid
        var(--border);

    background:
        rgba(1, 5, 10, 0.30);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);
}


.footer-inner {
    width:
        min(
            calc(100% - 48px),
            var(--max-width)
        );

    min-height:
        125px;

    margin:
        auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        30px;
}


.footer strong {
    color:
        #ffffff;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        0.88rem;
}


.footer p {
    color:
        #99a5b3;

    font-size:
        0.68rem;
}


/* =========================================================
   FOOTER LINKS
========================================================= */

.footer-links {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        22px;
}


.footer-links a {
    color:
        #c1cbd6;

    font-size:
        0.72rem;

    transition:
        color 0.2s ease;
}


.footer-links a:hover {
    color:
        #ffffff;
}


/* =========================================================
   GAME MODAL
========================================================= */

body.game-open {
    overflow:
        hidden;
}


.game-modal {
    position:
        fixed;

    inset:
        0;

    z-index:
        5000;

    display:
        grid;

    place-items:
        center;

    padding:
        24px;

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.game-modal.open {
    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;
}


/* =========================================================
   GAME BACKDROP
========================================================= */

.game-modal-backdrop {
    position:
        absolute;

    inset:
        0;

    background:
        rgba(2, 6, 12, 0.78);

    backdrop-filter:
        blur(6px);

    -webkit-backdrop-filter:
        blur(6px);
}


/* =========================================================
   GAME DIALOG
========================================================= */

.game-dialog {
    position:
        relative;

    z-index:
        1;

    width:
        min(
            940px,
            100%
        );

    max-height:
        calc(
            100vh - 48px
        );

    overflow:
        auto;

    padding:
        22px;

    border:
        1px solid
        var(--border-active);

    border-radius:
        22px;

    background:
        #0c121b;

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, 0.50);
}


/* =========================================================
   GAME HEADER
========================================================= */

.game-dialog-header {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        18px;
}


.game-kicker {
    color:
        var(--accent);

    font-size:
        0.67rem;

    font-weight:
        700;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;
}


.game-dialog-header h2 {
    margin-top:
        3px;

    color:
        #ffffff;

    font-size:
        clamp(
            1.6rem,
            3vw,
            2.4rem
        );

    letter-spacing:
        -0.04em;
}


/* =========================================================
   GAME CLOSE
========================================================= */

.game-close {
    flex-shrink:
        0;

    width:
        44px;

    height:
        44px;

    border:
        1px solid
        var(--border);

    border-radius:
        50%;

    background:
        rgba(255, 255, 255, 0.025);

    color:
        #ffffff;

    font-size:
        1.6rem;

    cursor:
        pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.game-close:hover {
    border-color:
        var(--border-active);

    background:
        rgba(159, 185, 218, 0.10);
}


/* =========================================================
   GAME STAGE
========================================================= */

.game-stage-wrap {
    overflow:
        hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        16px;

    background:
        #03060d;
}


.game-stage-wrap canvas {
    display:
        block;

    width:
        100%;

    height:
        auto;

    aspect-ratio:
        4 / 3;

    background:
        #03060d;

    touch-action:
        none;
}


/* =========================================================
   GAME CONTROLS
========================================================= */

.game-controls {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin-top:
        16px;
}


.game-help {
    max-width:
        480px;

    color:
        var(--text-muted);

    font-size:
        0.76rem;

    line-height:
        1.55;
}


.game-mobile-controls {
    display:
        flex;

    flex-wrap:
        wrap;

    justify-content:
        flex-end;

    gap:
        8px;
}


/* =========================================================
   GAME BUTTONS
========================================================= */

.game-control-button {
    min-width:
        48px;

    min-height:
        42px;

    padding:
        0 14px;

    border:
        1px solid
        var(--border);

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.025);

    color:
        var(--text-soft);

    font-size:
        0.76rem;

    font-weight:
        700;

    cursor:
        pointer;

    touch-action:
        none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.game-control-button:hover,
.game-control-button:active {
    color:
        #ffffff;

    border-color:
        var(--border-active);

    background:
        rgba(110, 157, 207, 0.18);

    transform:
        translateY(-1px);
}


.game-fire-button {
    border-color:
        rgba(94, 199, 255, 0.42);

    color:
        #cfeeff;
}


.game-bomb-button {
    border-color:
        rgba(255, 177, 84, 0.42);

    color:
        #ffe0b5;
}


.game-sound-button {
    font-size:
        0.7rem;

    letter-spacing:
        0.04em;
}


/* =========================================================
   GAME CANVAS FIT
   Keeps the whole 4:3 stage visible without scrolling.
========================================================= */

.game-stage-wrap {
    width:
        min(
            100%,
            max(
                320px,
                calc((100vh - 270px) * 4 / 3)
            )
        );

    margin:
        0 auto;
}


.game-dialog:has(.hangman-panel) .game-stage-wrap {
    width:
        min(
            100%,
            max(
                320px,
                calc((100vh - 390px) * 4 / 3)
            )
        );
}


/* =========================================================
   3D GAME LAYERS
   WebGL scene underneath, 2D canvas on top as the HUD.
========================================================= */

.game-stage-wrap.is-3d {
    position:
        relative;
}


.game-gl-canvas {
    position:
        absolute;

    inset:
        0;

    display:
        block;

    width:
        100%;

    height:
        100%;
}


.game-stage-wrap.is-3d #game-canvas {
    position:
        relative;

    background:
        transparent;
}


/* =========================================================
   HANGMAN KEYBOARD
========================================================= */

.hangman-panel {
    margin-top:
        14px;
}


.hangman-keys {
    display:
        grid;

    grid-template-columns:
        repeat(13, 1fr);

    gap:
        6px;
}


.hangman-key {
    min-height:
        40px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    background:
        rgba(255, 255, 255, 0.04);

    color:
        #e6eef8;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        0.9rem;

    font-weight:
        800;

    cursor:
        pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}


.hangman-key:hover:not(:disabled) {
    transform:
        translateY(-2px);

    border-color:
        var(--border-active);

    background:
        rgba(110, 157, 207, 0.2);
}


.hangman-key:disabled {
    cursor:
        default;

    opacity:
        0.45;
}


.hangman-key.is-hit {
    opacity:
        1;

    border-color:
        rgba(142, 240, 168, 0.55);

    background:
        rgba(142, 240, 168, 0.18);

    color:
        #c9f7d5;
}


.hangman-key.is-miss {
    opacity:
        0.5;

    border-color:
        rgba(255, 125, 138, 0.35);

    background:
        rgba(255, 125, 138, 0.1);

    color:
        #ffb3ba;

    text-decoration:
        line-through;
}


.hangman-actions {
    margin-top:
        10px;

    display:
        flex;

    justify-content:
        center;

    gap:
        10px;
}


.hangman-action {
    min-height:
        38px;

    padding:
        0 16px;

    border:
        1px solid
        var(--border);

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.03);

    color:
        var(--text-soft);

    font-size:
        0.76rem;

    font-weight:
        700;

    cursor:
        pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.hangman-action:hover:not(:disabled) {
    color:
        #ffffff;

    border-color:
        var(--border-active);
}


.hangman-action:disabled {
    opacity:
        0.4;

    cursor:
        default;
}


.hangman-next.is-ready {
    color:
        #02050a;

    border-color:
        transparent;

    background:
        var(--accent-light);
}


@media (max-width: 620px) {

    .hangman-keys {
        grid-template-columns:
            repeat(7, 1fr);
    }


    .hangman-key {
        min-height:
            42px;
    }

}


/* =========================================================
   HERO ANIMATION
========================================================= */

.hero-wave {
    opacity:
        1;

    transform:
        none;

    filter:
        none;
}


.hero-wave.hero-visible {
    animation:
        heroWave
        0.85s
        cubic-bezier(
            0.2,
            0.75,
            0.25,
            1
        )
        var(--delay, 0s)
        both;
}


@keyframes heroWave {

    from {
        opacity:
            0;

        transform:
            translateY(26px)
            translateX(-8px);

        filter:
            blur(3px);
    }

    to {
        opacity:
            1;

        transform:
            none;

        filter:
            none;
    }

}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
    opacity:
        1;

    transform:
        none;

    filter:
        none;
}


.reveal.visible {
    animation:
        revealIn
        0.78s
        cubic-bezier(
            0.2,
            0.75,
            0.25,
            1
        )
        calc(
            var(--reveal-index, 0)
            * 0.08s
        )
        both;
}


@keyframes revealIn {

    from {
        opacity:
            0;

        transform:
            translateY(28px);

        filter:
            blur(2px);
    }

    to {
        opacity:
            1;

        transform:
            none;

        filter:
            none;
    }

}


/* =========================================================
   FOCUS
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline:
        2px solid
        #d9e8f7;

    outline-offset:
        4px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .nav-links {
        gap:
            16px;
    }


    .hero {
        gap:
            45px;
    }


    .skills-list {
        grid-template-columns:
            repeat(
                3,
                1fr
            );
    }


    .languages-grid {
        grid-template-columns:
            repeat(
                3,
                1fr
            );
    }


    .contact-layout {
        gap:
            50px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 780px) {

    .navbar {
        width:
            calc(
                100% - 32px
            );

        height:
            74px;
    }


    .menu-button {
        display:
            block;
    }


    .nav-links {
        position:
            fixed;

        top:
            76px;

        left:
            16px;

        right:
            16px;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            0;

        padding:
            10px;

        border:
            1px solid
            var(--border);

        border-radius:
            15px;

        background:
            rgba(5, 10, 17, 0.96);

        box-shadow:
            0 24px 70px
            rgba(0, 0, 0, 0.40);

        backdrop-filter:
            blur(9px);

        -webkit-backdrop-filter:
            blur(9px);

        opacity:
            0;

        visibility:
            hidden;

        transform:
            translateY(-10px);

        pointer-events:
            none;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    .nav-links.active {
        opacity:
            1;

        visibility:
            visible;

        transform:
            none;

        pointer-events:
            auto;
    }


    .nav-links a {
        display:
            block;

        padding:
            12px;
    }


    .nav-links a::after {
        display:
            none;
    }


    .hero {
        width:
            calc(
                100% - 32px
            );

        min-height:
            auto;

        padding:
            125px 0 90px;

        grid-template-columns:
            1fr;

        gap:
            55px;
    }


    .hero-title {
        font-size:
            clamp(
                3.8rem,
                18vw,
                6rem
            );
    }


    .hero-side {
        max-width:
            520px;

        margin-bottom:
            0;
    }


    .section {
        width:
            calc(
                100% - 32px
            );

        padding:
            85px 0;
    }


    .section::before {
        inset:
            14px -8px;
    }


    .profile-layout,
    .contact-layout {
        grid-template-columns:
            1fr;

        gap:
            40px;
    }


    .experience-item,
    .education-item {
        grid-template-columns:
            1fr;

        gap:
            17px;
    }


    .skills-list,
    .languages-grid {
        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }


    .footer-inner {
        width:
            calc(
                100% - 32px
            );

        padding:
            30px 0;

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .globe {
        width:
            840px;

        transform:
            translateX(17%);
    }


    .game-controls {
        flex-direction:
            column;

        align-items:
            stretch;
    }


    .game-mobile-controls {
        justify-content:
            center;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .career-badge {
        font-size:
            0.58rem;

        letter-spacing:
            0.09em;
    }


    .hero-content {
        padding:
            22px;
    }


    .hero-title {
        font-size:
            3.8rem;
    }


    .hero-buttons {
        flex-direction:
            column;
    }


    .button {
        width:
            100%;
    }


    .hero-contact {
        flex-direction:
            column;

        gap:
            4px;
    }


    .hero-contact > span:nth-of-type(1),
    .hero-contact > span:nth-of-type(2) {
        display:
            none;
    }


    .hero-fact {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            5px;
    }


    .hero-fact strong {
        max-width:
            none;

        text-align:
            left;
    }


    .section-heading {
        gap:
            15px;
    }


    .skills-list,
    .languages-grid {
        grid-template-columns:
            1fr;
    }


    .project-item {
        grid-template-columns:
            1fr;

        gap:
            18px;
    }


    .project-header {
        flex-direction:
            column;

        gap:
            13px;
    }


    .project-action {
        width:
            100%;
    }


    .form-row {
        grid-template-columns:
            1fr;

        gap:
            0;
    }


    .contact-form {
        padding:
            20px;
    }


    .game-modal {
        padding:
            10px;
    }


    .game-dialog {
        padding:
            14px;
    }


    .game-control-button {
        flex:
            1 1 30%;

        min-width:
            0;
    }


    .globe {
        width:
            680px;

        transform:
            translateX(24%);
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .hero-title {
        font-size:
            3.25rem;
    }


    .hero-content {
        padding:
            18px;
    }


    .section {
        width:
            calc(
                100% - 24px
            );
    }


    .navbar {
        width:
            calc(
                100% - 24px
            );
    }


    .language-switch {
        padding:
            0 9px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-delay:
            0ms !important;

        transition-duration:
            0.01ms !important;

        transition-delay:
            0ms !important;
    }


    .hero-wave,
    .hero-wave.hero-visible,
    .reveal,
    .reveal.visible {
        opacity:
            1 !important;

        transform:
            none !important;

        filter:
            none !important;
    }

}