/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;
    background: #f1f1ef;
    color: #111;

    min-height: 100vh;

    overflow-x: hidden;
}


/* ========================================
   LANGUAGE SWITCHER
======================================== */

.language-switcher {
    position: fixed;

    top: 24px;
    right: 28px;

    z-index: 100;

    display: flex;
    gap: 6px;

    padding: 5px;

    background: rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 50px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);
}


.language {
    width: 38px;
    height: 32px;

    border: none;
    background: transparent;

    border-radius: 50px;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.language:hover {
    transform: scale(1.08);
}


.language.active {
    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12);
}


/* ========================================
   MAIN PAGE
======================================== */

.page {
    display: grid;

    grid-template-columns: 50% 50%;

    min-height: 100vh;
}


/* ========================================
   PHOTO SECTION
======================================== */

.photo-section {
    position: relative;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    background: #ddd;
}


.profile-photo {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition: transform 1s ease;
}


.photo-section:hover .profile-photo {
    transform: scale(1.025);
}


/* ========================================
   CONTENT SECTION
======================================== */

.content-section {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 80px;
}


/* ========================================
   FLOATING CARD
======================================== */

.floating-card {
    width: min(520px, 100%);

    padding: 60px;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 28px;

    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.13),
        0 10px 25px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.15s ease-out,
        box-shadow 0.3s ease;

    transform:
        perspective(1000px)
        rotateY(0deg)
        rotateX(0deg);
}


.floating-card:hover {
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.16),
        0 15px 30px rgba(0, 0, 0, 0.08);
}


/* ========================================
   LANGUAGE CONTENT
======================================== */

.content {
    display: none;
}


.content.active {
    display: block;

    animation: contentFade 0.35s ease;
}


@keyframes contentFade {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ========================================
   INTRO
======================================== */

.intro {
    margin-bottom: 35px;
}


.intro h1 {
    font-size: clamp(42px, 4vw, 64px);

    line-height: 0.95;

    font-weight: 700;

    letter-spacing: -0.045em;

    margin-bottom: 14px;
}


.intro h2 {
    font-size: clamp(22px, 2vw, 30px);

    line-height: 1.15;

    font-weight: 500;

    letter-spacing: -0.025em;

    color: #555;
}


/* ========================================
   DESCRIPTION
======================================== */

.description {
    max-width: 440px;

    font-size: 16px;

    line-height: 1.65;

    color: #555;

    margin-bottom: 40px;
}


/* ========================================
   CONTACT
======================================== */

.contact {
    padding-top: 30px;

    border-top: 1px solid #e4e4e4;

    margin-bottom: 35px;
}


.contact h3 {
    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 0.12em;

    font-weight: 600;

    margin-bottom: 18px;

    color: #888;
}


.contact-item {
    display: flex;

    align-items: center;

    gap: 20px;

    width: fit-content;

    margin-bottom: 10px;

    color: #111;

    text-decoration: none;

    font-size: 15px;

    transition: opacity 0.2s ease;
}


.contact-item:hover {
    opacity: 0.55;
}


.contact-label {
    min-width: 55px;

    color: #888;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


/* ========================================
   CV BUTTON
======================================== */

.cv-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 26px;

    background: #111;

    color: #fff;

    text-decoration: none;

    border-radius: 50px;

    font-size: 14px;

    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.cv-button:hover {
    transform: translateY(-3px);

    background: #2b2b2b;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.18);
}


.cv-button:active {
    transform: translateY(0);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {

    .content-section {
        padding: 45px;
    }

    .floating-card {
        padding: 45px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    body {
        background: #f1f1ef;

        overflow-x: hidden;
    }


    .page {
        display: flex;

        flex-direction: column;

        min-height: 100vh;
    }


    /* Zdjęcie */

    .photo-section {
        height: 55vh;

        min-height: 420px;
    }


    .profile-photo {
        object-position: center;
    }


    /* Prawa część */

    .content-section {
        min-height: auto;

        padding: 0 20px 40px;

        align-items: flex-start;
    }


    /* Karta zachodzi lekko na zdjęcie */

    .floating-card {
        width: 100%;

        margin-top: -55px;

        padding: 38px 28px;

        border-radius: 24px;

        position: relative;

        z-index: 10;

        box-shadow:
            0 25px 60px rgba(0, 0, 0, 0.14);
    }


    .intro {
        margin-bottom: 28px;
    }


    .intro h1 {
        font-size: 42px;
    }


    .intro h2 {
        font-size: 22px;
    }


    .description {
        font-size: 15px;

        line-height: 1.6;

        margin-bottom: 32px;
    }


    .contact {
        padding-top: 25px;

        margin-bottom: 30px;
    }


    .language-switcher {
        top: 18px;

        right: 18px;
    }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 400px) {

    .photo-section {
        height: 48vh;

        min-height: 360px;
    }


    .floating-card {
        padding: 32px 24px;

        margin-top: -45px;
    }


    .intro h1 {
        font-size: 38px;
    }


    .intro h2 {
        font-size: 20px;
    }


    .contact-item {
        font-size: 14px;

        gap: 12px;
    }


    .cv-button {
        width: 100%;
    }

}