/*Sākuma lapas un kopējo lapu noformējums*/
@import url("https://fonts.googleapis.com/css2?family=Poor+Story&family=Roboto+Serif:ital,opsz,wght@0,8..144,200;0,8..144,300;1,8..144,200;1,8..144,300;1,8..144,800&family=Roboto+Slab:wght@300;400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poor+Story&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,700;1,100;1,200;1,300;1,400&family=Roboto+Serif:ital,opsz,wght@0,8..144,200;0,8..144,300;1,8..144,200;1,8..144,300;1,8..144,800&family=Roboto+Slab:wght@300;400&display=swap");

@keyframes transitionIn {
	from {
		opacity: 0;
		transform: rotateX(-10deg);
	}

	to {
		opacity: 1;
		transform: rotateX(0);
	}
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Roboto Slab", serif;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	background: linear-gradient(rgb(217, 231, 180), rgb(226, 236, 199));
	position: relative;
}

/*Augšējais un apakšējais parallax attēls*/
#hero,
#Bhero {
	position: relative;
	width: 100%;
	height: calc(80vh - 60px);
	padding: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

#hero::before,
#Bhero::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100px;
	background: linear-gradient(to top, rgb(53, 42, 56), transparent);
	z-index: 10;
}

#hero img,
#Bhero img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

#hero img#L0,
#hero img#D0 {
	z-index: 10;
}

#hero img#L4 {
	pointer-events: all;
}

.hero-light-mode,
.hero-dark-mode {
	transition: 1s;
}

#hero-title {
	position: absolute;
	color: rgb(124, 92, 123);
	white-space: nowrap;
	font-size: 7vw;
	z-index: 9;
	text-shadow: 3px 3px 2px pink;
	cursor: pointer;
	user-select: none;
}

#hero-btn {
	text-decoration: none;
	display: inline-block;
	padding: 8px 30px;
	border-radius: 40px;
	background: rgb(124, 92, 123);
	color: white;
	font-size: 1.5rem;
	z-index: 9;
	transform: translateY(140px);
	transition: background 0.3s;
}

@media (max-width: 768px) {
	#hero-title {
		font-size: 12vw;
	}

	#hero-btn {
		transform: translateY(100px);
	}
}

@media (max-width: 500px) {
	#hero-title {
		font-size: 14vw;
	}

	#hero-btn {
		transform: translateY(80px);
	}
}

#hero-btn:hover {
	background: rgb(175, 131, 173);
}

/*Navigācija*/
.navbar {
	width: 100%;
	background: rgb(53, 42, 56);
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	z-index: 999999;
	top: 0;
	flex-direction: column;
	gap: 20px;
}

.nav-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nav-links li {
	list-style: none;
	margin: 0 20px;
}

.nav-links li a {
	text-decoration: none;
	color: white;
	font-size: 18px;
	letter-spacing: 3px;
	text-transform: capitalize;
	position: relative;
}

.nav-links a::after {
	content: "";
	width: 100%;
	height: 2px;
	bottom: -6px;
	position: absolute;
	background: rgb(200, 49, 102);
	display: block;
	margin: auto;
	border-radius: 5px;
	transform: scaleX(0);
	transition: transform 0.3s;
}

.nav-links li a:hover::after {
	transform: scaleX(1);
}

.nav-links li a:hover {
	color: rgb(200, 49, 102);
	transition: 0.3s;
}

.socials a {
	font-size: 20px;
	color: white;
	margin: 0 10px;
}

.socials a:hover {
	color: rgb(200, 49, 102);
	transition: 0.3s;
}

/*Logo*/
.logo h1 a {
	font-size: 50px;
	color: white;
	text-decoration: none;
}

.logo a:hover {
	color: rgb(200, 49, 102);
	text-decoration: none;
}

/*Visu sadaļu formatējums*/
.portfolio,
.contact,
.start {
	position: relative;
	padding: 50px 20px;
	background: rgb(53, 42, 56);
	animation: transitionIn 1.5s;
}

.about p,
.portfolio p,
.start p {
	font-size: 1.5em;
	color: white;
	font-family: "Poppins", sans-serif;
	text-align: justify;
}

.portfolio h2,
.contact h2,
.about h2,
.start h2 {
	font-size: 3.5em;
	color: white;
	margin-bottom: 0;
	text-align: center;
}

/*Kontaktinfo, portfolio pogas*/
.btn-popup,
#download-btn,
#open-btn {
	padding: 8px 30px;
	border-radius: 40px;
	background: rgb(124, 92, 123);
	color: white;
	font-size: 1.5rem;
	text-decoration: none;
	transition: 0.3s;
}

.btn-popup:hover,
#download-btn:hover,
#open-btn:hover {
	background-color: rgb(200, 49, 102);
	text-decoration: none;
}

.popup .icon-close,
.popup-portfolio .icon-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 45px;
	height: 45px;
	background: rgba(200, 49, 102, 0.8);
	color: #ffffff;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 0 0 0 20px;
	cursor: pointer;
	transition: 0.3s ease-in-out;
	font-size: 20px;
}

.popup .icon-close:hover,
.popup-portfolio .icon-close:hover {
	top: 5px;
	right: 5px;
	border-radius: 20px;
}

/*sākuma lapas paziņojumi*/
.alert {
	color: #ffffff;
	height: 200px;
	width: 100%;
	background-color: rgba(230, 155, 237, 0.146);
	border-radius: 10px;
	padding: 10px;
	font-size: 20px;
	display: flex;
	align-items: middle;
	justify-content: center;
}

.subscribe {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgb(53, 42, 56);
}

.subscribe h2 {
	font-size: 2.5em;
	color: white;
	margin-bottom: 15px;
	text-align: center;
}

.subscribe #subscribe-form {
	display: flex;
}

.subscribe #subscribe-form input[type="email"] {
	display: flex;
	padding: 10px 20px;
	border-radius: 20px 0 0 20px;
	border: none;
	margin: 0;
	outline: none;
	font-size: 16px;
	border: 2px solid transparent;
	transition: 0.4s;
}

.subscribe #subscribe-form input[type="email"]:focus {
	border: 2px solid red;
	box-sizing: border-box;
}

.subscribe #subscribe-form input[type="submit"] {
	display: flex;
	padding: 5px 20px 5px 10px;
	border-radius: 0 20px 20px 0;
	border: none;
	margin: 0;
	outline: none;
	cursor: pointer;
	font-size: 16px;
	background: #c83166;
	color: white;
	transition: 0.4s;
}

.subscribe #subscribe-form input[type="submit"]:hover {
	background: #ea3877;
}

footer {
	position: bottom;
	padding: 50px;
	background: rgb(53, 42, 56);
	color: aliceblue;
	text-align: center;
}

@media (min-width: 640px) {
	.nav-links {
		flex-direction: row;
		gap: 0;
	}
}

@media (min-width: 1024px) {
	#hero,
	#Bhero {
		height: calc(100vh - 60px);
	}

	.navbar {
		height: 60px;
		flex-direction: row;
		gap: 0;
	}

	.portfolio,
	.contact,
	.start {
		padding: 50px;
	}
}
