/** BY IGOR PIEKARSKI **/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    color: #484866;
}

body {
    background-color: var(--primary-color);
    font-size: 1rem;
    line-height: 1.6;
}

:root {
    --primary-color: #F9FAFB;
    --secondary-color: #f2efff;
    --text-color: #f7e1d7;
    --text-color-label: #333;
    --button-bg: #f4c2c2;
    --button-text: #fff;
    --padding-top: 3rem;
    --padding-lr: 10.75rem;
}

@media only screen and (min-width: 2000px) {
    :root {
        font-size:18px
    }
}

@media only screen and (max-width: 1440px) {
    :root {
        --padding-top: 2.5rem;
        --padding-lr:8.5rem
    }
}

@media only screen and (max-width: 960px) {
    :root {
        font-size:14px
    }

    :root {
        --padding-top: 2rem;
        --padding-lr:6rem
    }
}

@media only screen and (max-width: 500px) {
    :root {
        --padding-top: 1rem;
        --padding-lr: 2rem;
    }
}

a {
    text-decoration: none;
}

.hoverBorder {
    position: relative;
}
.hoverBorder:hover::before {
    width: 100%;
}
.hoverBorder::before {
    content: "";
    display: block;
    width: 0;
    height: .20rem;
    background: #484866;
    position: absolute;
    bottom: -.15rem;
    transition: width .3s ease;
}
/** END ROOT **/

/* NAV-BAR */
.nav-bar {
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    isolation: isolate;
    padding: 0 var(--padding-lr);
    background-color: var(--secondary-color);
    margin-top:auto;
    margin: 1rem 1rem;
    border-radius: 15px;
}
.nav-bar .name {
    color: #484866;
    font-size: 1.7rem;
}
.nav-bar a {
    color: #484866;
}
.nav-bar .nav-links {
    display: flex;
    gap: 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    align-items: center;
}
.nav-bar .nav-link {
    text-decoration: none;
    cursor: pointer;
}
@media only screen and (max-width: 500px) {
    .nav-bar .name {
        font-size: 30px;
    }
    .nav-bar {
        height: fit-content;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        padding: 1rem var(--padding-lr) 1rem;
    }

    .nav-bar .nav-links {
        align-items: center;
    }
}
/* TITLE */

.title-section {
    width: 100%;
    background: transparent;
    display: flex;
    padding: 0 6rem 2rem;
    gap: 2rem;
}
.title-section .column-small {
    width: 40%;
    height: 500px;
    border-radius: 1rem;
    -o-object-fit: cover;
    object-fit: cover;
    background-image: url('img/podologia1.png');
    background-size: cover;
    background-position: center;
}
.title-section .column {
    width: 60%;
    height: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}
.title-section .column .img {
    height: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 1rem;
    background-image: url('img/postawa.jpg');
    background-size: cover;
    background-position: center;
}
.title-section .column .img:nth-child(2n) {
    background-image: url('img/IWO2.jpg');
    background-size: cover;
    background-position: center;
}

@media only screen and (max-width: 560px) {
    .title-section {
        width: 100%;
        background: transparent;
        display: flex;
        padding: 0 var(--padding-lr) 2rem;
        gap: 2rem;
    }
}

/** SECTION **/
.section {
    width: 100%;
    background: transparent;
    overflow:hidden
}

.section .content {
    width: 100%;
    translate: 100% 0;
    transition: translate 1s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:4rem var(--padding-lr);
    text-align: right;
}

.section .content.revealed {
    translate: 0 0 !important;
}

.section:first-child .content {
    padding-top: 1rem;
}

.section.background {
    background: var(--secondary-color);
}

.section:nth-child(2n) .content {
    flex-direction: row-reverse;
    text-align: left;
}

.section:nth-child(2n) .column {
    float: right;
}

.section:nth-child(2n) .content {
    translate: -100% 0;
}

.section:nth-child(2n) .media {
    border-radius: 2rem 0rem 2rem 0rem;
}

.section .column {
    flex: 1;
    max-width: 50%;
    color: #484866;
    margin: 0px 50px 0px 50px;
}

.section .column .buttons {
    margin-right: auto;
    display: flex;
    flex-flow: row wrap;
    gap: 1.125rem
}

.section .column h1 {
    font-size: 1.8rem;
}

.section .column p {
    font-size: 1rem;
    color: #8789a3;
}

.section .media {
    width: 50%;
    height: 20rem;
    overflow: hidden;
    border-radius:0 2rem 0 2rem;
    box-shadow: 0px 15px 75px -41px rgba(66, 68, 90, 1);
}

.section .media img, .section .media video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

@media (prefers-reduced-motion) {
    .content {
        translate:0 0 !important
    }
}

@media only screen and (max-width: 800px) {
    .section .content {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem var(--padding-lr);
        translate: 0 0;
        text-align: center;
    }

    .section .content .buttons {
        justify-content: center;
    }

    .section:nth-child(2n) .content {
        flex-direction: column;
        translate: 0 0;
    }

    .section:nth-child(2n) .column {
        margin: 0;
    }

    .section:nth-child(2n) .content {
        text-align: center;
    }

    .section .column {
        max-width: 100%;
        flex: 0;
        margin: 0;
    }

    .section .column h1, .section .column p {
        max-width: unset;
    }

    .section .media {
        width: 100%;
        height: 20rem;
    }
}

.floating-image img {
    position: fixed;
    z-index: 10000;
    transform: rotate(-4deg);
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}
.floating-image.right img {
    height: 50px;
    right: 50px;
    bottom: 30px;
}
.floating-image.pwo img  {
    height: 150px;
    left: 50px;
    bottom: 30px;
    transform: scaleX(-1);
}
.floating-image.pwo img:hover {
    transform: scaleX(-1) rotate(6deg) scale(1.3);
}
.floating-image img:hover {
    transform: rotate(-6deg) scale(1.3);
}


/** CONTACT **/
.contact {
    height: 10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    isolation: isolate;
    padding: 0 var(--padding-lr);
    background-color: #e0d1ef;
    color: #484866;
    margin-top:auto;
    margin: 1rem 1rem;
    border-radius: 15px;
}

.social-icon {
    font-size: 1rem;
    color: #484866;
    text-decoration: none;
}
.social-icon i {
    border-radius: 50%;
    border: #484866 1px solid;
    padding: 5px;
    margin-right: 10px;
    transition: 0.5s;
    margin-bottom: 5px;
}
.social-icon:hover i {
    background-color: #484866;
    color: #fff;
}
@media only screen and (max-width: 400px) {
    .contact {
        height: fit-content;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        padding: 2rem var(--padding-lr) 2rem;
    }

    .contact .column {
        text-align: center;
    }
}

/** FOOTER **/
.footer {
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    isolation: isolate;
    padding: 4rem var(--padding-lr) 4rem;
    background-color: var(--secondary-color);
    margin-top: auto;
    margin: 1rem 1rem;
    border-radius: 15px;
}
.footer .logo svg {
    height: 78px;
    float: left;
}
.footer svg g {
    fill: #484866;
}

.footer .column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .75rem;
    font-size:.875rem
}

.footer .column .by {
    font-size: 0.7rem
}
.footer .column .by a {
    text-decoration: none;
}

.footer .column .copyright {
    font-size: 1.05rem;
}

.footer .column p {
    margin: 0;
    font-weight:700
}

.footer .column .nav-items {
    display: flex;
    gap: 1rem;
}

.footer .column .nav-items .nav-items-item {
    font-weight: 700;
    cursor:pointer
}

@media only screen and (max-width: 630px) {
    .copyright {
        font-size:.84rem !important
    }
}

@media only screen and (max-width: 500px) {
    .copyright {
        font-size: 1.05rem !important;
    }

    .footer {
        height: fit-content;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        padding: 2rem var(--padding-lr) 2rem;
    }

    .footer .column {
        align-items: center;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

.animate-left {
    animation: slideInFromLeft 0.6s ease-out forwards;
}

.animate-right {
    animation: slideInFromRight 0.6s ease-out forwards;
}
