/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", sans-serif;
	line-height: 1.7;
	color: #1a202c;
	background-color: #ffffff;
	font-size: 16px;
}

.woking::after {
	content: "";
	display: inline-block;
	vertical-align: middle;

	background-image: url("woking.jpeg");
	background-size: contain; /* scales image inside box */
	background-repeat: no-repeat; /* prevents tiling */
	background-position: center; /* centers image */

	margin: 10px;
	margin-left: 100px;
	width: 3.5em;
	height: 3.5em;
}

.york-city::after {
	content: "";
	display: inline-block;
	vertical-align: middle;

	background-image: url("york-city-logo.jpeg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;

	margin: 10px;
	margin-left: 100px;
	width: 3.5em;
	height: 3.5em;
}

.england-universities::after {
	content: "";
	display: inline-block;
	vertical-align: middle;

	background-image: url("england-universities-logo.jpeg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;

	margin: 10px;
	margin-left: 100px;
	width: 3.5em;
	height: 3.5em;
}

.chichester-uni::after {
	content: "";
	display: inline-block;
	vertical-align: middle;

	background-image: url("chichester-uni-logo2.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;

	margin: 10px;
	margin-left: 100px;
	width: 3.5em;
	height: 3.5em;
}

.chichester-city::after {
	content: "";
	display: inline-block;
	vertical-align: middle;

	background-image: url("chichester-uni-logo.jpeg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;

	margin: 10px;
	margin-left: 100px;
	width: 3.5em;
	height: 3.5em;
}

.america::after {
	content: "";
	display: inline-block;
	vertical-align: middle;

	background-image: url("america.jpeg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;

	margin: 10px;
	margin-left: 100px;
	width: 3.5em;
	height: 3.5em;
}

#temp {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	text-decoration: none; /* No underlines on the link */
	z-index: 10; /* Places the link above everything else in the div */
	background-color: #fff; /* Fix to make div clickable in IE */
	opacity: 0; /* Fix to make div clickable in IE */
	filter: alpha(opacity=1); /* Fix to make div clickable in IE */
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: #f8fafc;
	border-radius: 5px;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #3b82f6, #8b5cf6);
	border-radius: 5px;
	border: 2px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #2563eb, #7c3aed);
}

/* Navigation */
.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	z-index: 1000;
	padding: 1.25rem 0;
	transition: all 0.3s ease;
	border-bottom: 1px solid rgba(226, 232, 240, 0.3);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.navbar {
	position: relative;
}
/* Ensure nav-logo is fully left-aligned and nav-menu is pushed right */
.nav-container {
	justify-content: flex-start;
}

.nav-logo {
	margin-right: auto;
	position: relative;
	flex-shrink: 0;
}

.nav-logo a {
	color: #475569;
	text-decoration: none;
	font-weight: 800;
	transition: all 0.3s ease;
	position: relative;
	font-size: 1.75rem;
	letter-spacing: -0.025em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo a:hover {
	color: #1e293b;
}

.nav-logo a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -8px;
	left: 0;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6);
	transition: width 0.3s ease;
	border-radius: 1px;
}

.nav-logo a:hover::after {
	width: 100%;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 3rem;
	margin-left: auto;
}

.nav-link {
	color: #475569;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
	font-size: 0.95rem;
	letter-spacing: 0.025em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-link:hover {
	color: #1e293b;
}

.nav-link::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -8px;
	left: 0;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6);
	transition: width 0.3s ease;
	border-radius: 1px;
}

.nav-link:hover::after {
	width: 100%;
}

.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
}

.bar {
	width: 25px;
	height: 3px;
	background-color: #333;
	margin: 3px 0;
	transition: 0.3s;
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	color: white;
	padding-top: 80px;
	position: relative;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
	opacity: 0.3;
}

.hero-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6rem;
	align-items: center;
	position: relative;
	z-index: 2;
}

.hero-content {
	position: relative;
	z-index: 2;
}

.hero-title {
	font-size: 4rem;
	font-weight: 800;
	margin-bottom: 1.5rem;
	background: linear-gradient(45deg, #ffffff, #f1f5f9);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.1;
}

.hero-subtitle {
	font-size: 1.8rem;
	font-weight: 500;
	margin-bottom: 2rem;
	color: #e2e8f0;
	line-height: 1.3;
}

.hero-description {
	font-size: 1.2rem;
	margin-bottom: 3rem;
	color: #cbd5e1;
	line-height: 1.7;
	max-width: 500px;
}

.hero-buttons {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.btn {
	padding: 16px 32px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	display: inline-block;
	border: none;
	cursor: pointer;
	font-size: 1.1rem;
	position: relative;
	overflow: hidden;
}

.btn-primary {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: white;
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
	background: transparent;
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-3px);
}

.hero-image {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.hero-profile-img {
	width: 100%;
	max-width: 500px;
	height: 600px;
	object-fit: cover;
	object-position: center;
	border-radius: 20px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
	filter: brightness(1.05) contrast(1.1) saturate(1.1);
	position: relative;
	z-index: 1;
	border: 4px solid rgba(255, 255, 255, 0.1);
	transition: all 0.4s ease;
}

.hero-profile-img:hover {
	transform: scale(1.02);
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.hero-content {
	position: relative;
	z-index: 2;
}

/* Section Styles */
.section-title {
	font-size: 3rem;
	font-weight: 800;
	text-align: center;
	margin-bottom: 4rem;
	color: #0f172a;
	position: relative;
	letter-spacing: -0.025em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title::after {
	content: "";
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6);
	border-radius: 2px;
}

/* About Section */
.about {
	padding: 120px 0;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-content {
	max-width: 900px;
	margin: 0 auto;
}

.about-text p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: #475569;
	line-height: 1.8;
	font-weight: 400;
}

.about-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 3rem;
	margin-top: 4rem;
}

.stat {
	text-align: center;
	padding: 3rem 2rem;
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 1px solid rgba(226, 232, 240, 0.5);
	backdrop-filter: blur(10px);
}

.stat:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat h3 {
	font-size: 3rem;
	font-weight: 800;
	color: #3b82f6;
	margin-bottom: 0.75rem;
	letter-spacing: -0.025em;
}

.stat p {
	color: #64748b;
	font-weight: 600;
	font-size: 1.1rem;
}

/* Stat Tooltip Styles */
.stat {
	position: relative;
	cursor: pointer;
}

.stat-tooltip {
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(30, 41, 59, 0.95);
	backdrop-filter: blur(20px);
	color: white;
	padding: 0;
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
	min-width: 300px;
	max-width: 400px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:hover .stat-tooltip {
	opacity: 1;
	visibility: visible;
	top: -30px;
}

.tooltip-content {
	padding: 1.5rem;
}

.tooltip-content h4 {
	color: #3b82f6;
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-align: center;
}

.tooltip-content ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tooltip-content li {
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #e2e8f0;
}

.tooltip-content li:last-child {
	margin-bottom: 0;
}

.tooltip-content strong {
	color: #fbbf24;
	font-weight: 600;
}

/* Tooltip arrow */
.stat-tooltip::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid rgba(30, 41, 59, 0.95);
}

/* Experience Section */
.experience {
	padding: 120px 0;
	background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
}

.timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, #3b82f6, #8b5cf6);
	border-radius: 2px;
	box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.timeline-item {
	margin-bottom: 4rem;
	position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
	margin-left: 0;
	margin-right: 55%;
	padding-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
	margin-left: 55%;
	margin-right: 0;
	padding-left: 3rem;
}

.timeline-content {
	background: white;
	padding: 2.5rem;
	border-radius: 16px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	position: relative;
	transition: all 0.3s ease;
	border: 1px solid rgba(226, 232, 240, 0.5);
	backdrop-filter: blur(10px);
}

.timeline-content:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.timeline-content::before {
	content: "";
	position: absolute;
	top: 50%;
	width: 20px;
	height: 20px;
	background: #2563eb;
	border-radius: 50%;
	transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
	right: -70px;
}

.timeline-item:nth-child(even) .timeline-content::before {
	left: -70px;
}

.timeline-content h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 0.5rem;
}

.timeline-content h4 {
	font-size: 1.1rem;
	color: #3b82f6;
	margin-bottom: 0.5rem;
}

.timeline-date {
	color: #64748b;
	font-weight: 500;
	margin-bottom: 1rem;
}

.timeline-content ul {
	list-style: none;
	padding-left: 0;
}

.timeline-content li {
	margin-bottom: 0.5rem;
	padding-left: 1.5rem;
	position: relative;
	color: #475569;
}

.timeline-content li::before {
	content: "▸";
	position: absolute;
	left: 0;
	color: #2563eb;
	font-weight: bold;
}

/* Education Section */
.education {
	padding: 120px 0;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.education-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
	gap: 4rem;
	max-width: 1100px;
	margin: 0 auto;
}

.education-card {
	background: white;
	padding: 3rem;
	border-radius: 16px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	text-align: center;
	border: 1px solid rgba(226, 232, 240, 0.5);
	backdrop-filter: blur(10px);
}

.education-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.education-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	font-size: 2rem;
	color: white;
	box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
	transition: all 0.3s ease;
}

.education-icon:hover {
	transform: scale(1.1);
	box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.education-card h3 {
	font-size: 1.3rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 0.5rem;
}

.education-card h4 {
	font-size: 1rem;
	color: #3b82f6;
	margin-bottom: 0.5rem;
}

.education-date {
	color: #64748b;
	font-weight: 500;
	margin-bottom: 1rem;
}

.education-card p {
	color: #475569;
	line-height: 1.6;
}

/* Certificates Section */
.certificates {
	padding: 120px 0;
	background: linear-gradient(135deg, #fefefe 0%, #fafbfc 100%);
}

.certificates-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 3rem;
	max-width: 1300px;
	margin: 0 auto;
}

.certificate-item {
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	overflow: visible;
	transition: all 0.4s ease;
	text-align: center;
	border: 1px solid rgba(226, 232, 240, 0.5);
	backdrop-filter: blur(10px);
	position: relative;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.certificate-item:hover {
	transform: translateY(-8px);
	overflow: visible;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.certificate-image {
	position: relative;
	overflow: visible; /* allow overlays to extend */
	height: auto;
	max-height: 360px; /* give more room on default */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

#pre-last-cert .certificate-image {
	width: fit-content;
}
#last-cert .certificate-image {
	width: fit-content;
}
.cert-img {
	width: 100%;
	height: auto;
	max-height: 300px;
	object-fit: contain;
	transition: transform 0.3s ease;
	border-radius: 8px;
}

.certificate-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(59, 130, 246, 0.95);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	padding: 1.5rem;
	border-radius: 8px;
	cursor: pointer;
	overflow: auto; /* allow content to scroll if taller */
	z-index: 2;
}

.certificate-item:hover .certificate-overlay {
	opacity: 1;
}

.certificate-item:hover .cert-img {
	transform: scale(1.1);
}

.certificate-info {
	overflow: visible;
	text-align: center;
	max-width: 280px;
}

.certificate-info h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: white;
}

.certificate-info h4 {
	font-size: 0.9rem;
	color: #e2e8f0;
	margin-bottom: 0.5rem;
}

.cert-date {
	color: #cbd5e1;
	font-weight: 500;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.certificate-info p {
	color: #e2e8f0;
	line-height: 1.6;
	font-size: 0.9rem;
}

.certificate-grades {
	display: none;
	position: absolute;
	left: 50%;
	top: -20px;
	transform: translate(-50%, -100%);
	z-index: 1000;
	background: rgba(30, 41, 59, 0.98);
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
	width: 300px;
	max-width: 90vw;
	pointer-events: none;
}

/* Removed hover - now controlled by JavaScript */

/* Add fadeInUp animation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translate(-50%, -80%);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -100%);
	}
}
.grades-img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	border: 2px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	margin-bottom: 0.75rem;
}
.grades-text {
	color: #e2e8f0;
	font-size: 0.9rem;
	text-align: center;
	margin: 0;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translate(-50%, -20px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

.cert-title {
	margin-top: 1rem;
	text-align: center;
	font-size: 1rem;
	color: #1e293b;
}

/* Grades toggle arrow button */
.grades-toggle-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(59, 130, 246, 0.9);
	color: white;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
	font-size: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.grades-toggle-btn:hover {
	background: rgba(59, 130, 246, 1);
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.grades-toggle-btn.active {
	background: rgba(239, 68, 68, 0.9);
	transform: rotate(180deg);
}

.grades-toggle-btn.active:hover {
	background: rgba(239, 68, 68, 1);
}

/* Show grades when active */
.certificate-grades.show {
	display: block;
	animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
} /* Certificate Modal */
.certificate-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 2rem;
}

.certificate-modal {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 2rem;
	color: white;
	cursor: pointer;
	z-index: 10001;
	background: rgba(0, 0, 0, 0.5);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.modal-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

.modal-image {
	width: 100%;
	height: auto;
	display: block;
}

/* Skills Section */
.skills {
	padding: 120px 0;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 3rem;
	max-width: 1300px;
	margin: 0 auto;
}

.skill-category {
	background: white;
	padding: 3rem;
	border-radius: 16px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 1px solid rgba(226, 232, 240, 0.5);
	backdrop-filter: blur(10px);
}

.skill-category:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.skill-category h3 {
	font-size: 1.3rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 1.5rem;
	text-align: center;
	position: relative;
}

.skill-category h3::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 3px;
	background: linear-gradient(90deg, #2563eb, #7c3aed);
	border-radius: 2px;
}

.skill-items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	justify-content: center;
}

.skill-item {
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.skill-item:hover {
	transform: scale(1.05) translateY(-2px);
	box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Upcoming Courses Section */
.upcoming {
	padding: 120px 0;
	background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
}

.upcoming-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(300px, 1fr));
	gap: 2.5rem;
	margin-top: 4rem;
}
.upcoming-card-last {
	grid-column: 1 / -1;
	place-self: center;
}

.upcoming-card {
	background: white;
	padding: 2.5rem;
	border-radius: 16px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 1px solid rgba(226, 232, 240, 0.5);
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}

.upcoming-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.upcoming-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.upcoming-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	transition: all 0.3s ease;
}

.upcoming-icon i {
	font-size: 1.5rem;
	color: white;
}

.upcoming-card:hover .upcoming-icon {
	transform: scale(1.1);
}

.upcoming-card h3 {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.upcoming-card h4 {
	font-size: 1rem;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 1rem;
}

.upcoming-date {
	font-size: 0.9rem;
	font-weight: 600;
	color: #3b82f6;
	margin-bottom: 0.5rem;
}

.upcoming-status {
	font-size: 0.8rem;
	font-weight: 500;
	color: #f59e0b;
	background: rgba(245, 158, 11, 0.1);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	display: inline-block;
	margin-bottom: 1rem;
}

.upcoming-card p {
	color: #64748b;
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Contact Section */
.contact {
	padding: 120px 0;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.contact-content {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 800px;
	margin: 0 auto;
}

.contact-info h3 {
	font-size: 2.5rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 1.5rem;
	letter-spacing: -0.025em;
}

.contact-info p {
	color: #475569;
	margin-bottom: 3rem;
	line-height: 1.8;
	font-size: 1.2rem;
}

.resume-download {
	margin-bottom: 2rem;
	text-align: center;
}

.resume-download .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 12px;
	transition: all 0.3s ease;
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.resume-download .btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.contact-items {
	margin-bottom: 2rem;
}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	color: #475569;
}

.contact-item i {
	width: 20px;
	margin-right: 1rem;
	color: #2563eb;
}

.social-links {
	justify-content: center;
	align-items: center;
	display: flex;
	gap: 1rem;
}

.social-link {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.social-link:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.contact-form {
	background: white;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 1rem;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.3s ease;
	font-family: inherit;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
	transform: translateY(-1px);
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

/* Footer */
.footer {
	background: #1e293b;
	color: white;
	text-align: center;
	padding: 2rem 0;
}

/* Mobile-First Responsive Design */

/* Large screens (1200px and above) */
@media (min-width: 1200px) {
	.nav-container {
		max-width: 1400px;
		padding: 0 32px;
	}

	.nav-logo a {
		font-size: 2rem;
	}

	.nav-link {
		font-size: 1.1rem;
		gap: 4rem;
	}

	.hero-container {
		max-width: 1400px;
		gap: 8rem;
	}

	.hero-title {
		font-size: 4.5rem;
	}

	.hero-subtitle {
		font-size: 2rem;
	}

	.hero-description {
		font-size: 1.4rem;
	}
}

/* Medium screens (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
	.nav-container {
		padding: 0 24px;
	}

	.nav-logo a {
		font-size: 1.6rem;
	}

	.nav-link {
		font-size: 1rem;
		gap: 2.5rem;
	}

	.hero-container {
		gap: 4rem;
	}

	.hero-title {
		font-size: 3.5rem;
	}

	.hero-subtitle {
		font-size: 1.6rem;
	}

	.hero-description {
		font-size: 1.2rem;
	}
}

/* Small screens (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
	.nav-container {
		padding: 0 20px;
	}

	.nav-logo a {
		font-size: 1.4rem;
	}

	.nav-link {
		font-size: 0.95rem;
		gap: 2rem;
	}

	.hero-container {
		gap: 3rem;
	}

	.hero-title {
		font-size: 3rem;
	}

	.hero-subtitle {
		font-size: 1.4rem;
	}

	.hero-description {
		font-size: 1.1rem;
	}
}

/* Add smooth scrolling for mobile */
@media (max-width: 768px) {
	html {
		scroll-behavior: smooth;
	}

	/* Improve touch targets */
	.nav-link,
	.btn,
	.social-link,
	.stat {
		min-height: 44px;
	}

	/* Certificate grades now controlled by arrow button click */

	/* Improve certificate grid for tablets */
	.certificates-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}

	/* Better spacing for mobile */
	.hero-container,
	.about-content,
	.timeline,
	.education-grid,
	.certificates-grid,
	.upcoming-grid,
	.skills-grid,
	.contact-content {
		margin-top: 2rem;
	}

	/* Enhanced mobile navigation */
	.navbar {
		padding: 1rem 0;
	}

	.nav-container {
		padding: 0 20px;
		justify-content: space-between;
	}

	/* Better mobile hero */
	.hero::before {
		opacity: 0.2;
	}

	/* Improved mobile cards */
	.education-card,
	.certificate-item,
	.upcoming-card,
	.skill-category,
	.timeline-content {
		box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
		border: 1px solid rgba(226, 232, 240, 0.3);
	}

	/* Better mobile buttons */
	.btn {
		box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
	}

	.btn:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
	}

	/* Enhanced mobile tooltips */
	.stat-tooltip {
		box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
		border: 1px solid rgba(255, 255, 255, 0.1);
	}
}

/* Responsive content sections */
@media (min-width: 1200px) {
	.container {
		max-width: 1400px;
		padding: 0 32px;
	}

	.about-stats {
		grid-template-columns: repeat(3, 1fr);
		gap: 3rem;
	}

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

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

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

	.timeline-content {
		padding: 3rem;
	}

	/* Larger certificate grades for desktop */
	.certificate-grades {
		width: 350px;
		padding: 2rem;
	}

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

@media (min-width: 768px) and (max-width: 1199px) {
	.container {
		max-width: 1200px;
		padding: 0 24px;
	}

	.about-stats {
		grid-template-columns: repeat(4, 1fr);
		gap: 2.5rem;
	}

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

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

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

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

@media (min-width: 480px) and (max-width: 767px) {
	.container {
		padding: 0 20px;
	}

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

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

	.upcoming-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.skills-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

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

	.hero-profile-img {
		height: 350px;
		width: 350px;
	}
}

/* Responsive hero image */
@media (min-width: 1200px) {
	.hero-profile-img {
		height: 500px;
		width: 500px;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.hero-profile-img {
		height: 400px;
		width: 400px;
	}
}

/* Responsive buttons */
@media (min-width: 1200px) {
	.btn {
		padding: 1.2rem 2.5rem;
		font-size: 1.2rem;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.btn {
		padding: 1rem 2rem;
		font-size: 1.1rem;
	}
}

/* Responsive cards */
@media (min-width: 1200px) {
	.education-card,
	.certificate-item,
	.upcoming-card,
	.skill-category {
		padding: 3rem;
	}

	.certificate-image {
		max-height: 350px;
	}

	.cert-img {
		max-height: 350px;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.education-card,
	.certificate-item,
	.upcoming-card,
	.skill-category {
		padding: 2.5rem;
	}

	.certificate-image {
		max-height: 320px;
	}

	.cert-img {
		max-height: 320px;
	}
}
@media (max-width: 768px) {
	/* Navigation */
	.hamburger {
		display: flex;
	}

	.nav-menu {
		position: fixed;
		left: -100%;
		top: 80px;
		flex-direction: column;
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(20px);
		width: 100%;
		text-align: center;
		transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
		padding: 2rem 0;
		border-top: 1px solid rgba(226, 232, 240, 0.3);
	}

	.nav-menu.active {
		left: 0;
	}

	.nav-item {
		margin: 1rem 0;
	}

	.nav-link {
		font-size: 1.1rem;
		padding: 1rem 2rem;
		display: block;
		border-radius: 12px;
		margin: 0 1rem;
		transition: all 0.3s ease;
	}

	.nav-link:hover {
		background: linear-gradient(135deg, #3b82f6, #8b5cf6);
		color: white;
		transform: translateY(-2px);
	}

	/* Hamburger animation */
	.hamburger.active .bar:nth-child(2) {
		opacity: 0;
	}

	.hamburger.active .bar:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.hamburger.active .bar:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	/* Hero Section */
	.hero {
		min-height: 100vh;
		padding: 120px 20px 60px;
	}

	.hero-container {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 3rem;
		padding: 0;
	}

	.hero-image {
		order: -1;
		margin-bottom: 2rem;
	}

	.hero-profile-img {
		height: 300px;
		width: 300px;
		max-width: 100%;
		border-radius: 50%;
		object-fit: cover;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	}

	.hero-title {
		font-size: 2.8rem;
		margin-bottom: 1rem;
		line-height: 1.2;
	}

	.hero-subtitle {
		font-size: 1.4rem;
		margin-bottom: 1.5rem;
		color: #cbd5e1;
	}

	.hero-description {
		font-size: 1.1rem;
		line-height: 1.7;
		margin-bottom: 2.5rem;
		color: #e2e8f0;
	}

	.hero-buttons {
		flex-direction: column;
		gap: 1rem;
		align-items: center;
	}

	.btn {
		width: 100%;
		max-width: 280px;
		padding: 1rem 2rem;
		font-size: 1.1rem;
		border-radius: 12px;
		text-align: center;
	}

	/* Sections */
	.about,
	.experience,
	.education,
	.certificates,
	.upcoming,
	.skills,
	.contact {
		padding: 80px 20px;
	}

	.section-title {
		font-size: 2.2rem;
		margin-bottom: 3rem;
		text-align: center;
	}

	/* About Section */
	.about-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
		margin-top: 3rem;
	}

	.stat {
		padding: 2rem 1.5rem;
		border-radius: 16px;
		text-align: center;
	}

	.stat h3 {
		font-size: 2.5rem;
		margin-bottom: 0.5rem;
	}

	.stat p {
		font-size: 1rem;
	}

	/* Timeline */
	.timeline::before {
		left: 20px;
	}

	.timeline-item:nth-child(odd) .timeline-content,
	.timeline-item:nth-child(even) .timeline-content {
		margin-left: 50px;
		margin-right: 0;
		padding: 2rem;
		border-radius: 16px;
	}

	.timeline-item:nth-child(odd) .timeline-content::before,
	.timeline-item:nth-child(even) .timeline-content::before {
		left: -45px;
		right: auto;
	}

	.timeline-content h3 {
		font-size: 1.3rem;
	}

	.timeline-content h4 {
		font-size: 1.1rem;
	}

	/* Cards */
	.education-grid,
	.certificates-grid,
	.upcoming-grid,
	.skills-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.education-card,
	.certificate-item,
	.upcoming-card,
	.skill-category {
		padding: 2rem;
		border-radius: 16px;
	}

	.certificate-image {
		max-height: 280px;
	}

	.cert-img {
		max-height: 280px;
	}

	/* Contact */
	.contact-content {
		flex-direction: column;
		text-align: center;
		gap: 3rem;
	}

	.contact-info h3 {
		font-size: 2.2rem;
		margin-bottom: 1.5rem;
	}

	.contact-info p {
		font-size: 1.1rem;
		margin-bottom: 2.5rem;
		line-height: 1.7;
	}

	.contact-items {
		margin-bottom: 2.5rem;
	}

	.contact-item {
		margin-bottom: 1.5rem;
		font-size: 1rem;
	}

	.resume-download {
		margin-bottom: 2.5rem;
	}

	.resume-download .btn {
		width: 100%;
		max-width: 300px;
		padding: 1.2rem 2rem;
		font-size: 1.1rem;
	}

	.social-links {
		justify-content: center;
		gap: 1.5rem;
	}

	.social-link {
		width: 60px;
		height: 60px;
		font-size: 1.2rem;
	}

	/* Tooltips */
	.stat-tooltip {
		min-width: 280px;
		max-width: 320px;
		left: 50%;
		transform: translateX(-50%);
		top: -40px;
	}

	.tooltip-content {
		padding: 1.2rem;
	}

	.tooltip-content h4 {
		font-size: 1.1rem;
		margin-bottom: 1rem;
	}

	.tooltip-content li {
		font-size: 0.9rem;
		margin-bottom: 0.5rem;
	}
}

@media (max-width: 480px) {
	/* Container */
	.container {
		padding: 0 16px;
	}

	/* Enhanced small screen experience */
	.hero {
		background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
	}

	/* Mobile certificate grades positioning */
	.certificate-grades {
		width: calc(100vw - 32px);
		max-width: 280px;
		left: 50%;
		transform: translate(-50%, -100%);
		padding: 1rem;
	}

	/* Improve certificate grid for mobile */
	.certificates-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	/* Better certificate image sizing for mobile */
	.certificate-image {
		max-height: 200px;
	}

	.cert-img {
		max-height: 200px;
	}

	/* Better small screen navigation */
	.navbar {
		padding: 0.8rem 0;
	}

	.nav-logo a {
		font-size: 1.3rem;
	}

	.nav-container {
		padding: 0 16px;
	}

	/* Improved small screen hero */
	.hero-profile-img {
		border: 4px solid rgba(255, 255, 255, 0.1);
	}

	/* Better small screen cards */
	.education-card,
	.certificate-item,
	.upcoming-card,
	.skill-category,
	.timeline-content {
		margin-bottom: 1rem;
	}

	/* Enhanced small screen buttons */
	.btn {
		border-radius: 10px;
	}

	/* Better small screen spacing */
	.about-stats {
		margin-top: 2rem;
	}

	/* Improved small screen tooltips */
	.stat-tooltip {
		border-radius: 10px;
	}

	/* Navigation */
	.nav-logo a {
		font-size: 1.4rem;
	}

	.nav-link {
		font-size: 1rem;
		padding: 0.8rem 1.5rem;
	}

	/* Hero Section */
	.hero {
		padding: 100px 16px 40px;
	}

	.hero-profile-img {
		height: 250px;
		width: 250px;
	}

	.hero-title {
		font-size: 2.2rem;
		line-height: 1.1;
	}

	.hero-subtitle {
		font-size: 1.2rem;
	}

	.hero-description {
		font-size: 1rem;
		line-height: 1.6;
	}

	.btn {
		max-width: 260px;
		padding: 0.9rem 1.8rem;
		font-size: 1rem;
	}

	/* Sections */
	.about,
	.experience,
	.education,
	.certificates,
	.upcoming,
	.skills,
	.contact {
		padding: 60px 16px;
	}

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

	/* About Section */
	.about-stats {
		grid-template-columns: 1fr;
		gap: 1rem;
		margin-top: 2.5rem;
	}

	.stat {
		padding: 1.5rem 1rem;
	}

	.stat h3 {
		font-size: 2.2rem;
	}

	.stat p {
		font-size: 0.9rem;
	}

	/* Timeline */
	.timeline-item:nth-child(odd) .timeline-content,
	.timeline-item:nth-child(even) .timeline-content {
		padding: 1.5rem;
		margin-left: 40px;
	}

	.timeline-item:nth-child(odd) .timeline-content::before,
	.timeline-item:nth-child(even) .timeline-content::before {
		left: -35px;
	}

	.timeline-content h3 {
		font-size: 1.2rem;
	}

	.timeline-content h4 {
		font-size: 1rem;
	}

	.timeline-content ul {
		margin-top: 1rem;
	}

	.timeline-content li {
		font-size: 0.9rem;
		margin-bottom: 0.5rem;
	}

	/* Cards */
	.education-card,
	.certificate-item,
	.upcoming-card,
	.skill-category {
		padding: 1.5rem;
	}

	.certificate-image {
		max-height: 250px;
	}

	.cert-img {
		max-height: 250px;
	}

	.upcoming-card h3 {
		font-size: 1.1rem;
	}

	.upcoming-card h4 {
		font-size: 0.9rem;
	}

	.upcoming-card p {
		font-size: 0.9rem;
	}

	.skill-category h3 {
		font-size: 1.1rem;
	}

	.skill-item {
		font-size: 0.85rem;
		padding: 0.5rem 0.8rem;
	}

	/* Contact */
	.contact-info h3 {
		font-size: 1.8rem;
	}

	.contact-info p {
		font-size: 1rem;
		margin-bottom: 2rem;
	}

	.contact-item {
		font-size: 0.9rem;
		margin-bottom: 1rem;
	}

	.resume-download .btn {
		max-width: 240px;
		padding: 0.8rem 1.5rem;
		font-size: 0.95rem;
	}

	.social-link {
		width: 50px;
		height: 50px;
		font-size: 1.1rem;
	}

	/* Tooltips */
	.stat-tooltip {
		min-width: 240px;
		max-width: 280px;
		top: -35px;
	}

	.tooltip-content {
		padding: 1rem;
	}

	.tooltip-content h4 {
		font-size: 1rem;
	}

	.tooltip-content li {
		font-size: 0.85rem;
	}
}

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

.hero-content,
.about-content,
.timeline-item,
.education-card,
.skill-category {
	animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
	scroll-padding-top: 80px;
}

/* Hide Contact link on smaller screens to save space */
@media (max-width: 900px) {
	.nav-link[href="#contact"] {
		display: none !important;
	}
}

/* Image Preview Modal */
.image-preview-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.image-preview-modal.show {
	display: flex;
	animation: fadeIn 0.3s ease-out;
}

.preview-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.preview-modal-content {
	position: relative;
	background: white;
	border-radius: 16px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
	max-width: 90vw;
	max-height: 90vh;
	overflow: hidden;
	z-index: 10;
	animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preview modal navigation buttons */
.preview-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 15;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preview-nav-btn:hover {
	background: rgba(0, 0, 0, 0.75);
	transform: translateY(-50%) scale(1.05);
}

.preview-nav-btn.prev {
	left: 10px;
}
.preview-nav-btn.next {
	right: 10px;
}

@media (max-width: 768px) {
	.preview-nav-btn {
		width: 38px;
		height: 38px;
	}
	.preview-nav-btn.prev {
		left: 6px;
	}
	.preview-nav-btn.next {
		right: 6px;
	}
}

.preview-close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(239, 68, 68, 0.9);
	color: white;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 20;
	font-size: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.preview-close-btn:hover {
	background: rgba(239, 68, 68, 1);
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.preview-image-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
}

/* Inline switch arrow shown only for fsi-master group */
.preview-inline-switch {
	position: absolute;
	bottom: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(59, 130, 246, 0.95);
	color: #fff;
	display: none; /* JS toggles this to flex when applicable */
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 16;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, background 0.2s ease;
}
.preview-inline-switch:hover {
	transform: scale(1.06);
	background: rgba(37, 99, 235, 1);
}

@media (max-width: 768px) {
	.preview-inline-switch {
		bottom: 12px;
		right: 12px;
		width: 40px;
		height: 40px;
	}
}

.preview-img {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.preview-caption {
	margin-top: 15px;
	text-align: center;
	color: #374151;
	font-size: 1.1rem;
	font-weight: 500;
	max-width: 500px;
	line-height: 1.5;
}

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

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

/* Make images clickable */
.cert-img,
.grades-img,
.hero-profile-img {
	cursor: pointer;
	transition: transform 0.3s ease;
}

.cert-img:hover,
.grades-img:hover,
.hero-profile-img:hover {
	transform: scale(1.02);
}

/* Responsive preview modal */
@media (max-width: 768px) {
	.preview-modal-content {
		max-width: 95vw;
		max-height: 95vh;
		margin: 10px;
	}

	.preview-image-container {
		padding: 15px;
	}

	.preview-img {
		max-height: 60vh;
	}

	.preview-caption {
		font-size: 1rem;
		margin-top: 10px;
	}

	.preview-close-btn {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
		font-size: 14px;
	}
}
