header {
    position: relative;
}

header .container {
    position: relative;
    max-width: 1800px;
    margin: auto;
}

#header-content {
    justify-content: space-between;
    margin: 5rem auto;
    position: relative;
}

#header-text {
    margin: auto;
}

#header-text h1 {
    font-weight: 400;
}

#header-text .s {
    color: #FD6584;
}

.header-line {
    width: min-content;
}

.header-line,
.slider {
	animation-duration: 400ms;
	animation-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1);
}

.header-line {
	position: relative;
	animation-name: text-clip;
	color: white;
	white-space: nowrap;
}

.slider {
	content: "";
	position: absolute;
	z-index: 999;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: white;
    animation-fill-mode: forwards;
	pointer-events: none;
	animation-name: text-hide-show;
    height: 100%;
}

@keyframes text-clip {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

@keyframes text-hide-show {
	0%, 50% {
		transform-origin: 0 50%;
	}
	
	60%, 100% {
		transform-origin: 100% 50%;		
	}

	60% {
		transform: scaleX(1);
	}
	
	100% {
		transform: scaleX(0);
	}
}

@keyframes text-hide {
	from {
		transform: scaleX(0);
	} 
	to {
		transform: scaleX(1);
	}
}

@keyframes text-show {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

#header-progress {
    height: 2px;
    background-color: #686868;
    position: relative;
    transform: scaleX(0);
    transform-origin: left;
    transition-property: transform;
    transition-duration: 6000ms;
    margin-top: 0.5rem;
    width: 90%;
    transition-timing-function: linear;
}

#header-text b {
    font-weight: 700;
}

#header-text p {
    color: #D4D4D4;
    margin-bottom: 2rem;
}

div#header-img {
    position: relative;
    margin: auto;
    max-width: min(600px, 50%);
    min-width: 380px;
}

#header-sky {
    position: absolute;
}

header .plant#left {
    left: -7%;
    max-width: 15%;
}

header .plant#right {
    right: -7%;
    max-width: 15%;
}

#companies {
    margin: auto;
    width: 70%;
    min-width: 650px;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    height: 6rem;
    padding: 2rem 5rem;
    border-top: solid 1px white;
    z-index: 1;
    position: relative;
}

#companies img {
    height: 75%;
}

h1, h2 {
    font-family: "Roboto Mono", monospace;
    margin: 0;
    line-height: 130%;
}

h2 {
    margin-top: 1.5rem;
    text-align: center;
}

section {
    padding: 5rem 5% 4rem;;
}

section > * {
    width: 85%;
    margin: auto;
    max-width: 1000px;
}

#services-head {
    text-align: center;
}

#services-head {
    text-align: center;
}

#services {
    display: flex;
    align-items: baseline;
    gap: 5rem;
}

.service {
    flex: 1;
}

#model-sm {
    background: #111113;
    color: white;
    overflow: hidden;
}

#model-sm .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
}

#model-sm p {
    color: white;
}

#model-sm sup {
    background-color: white;
    color: black;
    font-size: 1.2rem;
    padding: 0 0.2rem;
    line-height: 1.2rem;
    position: absolute;
}

#model-sm img {
    width: 35%;
    height: 100%;
    max-width: 300px;
    min-width: 200px;
    position: relative;
    animation: 1s 1 fadein;
    margin-bottom: -200px;
    margin-top: -2.5rem;
}

#profile {
    display: flex;
    align-items: center;
    margin-left: 7%;
}

#quote {
    display: flex;
}

#quote svg {
    width: 20%;
}

#quote p {
    color: black;
    margin: 2rem;
}

#inside-img {
    width: 35%;
}

#contact {
    text-align: center;
    /* padding-top: 2rem; */
}

#contact-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 2rem;
    background-color: white;
    padding: 5rem 0;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.04);
    border-radius: 5px;
}

#contact-head {
    grid-column: 1 / 3;
}

#contact-form {
    width: 50%;
    max-width: 400px;
}

#contact-content #vr {
    height: 20rem;
}

#testimonial {
    max-width: 20rem;
}

#testimonial .splide__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#testimonial .splide__container > * {
    max-width: 90%;
}

#testimonial .splide__container p {
    margin: 0;
}

#testimonial .main-img {
    height: 10rem;
    width: fit-content;
    border-radius: 50%;
    border: 1px solid #cdcdcd;
    padding: 10px;
    aspect-ratio: 1;
}

#testimonial p {
    width: 100%;
}

.splide__arrow {
    background: none;
}

.splide__arrow--prev {
    left: -1rem;
}

.splide__arrow--next {
    right: -1rem;
}

.button {
    display: inline-block;
    width: fit-content;
}

.button.primary {
    color: white;
    background-color: black;
    border-color: black;
}

.button.light {
    color: black;
    background-color: white;
    padding: 0.75rem 2rem;
    margin-bottom: 0.5rem;
    border-color: white;
}

.button.secondary {
    color: black;
    border-color: #cfcfcf;
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 100%;
    }
}

@media screen and (max-width: 1400px) {
    #contact-form {
        width: 40%;
    }
}

@media screen and (max-width: 1000px) {
    #header-content {
        flex-direction: column;
        width: 100%;
        margin-top: 2rem;
        margin-bottom: 0;
        gap: 2rem;
    }

    #header-text {
        max-width: 550px;
        padding: 0;
        width: unset;
    }

    #header-text p {
        max-width: unset;
    }   

    #header-progress {
        width: 100%;
    }

    div#header-img {
        min-width: unset;
        max-width: 600px;
        margin-bottom: 3rem;
    }

    header .plant {
        bottom: 3rem;
    }

    #companies {
        display: none;
    }

    p {
        margin-top: 1rem;
    }

    #services {
        flex-direction: column;
        max-width: 300px;
        text-align: center;
    }

    #model-sm .container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        max-width: 400px;
    }

    #model-sm img {
        margin-bottom: -200px;
        width: 90%;
        margin-top: 0;
    }

    #inside-img {
        width: 90%;
        max-width: 350px;
    }

    #quote svg {
        min-width: 30px;
    }

    #quote p {
        margin: 0 0 0 1rem;
    }

    #profile {
        flex-direction: column;
        margin: 0;
    } 

    #inside-head {
        text-align: center;
    }

    #contact-content {
        flex-direction: column;
        gap: 5rem;
    }

    #contact-content #vr {
        display: none;
    }

    #contact-content > * {
        width: 80%;
        max-width: 80%;
    }

    .button.primary {
        margin: auto;
        display: block;
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    #header-text h1 {
        font-size: 2.2rem;
    }

    #contact-content {
        width: 100%;
    }
}