/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*===== VARIABLES CSS =====*/
:root {
	--header-height: 3rem;
	/*========== Colors ==========*/
	/* --first-color: #069C54;
  --first-color-alt: #048654; */
	--first-color: #F99D1E;
	--first-color-light: #ffc93c;
	--first-color-alt: #ca8018;
	--first-linear-gradiant: linear-gradient(140deg, var(--first-color) 0%, var(--first-color-light) 70%);
	--title-color: #393939;
	--text-color: #707070;
	--text-color-light: #A6A6A6;
	--body-color: #FBFEFD;
	--container-color: #FFFFFF;
	/*========== Font and typography ==========*/
	--body-font: 'Poppins', sans-serif;
	--biggest-font-size: 2.25rem;
	--h1-font-size: 1.5rem;
	--h2-font-size: 1.25rem;
	--h3-font-size: 1rem;
	--normal-font-size: .938rem;
	--small-font-size: .813rem;
	--smaller-font-size: .75rem;
	/*========== Font weight ==========*/
	--font-medium: 500;
	--font-semi-bold: 600;
	/*========== Margenes ==========*/
	--mb-1: .5rem;
	--mb-2: 1rem;
	--mb-3: 1.5rem;
	--mb-4: 2rem;
	--mb-5: 2.5rem;
	--mb-6: 3rem;
	/*========== z index ==========*/
	--z-tooltip: 10;
	--z-fixed: 100;
	/*========== Other ==========*/
	--img-transition: 0.4s;
	--input-color: #faeede;
}

@media screen and (min-width: 768px) {
	:root {
		--biggest-font-size: 4rem;
		--h1-font-size: 2.25rem;
		--h2-font-size: 1.5rem;
		--h3-font-size: 1.25rem;
		--normal-font-size: 1rem;
		--small-font-size: .875rem;
		--smaller-font-size: .813rem;
	}
}

/*========== BASE ==========*/
*,
::before,
::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
	--title-color: #F1F3F2;
	--text-color: #C7D1CC;
	--body-color: #1D2521;
	--container-color: #27302C;
}

/*========== Button Dark/Light ==========*/
.change-theme {
	position: absolute;
	right: 1rem;
	top: 1.8rem;
	color: var(--text-color);
	font-size: 1rem;
	cursor: pointer;
}

body {
	margin: var(--header-height) 0 0 0;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--body-color);
	color: var(--text-color);
	line-height: 1.6;
}

h1,
h2,
h3,
ul,
p {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

a {
	text-decoration: none;
}

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

/*========== CLASS CSS ==========*/
.section {
	padding: 4rem 0 2rem;
}

.section-title,
.section-subtitle {
	text-align: center;
}

.section-title {
	font-size: var(--h1-font-size);
	color: var(--title-color);
	margin-bottom: var(--mb-3);
}

.section-subtitle {
	display: block;
	font-weight: var(--font-medium);
	margin-bottom: var(--mb-1);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-image: var(--first-linear-gradiant);
}

/*========== LAYOUT ==========*/
.bd-container {
	max-width: 960px;
	width: calc(100% - 2rem);
	margin-left: var(--mb-2);
	margin-right: var(--mb-2);
}

.bd-grid {
	display: grid;
	gap: 1.5rem;
}

.l-header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--z-fixed);
	background-color: var(--body-color);
}

.grid {
	display: grid;
	gap: 1.5rem;
}

/*========== NAV ==========*/
.nav {
	max-width: 1024px;
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

@media screen and (max-width: 768px) {
	.nav__menu {
		position: fixed;
		top: -100%;
		left: 0;
		width: 100%;
		padding: 1.5rem 0 1rem;
		text-align: center;
		background-color: var(--body-color);
		transition: .4s;
		box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
		border-radius: 0 0 1rem 1rem;
		z-index: var(--z-fixed);
	}
}

.nav__item {
	margin-bottom: var(--mb-2);
}

.nav__link,
.nav__logo,
.nav__toggle {
	color: var(--text-color);
	font-weight: var(--font-medium);
}

.nav__logo:hover {
	color: var(--first-color);
}

.nav__link {
	transition: .3s;
}

.nav__link:hover {
	color: var(--first-color);
}

.nav__toggle {
	font-size: 1.3rem;
	cursor: pointer;
}

/* Show menu */
.show-menu {
	top: var(--header-height);
}

/* Active menu */
.active-link {
	color: var(--first-color);
}

/* Change background header */
.scroll-header {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scroll top */
.scrolltop {
	position: fixed;
	right: 1rem;
	bottom: -20%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: .3rem;
	background: var(--first-color);
	opacity: 0.7;
	border-radius: .4rem;
	z-index: var(--z-tooltip);
	transition: .4s;
	visibility: hidden;
}

.scrolltop:hover {
	background-color: var(--first-color-alt);
}

.scrolltop__icon {
	font-size: 1.8rem;
	color: var(--body-color);
}

.show-scroll {
	visibility: visible;
	bottom: 1.5rem;
}

/*========== HOME ==========*/
.home__container {
	height: calc(100vh - var(--header-height));
	align-content: center;
}

.home__title {
	font-size: var(--biggest-font-size);
	margin-bottom: var(--mb-1);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-image: var(--first-linear-gradiant);
}

.home__subtitle {
	font-size: var(--h1-font-size);
	color: var(--title-color);
	margin-bottom: var(--mb-4);
}

.home__img {
	width: 300px;
	justify-self: center;
}

/*========== BUTTONS ==========*/
button {
	cursor: pointer;
}

.button {
	display: inline-block;
	/* background-color: var(--first-color); */
	background-image: var(--first-linear-gradiant);
	color: #FFF;
	padding: .75rem 1rem;
	border-radius: .5rem;
	transition: .3s;
	border: none;
}

.button:hover {
	background-color: var(--first-color-alt);
}

/*========== ABOUT ==========*/
.about__data {
	text-align: center;
}

.about__description {
	margin-bottom: var(--mb-3);
}

.about__img {
	width: 280px;
	border-radius: .5rem;
	justify-self: center;
}

/*=============== COMPANIES ===============*/
.company__container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 5rem;
}

.company__content {
	width: 35%;
}

.company__content:hover .company__img {
	filter: invert(0);
}

.company__img {
	width: 100%;
	filter: invert(0.6);
	transition: var(--img-transition);
}

/*========== SERVICES ==========*/
.services__container {
	row-gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.services__content {
	text-align: center;
}

.services__img {
	width: 200px;
	height: 200px;
	/* fill: var(--first-color); */
	margin-bottom: var(--mb-2);
}

.services__title {
	font-size: var(--h3-font-size);
	color: var(--title-color);
	margin-bottom: var(--mb-1);
}

.services__description {
	padding: 0 1.5rem;
}

/*===== PROJECTS =====*/
.project__nav {
	text-align: center;
	margin-bottom: var(--mb-3);
}

.project__item {
	margin: 0 var(--mb-2);
	cursor: pointer;
}

.project__content {
	background-color: var(--container-color);
	border-radius: .5rem;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(3, 74, 40, 0.15);
}

.project__content:hover {
	box-shadow: 0 6px 8px rgba(174, 190, 205, 0.4);
}

.project__content:hover .project__img {
	transform: scale(1.02);
}

.project__img {
	width: 100%;
	transition: .4s;
}

.project__data {
	padding: 1.5rem;
}

.project__subtitle {
	font-size: var(--small-font-size);
	color: var(--title-color);
}

.project__title {
	font-size: var(--h3-font-size);
	color: var(--title-color);
	margin: var(--mb-2) 0;
}

.project__tooltip {
	position: absolute;
	bottom: 10px;
	right: 10px;
	border-radius: 50%;
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	background-color: #efefef;
	cursor: pointer;
}

body.dark-theme .project__tooltip {
	background-color: #6c757d;
}

.project__tooltip,
.project__tooltip:hover,
.project__tooltip:focus {
	border: none;
	outline: 0;
}

/*==================== TESTIMONIAL ====================*/
.testimonial__content {
	background-color: var(--container-color);
	border-radius: .5rem;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(3, 74, 40, 0.15);
	margin-bottom: 2rem;
	padding: 2rem;
}

.testimonial__data,
.testimonial__header {
	display: flex;
	gap: 1rem;
}

.testimonial__data {
	justify-content: space-between;
	margin-bottom: var(--mb-1);
}

.testimonial__img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin-right: var(--mb-2);
}

.testimonial__name {
	font-size: var(--h3-font-size);
	font-weight: var(--font-medium);
}

.testimonial__client {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

.testimonial__description {
	margin-bottom: var(--mb-2-5);
}

.testimonial__icon-star {
	color: var(--first-color);
}

.swiper-container .swiper-pagination-testimonial {
	bottom: 0;
}

/*==================== CONTACT ME ====================*/
.contact__container {
	row-gap: 3rem;
}

.contact__information {
	display: flex;
	margin-bottom: var(--mb-2);
}

.contact__icon {
	font-size: 2rem;
	color: var(--first-color);
	margin-right: var(--mb-2);
}

.contact__title {
	font-size: var(--h3-font-size);
	font-weight: var(--font-medium);
}

.contact__subtitle {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

.contact__content {
	background-color: var(--input-color);
	border-radius: .5rem;
	padding: .75rem 1rem .25rem;
}

.contact__label {
	font-size: var(--smaller-font-size);
	color: var(--title-color);
}

.contact__input {
	width: 100%;
	background-color: var(--input-color);
	color: var(--text-color);
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	border: none;
	outline: none;
	padding: .25rem .5rem .5rem 0;
}

/*========== FOOTER ==========*/
.footer__container {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	row-gap: 2rem;
}

.footer__logo {
	font-size: var(--h3-font-size);
	color: var(--first-color);
	font-weight: var(--font-semi-bold);
}

.footer__description {
	display: block;
	font-size: var(--small-font-size);
	margin: 0.25rem 0 var(--mb-3);
}

.footer__social {
	font-size: 1.5rem;
	color: var(--title-color);
	margin-right: var(--mb-2);
}

.footer__title {
	font-size: var(--h2-font-size);
	color: var(--title-color);
	margin-bottom: var(--mb-2);
}

.footer__link {
	display: inline-block;
	color: var(--text-color);
	margin-bottom: var(--mb-1);
}

.footer__link:hover {
	color: var(--first-color);
}

.footer__copy {
	text-align: center;
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	margin-top: 3.5rem;
}

/*========== MEDIA QUERIES ==========*/
@media screen and (min-width: 576px) {

	.home__container,
	.about__container {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
	}

	.contact__container {
		grid-template-columns: repeat(2, 1fr);
	}

	.about__data,
	.about__initial {
		text-align: initial;
	}

	.project__container {
		grid-template-columns: repeat(2, 1fr);
	}

	.about__img {
		width: 380px;
		order: -1;
	}

	/* .contact__container {
		grid-template-columns: 1.75fr 1fr;
		align-items: center;
	}

	.contact__button {
		justify-self: center;
	} */
}

@media screen and (min-width: 768px) {
	body {
		margin: 0;
	}

	.section {
		padding-top: 8rem;
	}

	.nav {
		height: calc(var(--header-height) + 1.5rem);
	}

	.nav__list {
		display: flex;
	}

	.nav__item {
		margin-left: var(--mb-5);
		margin-bottom: 0;
	}

	.nav__toggle {
		display: none;
	}

	.change-theme {
		position: initial;
		margin-left: var(--mb-2);
	}

	.home__container {
		height: 100vh;
		justify-items: center;
	}

	.company__content {
		width: 20%;
	}

	.project__container {
		grid-template-columns: repeat(3, 1fr);
	}

	.services__container {
		margin-top: var(--mb-6);
	}
}

@media screen and (min-width: 960px) {
	.bd-container {
		margin-left: auto;
		margin-right: auto;
	}

	.home__img {
		width: 500px;
	}

	.about__container {
		column-gap: 7rem;
	}

	.company__content {
		width: 18%;
	}

	.contact__inputs {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For tall screens on mobiles y desktop*/
@media screen and (min-height: 721px) {
	.home__container {
		height: 640px;
	}
}

/* START: Loader */
#loader {
	display: none;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #00000066;
	z-index: 9999999;
}

#loader.active {
	display: flex;
}

#loader div {
	width: 20px;
	height: 20px;
	background: var(--first-color);
	border-radius: 50%;
	margin: 5px;
	animation: bouncer 0.5s cubic-bezier(0.19, 0.57, 0.3, 0.98) infinite alternate;
}

#loader div:nth-child(2) {
	animation-delay: 0.1s;
	opacity: 0.8;
}

#loader div:nth-child(3) {
	animation-delay: 0.2s;
	opacity: 0.6;
}

#loader div:nth-child(4) {
	animation-delay: 0.3s;
	opacity: 0.4;
}

@keyframes bouncer {
	from {
		transform: translateY(0)
	}

	to {
		transform: translateY(-100px)
	}
}

/* END: Loader */