@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700&family=Playfair+Display:ital@1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gwendolyn:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Nanum Myeongjo', serif;
}

:root {
    --bg-color: #FFEDED;
    --second-bg-color: #F8D8D8;
    --text-color: #7D6060;
    --main-color: #E5C0BD;
    --second-main-color: #F2E0E0;
    --light-pink: #FDE3E3;
    --baby-pink: #F8D8D8;
    --title-color: #DAAEAA;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section.section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}

.logo img {
    height: 45px;
}

.navbar {
    display: flex;
    justify-content: center;
}

.navbar a {
    font-size: 2.1rem;
    font-weight: 800;
    background-image: linear-gradient(to right, var(--main-color), var(--main-color) 50%, var(--text-color) 50%);
    background-size: 200% 100%;
    background-position: -100%;
    display: inline-block;
    padding: 5px 0;
    position: relative;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.4s ease-in-out;
    display: flex;
    justify-content: center;
    width: 11.5rem;
}

.navbar a:after {
    content: '';
    background: var(--text-color);
    display: block;
    position: absolute;
    bottom: -3px;
    left: 2;
    width: 0;
    height: 3px;
    transition: all 0.4s ease-in-out;
}

.navbar a:hover, .navbar a.active {
    background-position: 0;
}

.navbar a:hover::before {
    width: 75%;
}

.navbar a:hover::after, .navbar a.active::after {
    width: 75%;
}

.menu-btn {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

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

.home-section {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    height: 85vh;
}

.home-content,
.home-photos {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-content {
    max-width: 40%;
    position: relative;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.home-photos {
    position: relative;
    top: -32.5vh;
    max-width: 60%;
}

.main-img img,
.second-main img {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
}

.main-img img {
    z-index: 10;
    height: 50rem;
    left: 30vw;
    border-top-right-radius: 19rem;
    border-top-left-radius: 19rem;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.second-main img {
    left: 12vw;
    z-index: 1;
    height: 41rem;
    margin-top: 4.5rem;
    border-top-right-radius: 16rem;
    border-top-left-radius: 16rem;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.home-content h2 {
    font-size: 5.5rem;
    color: #60554C;
    font-family: 'Gwendolyn', cursive;
    font-weight: 400;
}

.home-content h3 {
    font-size: 4.5rem;
    color: #60554C;
    font-style: italic;
    display: flex;
    flex-direction: row-reverse;
    font-family: 'Gwendolyn', cursive;
}

.about {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 35vw;
    border-radius: 15px;
    margin-right: 20px;
    margin-top: 15px;
}

.heading {
    text-align: center;
    font-size: 7.5rem;
    font-family: 'Gwendolyn', cursive;
    font-weight: 200;
}

.about-content h2 {
    text-align: left;
}

.about-content h3 {
    font-size: 3rem;
}

.about-content p {
    font-size: 1.7rem;
    margin: 2rem 0 3rem;
    line-height: 2.8rem;
}

.portfolio {
    background: var(--second-bg-color);
}

.swiper-container {
    max-width: 94vw;
    height: 100%;
    padding-top: 35px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 60vw;
    height: auto;
}

.swiper-pagination {
    position: relative;
    bottom: 0;
}

.swiper-button-next, .swiper-button-prev {
    color: white !important;
}

.contact {
    height: 80vh;
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input, .contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--baby-pink);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 2rem 3.8rem;
    background: var(--baby-pink);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--baby-pink);
    font-size: 1.6rem;
    color: var(--text-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5s ease;
}

.btn:hover {
    box-shadow: none;
    scale: 1.2;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    transition: 0.5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--text-color);
}

/* responsiveness */

@media (max-width: 1200px){
    html {
        font-size: 55%;
    }

    .home-photos {
        top: -28.5vh;
    }
    
    .main-img img {
        height: 48rem;
    }
    
    .second-main img {
        left: 9.5vw;
        height: 39rem;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section.section {
        padding: 10rem 3% 2rem;
    }

    .main-img img {
        height: 43rem;
        left: 35vw;
    }
    
    .second-main img {
        left: 13vw;
        height: 36rem;
        margin-top: 3.5rem;
    }

    .contact {
        min-width: auto;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 870px) {
    .home-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 90vh;
    }

    .home-content,
    .home-photos {
        max-width: 80%;
        width: 100%;
    }

    .home-content {
        order: 2;
    }

    .home-photos {
        order: 1;
        top: 3vh;
    }

    .main-img img {
        left: 50vw;
        height: 50rem;
    }

    .second-main img {
        left: 20vw;
        height: 41rem;
    }
}


@media (max-width: 768px) {
    .logo {
        padding-left: 25px;
    }

    .menu-btn {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80px;
        cursor: pointer;
        transition: all 0.5s ease-in-out;
        z-index: 10;
    }
    
    .menu-burger {
        width: 30px;
        height: 3px;
        background: var(--title-color);
        border-radius: 4px;
        transition: all 0.5s ease-in-out;
    }
    
    .menu-burger::before, .menu-burger::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 3px;
        background: var(--title-color);
        border-radius: 4px;
        transition: all 0.5s ease-in-out;
    }
    
    .menu-burger::before {
        transform: translateY(-9px);
    }
    
    .menu-burger::after {
        transform: translateY(9px);
    }

    .navbar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        padding: 1rem 3%;
        background: var(--second-bg-color);
        opacity: 0;
        transition: opacity 0.8s 0.3s, clip-path 1s 0.3s;
        clip-path: circle(0% at top right);
    }

    .flex-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .navbar.active {
        opacity: 1;
        clip-path: circle(100%);
    }
    
    .navbar a {
        font-size: 4rem;
        margin: 3rem 0;
        width: 24.5rem;
    }

    .home-photos {
        top: 6vh;
    }

    .main-img img {
        left: 50vw;
        height: 45rem;
    }

    .second-main img {
        left: 18vw;
        height: 36rem;
        margin-top: 4.5rem;
    }

    .about {
        flex-direction: column;
    }

    .about img {
        width: 70vw;
        margin-bottom: 4rem;
        display: flex;
    }
}

@media (max-width: 665px) {
    .main-img img {
        left: 52vw;
        height: 45rem;
    }
}

@media (max-width: 580px) {
    .main-img img {
        left: 53vw;
        height: 40rem;
    }

    .second-main img {
        left: 15vw;
        height: 31rem;
        margin-top: 4.5rem;
    }
}

@media (max-width: 460px) {
    .main-img img {
        left: 53vw;
        height: 35rem;
    }

    .second-main img {
        left: 15vw;
        height: 26rem;
    }

    .home-content html {
        font-size: 45%;
    }
}


/* animation */

.menu-btn.open .menu-burger {
    transform: translateX(-50px);
    background-color: transparent;
}

.menu-btn.open .menu-burger::before {
    transform: rotate(45deg) translate(35px, -35px);
}

.menu-btn.open .menu-burger::after {
    transform: rotate(-45deg) translate(35px, 35px);
}