@import url('https://fonts.googleapis.com/css2?family=Amiko:wght@400;600;700&family=Cormorant+Infant:ital,wght@0,300..700;1,300..700&display=swap');

@font-face {
    font-family: "Old Press";
    src: url(../font/Old\ Press.ttf);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0px;
    background-color: #1E201E;
    overflow-x: hidden;
}

h1 {
    font-family: "Old Press", serif;
    font-size: 108px;
    color: #FFFFFF;
    line-height: 110px;
    font-weight: normal;
    margin: 0%;
    transition: opacity 0.1s, filter 0.1s;
}

h2,
h3 {
    font-family: "Cormorant Infant", serif;
    color: #FFFFFF;
    line-height: 100px;
    font-weight: 500;
}

h2 {
    font-size: 64px;
}

h3 {
    font-size: 48px;
}

h4,
p {
    font-family: "Amiko", sans-serif;
    color: #FFFFFF;
}

h4 {
    font-size: 20px;
    font-weight: normal;
}

p {
    font-size: 16px;
}

a {
    font-family: "Cormorant Infant", serif;
    font-size: 20px;
    text-decoration: none;
    color: #FFFFFF;
}

img {
    width: 100%;
}

.container {
    max-width: 1440px;
    margin: auto;
    background-color: #1E201E;
    position: relative;
}

.header-extend {
    background-color: rgb(30, 32, 30, 0.8);
    position: sticky;
    top: 0px;
    z-index: 5;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.header {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
}

.logo {
    cursor: pointer;
    opacity: 0;
    /* Initially hidden for animation */
}

.menu {
    display: flex;
    gap: 20px 60px;
    align-items: center;
    color: white;
    font-family: "Cormorant Infant", serif;
    text-align: center;
    width: 70%;
    justify-content: flex-end;
}

.menu>div {
    opacity: 0;
    /* Initially hidden for animation - only direct children */
}

.sub_menu {
    display: none;
    position: absolute;
    color: #FFFFFF;
    width: 220px;
    background-color: #1E201E;
    left: 0;
    z-index: 1;
    height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: 1000000;
}

.sub_menu div {
    padding: 20px 10px;
    border-bottom: 0.5px solid #FFFFFF;
}

.sub_menu a {
    font-size: 18px;
}

.re4-section:hover .sub_menu,
.about:hover .sub_menu,
.re4-section-mobile:hover .sub_menu,
.about-mobile:hover .sub_menu {
    display: block;
}

.mobile-menu {
    display: none;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 30px;
    z-index: 11;
    cursor: pointer;
}

.menu .active {
    cursor: pointer;
    background-image: url(../image/active\ button.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.drop-down {
    width: 20%;
    left: 100%;
}

.re4-section,
.about,
.re4-section-mobile,
.about-mobile {
    display: flex;
    position: relative;
    cursor: pointer;
    padding: 0% 1%;
}

.re4-section img,
.about img,
.re4-section-mobile img,
.about-mobile img {
    position: absolute;
    bottom: 15px;
    width: 15%;
}

.about img {
    bottom: 5px;
}

.re4-section-mobile img,
.about-mobile img {
    bottom: 5px;
    width: 10%;
}

.footer {
    padding: 30px 0px;
    color: white;
    background-color: #1E201E;
    position: relative;
    display: flex;
    width: 100%;
    justify-content: center;
}

.footer-menu {
    display: flex;
    align-items: center;
    border-top: white 1px solid;
    padding-top: 30px;
    gap: 10%;
    width: 95%;
}

.footer-menu div {
    width: 100%;
}

.footer-menu-left,
.footer-menu-right {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
}

.footer-menu-left>div,
.footer-menu-right>div,
.footer-logo {
    opacity: 0;
    /* Initially hidden for scroll animation */
}

.footer-menu-left {
    text-align: right;
    align-items: flex-end;
}

.footer-menu-right {
    text-align: left;
    align-items: flex-start;
}

.back-to-top {
    width: 3%;
    margin-bottom: 30px;
    position: absolute;
    right: 2%;
    bottom: 0%;
}

.page-navigation {
    display: flex;
    justify-content: space-between;
    overflow-x: hidden;
}

.previous-page,
.next-page {
    display: flex;
    align-items: center;
    margin-bottom: 2%;
    gap: 30px;
    cursor: pointer;
}

.previous-page div,
.next-page div {
    width: 50%;
}

.previous-page {
    margin-left: 4%;
    gap: 20px;
}

.next-page {
    text-align: right;
    margin-right: 0%;
    gap: 30px;
    position: absolute;
    right: 2%;
}

.previous-page a,
.next-page a {
    color: #9e9e9e;
    transition: color 0.3s;
}

.previous-page:hover a,
.next-page:hover a {
    color: #FFFFFF;
}

.next-button,
.previous-button {
    width: 40px !important;
    transform: rotate(-90deg);
}

.next-button {
    transform: rotate(90deg);
}

@media screen and (max-width: 1425px) {
    a {
        font-size: 18px;
    }
}

@media screen and (max-width: 1333px) {
    .menu {
        gap: 20px 45px;
    }
}

/*laptop*/
@media screen and (max-width:1290px) {

    h1 {
        font-size: 90px;
        line-height: normal;
    }

    h2,
    h3 {
        line-height: normal;
    }

    h2 {
        font-size: 60px;
    }

    h3 {
        font-size: 40px;
    }

    h4 {
        font-size: 18px;
        font-weight: normal;
    }

    p {
        font-size: 14px;
    }

    a {
        font-size: 16px;
    }

    .menu {
        gap: 20px 35px;
    }

    .sub_menu {
        width: 200px;
    }

    .sub_menu a {
        font-size: 16px;
    }
}

@media screen and (max-width:1130px) {

    h1 {
        font-size: 80px;
    }

    h2 {
        font-size: 50px;
    }

    h3 {
        font-size: 30px;
    }

    .logo {
        width: 20%;
    }

    .menu {
        gap: 20px 30px;
    }

    .sub_menu {
        width: 170px;
    }

    .sub_menu a {
        font-size: 14px;
    }
}

@media screen and (max-width:1020px) {

    a {
        font-size: 14px;
    }

    .sub_menu {
        width: 160px;
    }

    .sub_menu a {
        font-size: 13px;
    }
}

@media screen and (max-width:930px) {
    a {
        font-size: 12px;
    }

    .sub_menu {
        width: 140px;
    }

    .sub_menu a {
        font-size: 11px;
    }

    .button {
        padding: 18px;
    }

    .previous-button,
    .next-button {
        width: 30px !important;
    }

    .next-page {
        position: absolute;
        right: 5%;
    }
}

@media screen and (max-width: 835px) {
    .menu {
        gap: 20px 25px;
    }
}

/*Tablet*/
@media screen and (max-width:797px) {
    h1 {
        font-size: 70px;
    }

    h2 {
        font-family: "Old Press", serif;
        line-height: normal;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 15px;
    }

    a {
        font-size: 15px;
    }

    .logo {
        width: 40%;
    }

    .menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: none;
        flex-wrap: wrap;
        flex-direction: column;
        position: absolute;
        top: 0px;
        right: 0px;
        width: 350px;
        height: 100vh;
        align-items: flex-start;
        background-color: #1E201E;
        z-index: 10;
    }

    .mobile-menu.active {
        display: flex;
    }

    .menu-items {
        display: flex;
        flex-direction: column;
        gap: 40px;
        border-left: 1px solid #FFFFFF;
        margin: 30% 10%;
        padding: 10%;
    }

    .drop-down {
        width: 10%;
    }

    .mobile_menu {
        display: block;
    }

    .sub_menu {
        width: 200px;
    }

    .sub_menu a {
        font-size: 14px;
    }

    .previous-page {
        margin-left: 6%;
    }

    .previous-page a,
    .next-page a {
        color: #FFFFFF;
    }
}

@media screen and (max-width: 700px) {
    .previous-page {
        margin-left: 5%;
    }

    .back-to-top {
        width: 4%;
    }
}

@media screen and (max-width: 600px) {

    .back-to-top {
        width: 5%;
    }
}

@media screen and (max-width:550px) {
    .mobile-menu {
        width: 300px;
    }

    .footer-menu {
        gap: 5%;
    }

    .sub_menu {
        width: 180px;
    }

    .footer a,
    .sub_menu a {
        font-size: 12px;
    }
}

@media screen and (max-width:500px) {
    .sub_menu {
        width: 170px;
    }
}

@media screen and (max-width:455px) {
    .mobile-menu {
        width: 250px;
    }

    .sub_menu {
        width: 165px;
    }

    .previous-page {
        margin-left: 7%;
    }
}

/*Moblie*/
@media screen and (max-width: 414px) {
    h1 {
        font-size: 64px;
    }

    h2 {
        font-size: 48px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-family: "Cormorant Infant", serif;
        font-size: 18px;
    }

    p {
        font-size: 12px;
    }

    a {
        font-size: 12px;
    }

    .header {
        padding: 15px 20px;
    }

    .header img {
        max-width: 100%;
    }

    .menu-items {
        gap: 30px;
    }

    .sub_menu {
        width: 140px;
    }

    .sub_menu div {
        padding: 10px;
    }

    .footer-menu-left,
    .footer-menu-right {
        gap: 5px;
    }

    .footer a,
    .sub_menu a {
        font-size: 10px;
    }

    .back-to-top {
        width: 5%;
        padding-right: 3%;
    }
}