@import url("variables.css");

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

html {
	scroll-behavior: smooth;
}

body {
	position: relative;
	margin: 0;
	font-family: var(--default-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.1em;
	color: var(--text-color);
	background: var(--black-color);
	overflow-x: hidden;
}

body::before {
	content: "";
	display: block;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(107, 253, 217, 0.12) 0%, transparent 55%),
		radial-gradient(ellipse 60% 40% at 90% 20%, rgba(240, 255, 108, 0.08) 0%, transparent 50%);
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

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

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

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

h1, h2, h3, h4, h5, h6, p {
	margin: 0;
}

.container {
	position: relative;
	z-index: 1;
}

/* Grid lines */
.grid-lines {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 0;
	width: 100%;
	max-width: 1300px;
	height: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	--grid-line-color: var(--divider-color);
	pointer-events: none;
}

.grid-line-1,
.grid-line-2,
.grid-line-3,
.grid-line-4,
.grid-line-5 {
	position: relative;
	height: 100%;
}

.grid-line-1::before,
.grid-line-2::before,
.grid-line-3::before,
.grid-line-4::before,
.grid-line-5::before {
	content: "";
	position: absolute;
	top: 0;
	height: 100%;
	right: -1px;
	background: var(--grid-line-color);
	width: 1px;
}

.grid-line-1::after,
.grid-line-2::after,
.grid-line-3::after,
.grid-line-4::after,
.grid-line-5::after {
	content: "";
	position: absolute;
	top: -80px;
	right: -1px;
	background: linear-gradient(254deg, transparent 0%, var(--accent-color) 50%, var(--accent-secondary-color) 100%);
	opacity: 0.5;
	width: 1px;
	height: 60px;
}

.grid-lines .grid-line-1::after { animation: gridline 8s linear infinite; }
.grid-lines .grid-line-2::after { animation: gridline 9s linear infinite 3s; }
.grid-lines .grid-line-3::after { animation: gridline 7s linear infinite 6s; }
.grid-lines .grid-line-4::after { animation: gridline 10s linear infinite 4s; }
.grid-lines .grid-line-5::after { animation: gridline 8s linear infinite 8s; }

@keyframes gridline {
	0% { top: -50px; }
	100% { top: 100%; }
}

/* Scrollbar */
::-webkit-scrollbar-track {
	background-color: var(--primary-color);
	border-left: 1px solid var(--primary-color);
}

::-webkit-scrollbar {
	width: 7px;
	background-color: var(--primary-color);
}

::-webkit-scrollbar-thumb {
	background: var(--gradient-accent);
}

/* Buttons */
.btn-default {
	position: relative;
	display: inline-block;
	background: linear-gradient(to right, var(--accent-secondary-color) 0%, var(--accent-color) 50%, var(--accent-secondary-color) 100%);
	background-size: 200% auto;
	border-radius: 30px;
	color: var(--black-color);
	font-size: 16px;
	font-weight: 600;
	line-height: 1em;
	text-transform: capitalize;
	border: none;
	padding: 17px 30px;
	transition: all 0.4s ease-in-out;
	overflow: hidden;
	z-index: 0;
	cursor: pointer;
}

.btn-default:hover {
	background-position: right center;
	color: var(--black-color);
}

/* Section title */
.section-title {
	margin-bottom: 40px;
}

.section-title h3 {
	display: inline-block;
	position: relative;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4em;
	text-transform: capitalize;
	color: var(--primary-color);
	padding-left: 20px;
	margin-bottom: 10px;
}

.section-title h3::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	background: var(--gradient-accent);
	border-radius: 50%;
	width: 10px;
	height: 10px;
}

.section-title h1 {
	font-size: 72px;
	font-weight: 700;
	line-height: 1.1em;
	margin-bottom: 0;
}

.section-title h1 span {
	background: linear-gradient(to right, var(--accent-secondary-color) 0%, var(--accent-color) 50%, var(--accent-secondary-color) 100%);
	background-size: 200% auto;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	transition: all 0.3s ease-in-out;
}

.section-title:hover h1 span {
	background-position: right center;
}

.section-title p {
	margin-top: 20px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6em;
	color: var(--primary-color);
	opacity: 0.85;
	max-width: 520px;
}

.section-title.dark-section h1,
.section-title.dark-section h3 {
	color: var(--primary-color);
}

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

.section-title-center h3,
.section-title-center h2 {
	margin-left: auto;
	margin-right: auto;
}

/* Image anime hover */
.image-anime {
	position: relative;
	overflow: hidden;
}

.image-anime::after {
	content: "";
	position: absolute;
	width: 200%;
	height: 0%;
	left: 50%;
	top: 50%;
	background-color: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%) rotate(-45deg);
	z-index: 1;
}

.image-anime:hover::after {
	height: 250%;
	transition: all 600ms linear;
	background-color: transparent;
}

@media only screen and (max-width: 991px) {
	.grid-lines {
		max-width: 100%;
		padding: 0 3px;
	}

	.btn-default {
		padding: 14px 20px;
	}

	.section-title {
		margin-bottom: 30px;
	}

	.section-title h1 {
		font-size: 52px;
	}

	.section-title p {
		margin-top: 15px;
	}
}

@media only screen and (max-width: 767px) {
	.grid-lines {
		display: none;
	}

	.section-title h1 {
		font-size: 32px;
	}

	.section-title p {
		margin-top: 10px;
	}
}
