:root {
	--primary-purple: #4a0072;
	--light-purple: #8c4bff;
	--light-purple-hover: #a36bff;
	--dark-bg: #0d0112;
	--medium-bg: #1a0326;
	--light-bg: #290f3f;
	--text-primary: #e0e0e0;
	--text-secondary: #b0b0b0;
	--text-headings: #ffffff;
	--text-highlight: var(--light-purple);
	--border-color: #3c1a58;
	--card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	--skill-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
	--font-primary: 'Poppins', sans-serif;
	--font-code: 'Roboto Mono', monospace;
	--header-height-default: 70px;
	--current-header-height: var(--header-height-default);
	--border-radius: 8px;
	--transition-speed: 0.3s;
	--border-animation-speed: 0.25s;
	--animation-duration: 0.6s;
	--primary-purple-rgb: 74, 0, 112;
	--light-purple-rgb: 140, 75, 255;
	--text-secondary-rgb: 176, 176, 176;
	--arrow-size: 50px;
	--arrow-offset: -13px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-primary);
	background-color: var(--dark-bg);
	color: var(--text-primary);
	line-height: 1.7;
	overflow-x: hidden;
	position: relative;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.stars-bg,
.twinkling-bg,
.gradient-overlay-bg {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: -2;
}

.stars-bg {
	background: #000 url('../assets/stars.png') repeat top center;
}

.twinkling-bg {
	background: transparent url('../assets/twinkling.png') repeat top center;
	animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
	from {
		background-position: 0 0;
	}

	to {
		background-position: -10000px 5000px;
	}
}

.gradient-overlay-bg {
	background: linear-gradient(330deg, rgba(var(--primary-purple-rgb), 0.15), rgba(var(--light-purple-rgb), 0.05) 50%, rgba(var(--primary-purple-rgb), 0.15));
	background-size: 300% 300%;
	animation: gradientFlow 25s ease infinite;
	z-index: -1;
	opacity: 0.7;
}

@keyframes gradientFlow {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 600;
	color: var(--text-headings);
	line-height: 1.3;
	margin-bottom: 0.75em;
}

h1 {
	font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
	font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
	font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
	font-size: clamp(1.1rem, 2vw, 1.25rem);
}

p {
	margin-bottom: 1em;
	color: var(--text-secondary);
}

a {
	color: var(--text-highlight);
	text-decoration: none;
	transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
	color: var(--light-purple-hover);
}

.highlight {
	color: var(--text-highlight);
	font-weight: 600;
}

.container {
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 15px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.section-title {
	text-align: center;
	margin-bottom: 2rem;
	font-weight: 700;
	position: relative;
	padding-bottom: 1rem;
	margin-top: 0;
}

.section-title span {
	color: var(--light-purple);
	font-family: var(--font-code);
	margin-right: 0.5em;
	font-size: 0.7em;
	display: block;
	margin-bottom: 0.2em;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--light-purple);
	border-radius: var(--border-radius);
}

.btn {
	display: inline-block;
	padding: 0.8em 1.8em;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 1rem;
	text-align: center;
	border-radius: var(--border-radius);
	transition: all var(--transition-speed) ease;
	cursor: pointer;
	border: 2px solid transparent;
	text-transform: capitalize;
	position: relative;
	overflow: hidden;
}

.btn-primary {
	color: var(--text-headings);
	border-color: var(--light-purple);
	background-image: linear-gradient(45deg, var(--light-purple) 0%, var(--light-purple-hover) 100%);
	background-size: 100%;
	transition: background-position 0.4s ease-in-out, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.btn-primary:hover,
.btn-primary:focus {
	color: var(--text-headings);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(var(--light-purple-rgb), 0.3);
	background-position: -100% 0;
}

.btn-secondary {
	background-color: transparent;
	color: var(--light-purple);
	border: 2px solid var(--light-purple);
}

.btn-secondary:hover,
.btn-secondary:focus {
	background-color: var(--light-purple);
	color: var(--text-headings);
	transform: translateY(-3px);
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 15px 0;
	background-color: transparent;
	transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.site-header.scrolled {
	background-color: rgba(13, 1, 18, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	padding: 10px 0;
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--text-headings);
}

.logo:hover {
	color: var(--light-purple);
}

.main-nav ul {
	list-style: none;
	display: flex;
}

.main-nav li {
	margin-left: 25px;
}

.main-nav a {
	color: var(--text-primary);
	font-weight: 500;
	padding: 5px 0;
	position: relative;
}

.main-nav a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--light-purple);
	transition: width var(--transition-speed) ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
	width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
	color: var(--text-headings);
}

.lang-switcher {
	position: relative;
	margin-left: 25px;
}

.lang-switcher .dropdown-button {
	background: none;
	border: none;
	color: var(--text-primary);
	font-family: var(--font-primary);
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: var(--border-radius);
	transition: background-color var(--transition-speed);
}

.lang-switcher .dropdown-button:hover,
.lang-switcher .dropdown-button[aria-expanded="true"] {
	background-color: var(--medium-bg);
	color: var(--text-headings);
}

.lang-switcher .dropdown-button .arrow {
	font-size: 0.7em;
	margin-left: 5px;
	transition: transform var(--transition-speed);
}

.lang-switcher .dropdown-button[aria-expanded="true"] .arrow {
	transform: rotate(180deg);
}

.lang-switcher .dropdown-menu {
	list-style: none;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background-color: var(--light-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	padding: 5px 0;
	min-width: 120px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.lang-switcher .dropdown-button[aria-expanded="true"]+.dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lang-switcher .dropdown-menu a {
	display: block;
	padding: 8px 15px;
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.lang-switcher .dropdown-menu a:hover {
	background-color: var(--medium-bg);
	color: var(--text-headings);
}

.mobile-nav-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text-headings);
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 1001;
}

.mobile-nav-toggle .close-icon {
	display: none;
}

.mobile-nav-toggle[aria-expanded="true"] .open-icon {
	display: none;
}

.mobile-nav-toggle[aria-expanded="true"] .close-icon {
	display: block;
}

main>section {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-top: var(--current-header-height);
	box-sizing: border-box;
	width: 100%;
	position: relative;
}

.hero-section,
.about-section,
.contact-section {
	height: 100vh;
	overflow: hidden;
}

.projects-section {
	height: auto;
}

main>section>.container {
	width: 100%;
	padding-bottom: 2rem;
}

.hero-section>.container,
.about-section>.container,
.contact-section>.container {
	max-height: calc(100% - 2rem);
	overflow: hidden;
}

.projects-section>.container {
	max-height: none;
	overflow: hidden;
}

.hero-section {
	background: linear-gradient(180deg, rgba(13, 1, 18, 0.4) 0%, rgba(26, 3, 38, 0.9) 70%, var(--dark-bg) 100%);
	text-align: center;
}

.about-section {
	background: linear-gradient(180deg, var(--dark-bg) 0%, var(--medium-bg) 30%, var(--medium-bg) 70%, var(--dark-bg) 100%);
}

.projects-section {
	background-color: var(--dark-bg);
}

.contact-section {
	background: linear-gradient(180deg, var(--dark-bg) 0%, var(--medium-bg) 30%, var(--medium-bg) 70%, var(--dark-bg) 100%);
}

.about-section>.container,
.projects-section>.container,
.contact-section>.container {
	padding-top: 3rem;
}

.hero-section>.container {
	padding-top: 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.hero-title-animated {
	font-size: clamp(3rem, 7vw, 5.5rem);
	font-weight: 700;
	color: var(--text-headings);
	margin-bottom: 0.2em;
	letter-spacing: -1px;
	display: inline-block;
}

.hero-title-animated.reveal span {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px) scale(0.8);
	animation: revealChar 0.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes revealChar {
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.hero-subtitle-animated {
	font-size: clamp(1.2rem, 3vw, 1.75rem);
	color: var(--text-primary);
	margin-bottom: 1em;
	font-weight: 400;
}

.hero-subtitle-animated.reveal-words .hero-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(15px);
	animation: revealWord 0.4s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes revealWord {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-description {
	font-size: clamp(1rem, 2vw, 1.1rem);
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto 2em auto;
}

.hero-section .hero-buttons .btn {
	margin: 0.5em;
}

.scroll-down-indicator {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.scroll-down-indicator a {
	font-size: 1.5rem;
	color: var(--text-secondary);
}

.scroll-down-indicator.is-visible {
	animation: bounceVisible 2s infinite 1.2s;
}

@keyframes bounceVisible {

	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateX(-50%) translateY(0);
	}

	40% {
		transform: translateX(-50%) translateY(-10px);
	}

	60% {
		transform: translateX(-50%) translateY(-5px);
	}
}

.about-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3rem;
}

.about-image {
	flex: 1 1 300px;
	max-width: 350px;
	margin: 0 auto;
}

.about-image img {
	width: 100%;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	border: 3px solid var(--border-color);
}

.about-text {
	flex: 2 1 500px;
}

.about-text h3 {
	color: var(--text-headings);
	margin-bottom: 0.5em;
}

.skills-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

.skills-list li {
	background-color: var(--light-bg);
	padding: 0.7em 1.2em;
	border-radius: var(--border-radius);
	font-size: 0.9rem;
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	box-shadow: var(--skill-shadow);
	position: relative;
	overflow: hidden;
	transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.skills-list li::before,
.skills-list li::after {
	content: '';
	position: absolute;
	background-color: var(--light-purple);
	transition: transform var(--border-animation-speed) ease-out;
}

.skills-list li::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	transform: scaleX(0);
	transform-origin: left;
}

.skills-list li:hover::before {
	transform: scaleX(1);
	transition-delay: 0s;
}

.skills-list li:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(var(--light-purple-rgb), 0.2), 0 0 15px rgba(var(--light-purple-rgb), 0.1);
}

.skills-list li i {
	margin-right: 0.5em;
	color: var(--light-purple);
	transition: transform 0.3s ease;
}

.skills-list li:hover i {
	transform: scale(1.1);
}

.projects-slider-wrapper {
	position: relative;
	width: 100%;
	padding-left: calc(var(--arrow-size) + var(--arrow-offset) / 2);
	padding-right: calc(var(--arrow-size) + var(--arrow-offset) / 2);
}

.projects-slider {
	overflow: hidden;
	width: 100%;
}

.projects-grid {
	display: flex;
	gap: 2rem;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.project-card {
	background-color: var(--medium-bg);
	border-radius: var(--border-radius);
	padding: 2rem;
	border: 1px solid var(--border-color);
	box-shadow: var(--card-shadow);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
	flex: 0 0 auto;
	width: 320px;
}

.project-card .border-animate {
	position: absolute;
	background-color: var(--light-purple);
	transition: all var(--border-animation-speed) linear;
}

.project-card .top-border,
.project-card .bottom-border {
	height: 2px;
	width: 0;
}

.project-card .left-border,
.project-card .right-border {
	width: 2px;
	height: 0;
}

.project-card .top-border {
	top: 0;
	left: 0;
}

.project-card .bottom-border {
	bottom: 0;
	right: 0;
	transform-origin: right;
}

.project-card .left-border {
	bottom: 0;
	left: 0;
	transform-origin: bottom;
}

.project-card .right-border {
	top: 0;
	right: 0;
	transform-origin: top;
}

.project-card:hover .top-border {
	width: 100%;
	transition-delay: 0s;
}

.project-card:hover .right-border {
	height: 100%;
	transition-delay: calc(var(--border-animation-speed) * 1);
}

.project-card:hover .bottom-border {
	width: 100%;
	transition-delay: calc(var(--border-animation-speed) * 2);
}

.project-card:hover .left-border {
	height: 100%;
	transition-delay: calc(var(--border-animation-speed) * 3);
}

.project-card:hover {
	transform: translateY(-10px) scale(1.03);
	box-shadow: 0 10px 35px rgba(var(--light-purple-rgb), 0.2), 0 0 15px rgba(var(--light-purple-rgb), 0.1);
}

.project-card-header {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.project-icon {
	font-size: 2rem;
	color: var(--light-purple);
	margin-right: 1rem;
	min-width: 30px;
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-card-header .project-icon {
	transform: scale(1.2) rotate(-10deg);
}

.project-title {
	font-size: 1.5rem;
	margin-bottom: 0;
	color: var(--text-headings);
}

.project-description {
	font-size: 0.95rem;
	color: var(--text-secondary);
	flex-grow: 1;
	margin-bottom: 1.5rem;
}

.project-code-info {
	margin-top: auto;
	border-top: 1px solid var(--border-color);
	padding-top: 1rem;
}

.project-code-info h4 {
	font-size: 1rem;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.project-code-info ul {
	list-style: none;
	font-size: 0.85rem;
	padding-left: 0;
}

.project-code-info li {
	margin-bottom: 0.3em;
	color: var(--text-secondary);
}

.project-code-info strong {
	color: var(--text-primary);
	font-weight: 500;
}

.code-link {
	font-size: 0.85rem;
	margin-left: 5px;
	color: var(--light-purple);
}

.code-link:hover {
	text-decoration: underline;
	color: var(--light-purple-hover);
}

.code-link i {
	margin-right: 3px;
}

.slider-arrow {
	background-color: rgba(var(--light-purple-rgb), 0.15);
	border: 1px solid var(--border-color);
	color: var(--text-headings);
	font-size: 1.5rem;
	border-radius: 50%;
	cursor: pointer;
	transition: all var(--transition-speed) ease;
	z-index: 10;
	width: var(--arrow-size);
	height: var(--arrow-size);
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-arrow.prev-arrow {
	left: var(--arrow-offset);
}

.slider-arrow.next-arrow {
	right: var(--arrow-offset);
}

.slider-arrow:hover {
	background-color: var(--light-purple);
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 4px 15px rgba(var(--light-purple-rgb), 0.3);
}

.slider-arrow:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	background-color: rgba(var(--text-secondary-rgb), 0.05);
	transform: translateY(-50%) scale(1);
	box-shadow: none;
}

.contact-intro {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 2.5rem auto;
	font-size: 1.1rem;
}

.contact-methods {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

.contact-card {
	background-color: var(--light-bg);
	padding: 2rem;
	border-radius: var(--border-radius);
	text-align: center;
	flex: 1 1 280px;
	max-width: 350px;
	border: 1px solid var(--border-color);
	box-shadow: var(--card-shadow);
	position: relative;
	overflow: hidden;
	transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.contact-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 35px rgba(var(--light-purple-rgb), 0.2), 0 0 15px rgba(var(--light-purple-rgb), 0.1);
}

.contact-card i {
	font-size: 2.5rem;
	color: var(--light-purple);
	margin-bottom: 1rem;
	display: block;
	transition: transform var(--transition-speed) ease;
}

.contact-card:hover i {
	transform: scale(1.1);
}

.contact-card h3 {
	color: var(--text-headings);
	font-size: 1.3rem;
}

.contact-card p {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-bottom: 0;
}

.social-links-contact {
	text-align: center;
}

.social-links-contact p {
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.social-links-contact a {
	font-size: 1.8rem;
	color: var(--text-secondary);
	margin: 0 0.75rem;
	transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-links-contact a:hover {
	color: var(--light-purple);
	transform: scale(1.1);
}

.site-footer-bottom {
	background-color: var(--dark-bg);
	padding: 2rem 0;
	text-align: center;
	border-top: 1px solid var(--border-color);
}

.site-footer-bottom p {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-bottom: 0.3em;
}

.animate-on-scroll {
	opacity: 0;
	transition-property: opacity, transform;
	transition-duration: var(--animation-duration);
	transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.fade-in {
	transform: translateY(20px);
}

.animate-on-scroll.fade-in-delay {
	transform: translateY(20px);
}

.animate-on-scroll.fade-in-up {
	transform: translateY(40px);
}

.animate-on-scroll.slide-in-from-left {
	transform: translateX(-50px);
}

.animate-on-scroll.slide-in-from-right {
	transform: translateX(50px);
}

.animate-on-scroll.slide-in-from-bottom {
	transform: translateY(50px);
}

.animate-on-scroll.pop-in {
	transform: translateY(30px) scale(0.9);
}

.animate-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0) translateX(0) scale(1);
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
	opacity: 1;
	visibility: visible;
}

.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(13, 1, 18, 0.8);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.modal-content-wrapper {
	position: relative;
	max-width: 700px;
	width: 90%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}

.modal-content {
	background-color: var(--medium-bg);
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	padding: 2rem;
	overflow-y: auto;
	transform: scale(0.95) translateY(20px);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	position: relative;
	display: flex;
	flex-direction: column;
}

.modal.is-open .modal-content {
	transform: scale(1) translateY(0);
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0.5rem;
	line-height: 1;
	transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.modal-close:hover {
	color: var(--text-headings);
	transform: rotate(90deg) scale(1.1);
}

.modal-header {
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-color);
}

.modal-header .project-icon {
	font-size: 2.5rem;
	color: var(--light-purple);
	margin-right: 1.5rem;
	min-width: 40px;
}

.modal-project-title-text {
	font-size: clamp(1.8rem, 3vw, 2.2rem);
	color: var(--text-headings);
	margin-bottom: 0;
}

.modal-body {
	flex-grow: 1;
	margin-bottom: 1.5rem;
}

.modal-body #modalProjectDescription {
	font-size: 1rem;
	color: var(--text-primary);
	margin-bottom: 1.5rem;
	line-height: 1.8;
}

.project-code-info-modal h4 {
	font-size: 1.1rem;
	color: var(--text-headings);
	margin-bottom: 0.8rem;
}

.project-code-info-modal ul {
	list-style: none;
	padding-left: 0;
}

.project-code-info-modal li {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-bottom: 0.5em;
	padding-left: 1.5em;
	position: relative;
}

.project-code-info-modal li::before {
	content: "\f101";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	left: 0;
	color: var(--light-purple);
}

.project-code-info-modal strong {
	color: var(--text-primary);
	font-weight: 600;
}

.modal-footer {
	text-align: right;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
	min-width: 150px;
}

.project-card[data-modal-trigger] {
	cursor: pointer;
}

@media (max-width: 1024px) {
	.project-card {
		width: 280px;
	}

	.projects-grid {
		gap: 1.5rem;
	}

	:root {
		--arrow-size: 45px;
		--arrow-offset: 10px;
	}

	.projects-slider-wrapper {
		padding-left: calc(var(--arrow-size) + var(--arrow-offset) / 2);
		padding-right: calc(var(--arrow-size) + var(--arrow-offset) / 2);
	}
}

@media (max-width: 768px) {
	.site-header .container {
		position: relative;
	}

	.main-nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		max-width: 300px;
		height: 100vh;
		background-color: var(--medium-bg);
		padding-top: calc(var(--current-header-height) + 20px);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
		transition: right var(--transition-speed) ease-in-out;
		z-index: 999;
	}

	.main-nav.active {
		right: 0;
	}

	.main-nav ul {
		flex-direction: column;
		align-items: center;
	}

	.main-nav li {
		margin: 0;
		width: 100%;
	}

	.main-nav a {
		display: block;
		padding: 15px 20px;
		text-align: center;
		width: 100%;
	}

	.main-nav a::after {
		left: 50%;
		transform: translateX(-50%);
		bottom: 10px;
	}

	.lang-switcher {
		margin-left: auto;
		margin-right: 15px;
	}

	.mobile-nav-toggle {
		display: block;
	}

	.hero-content {
		padding: 0 10px;
	}

	.hero-title-animated {
		font-size: 2.8rem;
	}

	.hero-subtitle-animated {
		font-size: 1.3rem;
	}

	.about-content {
		flex-direction: column;
		text-align: center;
	}

	.about-text h3 {
		text-align: center;
	}

	.skills-list {
		justify-content: center;
	}

	.projects-grid {
		gap: 1rem;
		width: fit-content;
	}

	.project-card {
		width: 260px;
		padding: 1.5rem;
	}

	:root {
		--arrow-size: 40px;
		--arrow-offset: 5px;
	}

	.slider-arrow {
		font-size: 1.2rem;
	}

	.projects-slider-wrapper {
		padding-left: calc(var(--arrow-size) + var(--arrow-offset) / 2 - 5px);
		padding-right: calc(var(--arrow-size) + var(--arrow-offset) / 2 - 5px);
	}

	.about-section>.container,
	.projects-section>.container,
	.contact-section>.container {
		padding-top: 2rem;
	}
}

@media (max-width: 480px) {
	.project-card {
		width: calc(100vw - (2 * (var(--arrow-size) + var(--arrow-offset))) - 2 * var(--arrow-offset));
		min-width: 240px;
	}

	.projects-grid {
		gap: 0.5rem;
	}

	:root {
		--arrow-size: 35px;
		--arrow-offset: 2px;
	}

	.slider-arrow {
		font-size: 1rem;
	}

	.projects-slider-wrapper {
		padding-left: calc(var(--arrow-size) + var(--arrow-offset) / 2 - 8px);
		padding-right: calc(var(--arrow-size) + var(--arrow-offset) / 2 - 8px);
	}
}