@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
:root {
	--shiny-button-bg: darkblue;
	--shiny-button-bg-subtle: #1a1818;
	--shiny-button-fg: #ffffff;
	--shiny-button-highlight: gold;
	--shiny-button-highlight-subtle: #8484ff;
	--orange: rgb(209, 93, 26);
}

* {
	margin: 0;
	padding: 0;
	text-decoration: none !important;
	list-style: none;
	scroll-behavior: smooth;
}

body {
	background: rgba(0, 0, 0, 0.3) url("../img/background.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	font-family: "Oswald";
	color: white;
	background-blend-mode: darken;
}

.navbar {
	position: absolute;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	width: 100%;
	box-sizing: border-box;
	align-items: center;
	/*background: linear-gradient(90deg, rgb(42 73 160), rgb(17, 13, 80));*/
}

.navbar a {
	color: white;
}

.navbar .logo {
	font-size: 2em;
	font-weight: bold;
	width: 10em;
}

.navbar .nav-links ul {
	display: flex;
	margin-bottom: 0;
}

.navbar .nav-links ul li {
	margin: 0 25px;
	font-weight: 500;
	font-size: 1.8em;
	display: flex;
	align-items: center;
}

.navbar .nav-links ul li:hover {
	a {
		color: gold;
	}
}

.navbar .nav-links ul li.active a {
	color: white;
	font-weight: 700;
}

.navbar .menu-hamburger {
	display: none;
	position: absolute;
	top: 30px;
	right: 30px;
	width: 35px;
}

section.index {
	text-align: center;
	text-shadow: 3px 2px 3px black;
	display: flex;
	justify-content: center;
	text-align: center;
}

section.index .wrapper {
	position: absolute;
	top: 25vh;
}

section.index .wrapper h2 {
	padding: 1em;
}

section.index h2 > span.important {
	color: gold;
	font-size: 1.1em;
}

section.index .wrapper h1 {
	font-size: 4.5em;
}

section.other .wrapper {
	padding-top: 8em;
}

section.other .wrapper .wrapper-title {
	text-align: center;
	font-weight: 800;
	color: gold;
	font-size: 35px;
	padding-bottom: 1em;
}

.bg-black {
	background-color: black;
}

.section-title {
	color: white;
	opacity: 1;
	text-shadow: 3px 2px 3px black;
}

.section-title h1 .important {
	font-weight: 700;
	font-size: 1.1em;
	text-transform: uppercase;
	color: gold;
}

.opacity-10 {
	background-color: rgb(0, 0, 0, 0.1);
}
.opacity-20 {
	background-color: rgb(0, 0, 0, 0.2);
}
.opacity-30 {
	background-color: rgb(0, 0, 0, 0.3);
}
.opacity-40 {
	background-color: rgb(0, 0, 0, 0.4);
}
.opacity-50 {
	background-color: rgb(0, 0, 0, 0.5);
}
.opacity-60 {
	background-color: rgb(0, 0, 0, 0.6);
}
.opacity-70 {
	background-color: rgb(0, 0, 0, 0.7);
}
.opacity-80 {
	background-color: rgb(0, 0, 0, 0.8);
}
.opacity-90 {
	background-color: rgb(0, 0, 0, 0.9);
}

.height-5 {
	height: 5vh;
}
.height-10 {
	height: 10vh;
}
.height-20 {
	height: 20vh;
}
.height-30 {
	height: 30vh;
}
.height-40 {
	height: 40vh;
}
.height-50 {
	height: 50vh;
}
.height-60 {
	height: 60vh;
}
.height-70 {
	height: 70vh;
}
.height-80 {
	height: 80vh;
}
.height-90 {
	height: 90vh;
}
.height-95 {
	height: 97vh;
}
.height-100 {
	height: 100vh;
}

.text-white {
	color: white;
}

.btn-lg {
	padding: 0.5em 2em 0.5em 2em;
	font-size: 25px;
}

.btn-primary {
	background-image: linear-gradient(
		-140deg,
		rgb(50, 102, 186),
		rgb(228, 122, 30)
	);
	border: 2px solid black;
	transition: all 0.5s ease;
}

.btn-primary:hover {
	border-color: white;
	font-size: 30px;
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	text-align: center;
	justify-content: center;
	gap: 5em;
	padding: 2em 10em;
}

.card {
	--c: darkblue; /* the border color */
	--b: 5px; /* the border thickness*/
	--g: 5px; /* the gap on hover */

	padding: 3em;
	--_g: #0000 25%, var(--c) 0;
	background: conic-gradient(
				from 180deg at top var(--b) right var(--b),
				var(--_g)
			)
			var(--_i, 200%) 0 /200% var(--_i, var(--b)) no-repeat,
		conic-gradient(at bottom var(--b) left var(--b), var(--_g)) 0
			var(--_i, 200%) / var(--_i, var(--b)) 200% no-repeat;
	transition: 0.3s, background-position 0.3s 0.3s;
	transition-duration: 0.25s;
	border: none;
	transition-timing-function: ease-in;
	background-color: white;
	margin-bottom: 2em;
}

.card:hover {
	--_i: 100%;
	transition: 0.3s, background-size 0.3s 0.3s;
}

.card .card-content {
	text-align: center;
}

.card .card-logo {
	text-align: center;
}

.card .card-logo img {
	width: 6em;
}

.card.card-portfolio .card-logo img {
	width: 20em;
	border: 2px solid black;
	box-shadow: 0 0 10px 1px black;
}

.card .card-title {
	text-align: center;
	color: darkblue;
	font-weight: 800;
	padding-top: 1em;
	font-size: 20px;
}

.card.card-portfolio .card-footer {
	font-weight: 800;
	font-size: 1.125em;
	
	a{
		color: darkblue
	}
}

.card .card-footer {
	background-color: white;
	border: 1px solid black;
	border-radius: 1em;
	margin-top: 1em;
	text-align: center;
	cursor: pointer;
	transition: all 0.5s ease;
}

.card .card-footer:hover {
	background-color: lightblue;
	box-shadow: 0 0 10px 1px black;
}

.card .card-footer span.price {
	color: red;
	font-weight: 600;
	font-size: 1.4em;
}

/*------------------------
    Back to Top
--------------------------*/
.rainbow-back-top {
	position: fixed;
	bottom: 50px;
	right: 30px;
	cursor: pointer;
	width: 50px;
	height: 50px;
	line-height: 46px;
	border-radius: 50%;
	text-align: center;
	background-color: gold;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
}
.rainbow-back-top i {
	color: #fff;
	transition: 0.3s;
	font-size: 20px;
	color: darkblue
}
.rainbow-back-top:hover i {
	color: red;
}

@property --gradient-angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

@property --gradient-angle-offset {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

@property --gradient-percent {
	syntax: "<percentage>";
	initial-value: 5%;
	inherits: false;
}

@property --gradient-shine {
	syntax: "<color>";
	initial-value: white;
	inherits: false;
}

.btn-shiny {
	font-weight: 600;
	--animation: gradient-angle linear infinite;
	--duration: 3s;
	--shadow-size: 2px;
	isolation: isolate;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	outline-offset: 4px;
	padding: 1.25rem 2.5rem;
	font-family: inherit;
	font-size: 1.25rem;
	line-height: 1.2;
	border: 1px solid transparent;
	border-radius: 360px;
	color: var(--shiny-button-fg);
	background: linear-gradient(var(--shiny-button-bg), var(--shiny-button-bg))
			padding-box,
		conic-gradient(
				from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
				transparent,
				var(--shiny-button-highlight) var(--gradient-percent),
				var(--gradient-shine) calc(var(--gradient-percent) * 2),
				var(--shiny-button-highlight) calc(var(--gradient-percent) * 3),
				transparent calc(var(--gradient-percent) * 4)
			)
			border-box;
	box-shadow: inset 0 0 0 1px var(--shiny-button-bg-subtle);

	&::before,
	&::after,
	span::before {
		content: "";
		pointer-events: none;
		position: absolute;
		inset-inline-start: 50%;
		inset-block-start: 50%;
		translate: -50% -50%;
		z-index: -1;
	}

	&:active {
		translate: 0 1px;
	}
}

/* Dots pattern */
.btn-shiny::before {
	--size: calc(100% - var(--shadow-size) * 3);
	--position: 2px;
	--space: calc(var(--position) * 2);
	width: var(--size);
	height: var(--size);
	background: radial-gradient(
			circle at var(--position) var(--position),
			white calc(var(--position) / 4),
			transparent 0
		)
		padding-box;
	background-size: var(--space) var(--space);
	background-repeat: space;
	mask-image: conic-gradient(
		from calc(var(--gradient-angle) + 45deg),
		black,
		transparent 10% 90%,
		black
	);
	border-radius: inherit;
	opacity: 0.4;
	z-index: -1;
}

/* Inner shimmer */
.btn-shiny::after {
	--animation: shimmer linear infinite;
	width: 100%;
	aspect-ratio: 1;
	background: linear-gradient(
		-50deg,
		transparent,
		var(--shiny-button-highlight),
		transparent
	);
	mask-image: radial-gradient(circle at bottom, transparent 40%, black);
	opacity: 0.6;
}

.btn-shiny span {
	z-index: 1;

	&::before {
		--size: calc(100% + 1rem);
		width: var(--size);
		height: var(--size);
		box-shadow: inset 0 -1ex 2rem 4px var(--shiny-button-highlight);
		opacity: 0;
	}
}

/* Animate */
.btn-shiny {
	--transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
	transition: var(--transition);
	transition-property: --gradient-angle-offset, --gradient-percent,
		--gradient-shine;

	&,
	&::before,
	&::after {
		animation: var(--animation) var(--duration),
			var(--animation) calc(var(--duration) / 0.4) reverse paused;
		animation-composition: add;
	}

	span::before {
		transition: opacity var(--transition);
		animation: calc(var(--duration) * 1.5) breathe linear infinite;
	}
}

.btn-shiny:is(:hover, :focus-visible) {
	--gradient-percent: 20%;
	--gradient-angle-offset: 95deg;
	--gradient-shine: var(--shiny-button-highlight-subtle);

	&,
	&::before,
	&::after {
		animation-play-state: running;
	}

	span::before {
		opacity: 1;
	}
}

@keyframes gradient-angle {
	to {
		--gradient-angle: 360deg;
	}
}

@keyframes shimmer {
	to {
		rotate: 360deg;
	}
}

@keyframes breathe {
	from,
	to {
		scale: 1;
	}
	50% {
		scale: 1.2;
	}
}

.form__group {
	position: relative;
	padding: 15px 0 0;
	margin-top: 10px;
	width: 50%;
}

.form__field {
	font-family: inherit;
	width: 100%;
	border: 0;
	border-bottom: 2px solid #9b9b9b;
	outline: 0;
	font-size: 1.3rem;
	color: white;
	padding: 7px 0;
	background: transparent;
	transition: border-color 0.2s;

	&::placeholder {
		color: transparent;
	}

	&:placeholder-shown ~ .form__label {
		font-size: 1.3rem;
		cursor: text;
		top: 20px;
	}
}

sup.required-input {
	color: red;
}

.about-me {
	padding-top: 1em;
	padding-bottom: 1em;
	font-size: 1.2em;
	background-color: rgb(242, 242, 242);
	border-radius: 15px;
	color: black;

	.row {
		padding: 20px;
	}

	.profile {
		flex: 1;
		text-align: center;
	}

	.profile img {
		width: 300px;
		height: 300px;
		border-radius: 50%;
		border: 3px solid white;
	}

	.content {
		flex: 2;
		padding-left: 20px;
	}

	h2,
	h3 {
		color: darkblue;
	}

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

	ul.skills li {
		margin: 10px 0;
	}

	ul.skills i {
		color: darkblue;
		margin-right: 8px;
	}

	.cta {
		margin-top: 20px;
		font-weight: bold;
		text-align: center;
	}
}

@media screen and (max-width: 900px) {
	.navbar {
		padding: 3em;
		background: linear-gradient(90deg, rgb(42 73 160), rgb(17, 13, 80));
	}

	.navbar .logo {
		position: absolute;
		top: 20px;
		left: 20px;
		width: 8em;
	}

	.nav-links {
		top: 0;
		left: 0;
		position: fixed;
		background-color: rgba(150, 150, 150, 0.8);
		width: 100%;
		height: 100vh;
		display: flex;
		justify-content: center;
		align-items: center;
		backdrop-filter: blur(7px);
		margin-left: -100%;
		transition: all 0.5s ease;
	}

	.nav-links.mobile-menu {
		margin-left: 0;
		z-index: 1;
	}

	.nav-links ul {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.navbar .menu-hamburger {
		display: block;
		z-index: 1;
	}

	.navbar .nav-links ul li {
		margin: 25px 0;
		font-size: 2em;
	}

	section.index .wrapper {
		position: absolute;
		top: 20vh;
	}

	.divider.divider-index {
		display: none;
	}

	.card.card-portfolio .card-logo img {
		width: 18em;
	}
}

.divider.divider-two {
	border-bottom: 50px solid rgba(0, 0, 0, 0.6);
	border-right: 100vw solid transparent;
}

.divider.divider-one {
	border-top: 50px solid rgba(0, 0, 0, 0.6);
	border-right: 100vw solid transparent;
}

.divider.divider-three {
	border-top: 50px solid rgba(0, 0, 0, 0.6);
	border-left: 100vw solid transparent;
}

.divider.divider-index {
	position: absolute;
	border-bottom: 50px solid rgba(0, 0, 0, 0.6);
	border-left: 100vw solid transparent;
	bottom: 0;
}
