@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500&family=Honk&family=Lexend:wght@400;600&family=Poppins:wght@500;600&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    border: 0;
    font-family: "poppins";
}

html,
body {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

#myBtn {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed/sticky position */
    bottom: 20px;
    /* Place the button at the bottom of the page */
    right: 30px;
    /* Place the button 30px from the right */
    z-index: 999;
    /* Make sure it does not overlap */
    border: none;
    /* Remove borders */
    outline: none;
    /* Remove outline */
    background-color: rgb(23, 22, 22);
    /* Set a background color */
    color: white;
    /* Text color */
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 15px;
    /* Some padding */
    border-radius: 10px;
    /* Rounded corners */
    font-size: 18px;
    /* Increase font size */
}

#myBtn:hover {
    background-color: #555;
    /* Add a dark-grey background on hover */
}

.overlay-links {
    position: relative;
    top: 80%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.overlay-links a {
    padding: 20px;
    color: #ffffffc0;
    font-size: 12px;
}

.overlay-links a i {
    color: #ffffffab;
    padding: 20px;
    font-size: 12px;
}

.overlay-links a i:hover {
    color: #ed7b52;
    transition: 0.5 linear;
}

.Logo {
    font-family: poppins;
    position: relative;
    top: 25%;
    padding-left: 20px;
    width: 100%;
    text-align: left;
    margin-top: 30px;
    color: #000;
}

.Logo h4 {
    font-size: 32px;
    color: #7f6d6d;
}

.Logo img {
    height: 250px;
    width: 300px;
    align-items: center;
    padding-left: 23px;
    padding-top: 20px;
}

.overlay {
    font-family: poppins;
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgb(7, 7, 7);
    overflow-y: hidden;
    transition: 0.5s;
    display: flex;
    justify-content: space-between;
}

.overlay-content {
    font-family: poppins;
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
    width: 55%;
    text-align: right;
    align-items: flex-end;
    padding: 10px;
}

.text {
    padding: 20px;
    text-decoration: none;
    font-size: 30px;
    line-height: 30px;
    color: #f6994d;
    transition: 0.8s;
    overflow: hidden;
}

.text:hover {
    color: #ffffff;
    transition: 0.2s linear;
    font-size: 32px;
    text-shadow: #000000;
}

.overlay .closebtn {
    text-decoration: none;
    position: absolute;
    color: #ffffff;
    top: 10px;
    right: 15px;
    font-size: 60px;
}

@media screen and (max-height: 450px) {
    .overlay {
        overflow-y: auto;
    }
    .overlay a {
        font-size: 10px
    }
    .overlay .closebtn {
        font-size: 20px;
        top: 15px;
        right: 35px;
    }
}

#page1 {
    height: 100vh;
    width: 100%;
    background-color: rgb(255, 255, 255);
    position: relative;
}

#cursor {
    border-radius: 50%;
    width: 4vw;
    height: 4vw;
    background-color: #f22230;
    color: #000;
    z-index: 9;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}

#cursor h5 {
    font-size: 10px;
}

#page1 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* send behind text */
}

#page1-content {
    width: 100%;
    height: 100%;
    background: #403c3c;
    position: relative;
    z-index: 10;
    color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* padding: 26px; */
}

#page1-content h3 {
    font-size: 2rem;
    font-weight: 50px;
}

nav {
    /* height: 100px; */
    width: 100%;
    /* background-color: red; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

nav h3 {
    font-size: 2.2vw;
    font-weight: 100;
}

nav h4 {
    font-size: 1.2vw;
}

nav .linkk {
    display: flex;
    text-decoration: none;
}

nav a {
    display: flex;
    text-decoration: none;
    font-size: 1.1vw;
    font-weight: bold;
    color: #d4cecedd;
    background-color: #2e2727;
    padding: 7px;
    border-radius: 12px;
}

nav a:hover {
    color: #000000;
    background-color: #fff;
    transition: 0.3s ease-in-out;
}

#page1-content h1 {
    font-family: "lexend";
    font-size: 22vw;
    line-height: 32vw;
}

#page1-content h1 span {
    font-family: "poppins";
    display: inline-block;
    color: #ffffff;
}

.menu {
    text-decoration: none;
    color: #fff;
}

#about {
    min-height: 25vh;
    width: 100%;
    position: relative;
    padding: 3vw;
    background-color: rgb(217, 219, 191);
}

.aboutpara p {
    font-size: 3vw;
    font-family: "poppins";
    padding: 3vw;
}

section {
    background-color: #e6ebcb;
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.column {
    width: 100%;
    padding: 0 1em 1em 1em;
    text-align: center;
}

.card {
    width: 100%;
    height: 100%;
    padding: 2em 1.5em;
    background: linear-gradient(#ffffff 50%, #deac7b 50%);
    background-size: 100% 200%;
    background-position: 0 2.5%;
    border-radius: 5px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: 0.5s;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f194c;
    margin: 1em 0;
}

.card p {
    color: #1e1f23;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

.section-heading {
    font-size: 4vw;
    font-family: Lexend;
    padding: 20px;
}

.icon-wrapper {
    background-color: #e9af71;
    position: relative;
    margin: auto;
    font-size: 30px;
    height: 2.5em;
    width: 2.5em;
    color: #ffffff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: 0.5s;
}

.image {
    height: 75px;
    width: 95px;
    border-radius: 50%;
}

.card:hover {
    background-position: 0 100%;
}

.card:hover .icon-wrapper {
    background-color: #ffffff;
    color: #191b1f;
}

.card:hover h3 {
    color: #272323;
}

.card:hover p {
    color: #2b2525;
}

@media screen and (min-width: 768px) {
    section {
        padding: 0 2em;
    }
    .column {
        flex: 0 50%;
        max-width: 50%;
    }
}

@media screen and (min-width: 992px) {
    section {
        padding: 1em 3em;
    }
    .column {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

#page3 {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 1.5vw;
    background-color: rgb(249, 249, 236);
}

#page3-top {
    /* background: #a21717; */
    text-align: center;
}

#page3-top h4 {
    margin-bottom: 1vw;
    font-size: 1vw;
    font-weight: 500;
}

#page3-top h4 span {
    font-size: .65vw;
    background-color: rgb(0, 0, 0);
    color: white;
    border-radius: 10px;
    padding: 4px 10px;
}

#page3-top h2 {
    font-size: 4vw;
    color: #000;
}

#page3-elements {
    height: 70vh;
    width: 100%;
    /* background-color: #000; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8vw;
}

#page3-elements .box {
    height: 100%;
    width: 33%;
    /* background-color: aqua; */
    position: relative;
}

#page3-elements .box video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

#page3-elements .box img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#page3-elements .box:hover img {
    opacity: 0;
    transition: all linear 0.8s;
}

#loader {
    height: 100%;
    width: 100%;
    background-color: #000;
    position: fixed;
    z-index: 99;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 10px;
}

#page4 {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 3vw;
    background-color: rgb(232, 232, 216);
}

:root {
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(82, 60%, 28%);
    --title-color: hsl(0, 0%, 15%);
    --text-color: hsl(0, 0%, 35%);
    --body-color: hsl(0, 0%, 95%);
    --container-color: hsl(0, 0%, 100%);
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Poppins", sans-serif;
    --h2-font-size: 1.25rem;
    --small-font-size: .813rem;
}

@media screen and (min-width: 1120px) {
     :root {
        --h2-font-size: 1.5rem;
        --small-font-size: .875rem;
    }
}


/*=============== BASE ===============*/

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/*=============== CARD ===============*/

.container {
    display: grid;
    place-items: center;
    margin-inline: 1.5rem;
    padding-block: 5rem;
}

.card__container {
    display: grid;
    row-gap: 3.5rem;
}

.card__article {
    position: relative;
    overflow: hidden;
}

.card__img {
    width: 328px;
    border-radius: 1.5rem;
}

.card__data {
    width: 280px;
    background-color: var(--container-color);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 1%, 0.082);
    border-radius: 1rem;
    position: absolute;
    bottom: -9rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    opacity: 0;
    transition: opacity 1s 1s;
}

.card__description {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: .25rem;
}

.card__title {
    font-size: var(--h2-font-size);
    font-weight: 500;
    color: var(--title-color);
    margin-bottom: .75rem;
}

.card__button {
    text-decoration: none;
    font-size: var(--small-font-size);
    font-weight: 500;
    color: var(--first-color);
}

.card__button:hover {
    text-decoration: underline;
}


/* Naming animations in hover */

.card__article:hover .card__data {
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3s;
}

.card__article:hover {
    animation: remove-overflow 2s forwards;
}

.card__article:not(:hover) {
    animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data {
    animation: remove-data 1s forwards;
}


/* Card animation */

@keyframes show-data {
    50% {
        transform: translateY(-10rem);
    }
    100% {
        transform: translateY(-7rem);
    }
}

@keyframes remove-overflow {
    to {
        overflow: initial;
    }
}

@keyframes remove-data {
    0% {
        transform: translateY(-7rem);
    }
    50% {
        transform: translateY(-10rem);
    }
    100% {
        transform: translateY(.5rem);
    }
}

@keyframes show-overflow {
    0% {
        overflow: initial;
        pointer-events: none;
    }
    50% {
        overflow: hidden;
    }
}


/*=============== BREAKPOINTS ===============*/


/* For small devices */

@media screen and (max-width: 340px) {
    .container {
        margin-inline: 1rem;
    }
    .card__data {
        width: 250px;
        padding: 1rem;
    }
}


/* For medium devices */

@media screen and (min-width: 768px) {
    .card__container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem;
    }
}


/* For large devices */

@media screen and (min-width: 1120px) {
    .container {
        height: 100vh;
    }
    .card__container {
        grid-template-columns: repeat(3, 1fr);
    }
    .card__img {
        width: 348px;
    }
    .card__data {
        width: 316px;
        padding-inline: 2.5rem;
    }
}

#Container {
    height: 60vh;
    background-color: rgb(230, 230, 203);
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 40px;
    text-align: center;
    color: #151414;
}

#Container h1 {
    font-size: 2.9rem
}

#Container p {
    max-width: 600px;
    margin: 40px auto;
    font-size: 15px;
    font-weight: normal;
}

.email-box {
    height: 40px;
    display: flex;
    justify-content: center;
}

.email-box i {
    width: 40px;
    height: 40px;
    padding: 8px;
    color: #ffffff;
    background-color: #000;
}

.tbox,
.btn {
    border: none;
    outline: none;
}

.tbox {
    width: 0px;
    transition: 0.6s;
}

.btn {
    background-color: #000;
    color: #d3d0d0;
    text-transform: uppercase;
    padding: 0 10px;
    cursor: pointer;
}

.btn:hover {
    color: #fff
}

.email-box:hover>.tbox,
.tbox:focus {
    width: 260px;
    padding: 0 10px;
}

.fontainer {
    max-width: 60%;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.fontainer h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
}

form {
    display: grid;
    grid-gap: 15px;
}

label {
    font-weight: bold;
    color: #333;
}

.fontainer input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.fontainer input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4caf50;
}

.fontainer .button {
    background-color: #4caf50;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fontainer .button:hover {
    background-color: #2e7331;
}

#footer {
    min-height: 40vh;
    width: 100%;
    position: relative;
    padding: 70px 30px 20px;
    background-color: rgb(223, 223, 181);
}

.hhh {
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
}

.hhh:hover {
    background: #CF4400;
    background: linear-gradient(to bottom, #CF4400 0%, #1274dd 86%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
    transition: 0.3s linear;
    text-decoration: none;
}

.link-icons {
    display: flex;
    justify-content: center;
}

.link-icons a {
    text-decoration: none;
    padding: 10px;
    margin: 10px;
    border-radius: 50%;
}

.link-icons a i {
    opacity: 0.9;
    font-size: 2em;
    color: #504040;
}

.link-icons a:hover {
    background-color: #d0b4b400;
    transition: 0.5s;
}

.link-icons a:hover i {
    color: #000000;
    transition: 0.5s;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    color: #371f1f;
}

.karry {
    color: #f8732b;
}

@media screen and (max-width: 340px) {
    #footer h1 {
        font-size: 1rem
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 7))
    }
}