section {
	text-align: center;
}

h2 {
	display: inline-block;
	position: relative;
	font-size: var(--fs-700);
}

header, header .page-wrapper {
	justify-content: flex-end;
}

header {
	background: transparent;
}

header.scrolled {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.title-decor {
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%);
	opacity: 0.25;
}

.title-decor img {
	position: absolute;
	left: 0;
	top: 0;
	width: 48px;
	height: 48px;
}

#hero {
	position: relative;
	padding-top: 128px;
	height: calc(100vh + 128px);
	background: linear-gradient(to bottom, #141e30, #243b55); 
	z-index: 1;
}

.hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: var(--sp-4);
	text-align: center;
	z-index: 10;
}

.logo {
	height: 256px;
}

/* Aurora */
.aurora {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 50vh;
	background:
    linear-gradient(to right, #00f260, #0575e6),
    linear-gradient(to bottom, #0575e6, #00f260);
	background-size: 200% 200%;
	background-position: 0% 0%, 100% 100%;
	animation: flip-gradient 5s ease-in-out infinite;
	z-index: -1;
	opacity: 0.25;
	mask-image: url("/public/img/forest-mask.png");
	mask-size: 200% 100%;
}

@keyframes flip-gradient {
  0% {
    background-position: 0% 0%, 100% 100%;
  }
  50% {
    background-position: 100% 100%, 0% 0%;
  }
  100% {
    background-position: 0% 0%, 100% 100%;
  }
}

/* Forest */
.forest-container {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: -1;
}

.forest-container img {
	width: 100%;
	transform: scaleX(125%);
	object-fit: cover;
	object-position: bottom center;
	mask-image: url("/public/img/forest-mask.png");
	mask-position: bottom;
	mask-repeat: no-repeat;
	mask-size: contain;
}

.background-mist {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0) 25%,
		rgba(255, 255, 255, 1)
	);
	opacity: 0.2;
	z-index: -1;
}

#about {
	position: relative;
	padding: 128px 0;
	background: linear-gradient(
        to bottom, 
        rgba(10, 10, 10, 0) 0%, 
        rgb(10, 10, 10) 20%, 
        rgb(10, 10, 10) 80%, 
        rgba(10, 10, 10, 0) 100%
    );
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  text-align: left;
  gap: var(--sp-5);
}

.about-wrapper p {
  padding-top: var(--sp-4)
}

#portfolio::before {
	content: "";
	position: absolute;
	top: -256px;
	left: 0;
	right: 0;
	height: 256px;
	background: linear-gradient(to bottom, #4d5d5800, #4d5d58);
	z-index: 1;
}

#portfolio {
	position: relative;
	background: linear-gradient(to bottom, #4d5d58 0%, #4d5d5800 90%);
}

.gallery-grid {
	column-count: 2;
	column-gap: var(--sp-2);
}

.gallery-grid img {
	margin-bottom: var(--sp-2);
}

.gallery-item {
	display: block;
  position: relative;
}

.gallery-item > img {
  display: block;
  width: 100%;
}

.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  opacity: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.3s ease-in-out;
}

.gallery-hover h3 {
	margin-top: 0;
	user-select: none;
}

.gallery-icon {
  width: 64px; 
  height: auto;
	margin: 0 auto;
}

.gallery-item:hover .gallery-hover {
  opacity: 1;
}

.stilovi-grid {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: var(--sp-7);
	width: 100%;
	margin-top: var(--sp-7);
}

.stilovi-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: var(--sp-4);
}

.stilovi-item p {
	font-size: var(--fs-500);
	max-width: 256px;
}

.usluge-grid {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: var(--sp-7);
	width: 100%;
	margin-top: var(--sp-7);
}

.usluge-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: var(--sp-4);
}

.usluge-item p {
	font-size: var(--fs-500);
	max-width: 256px;
}

.about-flex {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
}

.about-flex>* {
	flex-basis: 50%;
}

.video-container {
	position: relative;
}

.video-container video {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.branch--img {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
}

.faq-item {
	margin-top: var(--sp-6);
    display: flex;
    flex-direction: column;
    align-items: center
}

.faq-item {
    margin-bottom: var(--sp-6);
}

.faq-question {
    margin-bottom: 4px;
    display: block;
}

.faq-answer {
	opacity: 0.6;
}


@media (min-width: 768px) {
	.gallery-grid {
		column-count: 3;
	}
}

@media (min-width: 1024px) {
	.stilovi-grid {
		grid-template-columns: repeat(5, 1fr);
	}

	.stilovi-item:nth-child(1) {
		grid-column: 2;
		grid-row: 1;
	}

	.stilovi-item:nth-child(2) {
		grid-column: 4;
		grid-row: 1;
	}

	.stilovi-item:nth-child(3) {
		grid-column: 1;
		grid-row: 2;
	}

	.stilovi-item:nth-child(4) {
		grid-column: 3;
		grid-row: 2;
	}

	.stilovi-item:nth-child(5) {
		grid-column: 5;
		grid-row: 2;
	}

	.stilovi-item:nth-child(6) {
		grid-column: 2;
		grid-row: 3;
	}

	.stilovi-item:nth-child(7) {
		grid-column: 4;
		grid-row: 3;
	}

	.usluge-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.about-wrapper {
		grid-template-columns: 1fr 1fr;
	}

	.about-flex {
		flex-direction: column;
	}
}
