@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap'); /* Rubik google font */
@font-face { /* winterland for title */
    font-family: "Winterland";
    src: url("Winterland.ttf");
}

/* -------------------------------------------------------------------------- */
/*                                  RESET CSS                                 */
/* -------------------------------------------------------------------------- */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
    border: none;
    text-decoration: none;
    color: unset;
}

body, html {
	line-height: 1;
    font-family: sans-serif;
}

ol, ul {
	list-style: none;
}

a {
    color: unset;
    text-decoration: none;
}

button {
    background: unset;
    border: none;
}

/* -------------------------------------------------------------------------- */
/*                                   MOBILE                                   */
/* -------------------------------------------------------------------------- */

/* --------------------------------- GENERAL -------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
    font-family: "Rubik";
    color: #292F36;
}

h1 {
    font-family: "Winterland";
    font-size: 6.5rem;
    font-weight: 100;
    text-align: center;
}

h2 {
    font-family: "Winterland";
    font-size: 4.5rem;
    font-weight: 100;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.scroll-top {
    position: fixed;
    z-index: 99;
    right: 1em;
    bottom: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2em;
    height: 2em;
    font-size: 2rem;
    background-color: #FFFFFF60;
    border: 1px solid #FFFFFF70;
    box-shadow: 3px 3px 7px #292f362c;
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    opacity: 0;
    cursor: pointer;
    transition: 300ms;
}

.scroll-top:hover {
    background-color: #FFFFFF99;
    transform: scale(1.08);
    box-shadow: 5px 5px 10px #292f365c;
}

/* --------------------------------- NAVBAR --------------------------------- */
.navbar {
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 8vh;
    padding: 0 4% 0 2%;
}
.navbar ul {
    display: flex;
    gap: 3vw;
}

.navbar a {
    line-height: 8vh;
}

.navbar .title {
    font-family: "Winterland";
    color: #76B041;
    font-size: 3.5vw;
}


/* ------------------------------- SCROLL HERO ------------------------------ */
.hero {
    height: 100vh;
}

.hero video {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1;
    color: #FFC914;
    text-shadow: 5px 5px 10px #292F36, 5px 5px 20px #292F36;
}
.hero h1 i {
    color: #76B041;
    display: block;
}

.scroll-indicator {
    position: absolute;
    z-index: 99;
    left: 50%;
    bottom: 5vh;
    transform: translate(-50%,-50%);
    width: 1.8rem;
    height: 3.1rem;
    display: flex;
    justify-content: center;
    border: 3px solid #ffffff;
    filter: drop-shadow(1px 1px 2px #292F36AA);
    border-radius: 1rem;
}

.scroll-indicator .dot {
    width: 0.4rem;
    height: 0.4rem;
    margin-top: 0.2rem;
    background: #ffffff;
    border-radius: 0.2rem;
    animation: scroll 1s infinite;
}
/* -------------------------------- CONTENT --------------------------------- */
.content { /* container for all content bellow hero animation */
    border-top: #292F36 3px solid;
    border-bottom: #292f36aa 2px solid ;
	background: linear-gradient(-45deg, #ffffff, #e1d6c3, #8dc25c, #ffcd27);
	background-size: 400% 400%;
	animation: gradient 15s infinite;
    padding-bottom: 3em;
}

.content > * {
    margin-bottom: 3em;
}

/* SERVICES SECTION */
.service { /* whole  service section*/
    padding: 3em 1em 1em 1em;
}

.services-container { /* container for service cards */
    margin: 2em auto;
    width: 90%;
    max-width: 30rem;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 2em;
}

.service-card {
    opacity: 0; /* start at 0 opacity for js animation */ 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    padding: 2em 1em;
    background-color: #ffffff70;
    box-shadow: 5px 5px 10px #292f361c;
    border: 1px solid #292f3686;
    border-radius: 1rem;
    transition: 300ms;
}
.service-card:hover {
    transform: scale(1.05);
}

.visible .service-card { /* animation for appearance on scroll */
    animation: services-appear 800ms ease;
    animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0ms } /* cards appears one by one */
.service-card:nth-child(2) { animation-delay: 200ms }
.service-card:nth-child(3) { animation-delay: 400ms }

.service-card h3 {
    text-shadow: 1.5px 1.5px 2px #292F36;
}

.service-card:nth-child(1) h3 { color: #6A8D92; } /* different title color for each cards */
.service-card:nth-child(2) h3 { color: #76b041; }
.service-card:nth-child(3) h3 { text-shadow: 2px 1px 2px #292F36 }

.service-card img {
    width: 100%;
}

/* mouse Hover animation card stuffs */
.service-card > * {
    z-index: 2; /* Z-index for background hover annimation */
}

.service-card::before { /* fancy hover animations w/ JS */
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: radial-gradient( /* radial gradient move following mouse */
        150px
        at var(--mouse-x, 0) var(--mouse-y, 0),
        #ffffff40, #ffffff00
    );
    border-radius: 1rem;
    transition: 300ms;
    opacity: 0;
}

.service-card:hover::before {
    opacity: 1;
}

/* MEDIA SECTION */
.caroussel {
    margin-top: 3em;
    display: flex;
    gap: 2.5em;
    padding: 2vh 0;
    /* background-color: #ffffff70;
    border-top: 1px solid #292f3699;
    border-bottom: 1px solid #292f3699; */
    cursor: pointer;

    overflow: scroll; /* scrollbar behaviour */
    -ms-overflow-style: none;  /* hide scroll Edge */
    scrollbar-width: none;  /* hide scroll Firefox */
}
.caroussel::-webkit-scrollbar { /* hide scroll chrome */
    display: none;
}

.caroussel img {
    width: 110vw;
    max-width: 500px;
    user-select: none;
    border-radius: 1rem;
}

.caroussel img:first-child {
    margin-left: 40vw;
}
.caroussel img:last-child {
    margin-right: 40vw;
}

/* FORM SECTION */
.contact-text {
    width: 90%;
    max-width: 1000px;
    font-size: 1.2rem;
    line-height: 1.2em;
    margin: 1em auto;
}

.contact-text ul { /* contact infos */
    margin-top: 1em;
    line-height: 1.3em;
    font-weight: 500;
}
.contact-text li {
    margin-top: 0.2em;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    padding: 1em;
    margin: 1em auto;
    width: 90%;
    max-width: 1000px;
    background-color: #ffffff70;
    border-radius: 1rem;
    border: 1px solid #292f3699;
}

.contact-form > div {
    width: 100%;
    font-size: 1.2rem;
    padding: 0.8rem 0.5rem;
}
.contact-form > .full-width {
    width: 100%;
}
.contact-form > div > * {
    display: block;
    width: 100%;
    margin: 0.1rem;
}
.contact-form label {
    padding: 0 0 0.2em 0.8em;
    text-transform: uppercase;
}

.set-height {
    height: 2rem;
}

.contact-form textarea {
    resize: none;
    padding-top: 0.2em;
}

.contact-form > div > *:not(label) {
    background-color: white;
    border-radius: 0.2rem;
    box-shadow: 2px 2px #292f3650;
    padding-left: 0.3em;
    transition: 300ms;
}
.contact-form > div > *:not(label):hover {
    box-shadow: 5px 5px #292f3680;
    transform: scale(1.004);
}

.contact-form > div > button:hover {
    cursor: pointer;
    transform: scale(1.01);
}

/* FOOTER */
footer {
    background-color: #ffffff;
    padding: 3em 1em 1em 1em;
    text-align: center;
    line-height: 1.5em;
    max-width: 1000px;
    margin: auto;
}

footer h2 {
    color: #76B041;
    margin-bottom: 0.5em;
}

footer .align-left {
    margin-top: 1.5em;
    text-align: left;
}


/* -------------------------------------------------------------------------- */
/*                                   DESKTOP                                  */
/* -------------------------------------------------------------------------- */

@media screen and (min-width: 830px) {
    /* SERVICES SECTION */
    .services-container {
        grid-template-rows: 1fr;
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
        width: 100%;
        max-width: 1000px;
    }
    
    /* FORM SECTION */
    .contact-form > div {
        width: 50%;
    }
    
}


/* -------------------------------------------------------------------------- */
/*                                 ANIMATIONS                                 */
/* -------------------------------------------------------------------------- */

@keyframes scroll {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(1.8rem);
    }
}

@keyframes gradient { /* background animation */
	0% {
		background-position: 0% 20%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 20%;
	}
}
@keyframes services-appear { /* animation for service card when scroll*/
	0% {
        opacity: 0;
        margin-top: -10vh;
	}
    50% {
        margin-top: 0;
    }
	100% {
		opacity: 1;
	}
}

