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

body {
	font-family: "Arial", sans-serif;
	background-color: #2c2f38;
	color: #fff;
}

header {
	background-color: #333;
	padding: 15px 30px;
	overflow: visible; /* Allow dropdown to be visible */
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 80px;
	background: rgba(44, 47, 56, 0.7);
	box-shadow: 0 8px 32px 0 rgba(171, 137, 255, 0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1.5px solid rgba(171, 137, 255, 0.12);
	border-radius: 0 0 18px 18px;
	padding: 0 60px;
	transition: background 0.3s, min-height 0.3s;
	box-sizing: border-box;
	overflow: visible; /* Allow dropdown to be visible */
}

.logo a {
	color: #ab89ff;
	text-decoration: none;
	font-size: 2.3em;
	font-weight: bold;
	letter-spacing: 3px;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
	text-transform: uppercase;
}

.logo a:hover {
	color: #fff;
	text-shadow: 0 2px 16px #ab89ff88;
	transform: scale(1.05);
}

.logo img {
	height: 44px;
	width: auto;
	margin-right: 10px;
	border-radius: 10px;
	box-shadow: 0 2px 8px #ab89ff22;
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 48px;
	margin: 0;
	padding: 0;
}

.nav-links li a {
	color: #e0e0e0;
	text-decoration: none;
	font-size: 1.18em;
	font-weight: 600;
	position: relative;
	padding: 16px 0 12px 0;
	text-transform: uppercase;
	letter-spacing: 2px;
	transition: color 0.3s, text-shadow 0.3s;
	display: inline-block;
}

.nav-links li a::after {
	content: "";
	display: block;
	height: 4px;
	width: 0;
	background: linear-gradient(90deg, #ab89ff, #cc65ff, #65aaff, #ab89ff);
	background-size: 200% 100%;
	border-radius: 2px;
	transition: width 0.4s cubic-bezier(.4,2,.6,1), background-position 0.6s;
	position: absolute;
	left: 0;
	bottom: 0;
}

.nav-links li a:hover,
.nav-links li a.active {
	color: #ab89ff;
	text-shadow: 0 0 8px #ab89ff55;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
	width: 100%;
	background-position: 100% 0;
	animation: gradient-move 1.2s linear infinite;
}

@keyframes gradient-move {
	0% { background-position: 0% 50%; }
	100% { background-position: 100% 50%; }
}

/* .language a {
	color: #fff;
	text-decoration: none;
	font-size: 1.15em;
	padding: 10px 20px;
	border-radius: 10px;
	background: rgba(171, 137, 255, 0.12);
	transition: background 0.3s, color 0.3s, box-shadow 0.3s;
	letter-spacing: 1px;
	font-weight: 600;
} */

.language a:hover {
	background: #ab89ff;
	color: #fff;
	box-shadow: 0 0 8px #ab89ff55;
}

.hero {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 80px 60px 60px 60px;
	min-height: 60vh;
	background: linear-gradient(120deg, #23242a 60%, #ab89ff22 100%);
	overflow: visible; /* Changed from hidden to allow dropdown visibility */
	z-index: 1;
	margin-bottom: 20px;
}

.hero-bg-blur {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(171, 137, 255, 0.08);
	backdrop-filter: blur(8px);
	z-index: 0;
	pointer-events: none;
}

.hero-text {
	position: relative;
	z-index: 2;
	max-width: 600px;
	padding: 32px 0;
}

.animated-headline {
	font-size: 2.8em;
	font-weight: 700;
	color: #fff;
	margin-bottom: 18px;
	line-height: 1.2;
	letter-spacing: 1px;
}

.animated-headline .highlight {
	color: #ab89ff;
	text-shadow: 0 2px 16px #ab89ff44;
}

.typewriter {
	display: inline-block;
	border-right: 2px solid #ab89ff;
	white-space: nowrap;
	overflow: hidden;
	animation: typing 2.5s steps(30, end), blink-caret 0.7s step-end infinite;
	color: #cc65ff;
	font-size: 1.1em;
	font-weight: 600;
	margin-left: 2px;
}

@keyframes typing {
	from { width: 0 }
	to { width: 100% }
}
@keyframes blink-caret {
	0%, 100% { border-color: transparent }
	50% { border-color: #ab89ff }
}

.hero-subtext {
	font-size: 1.3em;
	color: #e0e0e0;
	margin-bottom: 24px;
	margin-top: 8px;
}

.hero-socials {
	margin-bottom: 24px;
}
.hero-socials a {
	color: #ab89ff;
	font-size: 1.7em;
	margin-right: 18px;
	transition: color 0.3s, transform 0.3s;
}
.hero-socials a:hover {
	color: #fff;
	transform: scale(1.2) rotate(-8deg);
}

.contact-btn.pulse {
	background: linear-gradient(90deg, #ab89ff 60%, #cc65ff 100%);
	color: #fff;
	border: none;
	padding: 14px 36px;
	font-size: 1.2em;
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
	box-shadow: 0 4px 24px #ab89ff33;
	animation: pulse 1.5s infinite;
	transition: background 0.3s, transform 0.3s;
}
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 #ab89ff55; }
	70% { box-shadow: 0 0 0 16px #ab89ff00; }
	100% { box-shadow: 0 0 0 0 #ab89ff55; }
}
.contact-btn.pulse:hover {
	background: #fff;
	color: #ab89ff;
	transform: scale(1.05);
}

.hero-image {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-left: 40px;
}

.hero-image img {
	width: 320px;
	border-radius: 18px;
	box-shadow: 0 8px 32px #ab89ff33, 0 2px 8px #0002;
	position: relative;
	z-index: 2;
}

.image-glow {
	position: absolute;
	top: 50%; left: 50%;
	width: 340px; height: 340px;
	background: radial-gradient(circle, #ab89ff55 0%, #23242a00 80%);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	filter: blur(8px);
	pointer-events: none;
}

.current-project {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	background: #333b;
	padding: 10px 18px;
	font-size: 1em;
	display: flex;
	align-items: center;
	color: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px #ab89ff22;
	z-index: 3;
}

.project-indicator {
	display: inline-block;
	width: 10px;
	height: 10px;
	background-color: #ab89ff;
	border-radius: 50%;
	margin-right: 10px;
	box-shadow: 0 0 8px #ab89ff88;
}

.project-highlight {
	font-weight: bold;
	color: #ab89ff;
	margin-left: 4px;
}

/* Styling for the custom quote section */
/* Styling for the custom quote section */
.custom-quote-section {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 40px;
}

/* Styling for the text box */
.custom-quote-text {
	background-color: #9a7be9; /* Dark background */
	color: white; /* Text color */
	padding: 10px 20px; /* Padding inside the box */
	border-radius: 8px; /* Rounded corners */
	font-size: 1.8rem; /* Font size */
	max-width: 600px; /* Maximum width */
	text-align: center; /* Center text */
	display: inline-block; /* Inline block to fit content */
}

/* Ensure elements below this section come underneath, not beside */
/* the + * ensure it should come below it whatever next i am adding to it */
.custom-quote-section + * {
	margin-top: 20px;
}
.custom-quote-sectio:hover {
	background-color: #5e375e;;
}

/* for projects */

.project-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around; /* Distributes space around the cards */
}
.project-card {
	width: 300px;
	height: 300px;
	margin: 20px;
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: 5px;
	background-color: #1a1924;
	text-align: center;
	box-sizing: border-box;
}

.project-card img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 5px 5px 0 0;
}

.project-card h3 {
	margin: 10px 0;
}

.project-card p {
	margin-bottom: 10px;
}

.project-card .buttons {
	display: flex;
	justify-content: center;
}

.project-card .buttons button {
	margin: 5px;
	padding: 5px 10px;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}
 
#skills {
	margin-top: 80px;
	padding: 60px 0;
	background: transparent;
	position: relative;
	z-index: 1;
}

#skills h1 {
	margin: 10px 18px;
}

#skills h2 {
	margin-bottom: 10px;
}

#skills .skill-list {
	display: flex;
	justify-content: space-between;
	margin: 10px;
	padding: 30px;
	border: 1px solid #ccc;
	border-radius: 5px;
	background-color: #0f0c13;
}

#skills .skill-list ul {
	list-style: none;
	padding: 20px;
	list-style: none;
	padding: 15px;
	font-size: 18px;
}

#skills .skill-list li {
	margin-bottom: 5px;
}
#skills .skill-list h2 {
	margin-bottom: 10px;
	font-size: 20px;
	font-weight: bold;
}
.about-section {
	padding: 80px 0 60px 0;
	background: linear-gradient(120deg, #23242a 60%, #ab89ff11 100%);
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 60px;
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.about-glass-card {
	display: flex;
	align-items: center;
	gap: 48px;
	background: rgba(30, 30, 40, 0.7);
	border-radius: 24px;
	box-shadow: 0 8px 32px 0 rgba(171, 137, 255, 0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1.5px solid rgba(171, 137, 255, 0.18);
	padding: 48px 40px;
	max-width: 1100px;
	margin: 0 auto;
	animation: fadeInUp 1.2s;
	position: relative;
	z-index: 2;
	overflow: hidden;
}

.about-image {
	position: relative;
	min-width: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.about-image img {
	width: 220px;
	height: 220px;
	object-fit: cover;
	border-radius: 50%;
	border: 5px solid #ab89ff44;
	box-shadow: 0 4px 32px #ab89ff33, 0 2px 8px #0002;
	position: relative;
	z-index: 2;
	background: #23242a;
}

.about-img-glow {
	position: absolute;
	top: 50%; left: 50%;
	width: 250px; height: 250px;
	background: radial-gradient(circle, #ab89ff55 0%, #23242a00 80%);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	filter: blur(10px);
	pointer-events: none;
}

.about-text {
	flex: 1;
	color: #fff;
	animation: fadeInRight 1.2s;
	overflow: hidden;
}

@keyframes fadeInRight {
	from { opacity: 0; transform: translateX(40px);}
	to { opacity: 1; transform: translateX(0);}
}

.about-hash {
	color: #ab89ff;
	font-size: 1.2em;
	margin-right: 6px;
}

.about-text h2 {
	font-size: 2.2em;
	margin-bottom: 18px;
	letter-spacing: 2px;
	color: #fff;
}

.about-intro {
	font-size: 1.2em;
	margin-bottom: 22px;
	line-height: 1.7;
}

.about-highlight {
	color: #ab89ff;
	font-weight: 600;
	text-shadow: 0 2px 8px #ab89ff33;
}

.about-facts {
	list-style: none;
	padding: 0;
	margin-bottom: 24px;
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.about-facts li {
	background: rgba(171, 137, 255, 0.10);
	color: #fff;
	border-radius: 12px;
	padding: 10px 18px;
	font-size: 1em;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 2px 8px #ab89ff22;
	transition: background 0.3s;
}
.about-facts li i {
	color: #ab89ff;
	font-size: 1.2em;
}

.about-btn {
	display: inline-block;
	background: linear-gradient(90deg, #ab89ff 60%, #cc65ff 100%);
	color: #fff;
	padding: 12px 32px;
	border-radius: 24px;
	font-size: 1.1em;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 8px #ab89ff33;
	transition: background 0.3s, color 0.3s, transform 0.3s;
	margin-top: 8px;
}
.about-btn i {
	margin-right: 8px;
}
.about-btn:hover {
	background: #fff;
	color: #ab89ff;
	transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1000px) {
	.about-glass-card {
		flex-direction: column;
		gap: 32px;
		padding: 32px 12px;
	}
	.about-image img, .about-img-glow {
		width: 180px;
		height: 180px;
	}
	.about-img-glow {
		width: 200px;
		height: 200px;
	}
}
@media (max-width: 600px) {
	.about-glass-card {
		padding: 18px 2px;
	}
	.about-image img, .about-img-glow {
		width: 120px;
		height: 120px;
	}
	.about-img-glow {
		width: 140px;
		height: 140px;
	}
	.about-text h2 {
		font-size: 1.3em;
	}
	.about-intro {
		font-size: 1em;
	}
	.about-facts {
		gap: 10px;
		flex-direction: column;
	}
}

.contact-section {
	margin-top: 40px;
	padding: 80px 0 60px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 1;
}

.contact-glass-card {
	display: flex;
	gap: 48px;
	background: rgba(30, 30, 40, 0.7);
	border-radius: 24px;
	box-shadow: 0 8px 32px 0 rgba(171, 137, 255, 0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1.5px solid rgba(171, 137, 255, 0.18);
	padding: 48px 40px;
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
	flex-wrap: wrap;
	position: relative;
	z-index: 2;
}

.contact-info {
	min-width: 260px;
	flex: 1;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 18px;
}

.contact-info h2 {
	font-size: 2.2em;
	margin-bottom: 8px;
	letter-spacing: 2px;
	color: #fff;
}

.contact-hash {
	color: #ab89ff;
	font-size: 1.2em;
	margin-right: 6px;
}

.contact-details {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.contact-details li {
	font-size: 1.1em;
	display: flex;
	align-items: center;
	gap: 10px;
}

.contact-details a {
	color: #ab89ff;
	text-decoration: none;
	transition: color 0.3s;
}
.contact-details a:hover {
	color: #fff;
	text-decoration: underline;
}

.contact-details i {
	color: #ab89ff;
	font-size: 1.2em;
}

.contact-form {
	flex: 2;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 260px;
}

.form-group {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(171, 137, 255, 0.08);
	border-radius: 12px;
	padding: 8px 16px;
	box-shadow: 0 2px 8px #ab89ff11;
}

.form-group label {
	color: #ab89ff;
	font-size: 1.2em;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-size: 1.1em;
	outline: none;
	resize: none;
	transition: background 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
	background: rgba(171, 137, 255, 0.10);
	box-shadow: 0 0 0 2px #ab89ff55;
}

.submit-btn.pulse {
	background: linear-gradient(90deg, #ab89ff 60%, #cc65ff 100%);
	color: #fff;
	border: none;
	padding: 14px 36px;
	font-size: 1.1em;
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
	box-shadow: 0 4px 24px #ab89ff33;
	animation: pulse 1.5s infinite;
	transition: background 0.3s, transform 0.3s;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 #ab89ff55; }
	70% { box-shadow: 0 0 0 16px #ab89ff00; }
	100% { box-shadow: 0 0 0 0 #ab89ff55; }
}
.submit-btn.pulse:hover {
	background: #fff;
	color: #ab89ff;
	transform: scale(1.05);
}

@media (max-width: 900px) {
	.contact-glass-card {
		flex-direction: column;
		gap: 32px;
		padding: 32px 12px;
	}
	.contact-info h2 {
		font-size: 1.5em;
	}
	.contact-form {
		min-width: 0;
	}
}
@media (max-width: 600px) {
	.contact-glass-card {
		padding: 18px 2px;
	}
	.contact-info h2 {
		font-size: 1.1em;
	}
	.contact-details li {
		font-size: 1em;
	}
	.form-group {
		padding: 6px 8px;
	}
	.submit-btn.pulse {
		padding: 10px 18px;
		font-size: 1em;
	}
}

.footer-section {
	background: none;
	padding: 0;
}

.footer-glass {
	background: rgba(30, 30, 40, 0.7);
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -8px 32px 0 rgba(171, 137, 255, 0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-top: 1.5px solid rgba(171, 137, 255, 0.18);
	max-width: 1100px;
	margin: 40px auto 0 auto;
	padding: 32px 24px 12px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.footer-main {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.footer-logo a {
	font-size: 2.2rem;
	color: #ab89ff;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 2px;
	transition: color 0.3s, text-shadow 0.3s;
}
.footer-logo a:hover {
	color: #fff;
	text-shadow: 0 2px 8px #ab89ff44;
}

.footer-socials {
	display: flex;
	gap: 18px;
}
.footer-socials a {
	color: #ab89ff;
	font-size: 2rem;
	transition: color 0.3s, transform 0.3s;
	background: rgba(171, 137, 255, 0.10);
	border-radius: 50%;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.footer-socials a:hover {
	color: #fff;
	background: #ab89ff;
	transform: scale(1.15) rotate(-8deg);
}

.footer-divider {
	width: 100%;
	height: 1.5px;
	background: linear-gradient(90deg, #ab89ff 0%, #23242a 100%);
	margin: 18px 0 12px 0;
	opacity: 0.3;
	border-radius: 2px;
}

.footer-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	justify-content: center;
}
.footer-links ul li a {
	color: #e0e0e0;
	text-decoration: none;
	font-size: 1.1em;
	letter-spacing: 1px;
	transition: color 0.3s;
	padding: 4px 10px;
	border-radius: 8px;
}
.footer-links ul li a:hover {
	color: #ab89ff;
	background: rgba(171, 137, 255, 0.10);
}

.footer-bottom {
	margin-top: 18px;
	text-align: center;
}

.footer-bottom p {
	font-size: 1em;
	color: #888;
	letter-spacing: 1px;
	animation: fadeIn 2s;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.back-to-top {
	position: absolute;
	right: 24px;
	bottom: 24px;
	background: linear-gradient(90deg, #ab89ff 60%, #cc65ff 100%);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 1.3em;
	cursor: pointer;
	box-shadow: 0 2px 8px #ab89ff33;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s, color 0.3s, transform 0.3s;
	z-index: 10;
}
.back-to-top:hover {
	background: #fff;
	color: #ab89ff;
	transform: scale(1.1);
}

/* Responsive */
@media (max-width: 700px) {
	.footer-glass {
		padding: 18px 4px 8px 4px;
		border-radius: 16px 16px 0 0;
	}
	.footer-main {
		flex-direction: column;
		gap: 10px;
	}
	.footer-logo a {
		font-size: 1.3rem;
	}
	.footer-socials a {
		font-size: 1.3rem;
		padding: 6px;
	}
	.back-to-top {
		right: 10px;
		bottom: 10px;
		width: 36px;
		height: 36px;
		font-size: 1em;
	}
}

/* Beautified Skills Section - Glassmorphism & Animations */
#skills {
	margin-top: 80px;
	padding: 60px 0;
	background: transparent;
	position: relative;
	z-index: 1;
}

.skills-title {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 30px;
	color: #ab89ff;
	letter-spacing: 2px;
	font-family: 'Segoe UI', Arial, sans-serif;
}

.skills-glass-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr); /* 5 columns, one for each card */
	gap: 12px;
	max-width: 100vw;
	margin: 0 auto;
	padding-left: 20px;
	overflow-x: auto;
	position: relative;
	z-index: 2;
}

.glass-card {
	background: rgba(30, 30, 40, 0.7);
	border-radius: 18px;
	box-shadow: 0 8px 32px 0 rgba(171, 137, 255, 0.18);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1.5px solid rgba(171, 137, 255, 0.18);
	padding: 28px 24px 20px 24px;
	position: relative;
	overflow: hidden;
	transition: box-shadow 0.3s, transform 0.3s;
	border-top: 6px solid #ab89ff;
	opacity: 0;
	transform: translateY(40px);
	animation: fadeInUp 1s forwards;
	min-width: 200px;   /* Adjust as needed for content */
	max-width: 260px;   /* Prevents cards from being too wide */
	width: 100%;
}

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

.glass-card .card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	font-size: 1.3rem;
	font-weight: 600;
	color: #fff;
	letter-spacing: 1px;
}

.glass-card .card-header i {
	font-size: 2rem;
	animation: bounce 1.5s infinite alternate;
}

@keyframes bounce {
	0% { transform: translateY(0);}
	100% { transform: translateY(-8px);}
}

.glass-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.glass-card li {
	margin-bottom: 18px;
	font-size: 1.1rem;
	color: #e0e0e0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.glass-card li span {
	display: flex;
	align-items: center;
	gap: 8px;
}

.glass-card li i {
	color: #ab89ff;
	font-size: 1.1em;
	transition: color 0.3s;
}

.glass-card li span:hover i {
	color: #fff;
}

/* Progress Bar Styles */
.progress-bar {
	background: #2c2f38;
	border-radius: 6px;
	height: 8px;
	width: 100%;
	margin-top: 4px;
	overflow: hidden;
}

.progress-bar .progress {
	background: linear-gradient(90deg, #ab89ff 60%, #cc65ff 100%);
	height: 100%;
	border-radius: 6px;
	transition: width 1s cubic-bezier(.4,2,.6,1);
}

/* Card Accent Colors */
.accent-languages { border-top-color: #ab89ff; }
.accent-databases { border-top-color: #65ffcc; }
.accent-tools { border-top-color: #ffb366; }
.accent-other { border-top-color: #ff6584; }
.accent-frameworks { border-top-color: #65aaff; }

.accent-languages .card-header i { color: #ab89ff; }
.accent-databases .card-header i { color: #65ffcc; }
.accent-tools .card-header i { color: #ffb366; }
.accent-other .card-header i { color: #ff6584; }
.accent-frameworks .card-header i { color: #65aaff; }

.glass-card:hover {
	box-shadow: 0 12px 36px rgba(171, 137, 255, 0.28);
	transform: translateY(-8px) scale(1.03);
}

/* Responsive */
@media (max-width: 1300px) {
	.skills-glass-grid {
		grid-template-columns: repeat(5, minmax(180px, 1fr));
		overflow-x: auto;
		padding-bottom: 16px;
	}
}
@media (max-width: 900px) {
	.skills-glass-grid {
		grid-template-columns: repeat(5, minmax(160px, 1fr));
		overflow-x: auto;
		padding-bottom: 16px;
	}
}
@media (max-width: 700px) {
	.skills-glass-grid {
		grid-template-columns: repeat(5, minmax(140px, 1fr));
		overflow-x: auto;
		padding-bottom: 16px;
	}
}

/* Responsive Navbar */
@media (max-width: 1100px) {
	.navbar {
		padding: 0 20px;
	}
	.nav-links {
		gap: 18px;
	}
	.logo a {
		font-size: 1.5em;
	}
}
@media (max-width: 700px) {
	.navbar {
		flex-direction: column;
		align-items: flex-start;
		min-height: 70px;
		padding: 8px 8px;
		border-radius: 0 0 12px 12px;
	}
	.nav-links {
		flex-direction: column;
		gap: 8px;
		width: 100%;
		margin-top: 8px;
	}
	/* .language {
		margin-top: 8px;
		width: 100%;
		text-align: right;
	} */
}

/* Animated dot for active nav link */
.nav-links li a.active::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: radial-gradient(circle, #ab89ff 60%, #cc65ff 100%);
	margin-right: 10px;
	box-shadow: 0 0 8px #ab89ff88, 0 0 16px #cc65ff44;
	vertical-align: middle;
	animation: dot-glow 1.2s infinite alternate;
	position: relative;
	top: -1px;
}

@keyframes dot-glow {
	0% { box-shadow: 0 0 8px #ab89ff88, 0 0 16px #cc65ff44; }
	100% { box-shadow: 0 0 16px #ab89ffcc, 0 0 32px #cc65ff88; }
}

/* Navbar shadow and background on scroll */
.navbar.scrolled {
	box-shadow: 0 12px 32px 0 rgba(171, 137, 255, 0.28), 0 2px 8px #0002;
	background: rgba(44, 47, 56, 0.92);
	transition: background 0.3s, box-shadow 0.3s;
}

/* Smoother transitions for nav elements */
.navbar, .nav-links li a, .logo a {
	transition: background 0.3s, color 0.3s, box-shadow 0.3s, min-height 0.3s, padding 0.3s, font-size 0.3s, letter-spacing 0.3s;
}

/* Responsive */
@media (max-width: 1100px) {
	.hero {
		flex-direction: column;
		align-items: flex-start;
		padding: 60px 20px 40px 20px;
	}
	.hero-image {
		margin-left: 0;
		margin-top: 32px;
		align-items: flex-start;
	}
}
@media (max-width: 700px) {
	.hero {
		flex-direction: column;
		align-items: flex-start;
		padding: 40px 8px 24px 8px;
	}
	.hero-image img, .image-glow {
		width: 220px;
		height: 220px;
		min-width: 0;
		min-height: 0;
	}
	.image-glow {
		width: 220px;
		height: 220px;
	}
}

.projects-section {
	margin-top: 60px;
	padding: 80px 0 60px 0;
	background: linear-gradient(120deg, #23242a 60%, #ab89ff11 100%);
	position: relative;
	z-index: 1;
}

.projects-title {
	text-align: center;
	font-size: 2.3rem;
	color: #ab89ff;
	margin-bottom: 36px;
	letter-spacing: 2px;
	font-family: 'Segoe UI', Arial, sans-serif;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 60px;
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.project-card-glass {
	background: rgba(30, 30, 40, 0.7);
	border-radius: 18px;
	box-shadow: 0 8px 32px 0 rgba(171, 137, 255, 0.18);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1.5px solid rgba(171, 137, 255, 0.18);
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	transition: box-shadow 0.3s, transform 0.3s;
	opacity: 0;
	transform: translateY(40px);
	animation: fadeInUp 1s forwards;
}

.project-card-glass:hover {
	box-shadow: 0 12px 36px rgba(171, 137, 255, 0.28);
	transform: translateY(-8px) scale(1.03);
}

.project-image-container {
	position: relative;
	width: 100%;
	height: 210px;
	overflow: hidden;
}

.project-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 18px 18px 0 0;
	transition: filter 0.4s;
}

.project-card-glass:hover .project-image-container img {
	filter: blur(2px) brightness(0.7);
}

.project-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(44, 47, 56, 0.85);
	color: #fff;
	opacity: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	transition: opacity 0.4s;
	border-radius: 18px 18px 0 0;
}

.project-card-glass:hover .project-overlay {
	opacity: 1;
}

.project-overlay h3 {
	font-size: 1.4em;
	color: #ab89ff;
	margin-bottom: 10px;
}

.project-overlay p {
	font-size: 1em;
	margin-bottom: 16px;
	color: #e0e0e0;
}

.project-tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.project-tags span {
	background: linear-gradient(90deg, #ab89ff 60%, #cc65ff 100%);
	color: #fff;
	font-size: 0.95em;
	padding: 4px 12px;
	border-radius: 12px;
	margin: 2px 0;
	font-weight: 500;
	letter-spacing: 1px;
	box-shadow: 0 2px 8px #ab89ff22;
}

.project-live-btn {
	margin: 18px auto 18px auto;
	padding: 10px 32px;
	border: none;
	border-radius: 24px;
	background: linear-gradient(90deg, #ab89ff 60%, #cc65ff 100%);
	color: #fff;
	font-size: 1.1em;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px #ab89ff33;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: background 0.3s, transform 0.3s;
	opacity: 0.8;
}
.project-live-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.project-live-btn:not(:disabled):hover {
	background: #fff;
	color: #ab89ff;
	transform: scale(1.05);
	opacity: 1;
}

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

/* Responsive */
@media (max-width: 900px) {
	.projects-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.project-image-container {
		height: 180px;
	}
}

/* =================================
   CUSTOM ANIMATED CURSOR
   ================================= */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999; /* Increased to be higher than all modals (20000) to ensure visibility */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference; /* Creates a cool color-inverting effect */
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #fff;
  transition: transform 0.1s ease-out;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  background-color: rgba(255, 255, 255, 0.2);
  transition: width 0.3s, height 0.3s, transform 0.2s ease-out, background-color 0.3s;
}

/* This class will be added to the body via JS */
body.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.4);
  border-width: 3px;
}

/* Hide the default cursor on the body and interactive elements */
body, a, button {
  cursor: none;
}

/* =================================
   PRELOADER
   ================================= */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #23242a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.preloader-logo img {
  width: 80px;
  animation: pulse-logo 2s infinite ease-in-out;
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.preloader-dots {
  display: flex;
  gap: 10px;
}

.preloader-dots .dot {
  width: 12px;
  height: 12px;
  background-color: #ab89ff;
  border-radius: 50%;
  animation: bounce-dots 1.4s infinite ease-in-out both;
}

.preloader-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.preloader-dots .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce-dots {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Enhanced Preloader Progress */
.preloader-progress {
  width: 300px;
  max-width: 80%;
  text-align: center;
}

.preloader-progress .progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(171, 137, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.preloader-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ab89ff, #cc65ff);
  border-radius: 2px;
  width: 0%;
  animation: progress-fill 2s ease-in-out forwards;
}

@keyframes progress-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.loading-text {
  color: #ab89ff;
  font-size: 1.1em;
  font-weight: 500;
  letter-spacing: 1px;
  animation: loading-text-pulse 2s infinite;
}

@keyframes loading-text-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* =================================
   PARTICLES.JS BACKGROUND
   ================================= */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Behind the hero content */
}

/* =================================
   PROJECT MODAL
   ================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 11000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(44, 47, 56, 0.95);
  border: 1.5px solid rgba(171, 137, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(171, 137, 255, 0.28);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}

.modal-overlay.visible .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(171, 137, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
}
.modal-close-btn:hover {
  background: #ab89ff;
  transform: rotate(90deg);
}

.modal-img {
  width: 45%;
  object-fit: cover;
}

.modal-text-content {
  padding: 32px;
  width: 55%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-title {
  font-size: 2.2em;
  color: #ab89ff;
  margin-bottom: 12px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.modal-tags span {
  background: linear-gradient(90deg, #ab89ff 60%, #cc65ff 100%);
  color: #fff;
  font-size: 0.9em;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.modal-description {
  font-size: 1.1em;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 24px;
}

.modal-links {
  margin-top: auto;
  display: flex;
  gap: 16px;
}

.modal-link-btn {
  flex-grow: 1;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s, transform 0.3s, color 0.3s;
}

.modal-link-btn:first-child {
  background: #ab89ff;
  color: #fff;
}
.modal-link-btn:last-child {
  background: rgba(171, 137, 255, 0.15);
  color: #e0e0e0;
}

.modal-link-btn:not(.disabled):hover {
  transform: scale(1.05);
  background: #fff;
  color: #ab89ff;
}

.modal-link-btn.disabled {
  background: rgba(171, 137, 255, 0.1);
  color: #888;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Contact Form Validation & Status --- */
.form-group.error input,
.form-group.error textarea {
  box-shadow: 0 0 0 2px #ff6584; /* Highlight error fields */
}

.validation-message {
  color: #ff6584;
  font-size: 0.9em;
  height: 16px;
  display: block;
  margin: -10px 0 10px 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.validation-message.visible {
  opacity: 1;
}

#form-status-message {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}

#form-status-message.visible {
  opacity: 1;
  transform: translateY(0);
}

#form-status-message.success {
  background: rgba(101, 255, 204, 0.2);
  color: #65ffcc;
  border: 1px solid #65ffcc;
}

#form-status-message.error {
  background: rgba(255, 101, 132, 0.2);
  color: #ff6584;
  border: 1px solid #ff6584;
}

@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    max-height: 95vh;
  }
  .modal-img {
    width: 100%;
    height: 200px;
  }
  .modal-text-content {
    width: 100%;
    padding: 24px;
  }
}

/* =================================
   THEME TOGGLE BUTTON
   ================================= */
.theme-toggle-container {
	margin-left: 20px;
}

.theme-toggle-btn {
	background: rgba(171, 137, 255, 0.12);
	border: none;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2em;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(171, 137, 255, 0.2);
}

.theme-toggle-btn:hover {
	background: #ab89ff;
	transform: scale(1.1) rotate(180deg);
	box-shadow: 0 4px 16px rgba(171, 137, 255, 0.4);
}

.theme-toggle-btn i {
	transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
	transform: rotate(180deg);
}

/* =================================
   LIGHT MODE STYLES
   ================================= */
body.light-mode {
	background-color: #f8f9fa;
	color: #2c3e50;
}

/* Light mode navbar */
body.light-mode .navbar {
	background: rgba(248, 249, 250, 0.9);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
	border-bottom: 1.5px solid rgba(171, 137, 255, 0.2);
}

body.light-mode .navbar.scrolled {
	background: rgba(248, 249, 250, 0.95);
	box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.15);
}

/* Light mode hero section */
body.light-mode .hero {
	background: linear-gradient(120deg, #ffffff 60%, #ab89ff11 100%);
}

body.light-mode .hero-bg-blur {
	background: rgba(171, 137, 255, 0.05);
}

body.light-mode .animated-headline {
	color: #2c3e50;
}

body.light-mode .hero-subtext {
	color: #5a6c7d;
}

body.light-mode .current-project {
	background: rgba(255, 255, 255, 0.9);
	color: #2c3e50;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Light mode glass cards */
body.light-mode .glass-card,
body.light-mode .about-glass-card,
body.light-mode .contact-glass-card,
body.light-mode .project-card-glass,
body.light-mode .footer-glass {
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
	border: 1.5px solid rgba(171, 137, 255, 0.2);
}

body.light-mode .glass-card:hover,
body.light-mode .project-card-glass:hover {
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

/* Light mode text colors */
body.light-mode .about-text h2,
body.light-mode .contact-info h2,
body.light-mode .skills-title,
body.light-mode .projects-title {
	color: #2c3e50;
}

body.light-mode .about-intro,
body.light-mode .modal-description {
	color: #5a6c7d;
}

body.light-mode .glass-card .card-header,
body.light-mode .glass-card li {
	color: #2c3e50;
}

body.light-mode .glass-card li span {
	color: #5a6c7d;
}

/* Light mode form elements */
body.light-mode .form-group {
	background: rgba(171, 137, 255, 0.05);
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
	color: #2c3e50;
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
	background: rgba(171, 137, 255, 0.1);
}

/* Light mode navigation links */
body.light-mode .nav-links li a {
	color: #5a6c7d;
}

body.light-mode .nav-links li a:hover,
body.light-mode .nav-links li a.active {
	color: #ab89ff;
}

/* body.light-mode .language a {
	color: #2c3e50;
	background: rgba(171, 137, 255, 0.1);
} */

body.light-mode .language a:hover {
	background: #ab89ff;
	color: #fff;
}

/* Light mode footer */
body.light-mode .footer-links ul li a {
	color: #5a6c7d;
}

body.light-mode .footer-links ul li a:hover {
	color: #ab89ff;
	background: rgba(171, 137, 255, 0.1);
}

body.light-mode .footer-bottom p {
	color: #7f8c8d;
}

/* Light mode modal */
body.light-mode .modal-content {
	background: rgba(255, 255, 255, 0.95);
}

body.light-mode .modal-title {
	color: #ab89ff;
}

body.light-mode .modal-description {
	color: #5a6c7d;
}

/* Light mode project overlay */
body.light-mode .project-overlay {
	background: rgba(255, 255, 255, 0.9);
	color: #2c3e50;
}

body.light-mode .project-overlay p {
	color: #5a6c7d;
}

/* Light mode about facts */
body.light-mode .about-facts li {
	background: rgba(171, 137, 255, 0.1);
	color: #2c3e50;
}

/* Light mode contact details */
body.light-mode .contact-details li {
	color: #2c3e50;
}

body.light-mode .contact-details a {
	color: #ab89ff;
}

body.light-mode .contact-details a:hover {
	color: #2c3e50;
}

/* Light mode progress bars */
body.light-mode .progress-bar {
	background: #e9ecef;
}

/* Light mode theme toggle */
body.light-mode .theme-toggle-btn {
	background: rgba(171, 137, 255, 0.1);
	color: #2c3e50;
}

body.light-mode .theme-toggle-btn:hover {
	background: #ab89ff;
	color: #fff;
}

/* Responsive theme toggle */
@media (max-width: 700px) {
	.theme-toggle-container {
		margin-left: 10px;
	}
	
	.theme-toggle-btn {
		width: 36px;
		height: 36px;
		font-size: 1em;
	}
}

/* =================================
   SKELETON LOADING
   ================================= */
.project-skeleton {
  background: rgba(30, 30, 40, 0.7);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(171, 137, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(171, 137, 255, 0.18);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: skeleton-fade-in 0.6s ease forwards;
}

@keyframes skeleton-fade-in {
  to { opacity: 1; }
}

.skeleton-image {
  width: 100%;
  height: 210px;
  background: linear-gradient(90deg, 
    rgba(171, 137, 255, 0.1) 25%, 
    rgba(171, 137, 255, 0.2) 50%, 
    rgba(171, 137, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-title {
  height: 24px;
  background: linear-gradient(90deg, 
    rgba(171, 137, 255, 0.1) 25%, 
    rgba(171, 137, 255, 0.2) 50%, 
    rgba(171, 137, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  width: 80%;
}

.skeleton-text {
  height: 16px;
  background: linear-gradient(90deg, 
    rgba(171, 137, 255, 0.1) 25%, 
    rgba(171, 137, 255, 0.2) 50%, 
    rgba(171, 137, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-button {
  height: 40px;
  background: linear-gradient(90deg, 
    rgba(171, 137, 255, 0.1) 25%, 
    rgba(171, 137, 255, 0.2) 50%, 
    rgba(171, 137, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 20px;
  width: 120px;
  margin-top: auto;
}

@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =================================
   3D CARD EFFECTS & ENHANCED INTERACTIONS
   ================================= */
.project-card-glass {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-glass:hover {
  transform: translateY(-8px) scale(1.03) rotateX(2deg) rotateY(2deg);
  box-shadow: 
    0 20px 40px rgba(171, 137, 255, 0.3),
    0 0 0 1px rgba(171, 137, 255, 0.1);
}

.project-card-glass.tilted {
  transform: translateY(-8px) scale(1.03) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.project-image-container {
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}

.project-card-glass:hover .project-image-container {
  transform: translateZ(30px) scale(1.05);
}

.project-overlay {
  transform: translateZ(25px);
  transition: all 0.3s ease;
}

.project-card-glass:hover .project-overlay {
  transform: translateZ(35px);
}

.project-live-btn {
  transform: translateZ(15px);
  transition: all 0.3s ease;
}

.project-card-glass:hover .project-live-btn {
  transform: translateZ(25px) scale(1.05);
}

/* Enhanced hover effects for all interactive elements */
.glass-card:hover {
  transform: translateY(-8px) scale(1.03) rotateX(1deg) rotateY(1deg);
  box-shadow: 
    0 20px 40px rgba(171, 137, 255, 0.3),
    0 0 0 1px rgba(171, 137, 255, 0.1);
}

.about-glass-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 32px rgba(171, 137, 255, 0.25);
}

.contact-glass-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 32px rgba(171, 137, 255, 0.25);
}

/* Micro-interactions for buttons */
.contact-btn.pulse,
.submit-btn.pulse,
.about-btn {
  position: relative;
  overflow: hidden;
}

.contact-btn.pulse::before,
.submit-btn.pulse::before,
.about-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.contact-btn.pulse:hover::before,
.submit-btn.pulse:hover::before,
.about-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Enhanced social icons */
.hero-socials a {
  position: relative;
  overflow: hidden;
}

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

.hero-socials a:hover::before {
  left: 100%;
}

/* =================================
   ADDITIONAL ANIMATIONS & EFFECTS
   ================================= */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation classes */
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.scale-in {
  animation: scaleIn 0.5s ease forwards;
}

/* Reduced motion support */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Enhanced hover states for light mode */
body.light-mode .project-card-glass:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(171, 137, 255, 0.2);
}

body.light-mode .glass-card:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(171, 137, 255, 0.2);
}

/* Smooth transitions for all interactive elements */
.project-card-glass,
.glass-card,
.about-glass-card,
.contact-glass-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus states for accessibility */
.project-card-glass:focus,
.glass-card:focus,
.contact-btn:focus,
.submit-btn:focus,
.about-btn:focus {
  outline: 2px solid #ab89ff;
  outline-offset: 2px;
}

/* Loading state for buttons */
.contact-btn.loading,
.submit-btn.loading {
  position: relative;
  color: transparent;
}

.contact-btn.loading::after,
.submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Enhanced skeleton loading for light mode */
body.light-mode .project-skeleton {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(171, 137, 255, 0.2);
}

body.light-mode .skeleton-image,
body.light-mode .skeleton-title,
body.light-mode .skeleton-text,
body.light-mode .skeleton-button {
  background: linear-gradient(90deg, 
    rgba(171, 137, 255, 0.1) 25%, 
    rgba(171, 137, 255, 0.2) 50%, 
    rgba(171, 137, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

/* Responsive adjustments for animations */
@media (max-width: 768px) {
  .project-card-glass:hover {
    transform: translateY(-4px) scale(1.02);
  }
  
  .glass-card:hover {
    transform: translateY(-4px) scale(1.02);
  }
  
  /* Disable complex animations on mobile for performance */
  .project-card-glass.tilted {
    transform: translateY(-4px) scale(1.02);
  }
}

/* Performance optimizations */
.project-card-glass,
.glass-card,
.about-glass-card,
.contact-glass-card {
  will-change: transform;
  backface-visibility: hidden;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Enhanced preloader for light mode */
body.light-mode .preloader {
  background: #f8f9fa;
}

body.light-mode .preloader-progress .progress-bar {
  background: rgba(171, 137, 255, 0.1);
}

body.light-mode .loading-text {
  color: #ab89ff;
}

/* =================================
   SECTION SPACING & OVERLAP FIXES
   ================================= */
/* Ensure proper spacing between all sections */
.projects-section,
#skills,
.about-section,
.contact-section {
	position: relative;
	z-index: 1;
}

/* Add breathing room between sections */
.projects-section {
	margin-top: 60px;
}

#skills {
	margin-top: 80px;
}

.about-section {
	margin-top: 60px;
}

.contact-section {
	margin-top: 40px;
}

/* Ensure cards don't overlap */
.project-card-glass,
.glass-card,
.about-glass-card,
.contact-glass-card {
	position: relative;
	z-index: 2;
}

/* Responsive spacing adjustments */
@media (max-width: 768px) {
	.projects-section,
	#skills,
	.about-section,
	.contact-section {
		margin-top: 30px;
		padding: 40px 0;
	}
	
	.hero {
		padding: 60px 20px 40px 20px;
		margin-bottom: 10px;
	}
	
	/* Reduce spacing even more on mobile */
	.about-section {
		margin-top: 30px;
	}
	
	.contact-section {
		margin-top: 20px;
	}
}

/* =================================
   ENHANCED LANGUAGE SELECTOR
   ================================= */
.language-selector {
	position: relative;
	margin-left: 20px;
	overflow: visible; /* Allow dropdown to be visible */
}

.language-btn {
	background: rgba(171, 137, 255, 0.12);
	border: 1.5px solid rgba(171, 137, 255, 0.18);
	color: #fff;
	padding: 12px 18px;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.1em;
	font-weight: 600;
	letter-spacing: 1px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 8px rgba(171, 137, 255, 0.2);
	position: relative;
	overflow: hidden;
}

.language-btn:hover {
	background: rgba(171, 137, 255, 0.25);
	border-color: rgba(171, 137, 255, 0.4);
	box-shadow: 0 4px 16px rgba(171, 137, 255, 0.4);
	transform: translateY(-2px) scale(1.02);
}

.language-btn:active {
	transform: scale(0.98);
}

.language-btn .dropdown-arrow {
	font-size: 0.8em;
	transition: transform 0.3s ease;
}

.language-btn.active .dropdown-arrow {
	transform: rotate(180deg);
}

.current-lang {
	font-weight: 700;
	position: relative;
}

.current-lang::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, #ab89ff, #cc65ff);
	border-radius: 1px;
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.language-btn:hover .current-lang::after {
	transform: scaleX(1);
}

/* Dropdown Menu */
.language-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: rgba(44, 47, 56, 0.95);
	border: 1.5px solid rgba(171, 137, 255, 0.2);
	border-radius: 12px;
	backdrop-filter: blur(15px);
	box-shadow: 0 8px 32px rgba(171, 137, 255, 0.2);
	min-width: 140px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px) scale(0.95);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10000;
	overflow: hidden;
	pointer-events: none;
}

.language-dropdown.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.dropdown-item {
	padding: 12px 16px;
	color: #fff;
	cursor: pointer;
	transition: background 0.3s, color 0.3s;
	border-bottom: 1px solid rgba(171, 137, 255, 0.12);
	background: transparent;
	font-weight: 500;
}

.dropdown-item:last-child {
	border-bottom: none;
}

.dropdown-item:hover, .dropdown-item.selected {
	background: rgba(171, 137, 255, 0.15);
	color: #ab89ff;
}

@media (max-width: 700px) {
	.language-switcher {
		margin-left: 10px;
	}
	.language-btn {
		padding: 8px 12px;
		font-size: 1em;
	}
	.language-dropdown {
		min-width: 100px;
		right: 0;
		left: auto;
	}
}

/* Modern Language Switcher Styles */
.language-switcher {
  position: relative;
  margin-left: 20px;
}
.language-btn {
  background: rgba(171, 137, 255, 0.12);
  border: 1.5px solid rgba(171, 137, 255, 0.18);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(171, 137, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.language-btn:hover {
  background: rgba(171, 137, 255, 0.25);
  border-color: rgba(171, 137, 255, 0.4);
  box-shadow: 0 4px 16px rgba(171, 137, 255, 0.4);
  transform: translateY(-2px) scale(1.02);
}
.language-btn:active {
  transform: scale(0.98);
}
.language-btn .dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}
.language-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}
.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(44, 47, 56, 0.95);
  border: 1.5px solid rgba(171, 137, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(171, 137, 255, 0.2);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  overflow: hidden;
  pointer-events: none;
}
.language-dropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.dropdown-item {
  padding: 12px 16px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  border-bottom: 1px solid rgba(171, 137, 255, 0.12);
  background: transparent;
  font-weight: 500;
}
.dropdown-item:last-child {
  border-bottom: none;
}
.dropdown-item:hover, .dropdown-item.selected {
  background: rgba(171, 137, 255, 0.15);
  color: #ab89ff;
}
@media (max-width: 700px) {
  .language-switcher {
    margin-left: 10px;
  }
  .language-btn {
    padding: 8px 12px;
    font-size: 1em;
  }
  .language-dropdown {
    min-width: 100px;
    right: 0;
    left: auto;
  }
}
/* Remove any old/duplicate language switcher styles if present */

.modal-overlay, .contact-modal-overlay, .resume-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 11000;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-overlay.visible, .contact-modal-overlay.visible, .resume-modal-overlay.visible {
  opacity: 1; visibility: visible;
}

/* =================================
   RESUME MODAL STYLES
   ================================= */
.resume-modal {
  background: rgba(44, 47, 56, 0.95);
  border: 1.5px solid rgba(171, 137, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(171, 137, 255, 0.28);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}

.resume-modal-overlay.visible .resume-modal {
  transform: scale(1) translateY(0);
}

.resume-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 16px 32px;
  border-bottom: 1px solid rgba(171, 137, 255, 0.18);
}

.resume-modal-header h3 {
  color: #ab89ff;
  font-size: 1.8em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.resume-modal-close {
  background: rgba(171, 137, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.resume-modal-close:hover {
  background: #ab89ff;
  transform: rotate(90deg);
}

.resume-modal-content {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.resume-preview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.resume-info h4 {
  color: #ab89ff;
  font-size: 2.2em;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.resume-title {
  color: #e0e0e0;
  font-size: 1.3em;
  margin: 0 0 20px 0;
  font-weight: 500;
}

.resume-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e0e0e0;
  font-size: 1.1em;
}

.highlight-item i {
  color: #ab89ff;
  font-size: 1.2em;
  width: 20px;
}

.resume-skills-preview h5 {
  color: #ab89ff;
  font-size: 1.4em;
  margin: 0 0 16px 0;
  font-weight: 600;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills-tags span {
  background: linear-gradient(90deg, #ab89ff 60%, #cc65ff 100%);
  color: #fff;
  font-size: 0.9em;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px #ab89ff22;
}

.resume-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.resume-download-btn, .resume-close-btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.resume-download-btn {
  background: linear-gradient(90deg, #ab89ff 60%, #cc65ff 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(171, 137, 255, 0.3);
}

.resume-download-btn:hover {
  background: #fff;
  color: #ab89ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(171, 137, 255, 0.4);
}

.resume-close-btn {
  background: rgba(171, 137, 255, 0.15);
  color: #e0e0e0;
  border: 1px solid rgba(171, 137, 255, 0.3);
}

.resume-close-btn:hover {
  background: rgba(171, 137, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

/* Light mode styles for resume modal */
body.light-mode .resume-modal {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .resume-modal-header {
  border-bottom: 1px solid rgba(171, 137, 255, 0.2);
}

body.light-mode .resume-info h4 {
  color: #ab89ff;
}

body.light-mode .resume-title {
  color: #5a6c7d;
}

body.light-mode .highlight-item {
  color: #5a6c7d;
}

body.light-mode .resume-skills-preview h5 {
  color: #ab89ff;
}

body.light-mode .resume-close-btn {
  background: rgba(171, 137, 255, 0.1);
  color: #5a6c7d;
  border: 1px solid rgba(171, 137, 255, 0.2);
}

body.light-mode .resume-close-btn:hover {
  background: rgba(171, 137, 255, 0.2);
  color: #2c3e50;
}

/* Responsive styles for resume modal */
@media (max-width: 768px) {
  .resume-modal {
    width: 95%;
    max-height: 95vh;
  }
  
  .resume-modal-header {
    padding: 20px 24px 12px 24px;
  }
  
  .resume-modal-header h3 {
    font-size: 1.5em;
  }
  
  .resume-modal-content {
    padding: 24px;
  }
  
  .resume-info h4 {
    font-size: 1.8em;
  }
  
  .resume-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .resume-download-btn, .resume-close-btn {
    padding: 12px 20px;
    font-size: 1em;
  }
}

/* =================================
   CONTACT MODAL STYLES
   ================================= */
.contact-modal {
  background: rgba(44, 47, 56, 0.95);
  border: 1.5px solid rgba(171, 137, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(171, 137, 255, 0.28);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}

.contact-modal-overlay.visible .contact-modal {
  transform: scale(1) translateY(0);
}

.contact-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 16px 32px;
  border-bottom: 1px solid rgba(171, 137, 255, 0.18);
}

.contact-modal-header h3 {
  color: #ab89ff;
  font-size: 1.8em;
  font-weight: 600;
  margin: 0;
}

.contact-modal-close {
  background: rgba(171, 137, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.contact-modal-close:hover {
  background: #ab89ff;
  transform: rotate(90deg);
}

.contact-modal-content {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.contact-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-option {
  background: rgba(171, 137, 255, 0.08);
  border: 1px solid rgba(171, 137, 255, 0.18);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-option:hover {
  background: rgba(171, 137, 255, 0.15);
  border-color: rgba(171, 137, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(171, 137, 255, 0.2);
}

.contact-option i {
  color: #ab89ff;
  font-size: 2em;
  margin-bottom: 8px;
}

.contact-option span {
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
}

.contact-option small {
  color: #e0e0e0;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Light mode styles for contact modal */
body.light-mode .contact-modal {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .contact-modal-header {
  border-bottom: 1px solid rgba(171, 137, 255, 0.2);
}

body.light-mode .contact-option {
  background: rgba(171, 137, 255, 0.05);
  border: 1px solid rgba(171, 137, 255, 0.2);
}

body.light-mode .contact-option:hover {
  background: rgba(171, 137, 255, 0.1);
  border-color: rgba(171, 137, 255, 0.3);
}

body.light-mode .contact-option span {
  color: #2c3e50;
}

body.light-mode .contact-option small {
  color: #5a6c7d;
}

/* Responsive styles for contact modal */
@media (max-width: 768px) {
  .contact-modal {
    width: 95%;
    max-height: 95vh;
  }
  
  .contact-modal-header {
    padding: 20px 24px 12px 24px;
  }
  
  .contact-modal-header h3 {
    font-size: 1.5em;
  }
  
  .contact-modal-content {
    padding: 24px;
  }
  
  .contact-options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .contact-option {
    padding: 16px;
  }
  
  .contact-option i {
    font-size: 1.5em;
  }
  
  .contact-option span {
    font-size: 1em;
  }
  
  .contact-option small {
    font-size: 0.8em;
  }
}

