@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");

:root {
	--header-height: 4rem;

	--hue-color: 230;
	--first-color: hsl(var(--hue-color), 80%, 60%);
	--first-color-second: hsl(var(--hue-color), 80%, 50%);
	--first-color-alt: hsl(var(--hue-color), 90%, 65%);
	--first-color-lighter: rgba(111, 167, 239, 0.2);
	--title-color: hsl(var(--hue-color), 100%, 95%);
	--text-color: hsl(var(--hue-color), 20%, 75%);
	--text-color-light: hsl(var(--hue-color), 20%, 60%);
	--input-color: rgba(255, 255, 255, 0.05);
	--body-color: #0b0f19;
	--container-color: rgba(255, 255, 255, 0.05);
	--scroll-bar-color: hsl(var(--hue-color), 12%, 20%);
	--scroll-thumb-color: hsl(var(--hue-color), 12%, 30%);

	--body-font: "Outfit", sans-serif;

	--big-font-size: 2rem;
	--h1-font-size: 1.5rem;
	--h2-font-size: 1.25rem;
	--h3-font-size: 1.125rem;
	--normal-font-size: 0.938rem;
	--small-font-size: 0.813rem;
	--smaller-font-size: 0.75rem;

	--font-medium: 500;
	--font-semi-bold: 600;

	--mb-0-25: 0.25rem;
	--mb-0-5: 0.5rem;
	--mb-0-75: 0.75rem;
	--mb-1: 1rem;
	--mb-1-5: 1.5rem;
	--mb-2: 2rem;
	--mb-2-5: 2.5rem;
	--mb-3: 3rem;

	/*========== z index ==========*/
	--z-tooltip: 10;
	--z-fixed: 100;
	--z-modal: 1000;
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
	:root {
		--big-font-size: 3rem;
		--h1-font-size: 2.25rem;
		--h2-font-size: 1.5rem;
		--h3-font-size: 1.25rem;
		--normal-font-size: 1rem;
		--small-font-size: 0.875rem;
		--smaller-font-size: 0.813rem;
	}
}


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

html {
	scroll-behavior: smooth;
	overflow-x: hidden; /* Prevent any element from causing horizontal scroll */
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background: var(--body-color);
	background-image: radial-gradient(ellipse at top left, rgba(111, 167, 239, 0.15) 0%, transparent 40%),
		radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
	background-attachment: fixed;
	color: var(--text-color);
	overflow-x: hidden; /* Belt-and-suspenders: kill horizontal scroll at body level */
	max-width: 100vw;
}

h1,
h2,
h3,
h4 {
	color: var(--title-color);
	font-weight: var(--font-semi-bold);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

textarea {
	resize: none
}

/*==================== MAIN ====================*/
.main {
	padding-top: var(--header-height); /* Push content below the fixed top header */
}

/* On mobile, the nav is docked at the bottom — add breathing room so it doesn't cover content */
@media screen and (max-width: 767px) {
	.main {
		padding-bottom: calc(var(--header-height) + 1rem);
	}
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
	padding: 2rem 0 4rem;
}

.section__title {
	padding-top: 2rem;
	font-size: var(--h1-font-size);
	color: var(--title-color);
}

.section__subtitle {
	display: block;
	font-size: var(--small-font-size);
	margin-bottom: var(--mb-3);
}

.section__title,
.section__subtitle {
	text-align: center;
}

/*==================== LAYOUT ====================*/
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	/* Ensure container never bleeds beyond the viewport */
	box-sizing: border-box;
}


.grid {
	display: grid;
	row-gap: 1.5rem;
}

.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	right: 0; /* explicit right:0 prevents any sub-pixel overflow */
	z-index: var(--z-fixed);
	background: rgba(11, 15, 25, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
	overflow: hidden; /* Clip any internal element that would widen the header */
}

/*==================== NAV ====================*/
.nav {
	max-width: 968px;
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 auto; /* Center nav inside full-width header */
	padding: 0 1rem; /* Horizontal breathing room on all screen sizes */
	width: 100%; /* Stretch to fill .header, respecting max-width */
}

.nav__logo,
.nav_toggle {
	color: var(--title-color);
	font-weight: var(--font-semi-bold);
}

.nav__logo:hover {
	color: var(--first-color);
}

.nav__toggle {
	font-size: 1.1rem;
	cursor: pointer;
}

.nav__toggle:hover {
	color: var(--first-color);
}

.nav__list {
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

@media screen and (max-width: 767px) {
	.nav__menu {
		position: fixed;
		bottom: 0; /* Anchor the mobile nav to the bottom of the viewport */
		left: 0;
		right: 0; /* Explicit right ensures it never overflows the viewport */
		width: 100%;
		max-width: 100vw; /* Hard cap — never wider than the viewport */
		background-color: var(--body-color);
		padding: 0.5rem 0 0.75rem; /* Comfortable tap targets */
		box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
		border-radius: 1.5rem 1.5rem 0 0;
		transition: transform 0.3s ease, opacity 0.3s ease;
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		z-index: var(--z-fixed);
		box-sizing: border-box;
	}

	.nav__list {
		gap: 0;
		display: grid;
		grid-template-columns: repeat(4, 1fr); /* Equal columns for nav items */
		width: 100%;
	}

	.nav__link {
		padding: 0.5rem 0.25rem;
		width: 100%;
		text-align: center;
	}

}


.nav__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: var(--small-font-size);
	color: var(--title-color);
	font-weight: var(--font-medium);
}

.nav__link:hover {
	color: var(--first-color);
}

.nav__icon {
	font-size: 1.2rem;
}

/* Active link */

/* Change background header */

/*==================== HOME ====================*/
.home__container {
	gap: 1rem;
}

.home__content {
	grid-template-columns: 0.5fr 3fr;
	padding-top: 3.5rem;
	align-items: center;
	column-gap: 1rem;
	max-width: 100%; /* Prevent grid from exceeding container */
}

.home__social {
	display: grid;
	grid-template-columns: max-content;
	row-gap: 1rem;
}

.home__social-icon {
	font-size: 1.25rem;
	color: var(--first-color);
}

.home__social-icon:hover {
	color: var(--first-color-alt);
}

.home__img {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: min(280px, 75vw); /* Clamp image to 75% of viewport on small screens */
	height: min(280px, 75vw);
	margin: 0 auto;
}

.home__img::before {
	content: '';
	position: absolute;
	width: 110%;
	height: 110%;
	background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
	border-radius: 50%;
	z-index: -1;
	animation: pulseGlow 4s ease-in-out infinite alternate;
	filter: blur(20px);
}

.home__profile-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
	border: 3px solid rgba(255, 255, 255, 0.1);
	animation: morph 8s ease-in-out infinite, float 6s ease-in-out infinite;
	transition: all 0.4s ease;
}

.home__profile-img:hover {
	border-radius: 50%;
	transform: scale(1.05) translateY(-5px);
	box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.4);
	border-color: rgba(139, 92, 246, 0.5);
}

@keyframes morph {
	0% {
		border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
	}

	50% {
		border-radius: 30% 70% 70% 30% / 50% 60% 30% 60%;
	}

	100% {
		border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
	}
}

@keyframes float {
	0% {
		transform: translateY(0px);
	}

	50% {
		transform: translateY(-15px);
	}

	100% {
		transform: translateY(0px);
	}
}

@keyframes pulseGlow {
	0% {
		transform: scale(1);
		opacity: 0.6;
	}

	100% {
		transform: scale(1.1);
		opacity: 1;
	}
}

.home__data {
	grid-column: 1/3;
}

.home__title {
	font-size: var(--big-font-size);
	font-weight: 800;
	background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -1px;
	line-height: 1.1;
	margin-bottom: 0.5rem;
}

.home__subtitle {
	font-size: var(--h3-font-size);
	color: var(--text-color);
	font-weight: var(--font-medium);
	margin-bottom: var(--mb-0-75);
}

.home__description {
	margin-bottom: var(--mb-2);
}

.home__scroll-button {
	color: var(--first-color);
	transition: 0.3s;
}

.home__scroll-button:hover {
	transform: translateY(0.25rem);
}

.home__scroll-mouse {
	font-size: 2rem;
}

.home__scroll-name {
	font-size: var(--small-font-size);
	color: var(--title-color);
	font-weight: var(--font-medium);
	margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
	font-size: 1.25rem;
}

/*==================== BUTTONS ====================*/

.button {
	display: inline-block;
	background-color: var(--first-color);
	color: #fff;
	padding: 1rem;
	border-radius: 0.5rem;
	font-weight: var(--font-medium);
}

.button:hover {
	color: var(--first-color-alt);
}

.button__icon {
	font-size: 1.25rem;
	margin-left: var(--mb-0-5);
	transition: 0.3s;
}

.button--white {
	background-color: #fff;
	color: var(--first-color);
}

.button-white:hover {
	background-color: #fff;
}

.button--flex {
	display: inline-flex;
	align-items: center;
}

.button--small {
	padding: 0.75rem 1rem;
	margin-top: 5px;
}

.button--link {
	padding: 0;
	background-color: transparent;
	color: var(--first-color);
}

/*==================== ABOUT ====================*/


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

.about__img {
	width: 265px;
	border-radius: 1rem;
	justify-self: center;
	align-items: center;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	transition: box-shadow 0.5s ease;
}

.about__img:hover {
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
		inset 0 0 0 1px rgba(255, 255, 255, 0.1),
		0 0 22px 6px rgba(139, 92, 246, 0.28);
}

.about__description {
	text-align: justify;
	margin-bottom: var(--mb-2-5);
}

.about__info {
	display: flex;
	justify-content: space-evenly;
	margin-bottom: var(--mb-2-5);
}

.about__info-title {
	font-size: var(--h2-font-size);
	font-weight: var(--font-semi-bold);
	color: var(--title-color);
}

.about__info-name {
	font-size: var(--smaller-font-size);
}

.about__info-title,
.about__info-name {
	display: block;
	text-align: center;
}

.about__buttons {
	display: flex;
	justify-content: center;
}

.about__description span a {
	font-weight: bold;
}

@media screen and (max-width: 767px) {
	.about__img {
		display: flex;
		justify-content: center;
	}
}

/*==================== SKILLS ====================*/
.skills__container {
	row-gap: 0;
}

.skills__content {
	margin-bottom: 10px;
}

.skills__header {
	display: flex;
	align-items: center;
	margin-bottom: var(--mb-2-5);
	cursor: pointer;
}

.skills__icon,
.skills__arrow {
	font-size: 2rem;
	color: var(--first-color);
}

.skills__icon {
	margin-right: var(--mb-0-75);
}

.skills__title {
	font-size: var(--h3-font-size);
}

.skills__subtitle {
	font-size: var(--small-font-size);
	color: var(--text-color);
}

.skills__arrow {
	margin-left: auto;
	transition: 0.4s;
}

.skills__list {
	row-gap: 1.5rem;
	padding-left: 2.7rem;
}

.skills__titles {
	display: flex;
	justify-content: space-between;
	margin-bottom: var(--mb-0-5);
}

.skills__name {
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
}

.skills__bar,
.skills__percentage {
	height: 5px;
	border-radius: 0.25rem;
}

.skills__bar {
	background-color: var(--first-color-lighter);
}

.skills__percentage {
	display: block;
	background-color: var(--first-color);
}

.skills__react {
	width: 70%;
}

.skills__js {
	width: 70%;
}

.skills__node {
	width: 50%;
}

.skills__express {
	width: 45%;
}

.skills__rest {
	width: 60%;
}

.skills__mysql {
	width: 50%;
}

.skills__git {
	width: 80%;
}

.skills__github {
	width: 80%;
}

.skills__vscode {
	width: 85%;
}

.skills__postman {
	width: 70%;
}

.skills__figma {
	width: 65%;
}

.skills__vite {
	width: 65%;
}

.skills__cursor {
	width: 65%;
}

.skills__copilot {
	width: 70%;
}

.skills__claude {
	width: 75%;
}

.skills__nextjs {
	width: 70%;
}

.skills__typescript {
	width: 70%;
}

.skills__redux {
	width: 75%;
}

.skills__tailwind {
	width: 85%;
}

.skills__gsap {
	width: 65%;
}

.skills__ionic {
	width: 70%;
}

.skills__close .skills__list {
	height: 0;
	overflow: hidden;
}

.skills__open .skills__arrow {
	transform: rotate(-180deg);
}

/*==================== QUALIFICATION ====================*/
.qualification__tabs {
	display: flex;
	justify-content: space-evenly;
	margin-bottom: var(--mb-2);
}

.qualification__button {
	font-size: var(--h3-font-size);
	font-weight: var(--font-medium);
	cursor: pointer;
}


.qualification__icon {
	font-size: 1.8rem;
	margin-right: var(--mb-0-25);
}

.qualification__data {
	display: grid;
	grid-template-columns: 1fr max-content 1fr;
	column-gap: 1.5rem;
	max-width: 100%; /* Prevent overflow on narrow viewports */
	overflow: hidden;
}

.qualification__title {
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
}

.qualification__subtitle {
	display: inline-block;
	font-size: var(--small-font-size);
	margin-bottom: var(--mb-1);
}

.qualification__calendar {
	font-size: var(--smaller-font-size);
	color: var(--text-color-light);
}

.qualification__rounder {
	display: inline-block;
	width: 13px;
	height: 13px;
	background-color: var(--first-color);
	border-radius: 50%;
}

.qualification__line {
	display: block;
	width: 1px;
	height: 100%;
	background-color: var(--first-color);
	transform: translate(6px, -7px);
}

.qualification[data-content] {
	display: none;
}

.qualification__active[data-content] {
	display: block;
}

.qualification__button.qualification__active {
	color: var(--first-color);
}


/*==================== PORTFOLIO ====================*/
.portfolio {
	padding-top: 4rem;
}

.portfolio__container {
	overflow: hidden;
}

.portfolio__content {
	padding: 0 1.5rem;
}

.portfolio__img {
	width: 265px;
	border-radius: 0.5rem;
	justify-self: center;
}

.portfolio__title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-0-5);
}

.portfolio__description {
	margin-bottom: var(--mb-0-75);
}

.portfolio__button:hover .button-icon {
	transform: translateX(0.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
	content: "";
}

.swiper-portfolio-icon {
	font-size: 2rem;
	color: var(--first-color);
}

.swiper-button-prev {
	left: -0.5rem;
}

.swiper-button-next {
	right: -0.5rem;
}

.swiper-container-horizontal>.swiper-pagination-bullets {
	bottom: -2.5rem;
}

.swiper-pagination-bullet-active {
	background-color: var(--first-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
	outline: none;
}

/*==================== CONTACT ME ====================*/
.contact {
	padding-top: 4rem;
}

.contact_container {
	max-width: 800px;
}

.contact__information {
	display: flex;
	margin-bottom: var(--mb-2)
}

.contact__icon {
	font-size: 2rem;
	color: var(--first-color);
	margin-right: var(--mb-0-75)
}

.contact__title {
	font-size: var(--h3-font-size);
	font-weight: var(--font-medium)
}

.contact__subtitle {
	font-size: var(--small-font-size);
	color: var(--text-color-light)
}

.contact__content {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: .75rem 1rem .25rem;
	box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.4), inset -2px -2px 5px rgba(255, 255, 255, 0.05);
	transition: all 0.3s ease;
}

.contact__content:focus-within {
	border-color: var(--first-color);
	box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.2);
}

.contact__label {
	font-size: var(--smaller-font-size);
	color: var(--title-color);
}

.contact__input {
	width: 100%;
	background-color: transparent;
	color: var(--title-color);
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	border: none;
	outline: none;
	padding: .25rem .5rem .5rem 0;
}

#msg {
	color: #61b752;
	display: block;
	margin-top: -20px;
}

/*==================== FOOTER ====================*/
.footer {
	padding-top: 2rem;

}

.footer__container {

	row-gap: 1.5rem;

}

.footer__bg {
	background: rgba(11, 15, 25, 0.9);
	backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding: 2rem 0 3rem;
	text-align: center;
	justify-content: center;
	display: flex;
	color: #fff;
	box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
}

.footer__title {
	font-size: var(--h1-font-size);
	margin-bottom: var(--mb-0-25);
}

.footer__subtitle {
	font-size: var(--small-font-size);
}

.footer__links {
	display: flex;
	flex-direction: row;
	justify-content: center;
	column-gap: 1.5rem;
}

.footer__link:hover {
	color: aquamarine;
}

.footer__social {
	font-size: 1.25rem;
	margin-right: var(--mb-1-5);
}

.footer__social:hover {
	color: var(--first-color-lighter)
}

.footer__copy {
	font-size: var(--smaller-font-size);
	text-align: center;
	color: var(--text-color-light);
	margin-top: var(--mb-3);
}

.footer__title,
.footer__subtitle,
.footer__link,
.footer__social {
	color: white;
}

#copyright {
	color: white;
}


/* portfolio card */
.portfolio__contatiner {
	display: flex;
	padding: 2rem;
	flex-wrap: wrap;


}

.card {
	margin: 2%;
	width: 20%;
	border: 2px solid black;
	padding: 3%;
	border-radius: 10%;
}

.card img {
	width: 100%;
}


/* NOTE: The generic `section { padding }` rule was removed.
   All sections use the structured `.section` class for consistent spacing.
   A blanket 20px on every section was conflicting with the design system
   and causing sections to be wider than the viewport on mobile. */

#filter-bar {
	margin-bottom: 20px;
}

#projects-container {
	margin-top: 2rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
	row-gap: 3rem;
	column-gap: 2rem;
	border-radius: 20px;
	perspective: 1500px;
	max-width: 100%; /* Never allow the grid to exceed its parent */
	width: 100%;
}

.project {
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	padding: 1.5rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
	overflow: hidden;
	height: 100%;
	transform-style: preserve-3d;
}

.project::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #6FA7EF, #8b5cf6);
	background-size: 300% 100%;
	animation: gradientShift 3s ease infinite;
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.readmore {
	color: #6FA7EF;
}

.readmore:hover {
	color: #046cf4;
	cursor: pointer;
}

.filter-btn {
	color: var(--title-color);
	padding: 8px 22px;
	border-radius: 10px;
	border: 2px solid black;
	box-shadow: 0px 0px 6px black;
	font-size: 14px;
}




/*==================== MEDIA QUERIES ====================*/
/* For extra-small devices (≤350px) */
@media screen and (max-width: 350px) {
	.container {
		padding: 0 0.75rem; /* Tighter padding on very small screens */
	}

	.nav__list {
		column-gap: 0;
	}

	.nav__link {
		font-size: 0.65rem; /* Slightly smaller font for very narrow screens */
	}

	.home__content {
		grid-template-columns: .25fr 3fr;
	}

	.home__img {
		width: min(200px, 70vw);
		height: min(200px, 70vw);
	}

	.skills__title {
		font-size: var(--normal-font-size);
	}

	.qualification__data {
		gap: .5rem;
		column-gap: 0.75rem;
	}

}

/* For medium devices (tablets ≥768px) */
@media screen and (min-width: 768px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}

	body {
		margin: 0;
	}

	.section {
		padding: 6rem 0 2rem;
	}

	.section__subtitle {
		margin-bottom: 4rem;
	}

	.header {
		top: 0;
		bottom: initial;
	}

	/* On tablet+, the nav menu is inline (not bottom-docked) */
	.nav__menu {
		position: static;
		width: auto;
		max-width: none;
		background-color: transparent;
		padding: 0;
		box-shadow: none;
		border-radius: 0;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		transition: none;
	}

	.nav__list {
		display: flex;
		flex-direction: row;
		gap: 2rem;
		width: auto;
	}

	.nav__link {
		flex-direction: row;
		padding: 0;
		width: auto;
	}

	.nav__icon {
		display: none; /* Hide icons in desktop nav, show text only */
	}

	.home__content {
		grid-template-columns: max-content 1fr 1fr;
	}

	.home__data {
		grid-column: initial;
	}

	.home__img {
		order: 1;
		justify-self: center;
		width: 280px;
		height: 280px;
	}

	.about__container,
	.skills__container,
	.portfolio__content,
	.project__container {
		grid-template-columns: 1fr 1fr;
	}

	.about__container {
		column-gap: 2rem;
		align-items: center;
	}

	.footer__container {
		grid-template-rows: 1fr 1fr;
	}

	.qualification__sections {
		display: grid;
		grid-template-columns: .6fr;
		justify-content: center;
	}

	.portfolio__content {
		column-gap: 1rem;
	}

	.contact__container > div {
		display: flex;
		justify-content: space-between;
	}
}


@media only screen and (max-width: 400px) {
	.portfolio {
		padding: 1rem 0.5rem;
	}

	/* On very small screens ensure project cards don't overflow */
	.project {
		padding: 1rem;
	}
}

.active {
	color: #6E57E2;
}








@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.project:hover {
	transform: perspective(1000px) translate3d(0, -15px, 20px) rotateX(2deg) rotateY(-2deg);
	-webkit-transform: perspective(1000px) translate3d(0, -15px, 20px) rotateX(2deg) rotateY(-2deg);
	box-shadow:
		-20px 20px 30px rgba(0, 0, 0, 0.3),
		0 0 20px rgba(111, 167, 239, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.05);
}

.project:hover::before {
	transform: scaleX(1);
}

.project img {
	border-radius: 16px;
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease, border-color 0.5s ease;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.2);
	padding: 0;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	will-change: transform, opacity;
}

.project:hover img {
	transform: scale3d(1.08, 1.08, 1.08) translateZ(20px);
	-webkit-transform: scale3d(1.08, 1.08, 1.08) translateZ(20px);
	border-color: #8b5cf6;
	box-shadow: 0 15px 35px -5px rgba(111, 167, 239, 0.4);
}

.project h3 {
	font-size: 1.2rem;
	font-weight: 700;
	background: linear-gradient(135deg, #ffffff, #a5b4fc);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin: 0.5rem 0;
	line-height: 1.3;
}

.project .description {
	color: #94a3b8;
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0.8rem 0 1.2rem 0;
	font-weight: 400;
}


.project-description {
	margin: 1rem 0;
	text-align: left;
}

.description-text,
.description-full {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #666;
	margin-bottom: 0.5rem;
}

.read-more-btn {
	background: none;
	border: none;
	color: #007bff;
	cursor: pointer;
	font-size: 0.9rem;
	padding: 0;
	transition: color 0.3s;
}

.read-more-btn:hover {
	text-decoration: underline;
	color: #0056b3;
}

.readmore {
	background: linear-gradient(135deg, #6FA7EF, #046cf4);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
	font-size: 0.9rem;
	position: relative;
}

.readmore::before {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(135deg, #6FA7EF, #046cf4);
	transition: width 0.3s ease;
}

.readmore:hover::before {
	width: 100%;
}

.readmore:hover {
	cursor: pointer;
	transform: translateX(4px);
}

.readmore::after {
	content: '▼';
	font-size: 0.7rem;
	transition: transform 0.3s ease;
	color: #6FA7EF;
}

.readmore.expanded::after {
	transform: rotate(180deg);
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.2rem;
	background: linear-gradient(135deg, #6FA7EF 0%, #8b5cf6 100%);
	background-size: 200% 100%;
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	margin-top: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	position: relative;
	overflow: hidden;
	transform-style: preserve-3d;
}

.button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.5s ease;
}

.button:hover {
	background-position: 100% 0;
	transform: translateY(-3px);
	box-shadow: 0 15px 35px -5px rgba(111, 167, 239, 0.5);
	color: white;
	text-decoration: none;
}

.button:hover::before {
	left: 100%;
}

.button__icon {
	transition: transform 0.3s ease;
}

.button:hover .button__icon {
	transform: translateX(6px);
}

/* Download CV Premium Button */
.btn-download {
	box-shadow: 0 4px 15px -5px rgba(139, 92, 246, 0.4);
}

.btn-download:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px -5px rgba(139, 92, 246, 0.5);
}

.btn-download:hover .button__icon {
	transform: translateY(4px) !important;
	/* Download icon moves down instead of right */
}

.filter-btn {
	color: var(--title-color);
	padding: 0.8rem 1.8rem;
	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	margin: 0.3rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.3);
	transform-style: preserve-3d;
}

.filter-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #6FA7EF, #8b5cf6);
	transition: left 0.4s ease;
	z-index: -1;
}

.filter-btn:hover {
	color: white;
	border-color: rgba(255, 255, 255, 0.3);
	transform: perspective(500px) translate3d(0, -5px, 10px) rotateX(10deg);
	box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.filter-btn:hover::before {
	left: 0;
}

.filter-btn.active {
	background: linear-gradient(135deg, #6FA7EF, #8b5cf6);
	color: white;
	border-color: transparent;
	box-shadow: 0 8px 20px -5px rgba(139, 92, 246, 0.5);
	transform: perspective(500px) translateZ(10px);
}

/* Portfolio container */
.portfolio {
	padding: 3rem 1rem;
	max-width: 1350px;
	margin: 0 auto;
	/* background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); */
	border-radius: 30px;
	/* Prevent visual blurring at the rounded corners by clipping overflowing children */
	overflow: hidden;
	/* Hint to the compositor to use its own layer for smoother transforms */
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.filter-container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
	gap: 0.5rem;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 20px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1320px) {
	#projects-container {
		justify-content: center;
	}
}

@media (max-width: 768px) {
	#projects-container {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 1rem;
	}

	.portfolio {
		padding: 2rem 1rem;
	}

	.project {
		padding: 1.2rem;
	}

	.filter-container {
		gap: 0.3rem;
		padding: 0.8rem;
	}

	.filter-btn {
		padding: 0.6rem 1.2rem;
		font-size: 0.85rem;
	}
}

.project {
	animation: slideInUp 0.6s ease-out;
	/* Reduce subpixel blur on hover/transform */
	will-change: transform, opacity;
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

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

.loading {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 200px;
	font-size: 1.2rem;
	font-weight: 600;
	color: #6b7280;
	background: linear-gradient(145deg, #ffffff, #f8fafc);
	border-radius: 20px;
	box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.1);
}

.project.web::after {
	content: '';
	position: absolute;
	top: 20px;
	right: 20px;
	width: 8px;
	height: 8px;
	background: #10b981;
	border-radius: 50%;
	box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.project.mobile::after {
	content: '';
	position: absolute;
	top: 20px;
	right: 20px;
	width: 8px;
	height: 8px;
	background: #f59e0b;
	border-radius: 50%;
	box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.project.design::after {
	content: '';
	position: absolute;
	top: 20px;
	right: 20px;
	width: 8px;
	height: 8px;
	background: #ef4444;
	border-radius: 50%;
	box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.project.backend::after {
	content: '';
	position: absolute;
	top: 20px;
	right: 20px;
	width: 8px;
	height: 8px;
	background: #8b5cf6;
	border-radius: 50%;
	box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/*==================== PASSWORD PROTECTED PROJECTS ====================*/

/* Override the green dot for protected projects */
.project--protected.web::after {
	background: #f59e0b;
	box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* Protected badge - top of card */
.project-protected-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
	border: 1px solid rgba(245, 158, 11, 0.3);
	color: #fbbf24;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 50px;
	margin-bottom: 0.8rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	animation: protectedPulse 3s ease-in-out infinite;
}

.project-protected-badge svg {
	flex-shrink: 0;
}

@keyframes protectedPulse {

	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
	}

	50% {
		box-shadow: 0 0 12px 2px rgba(245, 158, 11, 0.15);
	}
}

/* Image wrapper for overlay positioning */
.project-image-wrapper {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
}

/* Protected image overlay */
.project-protected-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(15, 23, 42, 0.65));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	border-radius: 16px;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.project--protected:hover .project-protected-overlay {
	opacity: 1;
}

.project-protected-overlay svg {
	color: #fbbf24;
	filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.project-protected-overlay span {
	color: #fbbf24;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Project metadata (subtitle + duration) */
.project-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0.3rem 0 0.2rem;
}

.project-subtitle {
	font-size: 0.78rem;
	color: #94a3b8;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.05);
	padding: 3px 10px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-duration {
	font-size: 0.75rem;
	color: #64748b;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.project-duration i {
	font-size: 0.85rem;
	color: #6FA7EF;
}

/* Restricted Access button */
.project-protected-btn {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1)) !important;
	border: 1px solid rgba(245, 158, 11, 0.3) !important;
	color: #fbbf24 !important;
	cursor: pointer !important;
	box-shadow: 0 4px 15px -5px rgba(245, 158, 11, 0.2) !important;
	transition: all 0.3s ease;
}

.project-protected-btn:hover {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 191, 36, 0.2)) !important;
	box-shadow: 0 6px 20px -5px rgba(245, 158, 11, 0.3) !important;
	transform: translateY(-2px);
}

.project-protected-btn svg {
	flex-shrink: 0;
}

/* Live Demo button */
.project-demo-btn {
	background: linear-gradient(135deg, rgba(111, 167, 239, 0.15), rgba(139, 92, 246, 0.1)) !important;
	border: 1px solid rgba(111, 167, 239, 0.3) !important;
	color: #a5b4fc !important;
	cursor: pointer !important;
	box-shadow: 0 4px 15px -5px rgba(111, 167, 239, 0.2) !important;
	transition: all 0.3s ease;
}

.project-demo-btn:hover {
	background: linear-gradient(135deg, rgba(111, 167, 239, 0.25), rgba(139, 92, 246, 0.2)) !important;
	box-shadow: 0 6px 20px -5px rgba(111, 167, 239, 0.3) !important;
	border-color: rgba(139, 92, 246, 0.5) !important;
	color: #ffffff !important;
	transform: translateY(-2px);
}

.project-demo-btn svg {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.project-demo-btn:hover svg {
	transform: translate(2px, -2px);
}

/* Protected project border accent on hover */
.project--protected:hover {
	border-color: rgba(245, 158, 11, 0.2);
}

.project--protected::before {
	background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b) !important;
}

/* Light theme adjustments */
.light-theme .project-protected-badge {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.08));
	color: #d97706;
	border-color: rgba(217, 119, 6, 0.3);
}

.light-theme .project-protected-overlay svg {
	color: #d97706;
}

.light-theme .project-protected-overlay span {
	color: #d97706;
}

.light-theme .project-protected-btn {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.08)) !important;
	border-color: rgba(217, 119, 6, 0.3) !important;
	color: #d97706 !important;
}

.light-theme .project-subtitle {
	color: #475569;
	background: rgba(0, 0, 0, 0.04);
	border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .project-duration {
	color: #64748b;
}

.light-theme .project-demo-btn {
	background: linear-gradient(135deg, rgba(111, 167, 239, 0.15), rgba(139, 92, 246, 0.1)) !important;
	border: 1px solid rgba(111, 167, 239, 0.4) !important;
	color: #3b82f6 !important;
}

.light-theme .project-demo-btn:hover {
	color: #1d4ed8 !important;
}

.project:focus-within {
	/* Removed outline to prevent border appearing after clicking */
	outline: none;
}

.button:focus,
.filter-btn:focus,
.readmore:focus {
	/* Removed outline to prevent border appearing after clicking */
	outline: none;
}

html {
	scroll-behavior: smooth;
}

.project:hover .project h3 {
	transform: translateX(5px);
	transition: transform 0.3s ease;
}

.project.web::after,
.project.mobile::after,
.project.design::after,
.project.backend::after {
	animation: pulse 2s infinite;
}

.about__container .link {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-decoration: none;
	font-weight: 600;
	padding: 2px 4px;
	position: relative;
	transition: all 0.3s ease;
}

.about__container .link:hover {
	transform: scale(1.05);
}

.about__container .link:before {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	transition: width 0.3s ease;
}

.about__container .link:hover:before {
	width: 100%;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.2);
		opacity: 0.7;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}


.button__spinner {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/*==================== LIGHT THEME ====================*/
body.light-theme {
	--hue-color: 230;
	--first-color: hsl(var(--hue-color), 80%, 55%);
	--first-color-second: hsl(var(--hue-color), 80%, 45%);
	--first-color-alt: hsl(var(--hue-color), 90%, 65%);
	--first-color-lighter: rgba(111, 167, 239, 0.4);
	--title-color: hsl(var(--hue-color), 80%, 15%);
	--text-color: hsl(var(--hue-color), 20%, 30%);
	--text-color-light: hsl(var(--hue-color), 20%, 45%);
	--input-color: rgba(255, 255, 255, 0.5);
	--body-color: #f8fafc;
	--container-color: rgba(255, 255, 255, 0.7);
	background-image: radial-gradient(ellipse at top left, rgba(111, 167, 239, 0.1) 0%, transparent 40%),
		radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

body.light-theme .header {
	background: rgba(255, 255, 255, 0.8);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .footer__bg {
	background: rgba(255, 255, 255, 0.8);
	color: var(--title-color);
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
}

body.light-theme .footer__title,
body.light-theme .footer__subtitle,
body.light-theme .footer__link,
body.light-theme .footer__social,
body.light-theme #copyright {
	color: var(--title-color);
}

body.light-theme .project {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
}

body.light-theme .project:hover {
	box-shadow:
		-20px 20px 30px rgba(0, 0, 0, 0.1),
		0 0 20px rgba(111, 167, 239, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 1);
	background: rgba(255, 255, 255, 0.7);
}

body.light-theme .readmore {
	color: var(--first-color-second);
}

body.light-theme .filter-btn {
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
}

body.light-theme .filter-btn:hover {
	color: var(--first-color-second);
	border-color: rgba(0, 0, 0, 0.1);
	box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.light-theme .filter-btn.active {
	color: white;
}

body.light-theme .filter-container {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .contact__content {
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.03), inset -2px -2px 5px rgba(255, 255, 255, 1);
	transition: all 0.3s ease;
}

body.light-theme .contact__content:focus-within {
	border-color: #6FA7EF;
	box-shadow: 0 0 0 3px rgba(111, 167, 239, 0.2), inset 1px 1px 3px rgba(0, 0, 0, 0.02);
}

body.light-theme .contact__input::placeholder {
	color: #64748b;
}

body.light-theme .button {
	color: white;
}

body.light-theme .btn-download {
	box-shadow: 0 4px 15px -5px rgba(111, 167, 239, 0.4);
}

body.light-theme .btn-download:hover {
	box-shadow: 0 8px 25px -5px rgba(111, 167, 239, 0.6);
}

body.light-theme .project h3 {
	background: linear-gradient(135deg, #1e293b, #475569);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.project.mobile::after {
	content: '';
	position: absolute;
	top: 20px;
	right: 20px;
	width: 8px;
	height: 8px;
	background: #f59e0b;
	border-radius: 50%;
	box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.project.design::after {
	content: '';
	position: absolute;
	top: 20px;
	right: 20px;
	width: 8px;
	height: 8px;
	background: #ef4444;
	border-radius: 50%;
	box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.project.backend::after {
	content: '';
	position: absolute;
	top: 20px;
	right: 20px;
	width: 8px;
	height: 8px;
	background: #8b5cf6;
	border-radius: 50%;
	box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.project:focus-within {
	outline: none;
}

.button:focus,
.filter-btn:focus,
.readmore:focus {
	outline: none;
}

html {
	scroll-behavior: smooth;
}

.project:hover .project h3 {
	transform: translateX(5px);
	transition: transform 0.3s ease;
}

.project.web::after,
.project.mobile::after,
.project.design::after,
.project.backend::after {
	animation: pulse 2s infinite;
}

.about__container .link {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-decoration: none;
	font-weight: 600;
	padding: 2px 4px;
	position: relative;
	transition: all 0.3s ease;
}

.about__container .link:hover {
	transform: scale(1.05);
}

.about__container .link:before {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	transition: width 0.3s ease;
}

.about__container .link:hover:before {
	width: 100%;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.2);
		opacity: 0.7;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}


.button__spinner {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/*==================== LIGHT THEME ====================*/
body.light-theme {
	--hue-color: 230;
	--first-color: hsl(var(--hue-color), 80%, 55%);
	--first-color-second: hsl(var(--hue-color), 80%, 45%);
	--first-color-alt: hsl(var(--hue-color), 90%, 65%);
	--first-color-lighter: rgba(111, 167, 239, 0.4);
	--title-color: hsl(var(--hue-color), 80%, 15%);
	--text-color: hsl(var(--hue-color), 20%, 30%);
	--text-color-light: hsl(var(--hue-color), 20%, 45%);
	--input-color: rgba(255, 255, 255, 0.5);
	--body-color: #f8fafc;
	--container-color: rgba(255, 255, 255, 0.7);
	background-image: radial-gradient(ellipse at top left, rgba(111, 167, 239, 0.1) 0%, transparent 40%),
		radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

body.light-theme .home__profile-img {
	border-color: rgba(0, 0, 0, 0.05);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

body.light-theme .home__profile-img:hover {
	border-color: rgba(139, 92, 246, 0.4);
	box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15), 0 0 30px rgba(139, 92, 246, 0.2);
}

body.light-theme .header {
	background: rgba(255, 255, 255, 0.8);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .footer__bg {
	background: rgba(255, 255, 255, 0.8);
	color: var(--title-color);
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
}

body.light-theme .footer__title,
body.light-theme .footer__subtitle,
body.light-theme .footer__link,
body.light-theme .footer__social,
body.light-theme #copyright {
	color: var(--title-color);
}

body.light-theme .home__title {
	background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

body.light-theme .project {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
}

body.light-theme .project:hover {
	box-shadow:
		-20px 20px 30px rgba(0, 0, 0, 0.1),
		0 0 20px rgba(111, 167, 239, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 1);
	background: rgba(255, 255, 255, 0.7);
}

body.light-theme .readmore {
	color: var(--first-color-second);
}

body.light-theme .filter-btn {
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
}

body.light-theme .filter-btn:hover {
	color: var(--first-color-second);
	border-color: rgba(0, 0, 0, 0.1);
	box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.light-theme .filter-btn.active {
	color: white;
}

body.light-theme .filter-container {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .button {
	color: white;
}

body.light-theme .project h3 {
	background: linear-gradient(135deg, #1e293b, #475569);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Dynamic cursor glow */
.cursor-glow {
	position: fixed;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle closest-side, rgba(139, 92, 246, 0.15), transparent);
	border-radius: 50%;
	pointer-events: none;
	transform: translate(-50%, -50%);
	z-index: -10;
	transition: width 0.3s, height 0.3s;
	mix-blend-mode: screen;
}

.highlight {
	background: linear-gradient(135deg, #6FA7EF 0%, #8b5cf6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}