:root {
	--accent: #f9e2af;
	--bg-2: hsl(220, 10%, 17%);
	--bg-3: hsl(220, 10%, 11%);
	--bg-4: hsl(220, 10%, 16%);
	--bg-t-2: hsla(220, 12%, 5%, 0.5);
	--bg-t: hsla(220, 12%, 5%, 0.33);
	--bg: hsl(220, 10%, 8%);
	--border: hsl(0, 0%, 100%);
	--error: #f38ba8;
	--gradient-primary: linear-gradient(90deg, #CF5DEB 0%, #9F3DFA 100%);
	--gradient-secondary: linear-gradient(90deg, var(--txt-1) 0%, var(--txt) 100%);
	--success: #a6e3a1;
	--txt-1: hsl(220, 45%, 90%);
	--txt-2: hsl(220, 14%, 55%);
	--txt-3: hsl(220, 11%, 35%);
	--txt-4: #000000;
	--txt: hsl(220, 30%, 80%);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	color: var(--txt-1);
	font-family: "Source Code Pro", monospace;
	height: 100dvh;
	overflow-x: hidden;
	scroll-behavior: smooth;
	width: 100%;
	-ms-overflow-style: none;
}

footer {
	background-color: transparent !important;
}

a {
	color: var(--txt-1);
	text-decoration: none;
	transition: all 0.3s ease;
}

.linkout, .nodecoration {
	cursor: none;
}

.background-wrapper {
	height: 100%;
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: -1;
}

.background-svg {
	display: block;
	height: 100%;
	width: 100%;
}

.navbar {
	align-items: center;
	background: rgba(23, 24, 34, 0.65);
	backdrop-filter: blur(16px) saturate(180%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
	display: flex;
	justify-content: space-between;
	left: 0;
	padding: 20px 5%;
	position: fixed;
	scrollbar-width: none !important;
	top: 0;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	width: 100%;
	z-index: 1000;
	-webkit-backdrop-filter: blur(16px) saturate(180%);
}

.navbar.scrolled {
	background: rgba(18, 19, 28, 0.85);
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
	padding: 12px 5%;
}

.navbar__logo {
	background: var(--gradient-primary);
	border-radius: 8px;
	color: var(--txt-1);
	font-size: 1.4rem;
	font-weight: 700;
	padding: 4px 12px;
	text-align: left;
	transition: all 0.3s ease;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	width: 100%;
	z-index: 1002;
}

.navbar__logo:hover {
	text-shadow: 0 0 15px rgba(159, 61, 250, 0.4);
	transform: scale(1.05);
}

.navbar__toggle {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	cursor: none;
	display: none;
	height: 46px;
	padding: 10px;
	position: fixed;
	top: 11px;
	transition: all 0.3s ease;
	right: 11px;
	width: 46px;
	z-index: 1003;
}

.navbar__toggle:hover {
	background: rgba(159, 61, 250, 0.2);
	transform: scale(1.05);
}

.navbar__toggle svg {
	fill: var(--txt-1);
	max-height: 26px;
	max-width: 26px;
	min-height: 26px;
	min-width: 26px;
}

.navbar__list {
	align-items: center;
	display: flex;
	gap: 11px;
	list-style: none;
}

.navbar__list li a {
	align-items: center;
	border-radius: 8px;
	color: var(--txt-1);
	cursor: none;
	display: flex;
	font-size: 0.95rem;
	font-weight: 500;
	gap: 8px;
	opacity: 0.85;
	padding: 8px 12px;
	position: relative;
	transition: all 0.25s ease;
}

.navbar__list li a:hover,
.navbar__list li a:focus {
	background: rgba(159, 61, 250, 0.15);
	opacity: 1;
	transform: translateY(-2px);
}

.navbar__list li a.active {
	background: rgba(249, 226, 175, 0.1);
	color: var(--accent);
	font-weight: 600;
	opacity: 1;
}

.navbar__list li a.active .icon {
	fill: var(--accent);
}

.navbar__list li a::after {
	background: var(--gradient-primary);
	border-radius: 2px;
	bottom: -5px;
	content: '';
	height: 2px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	transition: width 0.3s ease;
	width: 0;
}

.navbar__list li a:hover::after,
.navbar__list li a.active::after {
	width: 70%;
}

.icon {
	fill: var(--txt-1);
	max-height: 18px;
	max-width: 18px;
	min-height: 18px;
	min-width: 18px;
	transition: all 0.3s ease;
}

.navbar--open .navbar__list {
	animation: fadeInDown 0.4s ease-out forwards;
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 20px;
	width: 100%;
}

.navbar--closing .navbar__list {
	animation: fadeOutUp 0.4s ease-out forwards;
	display: flex;
	flex-direction: column;
	gap: 0;
	height: 100%;
	width: 100%;
}

.navbar--open .navbar__list li a {
	border-radius: 0;
	justify-content: flex-start;
	padding: 16px 20px;
}

.navbar--open {
	backdrop-filter: blur(25px);
	background: rgba(15, 16, 24, 0.98);
	height: 100vh;
	overflow-y: auto;
}

.navbar--open .navbar__list li a::after {
	display: none;
}

.hero__title {
	animation: fadeInUp 0.8s ease-out !important;
	background: var(--gradient-primary) !important;
	display: inline-block !important;
	margin-bottom: 32px !important;
	-webkit-background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
}

.hero__title h1,
.hero__title h2,
.hero__title h3,
.hero__title span {
	font-size: 4rem !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
}

.hero__roles {
	animation: fadeInUp 0.8s ease-out 0.2s forwards;
	display: inline-block;
	list-style: none;
	margin-bottom: 48px;
	opacity: 0;
	text-align: left;
}

.hero__roles li {
	color: var(--txt-1);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.6;
	margin-bottom: 8px;
	opacity: 0.9;
	padding-left: 20px;
	position: relative;
}

.hero__roles li::before {
	color: #9F3DFA;
	content: '•';
	left: 0;
	position: absolute;
}

.hero__buttons {
	animation: fadeInUp 0.8s ease-out 0.4s forwards;
	display: flex;
	gap: 24px;
	justify-content: center;
	margin-bottom: 80px;
	opacity: 0;
}

.btn {
	align-items: center;
	border: 2px solid transparent;
	border-radius: 32px;
	cursor: none;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 500;
	gap: 8px;
	outline: none;
	padding: 14px 28px;
	transition: all 0.2s ease-in-out;
}

.btn__icon {
	fill: currentColor;
	height: 20px;
	transition: transform 0.3s ease;
	width: 20px;
}

.btn--primary {
	background: var(--gradient-primary);
	color: var(--txt-1);
	overflow: hidden;
	position: relative;
}

.btn--primary:hover {
	transform: scale(1.05);
}

.btn--secondary {
	background: transparent;
	border-color: #CF5DEB;
	color: #CF5DEB;
	position: relative;
}

.btn--secondary:hover {
	background-color: hsla(0, 0%, 100%, 0.1);
}

.btn--secondary:hover .btn__icon {
	transform: rotate(5deg) scale(1.1);
}

.hero__arrow {
	animation: bounce 1s infinite;
	bottom: 20px;
	cursor: none;
	height: 64px;
	left: 50%;
	opacity: 0.8;
	position: absolute;
	transform: translateX(-50%);
	transition: opacity 0.3s ease;
	width: 64px;
}

.hero__arrow:hover {
	opacity: 1;
}

section, .hero {
	align-items: center;
	background-color: var(--bg-4);
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	padding: 120px 48px 80px;
	width: 100%;
}

.section-title {
	background: var(--gradient-secondary);
	display: inline-block;
	font-size: 2.5rem;
	margin-bottom: 48px;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.content {
	max-width: 80rem;
	width: 100%;
}

.about-content {
	color: var(--txt);
	font-size: 1.1rem;
	line-height: 1.8;
	margin: 0 auto;
	opacity: 0.9;
	width: 100%;
}

.about-content p {
	margin-bottom: 24px;
}

#about,
#snippets,
#blog {
	background: var(--bg-t);
	position: relative;
}

#hero,
#projects,
#pictures,
#contact {
	background: transparent;
	position: relative;
}

.projects-grid, .blog-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.project-card {
	background-color: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	padding: 2rem;
	position: relative;
	transition: all 0.4s ease;
}

.project-card:hover {
	border-color: rgba(159, 61, 250, 0.6);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
	transform: translateY(-10px);
}

.project-card.all-projects {
	background: var(--bg-3);
	border: 2px dashed rgba(207, 93, 235, 0.4);
	overflow: hidden;
	position: relative;
}

.project-card.all-projects::before {
	background: linear-gradient(135deg, rgba(159, 61, 250, 0.05) 0%, rgba(207, 93, 235, 0.1) 100%);
	content: '';
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;
}

.project-card.all-projects:hover {
	border-color: rgba(207, 93, 235, 0.8);
}

.project-card__header {
	color: var(--txt-1);
	margin-bottom: 1.2rem;
	position: relative;
	z-index: 2;
}

.project-card__header h2 {
	align-items: center;
	color: var(--txt);
	display: flex;
	font-size: 1.8rem;
	gap: 1rem;
	margin-block-start: 0;
	margin-bottom: 32px;
	-webkit-text-fill-color: var(--txt-1);
}

.project-card__content {
	color: var(--txt-2);
	flex-grow: 1;
	margin-bottom: 1.5rem;
	position: relative;
	z-index: 2;
}

.project-card__content p {
	font-size: 1.05rem;
	line-height: 1.7;
}

.project-card__hashtags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-bottom: 1.5rem;
	position: relative;
	z-index: 2;
}

.hashtag {
	background: rgba(159, 61, 250, 0.2);
	border: 1px solid rgba(159, 61, 250, 0.3);
	border-radius: 20px;
	color: var(--txt-1);
	cursor: none;
	display: inline-block;
	font-size: 0.9rem;
	padding: 0.4rem 1rem;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hashtag:hover {
	background: rgba(159, 61, 250, 0.35);
	transform: scale(1.05);
}

.project-card__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
	position: relative;
	z-index: 2;
}

.project-card__link {
	align-items: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(207, 93, 235, 0.3);
	border-radius: 12px;
	color: var(--txt-1);
	cursor: none;
	display: flex;
	font-weight: 500;
	gap: 1rem;
	padding: 0.8rem 1.2rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.project-card__link:hover {
	background: rgba(207, 93, 235, 0.15);
	color: #fff;
	transform: translateX(5px);
}

.project-card__link svg {
	transition: transform 0.3s ease;
}

.project-card__link:hover svg {
	transform: translateX(8px);
}

.card-icon {
	align-items: center;
	background: rgba(159, 61, 250, 0.25);
	border-radius: 12px;
	color: var(--txt-1);
	display: flex;
	font-size: 1.5rem;
	height: 50px;
	justify-content: center;
	min-width: 50px;
	width: 50px;
}

.all-projects .card-icon {
	background: rgba(207, 93, 235, 0.3);
}

.project-grid-icon {
	bottom: -20px;
	color: var(--txt-1);
	font-size: 8rem;
	opacity: 0.1;
	position: absolute;
	right: -20px;
	transform: rotate(15deg);
	transition: all 0.5s ease;
	z-index: 1;
}

.project-card.all-projects:hover .project-grid-icon {
	opacity: 0.15;
	transform: rotate(0deg) scale(1.1);
}

.blog-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: 0 10px 25px var(--shadow);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: all 0.4s ease;
}

.blog-card:hover {
	border-color: rgba(159, 61, 250, 0.5);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
	transform: translateY(-10px);
}

.card-image {
	display: block;
	height: 200px;
	object-fit: cover;
	width: 100%;
}

.card-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 1.8rem;
}

.card-date {
	color: var(--accent-secondary);
	display: flex;
	font-size: 0.9rem;
	font-weight: 500;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}

.card-title {
	font-size: 1.6rem;
	line-height: 1.4;
	margin-bottom: 1.2rem;
	transition: color 0.3s ease;
}

.blog-card:hover .card-title {
	color: var(--accent-secondary);
}

.card-excerpt {
	color: var(--text-secondary);
	flex-grow: 1;
	line-height: 1.7;
	margin-bottom: 1.8rem;
}

.card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-bottom: 1.8rem;
}

.tag {
	background: rgba(159, 61, 250, 0.15);
	border-radius: 20px;
	color: var(--accent-secondary);
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 500;
	padding: 0.4rem 1rem;
	transition: all 0.3s ease;
}

.tag:hover {
	background: rgba(159, 61, 250, 0.25);
	transform: translateY(-2px);
}

.card-links {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: space-between;
	padding-top: 1rem;
}

.read-more {
	align-items: center;
	color: var(--accent-secondary);
	display: inline-flex;
	font-weight: 500;
	gap: 0.6rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.read-more:hover {
	color: var(--text-primary);
	gap: 1rem;
}

.container {
	max-width: 800px;
	padding: 0 1rem;
	width: 100%;
}

.section__title {
	background: var(--gradient-secondary);
	display: inline-block;
	font-size: 2.5rem;
	margin-bottom: 2rem;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.contact-form {
	backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 1rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	color: var(--txt-1);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 1.25rem;
	-webkit-backdrop-filter: blur(12px);
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	color: var(--txt-1);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.5rem;
	color: var(--txt-1);
    cursor: none;
	font-size: 1rem;
	padding: 0.75rem 1rem;
	transition: background 0.2s ease, border-color 0.2s ease;
	-webkit-backdrop-filter: blur(6px);
}

.form-group input:focus,
.form-group textarea:focus {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--accent);
	outline: none;
}

.checkbox-container {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.97rem;
	color: var(--txt-2);
}

input[type="checkbox"] {
    align-items: center;
    appearance: none;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 4px;
    color: var(--txt-1);
    cursor: none !important;
    display: flex;
    justify-content: center;
    margin: 3px;
	max-width: 32px;
	max-height: 34px;
	min-width: 32px;
	min-height: 34px;
}

input[type="checkbox"]:checked::before {
    content: "✔";
    color: var(--tt);
    display: block;
    font-size: 25px;
    line-height: 20px;
    text-align: center;
}

.checkbox-container a {
	color: var(--txt-2) !important;
}

#message {
	height: 150px;
	max-width: 1237.78 !important;
	min-height: 150px;
	resize: vertical;
	width: 1237.78 !important;
}

.btn-submit {
	all: unset;
}

.btn-submit a:hover {
	transform: scale(1.025);
}

.form-status {
	color: var(--txt-2);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

.btn-primary {
	background-color: #007bff;
	color: white;
}

.btn-secondary {
	background-color: #6c757d;
	color: white;
}

.lang-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: var(--bg-t-2);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

.lang-overlay-content {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.lang-overlay-title {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.lang-overlay-text {
  color: var(--txt-1);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.lang-overlay-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@keyframes bounce {
	0%,
	100% {
		animation-timing-function: cubic-bezier(.8, 0, 1, 1);
		transform: translate(-50%, -25%);
	}
	50% {
		animation-timing-function: cubic-bezier(0, 0, .2, 1);
		transform: translate(-50%, 0%);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeOutUp {
	from {
		max-height: 1000px;
		opacity: 1;
		transform: translateY(0);
	}
	to {
		max-height: 0;
		opacity: 0;
		transform: translateY(-10px);
	}
}

@media (max-width: 1240px) {
	.contact-form {
		padding: 2rem 1.5rem;
	}

	.navbar {
		flex-direction: column;
		justify-content: normal !important;
		padding: 16px 24px;
	}

	.navbar__list {
		display: none;
		width: 100%;
	}

	.navbar__list li {
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		padding: 5px 0px;
		width: 100%;
	}

	.navbar--open .navbar__list {
		display: flex;
		flex-direction: column;
		gap: 0px;
		margin-top: 16px;
	}

	.navbar--open {
		background-color: var(--bg-3);
		flex-direction: column;
	}

	.navbar__list li a {
		border-radius: 10px !important;
		justify-content: center !important;
		padding: 0px 0;
	}

	.projects-grid {
		grid-template-columns: repeat(400px, 1fr);
	}

	.navbar__toggle {
		align-items: center;
		display: flex;
		justify-content: center;
	}

	.section__title {
		font-size: 2rem;
	}
}

@media (max-width: 900px) {
	.navbar__list li a span.mobileHeadText {
		display: inline-block !important;
	}
}

@media (max-width: 768px) {
	section, .hero {
    	padding: 120px 24px 80px;
	}

	.hero {
		padding: 80px 24px 80px;
	}

	.hero__title h1,
	.hero__title h2,
	.hero__title h3,
	.hero__title span {
		font-size: 2rem !important;
	}

	.hero__roles li {
		font-size: 1rem;
	}

	.hero__buttons {
		flex-direction: column;
		gap: 16px;
		margin-bottom: 60px;
		width: 75%;
	}

	.btn {
		justify-content: center;
		width: 100%;
	}

	.hero__arrow {
		bottom: 30px;
		height: 48px;
		width: 48px;
	}

	.navbar {
		align-items: flex-start;
		flex-direction: column;
		padding: 16px 5%;
	}

	.navbar__list {
		display: none;
		padding-top: 20px;
	}

	.navbar--open .navbar__list {
		display: flex;
		padding-bottom: 40px;
	}

	.navbar__list li a {
		border-radius: 0;
		font-size: 1.1rem;
		padding: 16px 20px;
		width: 100%;
	}

	.navbar__list li a .icon {
		max-height: 22px;
		max-width: 22px;
		min-height: 22px;
		min-width: 22px;
	}

	.navbar.scrolled {
		padding: 12px 5%;
	}

	.navbar--open .navbar__logo {
		position: relative;
		z-index: 1002;
	}
}

@media (max-width: 480px) {
	.navbar__toggle, .navbar__list li a, .linkout, .nodecoration {
		cursor: pointer !important;
	}

	.contact-form {
		gap: 1rem;
		padding: 1.5rem 1rem;
	}

	.section__title {
		font-size: 1.8rem;
	}

	.form-group input,
	.form-group textarea {
		font-size: 0.95rem;
		padding: 0.65rem 0.9rem;
	}

	.navbar {
		padding: 14px 4%;
	}

	.navbar__logo {
		font-size: 1.3rem;
		padding: 4px 10px;
	}

	.navbar__toggle {
		height: 36px;
		padding: 5px;
		right: 16px;
		top: 13px;
		width: 36px;
	}

	.navbar__list li a {
		font-size: 1rem;
		padding: 14px 18px !important;
	}

	.navbar--open .navbar__list {
		margin-top: 15px;
	}

	.hero__title h1,
	.hero__title h2,
	.hero__title h3,
	.hero__title span {
		font-size: 1.75rem !important;
	}

	.hero__roles li {
		font-size: 0.95rem;
	}

	.hero__buttons {
		margin-bottom: 40px;
	}

	.btn {
		font-size: 0.9rem;
		padding: 10px 20px;
	}

	.hero__arrow {
		bottom: 44px;
		height: 32px;
		width: 32px;
	}

	.section-title {
		font-size: 1.8rem;
	}

	.projects-grid {
		grid-template-columns: repeat(1, 1fr);
		gap: 1.5rem;
	}

	.project-card {
		padding: 1.5rem 1.25rem;
	}

	.project-card__header h2 {
		font-size: 1.5rem;
	}

	.project-card__content p {
		font-size: 1rem;
	}

	.card-icon {
		font-size: 1.3rem;
		height: 45px;
		width: 45px;
	}

	.section-title {
		font-size: 2rem;
	}

	.card-content {
		padding: 1.5rem;
	}

	.card-title {
		font-size: 1.4rem;
	}
}