*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100vh;
    background-color: #0a0a0a;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: none;
    touch-action: pan-x;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-family: Quantico, sans-serif;
    background-color: #0a0a0a;
    color: white;
}

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

.arrow {
    cursor: pointer;
    width: 120px;
    height: 30px;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Header ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 62px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 120px;
    box-sizing: border-box;
    gap: 48px;
    z-index: 100;
}

#social_links {
    display: flex;
    gap: 16px;
    align-items: center;
}

#social_links a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#social_links img {
    width: 30px;
    height: 30px;
}

#language_selector_container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#language_selector_container button {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    font-family: Quantico, sans-serif;
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

#language_selector_container button.active {
    opacity: 1;
    color: #b5e93b;
}

#language_selector_separator {
    width: 1px;
    height: 20px;
    background-color: #fff;
}

/* ── Sidebar ── */
#side_bar {
    background-color: #b5e93b;
    color: #4a4a4a;
    width: 172px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
}

#logo {
    padding-top: 32px;
    width: 130px;
}

#side_bar_buttons {
    display: flex;
    flex-direction: column;
    gap: 100px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

#side_bar_buttons a {
    writing-mode: sideways-lr;
    font-size: 30px;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #4a4a4a;
    cursor: pointer;
}

#side_bar_buttons a:hover {
    color: #ffffff;
}

/* ── Main ── */
main {
    display: flex;
    height: 100%;
    margin-left: 172px;
    background: linear-gradient(88.66deg, #000000 11.41%, #2C2B2B 22.29%, #0B0A0A 37.32%, #323232 58.54%, #0B0A0A 70.03%);
}

/* ── Shared section styles ── */
section {
    height: 100%;
    flex-shrink: 0;
    width: calc(100vw - 172px);
    display: flex;
    align-items: center;
    padding: 80px 60px 40px;
    position: relative;
    gap: 40px;
}

/* ── Decorative section title ── */
.section_title {
    font-size: 54px;
    color: transparent;
    -webkit-text-stroke: 1.5px #b5e93b;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
    line-height: 1;
    font-family: Quantico, sans-serif;
}

/* ── Navigation arrows ── */
.nav_arrow {
    position: absolute;
    color: #b5e93b;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.right_arrow {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.left_arrow {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Placeholders ── */
.placeholder {
    border: 1px dashed #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
}

/* ─────────────────────────────────────
   1. AOT Section
───────────────────────────────────── */
#aot_section {
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.portrait_ph {
    position: absolute;
    bottom: 0;
    height: 88%;
}

.portrait_ph img {
    height: 100%;
    width: auto;
    display: block;
}

#AOT_text_box {
    position: absolute;
    bottom: 160px;
    z-index: 2;
}

#AOT_text_box h1 {
    font-size: 100px;
    margin: 0;
    color: #b5e93b;
}

#AOT_text_box h2 {
    font-size: 48px;
    margin: 0;
    text-align: right;
    -webkit-text-stroke: 0.1px #b5e93b;
    color: transparent;
}

#aot_section .arrow {
    top: 35%;
}

/* ─────────────────────────────────────
   2. Why Me Section
───────────────────────────────────── */
#why_me_section {
    align-items: center;
    justify-content: center;
    gap: 32px;
}

#why_me_box {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: flex-start;
}

#why_me_section .section_title {
    align-self: flex-start;
}

#about_me {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    font-size: 16px;
    gap: 32px;
}

#about_me > p {
    margin: 0;
    font-size: 18px;
}

#i_am_container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#i_am_title {
    font-size: 48px;
    margin: 0;
    color: #b5e93b;
}

#information_boxes {
    display: flex;
    gap: 48px;
    align-items: center;
}

.info_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-align: center;
}

.info_box p {
    margin: 0;
    font-size: 18px;
}

.icon_ph {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 22px;
}

#contact_me_button {
    width: 146px;
    height: 45px;
    border-radius: 30px;
    border: none;
    background: #b5e93b;
    color: #000;
    font-size: 16px;
    font-family: Quantico, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    cursor: pointer;
    transition: background 0.3s ease;
}

#contact_me_button:hover {
    background: linear-gradient(180deg, #b5e93b 0%, #90ba2f 100%);
}

#why_me_section .arrow {
    top: 80%;
}

/* ─────────────────────────────────────
   3. Skills Section
───────────────────────────────────── */
#skills_section {
    align-items: flex-end;
    padding-bottom: 60px;
    justify-content: center;
}

#skills_box {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

#skills_section .section_title {
    align-self: flex-start;
    margin-bottom: 8px;
}

#skills_content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 80%;
    padding-bottom: 8px;
}

#skills_intro {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

#skills_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 12px;
    align-items: start;
}

.skill_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    text-align: center;
}

.skill_icon_ph {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    font-size: 32px;
    font-weight: bold;
    border: none;
    color: #b5e93b;
}

.skill_icon_ph > img {
    height: 54px;
    filter: brightness(0) saturate(100%) invert(90%) sepia(84%) saturate(577%) hue-rotate(18deg) brightness(92%) contrast(97%);
}

.skill_text {
    font-size: 18px;
}

.skill_cta {
    align-items: flex-start;
    text-align: left;
    color: #b5e93b;
    font-size: 16px;
}

.skill_cta p {
    margin: 0;
    line-height: 1.5;
}

#skills_section .arrow {
    top: 40%;
}

#mobile_lets_talk_btn {
    display: none;
}

#mobile_skill_item {
    display: none;
}

/* ─────────────────────────────────────
   4. My Work Section
───────────────────────────────────── */
#my_work_section {
    width: auto;
    align-items: center;
    padding: 80px 40px 40px;
    gap: 32px;
}

.my_work_arrow {
    top: auto;
    bottom: 40px;
    transform: none;
}

#my_work_box {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: flex-start;
    height: 560px;
}

#my_work_section .section_title {
    align-self: flex-start;
}

#projects_container {
    display: flex;
    gap: 40px;
    align-items: center;
    height: 100%;
}

.project_card {
    background: #3d4a1e;
    border-radius: 20px;
    padding: 20px 20px 20px;
    width: 920px;
    height: 560px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

.project_card_title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project_number {
    font-size: 100px;
    color: transparent;
    -webkit-text-stroke: 1px #b5e93b;
    font-family: Quantico, sans-serif;
}

.project_title {
    font-size: 54px;
    color: #b5e93b;
    margin: 0;
    font-family: Quantico, sans-serif;
}

.project_body {
    display: flex;
    gap: 32px;
    flex: 1;
    overflow: hidden;
}

.project_details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}

.project_technologies, .project_about {
    width: 50%;
}

.project_detail_item h4 {
    margin: 0 0 4px;
    font-size: 24px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.project_detail_item h4::before {
    content: '○';
    color: #b5e93b;
    flex-shrink: 0;
}

.project_detail_item p {
    margin: 0 0 0 22px;
    font-size: 18px;
    color: #ccc;
    line-height: 1.4;
}

.project_right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    right: 20px;
}

.screenshot_ph {
    max-width: 340px;
    max-height: 200px;
    border-radius: 12px;
    font-size: 15px;
}

.project_img {
    width: 340px;
    height: 200px;
    object-fit: cover;
    border-radius: 30px;
}

.project_links {
    display: flex;
    gap: 16px;
}

.btn_outline {
    padding: 10px 24px;
    border-radius: 30px;
    border: 1.5px solid #b5e93b;
    color: #b5e93b;
    font-size: 15px;
    font-family: Quantico, sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}

.btn_outline:hover {
    background: rgba(181, 233, 59, 0.12);
}

.btn_filled {
    width: 130px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    background: #b5e93b;
    color: #000;
    font-size: 15px;
    font-family: Quantico, sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    align-self: center;
}

.btn_filled:hover {
    background: #90ba2f;
}

.ongoing_card {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    position: relative;
    align-self: flex-start;
}

/* ── Project toggle button (desktop: hidden) ── */
.project_toggle {
    display: none;
}

/* ── Desktop: extra details wrapper is layout-transparent ── */
.project_details_extra {
    display: contents;
}

.ongoing_card .project_number {
    position: static;
    font-size: 48px;
}

.ongoing_card .project_title {
    margin: 0;
    font-size: 28px;
}

.ongoing_card > p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

#arrow_box{
    width: 112px;
}

#my_work_section .arrow {
    top: 80%;

}

/* ─────────────────────────────────────
   5. References Section
───────────────────────────────────── */
#references_section {
    justify-content: center;
    align-items: flex-end;
    gap: 48px;
    padding-bottom: 120px;
}

#mobile_references_title {
    display: none;
}

#references_box {
    display: flex;
    align-items: center;
}

#references_section .section_title {
    font-size: 54px;
    align-self: flex-end;
    padding-left: 20px;
}

#references_container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#reference_dots {
    display: none;
}

.reference_card {
    border: 1.5px solid #d3ed97;
    border-radius: 16px;
    display: flex;
    width: 580px;
    height: 182px;
    overflow: hidden;
}

.reference_quote {
    flex: 1;
    padding: 24px;
    margin: 0;
    font-size: 18px;
    text-align: center;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.reference_divider {
    width: 1px;
    background: #d3ed97;
    flex-shrink: 0;
    height: 80%;
    align-self: center;
}

.reference_author {
    width: 160px;
    flex-shrink: 0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.reference_name {
    color: #b5e93b;
    font-size: 24px;
    font-weight: bold;
}

.reference_project {
    color: #d3ed97;
    font-size: 16px;
}

/* ─────────────────────────────────────
   6. Contact Section
───────────────────────────────────── */
.contact_section {
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px 40px;
    gap: 48px;
    width: calc(100vw - 292px);
}

.contact_me_box {
    display: flex;
    gap: 20px;
    width: 565px;
    height: 530px;
}

.contact_section .section_title {
    font-size: 54px;
    align-self: flex-start;
}

.contact_content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    flex: 1;
}

.contact_form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 456px;
    flex-shrink: 0;
}

.contact_form input[type="text"],
.contact_form input[type="email"],
.contact_form textarea {
    background: transparent;
    border: 1.5px solid #555;
    border-radius: 30px;
    color: white;
    font-family: Quantico, sans-serif;
    font-size: 15px;
    padding: 14px 20px;
    outline: none;
    resize: none;
    width: 100%;
}

.contact_form textarea {
    border-radius: 16px;
}

.contact_form input:focus,
.contact_form textarea:focus {
    border-color: #b5e93b;
}

.contact_form input::placeholder,
.contact_form textarea::placeholder {
    color: #555;
}

.contact_form input.input-error,
.contact_form textarea.input-error {
    border-color: #e94b3b;
}

.contact_form input.input-error::placeholder,
.contact_form textarea.input-error::placeholder {
    color: #e94b3b;
}

.contact_form input:-webkit-autofill,
.contact_form textarea:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    transition: background-color 600000s ease-in-out 0s;
}

.privacy_label {
    font-size: 16px;
    color: #aaa;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
    cursor: pointer;
}

.privacy_label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 2px 0 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid #fff;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.privacy_label input[type="checkbox"]:checked {
    background: #b5e93b;
    border-color: #b5e93b;
}

.privacy_label input[type="checkbox"]:checked::after {
    content: '✔';
    display: block;
    color: #000;
    font-size: 11px;
    line-height: 13px;
    text-align: center;
}

.privacy_label p {
    margin-block-start: 0;
    margin-block-end: 0;
}

.privacy_label.input-error,
.privacy_label.input-error p {
    color: #e94b3b;
}

.privacy_label.input-error input[type="checkbox"] {
    border-color: #e94b3b;
}

.privacy_link {
    color: #b5e93b;
    text-decoration: underline;
}

.contact_form .send_button {
    width: 120px;
    height: 44px;
    border-radius: 30px;
    border: 1.5px solid #888;
    background: #555;
    color: white;
    font-family: Quantico, sans-serif;
    font-size: 15px;
    cursor: pointer;
    align-self: center;
    transition: background 0.2s, border-color 0.2s;
    align-self: end;
}

.send_button:hover:not(:disabled) {
    background: #b5e93b;
    border-color: #b5e93b;
    color: #000;
}

.send_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contact_info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    max-width: 420px;
    padding-top: 16px;
}

.contact_tagline {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    color: #d3ed97;
}

.contact_description {
    margin: 0;
    font-size: 18px;
    text-align: right;
    line-height: 1.6;
    color: #ccc;
}

.contact_detail {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.contact_back_arrow {
    position: static;
    transform: none;
    align-self: flex-end;
    margin-top: 8px;
    transform: rotate(180deg);
}

footer {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 16px;
    color: #ffffff;
}

footer a {
    color: #ffffff;
}

footer a:hover {
    color: #b5e93b;
}

footer p {
    margin: 0;
}

#work_together_section {
    justify-content: flex-end;
    text-align: right;
    width: calc(50vw - 100px);
}

.contact_info_box{
    text-align: right;
}

.mobile_social_links {
    display: none;
}

#ending_line {
    width: 100px;
    height: 100vh;
    background: linear-gradient(160.33deg, #B5E93B 50.78%, #547800 133.54%);
}

#mobile_footer {
    display: none;
}

/* ── Desktop: hide mobile-only elements ── */
#header_logo {
    display: none;
}

#hamburger_btn {
    display: none;
}

#mobile_nav {
    display: none;
}

#mobile_contact_section {
    display: none;
}

/* ═══════════════════════════════════════════
   Breakpoint — max-width: 1240px
═══════════════════════════════════════════ */

@media (max-width:1240px) {
    #contact_me_box {
        width: 430px;
    }

    .contact_form {
        width: 350px;
    }
}

/* ═══════════════════════════════════════════
   MOBILE — max-width: 1080px
═══════════════════════════════════════════ */
@media (max-width: 1080px) {

    /* ── Base ── */
    html {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100%;
    }

    body {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: visible;
        touch-action: pan-y;
        overscroll-behavior: auto;
    }

    /* ── Header ── */
    header {
        padding: 0 20px;
        justify-content: space-between;
        background: linear-gradient(160.33deg, #B5E93B 50.78%, #547800 133.54%);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 300;
    }

    header.nav-open {
        background: linear-gradient(90deg, #b5e93b 50%, #addf36 150%);
        border-bottom: 1px solid #b5e93b;
    }

    #header_logo {
        display: flex;
        align-items: center;
    }

    #header_logo img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }

    #social_links,
    #language_selector_container {
        display: none;
    }

    #mobile_language_selector_container {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #mobile_language_selector_container button {
        background-color: transparent;
        border: none;
        color: #000000;
        font-size: 18px;
        cursor: pointer;
        font-family: Quantico, sans-serif;
        opacity: 1;
        transition: opacity 0.2s ease, color 0.2s ease;
    }

    #mobile_language_selector_container button.active {
        opacity: 1;
        color: #ffffff;
        font-weight: bold;
    }

    #mobile_language_selector_separator {
        width: 1px;
        height: 20px;
        background-color: #000000;
    }

    #hamburger_btn {
        position: absolute;
        right: 20px;
        z-index: 300;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    #hamburger_btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: #000000;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    #hamburger_btn.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #hamburger_btn.open span:nth-child(2) {
        opacity: 0;
    }

    #hamburger_btn.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* ── Mobile Nav ── */
    #mobile_nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(160.33deg, rgba(181, 233, 59, 1) 49.55%, rgba(84, 120, 0, 1) 119.53%);
        padding: 28px 24px;
        gap: 28px;
        z-index: 200;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        border-radius: 0 0 30px 30px;
    }

    #mobile_nav.open {
        transform: translateX(0);
    }

    #mobile_nav a {
        color: #000000;
        font-size: 22px;
        font-family: Quantico, sans-serif;
    }

    #mobile_nav a:hover {
        color: #ffffff;
    }

    /* ── Sidebar ── */
    #side_bar {
        display: none;
    }

    /* ── Main ── */
    main {
        flex-direction: column;
        height: auto;
        margin-left: 0;
        background: #0a0a0a;
    }

    /* ── All Sections ── */
    section {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 48px;
        gap: 24px;
        box-sizing: border-box;
        flex-shrink: unset;
    }

    .section_title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 32px;
        align-self: auto;
    }

    .arrow {
        display: none;
    }

    /* ── 1. AOT Section ── */
    #aot_section {
        max-height: 100vh;
        width: 100vw;
        align-items: center;
        justify-content: center;
        padding: 0;
        padding-top: 80px;
        overflow: visible;
        position: relative;
    }

    .portrait_ph {
        position: unset;
        width: min(90vw, 420px);
        height: auto;
        max-height: calc(100vh - 180px);
        overflow: hidden;
    }

    .portrait_ph img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
    }

    #AOT_text_box {
        position: unset;
        bottom: unset;
        z-index: 2;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column-reverse;
    }

    #AOT_text_box h1 {
        font-size: 40px;
        text-align: center;
    }

    #AOT_text_box h2 {
        font-size: 24px;
        color: #b5e93b;
        text-align: center;
    }

    /* ── 2. Why Me Section ── */
    #why_me_section {
        gap: 24px;
    }

    #why_me_section .section_title {
        align-self: flex-start;
        -webkit-text-stroke: 1px #b5e93b;
    }

    #why_me_box {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    #about_me {
        max-width: 100%;
    }

    #about_me > p {
        font-size: 16px;
    }

    #i_am_title {
        font-size: 32px;
        align-self: center;
    }

    #information_boxes {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 16px;
    }

    .info_box > p {
        font-size: 16px;
    }

    #contact_me_button {
        display: flex;
        margin: 0 auto;
    }

    /* ── 3. Skills Section ── */
    #skills_section {
        align-items: flex-start;
        padding-bottom: 48px;
    }

    #skills_section .section_title {
        align-self: flex-start;
        margin-bottom: 0;
    }

    #skills_intro {
        font-size: 16px;
    }

    #skills_box {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        align-items: center;
    }

    .skill_text {
        display: none;
    }

    #skills_content {
        width: 100%;
    }

    #skills_grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skill_cta > p {
        display: none;
    }

    #mobile_lets_talk_btn {
        display: flex;
        margin: 0 auto;
        width: 130px;
        height: 45px;
        text-align: center;
    }

    #mobile_skill_item {
        display: block;
    }

    /* ── 4. My Work Section ── */
    #my_work_section {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 80px 24px 48px;
        gap: 24px;
    }

    #my_work_section .section_title {
        align-self: auto;
    }

    #my_work_box {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        height: auto;
    }

    #projects_container {
        flex-direction: column;
        height: auto;
        gap: 24px;
        width: 100%;
    }

    .project_card {
        width: 100%;
        height: auto;
    }

    .project_body {
        flex-direction: column;
    }

    .project_detail_item h4 {
        font-size: 22px;
    }

    .screenshot_ph {
        width: 100%;
        height: 180px;
        max-width: 100%;
        overflow: hidden;
    }

    .project_img {
        width: 100%;
        height: 100%;
    }

    .project_technologies, .project_about {
        width: 100%;
    }

    .project_right {
        position: static;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 16px;
        width: 100%;
    }

    .project_number {
        font-size: 40px;
    }

    .project_title {
        font-size: 24px;
    }

    .project_Detail_item h4 {
        font-size: 22px;
    }

    .project_detail_item p {
        font-size: 16px;
    }

    .ongoing_card {
        width: 100%;
    }

    #arrow_box {
        display: none;
    }

    #desktop_lets_talk_btn {
        display: none;
    }

    /* ── Project card accordion ── */
    .project_details_extra {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .project_card.expanded .project_details_extra {
        max-height: 600px;
    }

    .project_right {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    .project_card.expanded .project_right {
        max-height: 400px;
        opacity: 1;
    }

    .project_card:not(.expanded) .project_detail_item:first-child p {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        line-clamp: 4;
        overflow: hidden;
    }

    .project_toggle {
        display: block;
        background: none;
        border: none;
        color: #b5e93b;
        font-family: Quantico, sans-serif;
        font-size: 16px;
        cursor: pointer;
        padding: 12px 0 0;
        text-align: center;
        width: 100%;
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: color 0.2s ease;
    }

    .project_toggle:hover {
        color: #fff;
    }

    .project_right{
        justify-content: center;
        align-items: center;
    }

    .ongoing_card .project_number {
        font-size: 40px;
    }

    .ongoing_card .project_title {
        font-size: 24px;
    }

    .ongoing_card > p {
        font-size: 16px;
    }

    /* ── 5. References Section ── */
    #references_section {
        padding-bottom: 48px;
        gap: 24px;
        align-items: flex-start;
    }

    #references_section .section_title {
        display: none;
    }

    #mobile_references_title {
        display: block;
    }

    #mobile_references_title > h2 {
        color: #b5e93b;
        font-size: 22px;
    }

    #mobile_references_title > span {
        color: #fff;
        font-size: 16px;
        padding-bottom: 20px;
    }

    #references_box {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        align-items: flex-start;
    }

    #references_container {
        display: flex;
        flex-direction: row;
        gap: 16px;
        width: 100%;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    #references_container::-webkit-scrollbar {
        display: none;
    }

    .reference_card {
        flex-shrink: 0;
        width: 88%;
        scroll-snap-align: center;
    }

    .reference_quote {
        font-size: 16px;
    }

    .reference_name {
        font-size: 22px;
    }

    #reference_dots {
        display: flex;
        gap: 8px;
        justify-content: center;
        width: 100%;
        padding: 4px 0;
    }

    .ref_dot {
        width: 9px;
        height: 6px;
        border-radius: 6px;
        border: 1px solid #b5e93b;
        background: transparent;
        transition: background 0.3s ease, width 0.3s ease;
    }

    .ref_dot.active {
        background: linear-gradient(160.33deg, #B5E93B 50.78%, #547800 133.54%);
        width: 18px;
        height: 6px;
        border-radius: 6px;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    /* ── 6. Contact Section ── */

    #desktop_contact_section {
        display: none;
    }

    #mobile_contact_section {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .contact_section {
        width: 100%;
        gap: 24px;
        padding: 80px 24px 48px;
        min-height: auto;
    }

    .contact_section .section_title {
        align-self: auto;
        font-size: 32px;
    }

    .contact_me_box {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        height: auto;
    }

    .contact_content {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .contact_form {
        width: 100%;
    }

    .contact_info {
        max-width: 100%;
        align-items: flex-start;
    }

    .contact_tagline {
        font-size: 16px;
    }

    .contact_description {
        font-size: 16px;
    }

    .contact_detail {
        font-size: 16px;
    }

    .contact_tagline,
    .contact_description {
        text-align: left;
    }

    .contact_detail {
        justify-content: flex-start;
    }

    /* ── 7. Work Together Section ── */
    .work_together_section {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        padding: 80px 24px 48px;
        min-height: auto;
    }

    .contact_info_box {
        text-align: left;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .contact_back_arrow {
        padding: 40px;
        align-self: center;
        transform: rotate(270deg);
    }

    .contact_back_arrow > img{
        width: 45px;
    }


    .mobile_social_links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        padding-top: 32px;
    }

    footer {
        position: static;
        text-align: center;
        font-size: 16px;
        color: #ffffff;
    }

    .desktop_footer {
        display: none;
    }

    #mobile_footer {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 16px;
        color: #4b4b4b;
    }

    #mobile_footer > img {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }

    #footer_links {
        display: flex;
        gap: 16px;
        justify-content: center;
        color: #4b4b4b;
    }

    #footer_links a {
        color: #4b4b4b;
        text-decoration: none;
    }

    #footer_links a:hover {
        color: #ffffff;
    }

    #ending_line {
        width: 100vw;
        height: 153px;
    }
}

@media (max-width:460px) { 

    .test_button {
        width: 100px !important;
    }
    
    .reference_card {
        height: 320px;
        width: 100%;
    }
    
    .reference_quote {
        padding: 12px;
    }

    .reference_author {
        padding: 12px 8px;
        flex: 0;
    }
}

/* ── Legal Notice Page ── */

#legal_main {
    margin-left: 172px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #000000;
}

#legal_content_box .section_title {
    align-self: flex-start;
    flex-shrink: 0;
}

.legal_notice_title{
    align-self: flex-start;
}

.legal_content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 680px;
}

#legal_section_left, #legal_section_right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    height: 80%;
}
#legal_section_right {
    width: calc(100vw - 596px);
}

.legal_block h2 {
    font-size: 18px;
    color: #b5e93b;
    margin: 0 0 10px 0;
    font-family: Quantico, sans-serif;
}

.legal_block h3 {
    font-size: 18px;
    color: #b5e93b;
    margin: 0 0 6px 0;
    font-family: Quantico, sans-serif;
}

.legal_block p {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.7;
}

.legal_block p:last-child { margin-bottom: 0; }

.legal_block ul {
    margin: 0 0 8px 0;
    padding-left: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.legal_block a {
    color: #b5e93b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#legal_info_box {
    width: 284px;
    margin-right: 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    box-sizing: border-box;
    height: 100%;
    flex-shrink: 0;
}

#legal_info {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
}

#legal_info .contact_detail {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
}

#legal_back_arrow {
    display: block;
    width: 80px;
    margin: 0 auto 24px;
    transform: rotate(180deg);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#legal_back_arrow:hover {
    opacity: 1;
}

#legal_back_arrow img {
    width: 100%;
}

#legal_footer {
    position: unset;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
    color: #ffffff;
    padding-bottom: 40px;
}

#legal_footer a {
    color: #ffffff;
}

#legal_footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1080px) {
    .legal-page {
        flex-direction: column;
    }

    #legal_main {
        margin: 0;
    }

    #legal_section {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
    }

    #legal_section_left, #legal_section_right {
        width: 100%;
        height: auto;
        justify-content: center;
    }

    #back_button_legal:hover{
        background: rgb(78, 78, 78);
        cursor: pointer;
        border-radius: 50%;
    }

    .legal_content {
        width: 100%;
        max-width: 100%;
    }

    #legal_content_box {
        flex-direction: column;
        padding: 90px 24px 48px;
        overflow-y: visible;
        height: auto;
    }

    #legal_info_box {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   WIDESCREEN — min-width: 2400px
   Hero und "Why me" werden ohne horizontales
   Scrollen gemeinsam auf einem Screen gezeigt.
═══════════════════════════════════════════ */
@media (min-width: 2400px) {

    /* Menühöhe proportional zur Bildschirmhöhe */
    #side_bar_buttons {
        gap: 12vh;
    }

    /* Links/Sprachauswahl in die äußerste rechte Ecke */
    header {
        padding-right: 120px;
    }

    /* Hero + Why-me teilen sich die Restbreite und sind
       dadurch gleichzeitig sichtbar, ohne zu scrollen */
    #aot_section,
    #why_me_section {
        width: calc((100vw - 172px) / 2);
    }

    /* Bild proportional zur Bildschirmgröße, 400px links / 100px oben */
    #aot_section {
        justify-content: end;
    }

    .portrait_ph {
        position: absolute;
        top: 100px;
        bottom: auto;
        height: calc(100% - 100px);
    }

    #aot_arrow {
        display: none;
    }
}