/* Basic Reset */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*color: #0a899c;*/
    /*color: #023b42;   #012327*/
    color: #FFF5D9;

}

html {
    scroll-behavior: smooth;
    font-family: "Spectral", sans-serif;
    background-color: #091111;
    overflow-x: hidden;
}

body{
    padding-top: 50px;
}

h2 {
    color: #ffd0a8;
    padding: 1rem;
    border-bottom:  1px solid #ffd0a8;

    margin-bottom: 1rem;
}

[data-translate] {
    white-space: pre-line;
}

img {
    max-width: 100%;
    height: auto;
}


.traits {
    gap: 6rem;
    max-width: 400px;
    margin: 20px;
}

.trait {
    --left-weight: 600;
    --right-weight: 600;
    --left-size: 0.85rem;
    --right-size: 0.85rem;

    /*transform: translate(-50%, -50%);*/
    /*will-change: transform;*/
    /*transition: transform 0.1s linear;*/
}

.trait-labels span:first-child {
    font-weight: var(--left-weight);
    font-size: var(--left-size);
}

.trait-labels span:last-child {
    font-weight: var(--right-weight);
    font-size: var(--right-size);
}

.trait-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #FFF5D9;
    letter-spacing: 0.02em;
    margin-bottom: 5px;
}

/* Base line */
.slider {
    position: relative;
    height: 4px;
    background: #ffd0a8;
    border-radius: 999px;
}

/* Position marker */
.fill {
    position: absolute;
    left: var(--value);
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #FFF5D9;
    border-radius: 50%;
    box-shadow:
            0 0 0 4px #023b42;
}




@media (min-width: 768px) {
    body{
        padding-top: 100px;
    }
    /* Header / Navigation */
    .header {
        position: fixed;
        width: 100%;
        padding: 1rem 1.5rem;
        background: #091111;
        color: #ffd0a8;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 999;
        top:0;
    }
    .hamburger {
        display: none;
    }

    .monogram {
        width: 48px;
        height: auto;
        display: block;
    }
    /* Desktop Menu */
    .nav {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr; /* KAŽDÁ POLOŽKA STEJNĚ ŠIROKÁ */
        gap: 1rem;
        font-size: 1.3rem;
    }

    .nav a {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 1.5rem;
        border-radius: 10px;
        text-decoration: none;
        color: #FFF5D9;
        transition: background-color 0.25s ease, color 0.25s ease;
    }

    .nav a:hover {
        background-color: #023b42;
    }

    .nav a.active {
        background-color: #023b42;
        color: #FFF5D9;
    }

    .scroll {
        padding: 20px;
        border-radius: 10px;
        display: inline-block;
        text-decoration: none;
        color: #FFF5D9;
    }

    .scroll:hover {
        background-color: #023b42;
        text-decoration: none;
    }


    /* Sections */
    .section {
        padding: 2rem 1.5rem 1.5rem; /* extra top padding to compensate for fixed menu */
        margin: 3rem 13rem 1rem;
        border-width: 20px;
        min-height: 30vh;
        display: block;
        border-radius: 30px;
        text-align: center;
        position: relative;
        scroll-margin-top: 130px;

        z-index: 0;
        /*box-shadow:*/
        /*        0 1px 2px #023b42,*/
        /*        0 2px 20px #023b42;*/
        background: radial-gradient(
                circle at top left,
                #023b42,
                transparent 120%
        );



    }

    .canv_section {
        padding: 6rem 1.5rem 1.5rem; /* extra top padding to compensate for fixed menu */
        margin: 3rem 13rem 1rem;
        position: relative;
        /*background-color: #023b42;*/
        border-radius: 30px;
        min-height: 30rem;
        display: block;
        text-align: center;
        z-index: 0;
        scroll-margin-top: 130px;
        box-shadow:
                0 1px 2px rgba(0,0,0,0.04),
                0 8px 24px rgba(0,0,0,0.06);
        /*background: linear-gradient(*/
        /*        45deg,*/
        /*        #02272c 0%,*/
        /*        #023b42 100%);*/

        background: radial-gradient(
                circle at top left,
                #023b42,
                transparent 120%
        );
    }



    .section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        position: relative;

    }

    .canv_section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        position: relative;

    }

    .section h3 {
        font-size: 2rem;
        margin: .7rem;
        position: relative;
    }


    /* Dropdown wrapper */
    .lang-dropdown {
        top:100%;
        display: block;
        align-items: center;
        gap: 2rem;
    }

    /* Selected flag */
    .selected-lang .flag {
        width: 40px;
        height: 40px;
        margin: 15px;
        border-radius: 50%;
        border: 2px solid #FFF5D9;
        /*object-fit: cover;*/
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .selected-lang .flag:hover {
        transform: scale(1.5);
    }

    /* Dropdown options */
    .lang-options {
        position: absolute;
        top: 100%;
        right: 7rem;
        background: #111;
        padding: 0.5rem;
        border-radius: 8px;
        display: none;
        flex-direction: column;
        gap: 0.4rem;

    }

    /* Show dropdown when parent is active */
    .lang-dropdown.open .lang-options {
        display: flex;
    }

    .lang-options .flag {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #FFF5D9;
        cursor: pointer;
        object-fit: cover;
        transition: transform 0.2s ease;
    }

    .lang-options .flag:hover {
        transform: scale(1.5);
    }

    /* =========================
   PROFILE – DESKTOP (SYNCED WITH MOBILE)
   ========================= */

    /* Card pack layout */
    .card-pack {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 4rem;
        width: 100%;
        max-width: 1200px;
        margin: auto;
        align-items: start;
        padding: 10%;
    }

    .card-pack > h3 {
        grid-column: 1 / -1;
        text-align: center; /* nebo left, podle stylu */
    }


    /* Profile photo card */
    #profile_photo_card {
        position: relative;
        width: 100%;
        max-width: 320px;
        margin: 0;
        bottom: 20%;
    }

    /* Profile image */
    .profile_photo {
        width: 100%;
        height: auto;
        max-width: 320px;
        aspect-ratio: 6 / 9;
        display: block;
        transition: filter 0.3s ease;

    }


    .profile_photo:hover {
        filter: drop-shadow(0 0 6px rgba(255, 208, 168, 0.6))
        drop-shadow(0 0 16px rgba(255, 208, 168, 0.4));
    }

    /* Text cards */
    .card {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;

    }

    .card-pack > .card:has(.circle-scene) {
        grid-column: 1 / -1;
    }



    .circle-scene {
        width: 400px;
        height: 400px;
        position: relative;
        border-radius: 50%;
        margin: 50px auto;
        display: block;
    }


    .circle-item {
        position: absolute;
        transform: translate(-50%, -50%);
        transition: transform 0.25s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
        width: auto;
        min-width: 80px;
    }

    .circle-item:hover {
        transform: translate(-50%, -50%) scale(1.2);
    }

    .circle-item img {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }

    .circle-item p {
        margin: 0;
        font-size: 0.9rem;
        max-width: 140px;
        word-wrap: break-word;
        line-height: 1.2;
    }




    /* Traits block */
    #traits {
        display: grid;
        gap: 2rem;
        max-width: 420px;
    }



    /* Labels (shared behavior with mobile) */
    .label {
        position: absolute;
        pointer-events: none;
        font-size: 14px;
        font-weight: 500;
        padding: 10px 16px;
        background-color: #ffd0a8;
    }

    .jet {
        top: 0%;
        left: 0%;
        width: 100%;
        aspect-ratio: 1/1;
        background: transparent;
    }

    /* Rectangle label */
    .label-rect {
        top: 95%;
        left: 0;
        width: 110%;
        height: auto;
        border-radius: 12px;
        z-index: 2;
        color: #023b42;
        font-size: 170%;
        font-weight: bold;
    }

    /* Background rectangle */
    .label-rect2 {
        top: 25%;
        left: 10%;
        width: 90%;
        height: 40%;
        border-radius: 22px;
        opacity: 0.5;
        z-index: -1;
        background-color: #ffd0a8;
    }

    /* Pentagon (circle) */
    .label-pentagon {
        left: 80%;
        top: 75%;
        width: 40%;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        z-index: 3;
        box-shadow: 0 6px 20px rgba(0,0,0,0.42);
        border: 2px solid #023b42;
        background: #ffd0a8;
    }

    /* Small accent circle */
    .label-pentagon2 {
        left: 110%;
        top: 60%;
        width: 10%;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        opacity: 0.7;
    }


    /* Timeline */
    /* =========================
   TIMELINE – DESKTOP (SYNCED WITH MOBILE)
   ========================= */

    .timeline {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }

    .timeline-axis {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 3px;
        background: #ffd0a8;
        transform: translateX(-50%);
    }



    /* Timeline item */
    .timeline-item {
        display: grid;
        grid-template-columns: 1fr 40px 1fr;
        align-items: start;
        position: relative;
        /*align-items: center;*/
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 1s ease, transform 1s ease;
    }

    .timeline-item.left .timeline-text {
        grid-column: 1;
        text-align: right;
    }

    .timeline-item.left .timeline-image {
        grid-column: 3;
        margin-top: 6rem;
    }

    .timeline-item.right .timeline-text {
        grid-column: 3;
        text-align: left;
    }

    .timeline-item.right .timeline-image {
        grid-column: 1;
    }

    .timeline-content {
        max-width: 45%;
        display: flex;
        flex-direction: column;
        /*gap: 1rem;*/
    }


    .timeline-item.visible {
        opacity: 1;
        transform: translateY(0);
    }



    /* Dot */
    .timeline-item::after {
        content: '';
        position: absolute;
        top: 26px;
        left: 50%;
        transform: translateX(-50%);
        width: 14px;
        height: 14px;
        background: #FFF5D9;
        border-radius: 50%;
        box-shadow: 0 0 0 4px #023b42;
    }




    /* Date */
    .timeline-date {
        font-weight: bold;
        color: #ffd0a8;
        font-size: 1.6rem;
    }

    /* Text */
    .timeline-item p {
        max-width: 700px;
        line-height: 1.6;
    }

    /* Image */
    .timeline_photo {
        position: relative;
        width: 90%;
        max-width: 520px;
        height: auto;
        border-radius: 16px;
        object-fit: cover;
    }


    .canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        border-radius: 30px;
    }

    .behind_canvas {
        position: relative;
        z-index: 1;
    }


    /* contacts */
    .contact-options {
        margin: auto;
        position: relative;
    }

    .network {
        padding: 20px;
    }
    .jump {
        display: inline-block;
    }

    .jump.animate {
        animation: jump 0.4s ease;
    }

    @keyframes jump {
        0%   { transform: translateY(0); }
        30%  { transform: translateY(-8px); }
        60%  { transform: translateY(0); }
        100% { transform: translateY(-4px); }
    }
    /* Footer */
    .footer {
        padding: 1rem;
        border-top: black;
        border-width: 5px;
        position: relative;
        text-align: center;
    }
}
/* ----- --------------------------------------------- ----- */

/* ----- MOBILE STYLES ----- */

/* ----- --------------------------------------------- ----- */
@media (max-width: 768px) {

    .header {
        position: fixed;
        width: 100%;
        padding: .7rem 1.5rem;
        background: #091111;
        color: #ffd0a8;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 999;
        top:0;
    }
    /* Hide desktop menu */
    .nav {
        position: fixed;
        top: 50px;
        right: 0;
        background: #111;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        padding: 3rem;
        /* hidden until opened */
        transform: translateX(100%);
        transition: transform 0.3s ease;
        font-size: 20px;
        gap: 1rem;
    }

    /* when we add .show it slides in */
    .nav.show {
        right: 0;
        display: flex;
        width: 100vw;
        height: 100vh;
        transform: translateX(0);
    }

    .monogram {
        width: 35px;
        height: 30px;
        margin: 0px;
    }

    /* Mobile Hamburger */
    .hamburger {
        font-size: 1.5rem;
        cursor: pointer;
        color: #FFF5D9;
    }

    .scroll {
        padding: 20px;
        border-radius: 10px;
        display: inline-block;
        text-decoration: none;
        color: #FFF5D9;
    }

    .scroll:hover {
        background-color: #023b42;
        text-decoration: none;
    }

    /* Section */
    .section {

        padding: 1rem;
        margin: 25px;
        position: relative;

        border-radius: 30px;
        min-height: 10rem;
        display: block;
        text-align: center;
        z-index: 0;
        scroll-margin-top: 70px;

        /*box-shadow:*/
        /*        0 1px 2px #023b42,*/
        /*        0 2px 20px #023b42;*/
        background: radial-gradient(
                circle at top left,
                #023b42,
                transparent 120%
        );

        /*background-image: radial-gradient(circle at center, lightblue, navy);*/

    }

    .p {
        white-space: initial;
    }

    .canv_section {

        padding: 1rem;
        margin: 25px;
        position: relative;
        /*background-color: #023b42;*/
        border-radius: 30px;
        min-height: 30rem;
        display: block;
        text-align: center;
        z-index: 0;
        box-shadow:
                0 1px 2px rgba(0,0,0,0.04),
                0 8px 24px rgba(0,0,0,0.06);
        /*background: linear-gradient(*/
        /*        45deg,*/
        /*        #02272c 0%,*/
        /*        #023b42 100%);*/

        background: radial-gradient(
                circle at top left,
                #023b42,
                transparent 120%
        );
        scroll-margin-top: 70px;
    }

    .section h2 {
        color: #ffd0a8;
        padding: 1rem;
        border-bottom:  1px solid #ffd0a8;

        margin-bottom: 1rem;

    }

    .section h3 {
        font-size: 1.5rem;
        /*margin: 1rem;*/
        position: relative;
    }

    /* Dropdown wrapper */
    .lang-dropdown {

        display: block;
        align-items: center;
        gap: 1rem;
        margin-left: 20px;
    }

    /* Selected flag */
    .selected-lang .flag {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #FFF5D9;
        object-fit: cover;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .selected-lang .flag:hover {
        transform: scale(1.5);
    }

    /* Dropdown options */
    .lang-options {
        position: relative;
        top: 20px;
        right: 0;
        background: #111;
        padding: 0.5rem;
        border-radius: 8px;
        display: none;
        flex-direction: row;
        gap: 0.8rem;

    }

    /* Show dropdown when parent is active */
    .lang-dropdown.open .lang-options {
        display: flex;
    }

    .lang-options .flag {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #FFF5D9;
        cursor: pointer;
        object-fit: cover;
        transition: transform 0.2s ease;
    }

    .lang-options .flag:hover {
        transform: scale(1.5);
    }



    /* Full-width containers */
    .container {
        width: 100%;
        padding-bottom: 25px;

    }



    /* Make sure all circles are at the same spot */
    .left::after, .right::after {
        left: 15px;
    }

    /* Make all right containers behave like the left ones */
    .right {
        left: 0;
    }
    /* Profile */
    /*#profile {*/
    /*    display: grid;*/
    /*    margin: auto;*/
    /*    gap: 2rem;*/
    /*}*/

    #traits {
        display: grid;
        gap: 2rem;
    }

    .profile_photo {
        width: 70%;
        height: auto;
        max-width: 300px;   /* optional cap */
        aspect-ratio: 6 / 9;
        display: block;

    }

    .card-pack {
        display: grid;
        /*grid-template-columns: 20% 80%;*/
        gap: 4rem;
        width: 90%;
        align-items: stretch;
        margin: auto;
    }

    /* Container */
    #profile_photo_card {
        display: block;
        position: relative;
        width: 100%;
        max-width: 320px; /* optional */
        margin: auto;
    }

    /* Image */
    .photo-card img {
        display: block;
        width: 100%;
        height: auto;
        z-index: 1;
    }

    /* Shared label styles */
    .label {
        position: absolute;
        pointer-events: none;
        font-size: 14px;
        font-weight: 500;
        padding: 10px 16px;
        white-space: wrap;
        background-color: #ffd0a8;
        /*transform: translate(-50%, -50%);*/
        /*will-change: transform;*/
        /*transition: transform 0.1s linear;*/

    }

    .jet {
        top: 0%;
        left: 0%;
        width: 100%;
        aspect-ratio: 1/1;
        background: transparent;
    }

    /* Rounded rectangle label */
    .label-rect {
        top: 95%;
        left: 0%;
        border-radius: 12px;
        width: 90%;
        height: auto;
        z-index:2;
        max-width: 420px;
        color: #023b42;
        font-size: 130%;
        font-weight: bold;
        overflow: visible;
        ;
    }

    .label-rect2 {
        top: 25%;
        left: 10%;
        border-radius: 22px;
        opacity: 50%;
        width: 60%;
        height: 40%;
        z-index: -1;
        max-width: 420px;
        background-color: #ffd0a8;
    }

    /* Pentagon label */
    .label-pentagon {
        left:60%;
        top: 70%;
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
        object-fit: cover;
        z-index: 3;
        width: 30%;
        aspect-ratio: 1/1;
        max-height: 200px;
        max-width: 420px;



        border-width: 2px;
        border-color: #023b42;
        border-style: solid;



    }

    .label-pentagon2 {
        left:80%;
        top: 60%;
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
        /*object-fit: cover;*/
        z-index: 3;
        width: 12%;
        aspect-ratio: 1/1;
        max-height: 200px;
        max-width: 420px;
        /*background-color: transparent;*/
        padding: 0;

        border-width: 8px;
        border-color: #ffd0a8;
        border-style: solid;

        opacity: 70%;

    }





    .traits {
        gap: 6rem;
        max-width: 400px;
        margin: 20px;
    }

    .trait {
        --left-weight: 600;
        --right-weight: 600;
        --left-size: 0.85rem;
        --right-size: 0.85rem;
    }

    .trait-labels span:first-child {
        font-weight: var(--left-weight);
        font-size: var(--left-size);
    }

    .trait-labels span:last-child {
        font-weight: var(--right-weight);
        font-size: var(--right-size);
    }

    .trait-labels {
        display: flex;
        justify-content: space-between;
        font-size: 0.85rem;
        color: #FFF5D9;
        letter-spacing: 0.02em;
        margin-bottom: 5px;
    }

    /* Base line */
    .slider {
        position: relative;
        height: 4px;
        background: #ffd0a8;
        border-radius: 999px;
    }

    /* Position marker */
    .fill {
        position: absolute;
        left: var(--value);
        top: 50%;
        transform: translate(-50%, -50%);
        width: 14px;
        height: 14px;
        background: #FFF5D9;
        border-radius: 50%;
        box-shadow:
                0 0 0 4px #023b42;
    }

    /* Optional subtle motion */
    .fill {
        transition: left 0.8s ease-out;
    }



    /* Timeline */
    .timeline {

        gap: .5rem;
        width: 100%;
        position: relative;
        right:0;
    }

    .timeline::after {
        content: '';
        position: absolute;
        width: 3px;
        background-color: #ffd0a8;
        top: 0;
        bottom: 0;
        left: 20px;
    }

    .timeline-item {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: left;
        position: relative;
        width: 80%;
        padding-left: 20%;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 14px;
        background: #FFF5D9;
        /*border: 5px solid #ffd0a8;*/
        top: 25px;
        border-radius: 50%;
        z-index: 1;
        left:21px;
        margin-top:.5rem;
        transform: translate(-50%, -50%);
        box-shadow:
                0 0 0 4px #023b42;
    }


    .timeline-date {
        font-weight: bold;
        text-align: left;
        padding: 0;
        color: #ffd0a8;
        margin-top: 1rem;
    }

    .timeline_photo {

        /*width: 300px;*/
        /*height: 200px;*/
        /*position: relative;*/
        position: relative;
        inset: 0;                 /* top/right/bottom/left: 0 */
        width: 90%;
        height: auto;
        object-fit: cover;
        z-index: 0;

        max-width: 420px;
        border-radius: 12px;

    }

    .canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        border-radius: 30px;
    }

    .behind_canvas {
        position: relative;
        z-index: 1;
    }


    /* contacts */
    .contact-options {
        margin: auto;
        position: relative;
    }

    .network {
        padding: 20px;
    }
    .jump {
        display: inline-block;
    }

    .jump.animate {
        animation: jump 0.4s ease;
    }

    @keyframes jump {
        0%   { transform: translateY(0); }
        30%  { transform: translateY(-8px); }
        60%  { transform: translateY(0); }
        100% { transform: translateY(-4px); }
    }


    /* Footer */
    .footer {
        padding: 1rem;
        border-top: black;
        border-width: 5px;
        position: relative;
        text-align: center;
    }


}
