@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap');

@font-face {
    font-family: "Constantia";
    src: local("Constantia");
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #D8C8AD;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #8D473B;
    border-radius: 50px;
}

html {
    scroll-behavior: smooth;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 101vh;
    overflow: hidden;
    z-index: 3;
    padding-top: 5px;
}

.hero-section-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-section-navbar {
    position: fixed;
    top: -15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 999;
    width: 86%;
    height: 205px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 45px;
    transform-origin: top center;
    animation: sign-swing 1.8s ease-in-out forwards;
}

.hero-section-navbar-paper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 90%;
    z-index: -1;
}

.hero-section-logo {
    position: relative;
    margin-top: 2px;
    margin-left: 22px;
    width: 120px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hero-section-logo-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-section-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 75px;
    margin-left: 30px;
    margin-top: 5px;
}

.hero-section-nav-link {
    position: relative;
    color: #3A3028;
    text-decoration: none;
    font-family: "Caveat", cursive;
    font-size: 28px;
    font-weight: 500;
    white-space: nowrap;
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.hero-section-nav-link:hover {
    transform: translateY(-3px) rotate(-2deg);
    color: #a85c55;
}

.hero-section-memory-button {
    display: block;
    width: 140px;
    margin-top: 5px;
    margin-right: 35px;
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.hero-section-memory-button-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-section-memory-button:hover {
    transform: translateY(-5px) rotate(-2deg) scale(1.04);
    filter:
        drop-shadow(0 7px 7px rgba(70, 40, 20, 0.2));
}

.hero-section-navbar {
    transform-origin: top center;
    animation: sign-swing 1.8s ease-in-out forwards;
}

@keyframes sign-swing {
    0% {
        transform: perspective(1000px) rotateX(-295deg);
    }

    22% {
        transform: perspective(1000px) rotateX(-100deg);
    }

    42% {
        transform: perspective(1000px) rotateX(0deg);
    }

    60% {
        transform: perspective(1000px) rotateX(8deg);
    }

    75% {
        transform: perspective(1000px) rotateX(-4deg);
    }

    100% {
        transform: perspective(1000px) rotateX(0deg);
    }
}

.hero-section-content {
    position: relative;
    z-index: 2;
    width: 88%;
    margin: 0px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-section-left-content {
    width: 43%;
    position: relative;
    z-index: 3;
}

.hero-section-title {
    width: 650px;
    font-family: "Caveat", cursive;
    font-size: 90px;
    font-weight: 500;
    line-height: 1.05;
    color: #34281f;
    margin-top: 0;
    transform: rotate(-7.24deg);
    transform-origin: left center;
    margin-bottom: 55px;
    margin-top: 200px;
}

.hero-title-line {
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 1.5px solid #3A3028;
    animation: typing 2s steps(20, end) forwards;
}

.hero-title-line:nth-child(2) {
    animation-delay: 2s;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.hero-section-subtitle {
    font-family: "Constantia", Georgia, serif;
    font-size: 25px;
    line-height: 1.4;
    font-style: italic;
    color: #34281f;
    margin-top: 25px;
    margin-bottom: 60px;
}

.hero-section-page-button {
    display: block;
    width: 260px;
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.hero-section-page-button-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-section-page-button:hover {
    transform: translateY(-6px) rotate(-2deg) scale(1.02);
    filter:
        drop-shadow(0 8px 8px rgba(70, 40, 20, 0.22));
}

.hero-section-right-content {
    position: relative;
    width: 52%;
    height: 775px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section-book {
    position: absolute;
    width: 700px;
    max-width: none;
    right: -80px;
    top: 55%;
    transform: translateY(-50%) rotate(-1deg);
    display: block;
    z-index: 2;
}

.hero-section-flower {
    position: absolute;
    width: 115px;
    left: 5px;
    bottom: 30px;
    z-index: 4;
    animation:
        hero-section-flower-rotate 7s linear infinite;
    transform-origin: center center;
}


@keyframes hero-section-flower-rotate {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}

.why-section {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    margin-top: -30px;
}

.why-section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.why-section-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 30px;
    margin-bottom: -70px;
    min-height: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-section-card-background,
.why-section-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-section-flower {
    position: absolute;
    right: -5px;
    top: 290px;
    width: 190px;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.why-section-brush {
    position: absolute;
    left: 0;
    top: 100px;
    width: 205px;
    height: auto;
    z-index: 3;
}

.why-section-title {
    position: relative;
    width: 750px;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 45px;
}

.why-section-title-board {
    position: absolute;
    width: 100%;
    height: 100%;
    margin-top: 40px;
    object-fit: fill;
    z-index: 1;
}

.why-section-title-text {
    position: relative;
    z-index: 222;
    margin-top: 70px;
    color: #3b3029;
    font-family: "CocoSharp Trial", sans-serif;
    font-size: 48px;
    font-weight: 400;
    text-align: center;
    font-family: "Caveat", cursive;
}

.why-section-subtitle {
    margin: 0;
    max-width: 850px;
    color: #302820;
    font-family: "Constantia", Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.35;
    text-align: center;
    margin-bottom: 50px;
}

.why-section-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 65px;
    width: 100%;
}

.why-section-card {
    position: relative;
    width: 290px;
    height: 380px;
    transition: transform 0.35s ease;
    cursor: pointer;
}

.why-section-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.why-section-card-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 75px;
    color: #302820;
}

.why-section-card-small {
    margin: 0 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-style: italic;
    font-weight: 500;
}

.why-section-card-title {
    margin: 0 0 18px;
    font-family: "Caveat", sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
    color: #3c3029;
}

.why-section-card-text {
    margin: 0;
    font-family: Constantia, "Times New Roman", serif;
    font-size: 22px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.25;
}

.why-section-card:hover {
    z-index: 10;
}

.why-section-card-one:hover {
    transform: rotate(-4deg);
}

.why-section-card-two:hover {
    transform: rotate(4deg);
}

.why-section-card-three:hover {
    transform: rotate(-4deg);
}


.why-section-flower {
    animation: why-flower-float 3s ease-in-out infinite;
}

@keyframes why-flower-float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.why-section-brush {
    animation: why-butterfly-float 4s ease-in-out infinite;
}

@keyframes why-butterfly-float {
    0% {
        transform: translateX(-20px);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-20px);
    }
}


.contact-section {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    z-index: -99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section-background {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -8;
}

.contact-section-card {
    position: relative;
    width: 88%;
    max-width: 1200px;
    height: auto;
    display: block;
    z-index: 1;
    animation: contact-card-swing 5s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes contact-card-swing {

    0% {
        transform: perspective(1200px) rotateX(0deg);
    }

    25% {
        transform: perspective(1200px) rotateX(14deg);
    }

    50% {
        transform: perspective(1200px) rotateX(0deg);
    }

    75% {
        transform: perspective(1200px) rotateX(-14deg);
    }

    100% {
        transform: perspective(1200px) rotateX(0deg);
    }

}

.footer-section {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    margin-top: -30px;
    align-items: center;
    justify-content: center;
}

.footer-section-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.footer-section-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-section-title {
    font-family: "Caveat", cursive;
    font-size: 40px;
    font-weight: 600;
    color: #3A3028;
    margin-bottom: 25px;
    margin-top: 25px;
}

.footer-section-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin-bottom: 5px;
}

.footer-section-links a {
    font-family: "Caveat", cursive;
    font-size: 22px;
    font-weight: 500;
    color: #3A3028;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-section-links a:hover {
    transform: translateY(-4px);
    opacity: 0.65;
}

.footer-section-subtitle {
    font-family: "Constantia", serif;
    font-size: 16px;
    font-style: italic;
    color: #3A3028;
    margin-bottom: 30px;
    margin-top: 30px;
}

.footer-section-copyright {
    font-family: "Constantia", serif;
    font-size: 13px;
    font-style: italic; 
    color: #A85C55;
    margin-bottom: 20px;
    margin-top: 20px;
}

.why-section-card-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.why-section-card:hover .why-section-card-background {
    opacity: 1;
}

.why-section-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.why-section-card-one:hover {
    transform: rotate(-6deg);
}

.why-section-card-two:hover {
    transform: rotate(6deg);
}

.why-section-card-three:hover {
    transform: rotate(-6deg);
}