/* ===================================
   Modern Portfolio Styles
   =================================== */

:root {
	/* Vibrant Color Palette */
	--primary: #6366f1;
	--secondary: #ec4899;
	--accent: #14b8a6;
	--success: #10b981;
	--warning: #f59e0b;
	--danger: #ef4444;
	
	/* Gradients */
	--gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	--gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
	--gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
	--gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
	
	/* Neutral Colors */
	--dark: #0f172a;
	--dark-light: #1e293b;
	--gray: #64748b;
	--light: #f1f5f9;
	--white: #ffffff;
	
	/* Spacing */
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 2rem;
	--spacing-lg: 4rem;
	--spacing-xl: 6rem;
	
	/* Typography */
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Space Grotesk', sans-serif;
	
	/* Transitions */
	--transition-fast: 0.2s ease;
	--transition-normal: 0.3s ease;
	--transition-slow: 0.5s ease;
	
	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
	--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
	
	/* Border Radius */
	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-full: 9999px;
}

/* ===================================
   Reset & Base Styles
   =================================== */

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

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	font-family: var(--font-primary);
	background: var(--dark);
	color: var(--light);
	line-height: 1.6;
	overflow-x: hidden;
}

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

.section {
	padding: 6rem 0;
	position: relative;
}

/* ===================================
   Animated Background
   =================================== */

.animated-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	overflow: hidden;
}

.gradient-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.3;
	animation: float 20s infinite ease-in-out;
}

.orb-1 {
	width: 500px;
	height: 500px;
	background: var(--gradient-1);
	top: -10%;
	left: -10%;
	animation-delay: 0s;
}

.orb-2 {
	width: 400px;
	height: 400px;
	background: var(--gradient-2);
	top: 50%;
	right: -10%;
	animation-delay: 5s;
}

.orb-3 {
	width: 600px;
	height: 600px;
	background: var(--gradient-3);
	bottom: -20%;
	left: 30%;
	animation-delay: 10s;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25% { transform: translate(50px, -50px) scale(1.1); }
	50% { transform: translate(-30px, 30px) scale(0.9); }
	75% { transform: translate(30px, 50px) scale(1.05); }
}

/* ===================================
   Navigation
   =================================== */

.floating-nav {
	position: fixed;
	top: 2rem;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(30, 41, 59, 0.8);
	backdrop-filter: blur(20px);
	padding: 1rem 2rem;
	border-radius: var(--radius-full);
	display: flex;
	align-items: center;
	gap: 3rem;
	z-index: 1000;
	box-shadow: var(--shadow-lg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: var(--transition-normal);
}

.floating-nav:hover {
	box-shadow: var(--shadow-xl);
}

.nav-brand {
	font-size: 1.5rem;
	font-weight: 900;
	background: var(--gradient-1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-link {
	color: var(--light);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: var(--transition-fast);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
	background: var(--gradient-1);
	color: var(--white);
	transform: translateY(-2px);
}

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

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

.hamburger span {
	width: 25px;
	height: 3px;
	background: var(--light);
	border-radius: 2px;
	transition: var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 8rem 2rem 4rem;
}

.hero-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.hero-text {
	animation: fadeInUp 1s ease;
}

.greeting {
	font-size: 1.2rem;
	color: var(--accent);
	margin-bottom: 1rem;
	font-weight: 600;
}

.hero-title {
	font-size: 4rem;
	font-weight: 900;
	line-height: 1.1;
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
}

.gradient-text {
	background: var(--gradient-hero);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: gradientShift 3s ease infinite;
	background-size: 200% 200%;
}

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

.typing-container {
	height: 3rem;
	margin-bottom: 1.5rem;
}

.typing-text {
	font-size: 1.5rem;
	color: var(--secondary);
	font-weight: 600;
}

.cursor {
	color: var(--secondary);
	animation: blink 1s infinite;
}

@keyframes blink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

.hero-description {
	font-size: 1.1rem;
	color: var(--gray);
	margin-bottom: 2rem;
	line-height: 1.8;
}

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

.btn {
	padding: 1rem 2rem;
	border-radius: var(--radius-full);
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all var(--transition-normal);
	cursor: pointer;
	border: none;
	font-size: 1rem;
}

.btn-primary {
	background: var(--gradient-1);
	color: var(--white);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
	background: transparent;
	color: var(--light);
	border: 2px solid var(--primary);
}

.btn-secondary:hover {
	background: var(--primary);
	color: var(--white);
	transform: translateY(-3px);
}

/* Hero Visual */

.hero-visual {
	display: flex;
	justify-content: center;
	animation: fadeInRight 1s ease;
}

.profile-card {
	position: relative;
	width: 400px;
	height: 400px;
}

.card-glow {
	position: absolute;
	inset: -20px;
	background: var(--gradient-1);
	border-radius: 50%;
	filter: blur(40px);
	opacity: 0.5;
	animation: pulse 3s ease infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50% { transform: scale(1.1); opacity: 0.7; }
}

.profile-img {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--shadow-xl);
}

.floating-icons {
	position: absolute;
	inset: 0;
}

.icon-item {
	position: absolute;
	width: 60px;
	height: 60px;
	background: var(--gradient-2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-size: 1.5rem;
	box-shadow: var(--shadow-lg);
	animation: orbit 10s linear infinite;
	animation-delay: var(--delay);
}

.icon-item:nth-child(1) { top: 0; left: 50%; margin-left: -30px; }
.icon-item:nth-child(2) { top: 50%; right: 0; margin-top: -30px; }
.icon-item:nth-child(3) { bottom: 0; left: 50%; margin-left: -30px; }
.icon-item:nth-child(4) { top: 50%; left: 0; margin-top: -30px; }

@keyframes orbit {
	0% { transform: rotate(0deg) translateX(200px) rotate(0deg); }
	100% { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

/* Scroll Indicator */

.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	animation: fadeIn 2s ease;
}

.mouse {
	width: 30px;
	height: 50px;
	border: 2px solid var(--light);
	border-radius: 15px;
	position: relative;
}

.wheel {
	width: 4px;
	height: 10px;
	background: var(--light);
	border-radius: 2px;
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	animation: scroll 2s infinite;
}

@keyframes scroll {
	0% { top: 10px; opacity: 1; }
	100% { top: 30px; opacity: 0; }
}

.arrow-down {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.arrow-down span {
	width: 20px;
	height: 2px;
	background: var(--light);
	transform: rotate(45deg);
	animation: arrowMove 2s infinite;
}

.arrow-down span:nth-child(2) {
	transform: rotate(-45deg);
	margin-left: -10px;
}

@keyframes arrowMove {
	0%, 100% { opacity: 0; transform: translateY(-10px) rotate(45deg); }
	50% { opacity: 1; transform: translateY(0) rotate(45deg); }
}

/* ===================================
   Section Headers
   =================================== */

.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

.section-tag {
	display: inline-block;
	padding: 0.5rem 1.5rem;
	background: rgba(99, 102, 241, 0.1);
	color: var(--primary);
	border-radius: var(--radius-full);
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 1rem;
	border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
	font-size: 3rem;
	font-weight: 900;
	color: var(--white);
	margin-bottom: 1rem;
}

/* ===================================
   About Section
   =================================== */

.about-content {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 3rem;
}

.about-text {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.info-card {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	padding: 2rem;
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	gap: 1.5rem;
	transition: var(--transition-normal);
}

.info-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary);
}

.card-icon {
	width: 60px;
	height: 60px;
	background: var(--gradient-1);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: var(--white);
	flex-shrink: 0;
}

.card-content h3 {
	color: var(--white);
	margin-bottom: 0.5rem;
	font-size: 1.2rem;
}

.card-content p {
	color: var(--gray);
	line-height: 1.6;
}

.highlight {
	color: var(--accent) !important;
	font-weight: 600;
}

.quick-links {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.quick-link {
	flex: 1;
	min-width: 200px;
	padding: 1rem;
	background: var(--gradient-3);
	border-radius: var(--radius-md);
	text-decoration: none;
	color: var(--white);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 600;
	transition: var(--transition-normal);
}

.quick-link:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.quick-link i {
	font-size: 1.5rem;
}

/* Stats */

.about-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.stat-card {
	background: var(--gradient-2);
	padding: 2rem;
	border-radius: var(--radius-md);
	text-align: center;
	transition: var(--transition-normal);
}

.stat-card:hover {
	transform: scale(1.05);
	box-shadow: var(--shadow-lg);
}

.stat-number {
	font-size: 3rem;
	font-weight: 900;
	color: var(--white);
	margin-bottom: 0.5rem;
}

.stat-label {
	color: rgba(255, 255, 255, 0.9);
	font-weight: 600;
	font-size: 0.9rem;
}

/* ===================================
   Experience Section
   =================================== */

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

.experience-card {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: var(--transition-normal);
}

.experience-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-xl);
	border-color: var(--primary);
}

.card-header {
	padding: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(99, 102, 241, 0.1);
}

.company-logo {
	width: 60px;
	height: 60px;
	background: var(--gradient-1);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: var(--white);
}

.card-badge {
	padding: 0.5rem 1rem;
	background: var(--gradient-4);
	border-radius: var(--radius-full);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--white);
}

.card-body {
	padding: 1.5rem;
}

.card-body h3 {
	color: var(--white);
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}

.company {
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 1rem;
}

.description {
	color: var(--gray);
	line-height: 1.6;
	margin-bottom: 1rem;
}

.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tag {
	padding: 0.4rem 0.8rem;
	background: rgba(99, 102, 241, 0.2);
	border: 1px solid rgba(99, 102, 241, 0.3);
	border-radius: var(--radius-full);
	font-size: 0.8rem;
	color: var(--primary);
	font-weight: 500;
}

.card-footer {
	height: 200px;
	overflow: hidden;
}

.preview-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition-slow);
}

.experience-card:hover .preview-img {
	transform: scale(1.1);
}

/* ===================================
   Skills Section
   =================================== */

.skills-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.skill-category {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	padding: 2rem;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: var(--transition-normal);
}

.skill-category:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow-lg);
}

.category-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.category-header i {
	font-size: 2rem;
	color: var(--primary);
}

.category-header h3 {
	color: var(--white);
	font-size: 1.2rem;
}

.skill-items {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.skill-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.skill-info {
	display: flex;
	justify-content: space-between;
	color: var(--light);
	font-weight: 600;
	font-size: 0.9rem;
}

.skill-percent {
	color: var(--accent);
}

.skill-bar {
	height: 8px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-full);
	overflow: hidden;
}

.skill-progress {
	height: 100%;
	background: var(--gradient-1);
	border-radius: var(--radius-full);
	width: 0;
	animation: fillBar 1.5s ease forwards;
	animation-delay: 0.3s;
}

@keyframes fillBar {
	to { width: var(--width); }
}

/* ===================================
   Timeline Section
   =================================== */

.timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 0;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 100%;
	background: var(--gradient-1);
	border-radius: 2px;
}

.timeline-item {
	position: relative;
	margin-bottom: 4rem;
	display: flex;
	align-items: center;
	opacity: 0;
	animation: fadeInUp 0.6s ease forwards;
}

/* Hide earlier roles by default; shown only when .show-all is set on .timeline */
.timeline-item.earlier-role {
	display: none;
}

.timeline.show-all .timeline-item.earlier-role {
	display: flex;
}

.timeline-item:nth-child(odd) {
	flex-direction: row-reverse;
	animation-delay: 0.2s;
}

.timeline-item:nth-child(even) {
	animation-delay: 0.4s;
}

.timeline-dot {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 20px;
	background: var(--gradient-2);
	border-radius: 50%;
	border: 4px solid var(--dark);
	z-index: 2;
	box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

.timeline-content {
	width: 45%;
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	padding: 2rem;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: var(--transition-normal);
	position: relative;
}

.timeline-content::before {
	content: attr(data-year);
	position: absolute;
	top: -2rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--gradient-5);
	padding: 0.5rem 1rem;
	border-radius: var(--radius-full);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--white);
	white-space: nowrap;
}

.timeline-item:hover .timeline-content {
	transform: scale(1.05);
	box-shadow: var(--shadow-xl);
	border-color: var(--primary);
}

.timeline-icon {
	width: 50px;
	height: 50px;
	background: var(--gradient-3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: var(--white);
	margin-bottom: 1rem;
}

.timeline-content h3 {
	color: var(--white);
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}

.timeline-company {
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.timeline-content p {
	color: var(--gray);
	line-height: 1.6;
}

/* ===================================
   AI Work Section
   =================================== */

.ai-work-section {
	background: rgba(15, 23, 42, 0.5);
}

.ai-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
	gap: 2.5rem;
	margin-bottom: 4rem;
}

.ai-card {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: var(--transition-normal);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ai-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-xl);
	border-color: var(--accent);
}

.ai-image {
	position: relative;
	height: 280px;
	overflow: hidden;
	flex-shrink: 0;
}

.ai-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition-slow);
}

.ai-card:hover .ai-image img {
	transform: scale(1.1);
}

.ai-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 1.5rem;
}

.ai-badge {
	padding: 0.6rem 1.5rem;
	background: var(--gradient-1);
	color: var(--white);
	border-radius: var(--radius-full);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ai-content {
	padding: 2rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.ai-icon {
	width: 60px;
	height: 60px;
	background: var(--gradient-3);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	color: var(--white);
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.ai-content h3 {
	color: var(--white);
	font-size: 1.4rem;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.ai-content p {
	color: var(--gray);
	line-height: 1.7;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.ai-content .tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
}

/* ===================================
   Research Section
   =================================== */

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

.research-card {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: var(--transition-normal);
}

.research-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-xl);
	border-color: var(--accent);
}

.research-image {
	position: relative;
	height: 250px;
	overflow: hidden;
}

.research-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition-slow);
}

.research-card:hover .research-image img {
	transform: scale(1.1);
}

.research-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: var(--transition-normal);
}

.research-card:hover .research-overlay {
	opacity: 1;
}

.view-btn {
	padding: 0.75rem 1.5rem;
	background: var(--gradient-1);
	color: var(--white);
	text-decoration: none;
	border-radius: var(--radius-full);
	font-weight: 600;
	transition: var(--transition-fast);
}

.view-btn:hover {
	transform: scale(1.1);
}

.research-content {
	padding: 2rem;
}

.research-tag {
	display: inline-block;
	padding: 0.4rem 1rem;
	background: var(--gradient-4);
	color: var(--white);
	border-radius: var(--radius-full);
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.research-content h3 {
	color: var(--white);
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

.research-content p {
	color: var(--gray);
	line-height: 1.6;
	margin-bottom: 1rem;
}

.research-meta {
	display: flex;
	gap: 1rem;
	font-size: 0.85rem;
	color: var(--gray);
}

.research-meta span {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Publications */

.publications-section {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	padding: 3rem;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.publications-title {
	color: var(--white);
	font-size: 2rem;
	margin-bottom: 2rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.publications-title i {
	color: var(--accent);
}

.publications-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.publication-item {
	display: flex;
	gap: 2rem;
	padding: 1.5rem;
	background: rgba(99, 102, 241, 0.05);
	border-radius: var(--radius-md);
	border-left: 4px solid var(--primary);
	transition: var(--transition-normal);
}

.publication-item:hover {
	background: rgba(99, 102, 241, 0.1);
	transform: translateX(10px);
}

.pub-number {
	font-size: 2rem;
	font-weight: 900;
	color: var(--primary);
	opacity: 0.3;
}

.pub-content h4 {
	color: var(--white);
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.pub-authors {
	color: var(--gray);
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.pub-venue {
	color: var(--accent);
	font-size: 0.85rem;
	font-style: italic;
}

/* ===================================
   Contact Section
   =================================== */

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

.contact-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.contact-card {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	padding: 2rem;
	border-radius: var(--radius-lg);
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: var(--transition-normal);
}

.contact-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary);
}

.contact-icon {
	width: 70px;
	height: 70px;
	background: var(--gradient-1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: var(--white);
	margin: 0 auto 1rem;
}

.contact-card h3 {
	color: var(--white);
	margin-bottom: 0.5rem;
}

.contact-card a {
	color: var(--accent);
	text-decoration: none;
	transition: var(--transition-fast);
}

.contact-card a:hover {
	color: var(--primary);
}

.contact-card p {
	color: var(--gray);
	line-height: 1.6;
}

/* Social Links */

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

.social-link {
	width: 150px;
	padding: 1rem;
	border-radius: var(--radius-md);
	text-decoration: none;
	color: var(--white);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	transition: var(--transition-normal);
	border: 2px solid transparent;
}

.social-link i {
	font-size: 2rem;
}

.social-link.facebook {
	background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.social-link.scholar {
	background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
}

.social-link.linkedin {
	background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.social-link.github {
	background: linear-gradient(135deg, #333 0%, #000 100%);
}

.social-link.email {
	background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
}

.social-link:hover {
	transform: translateY(-5px) scale(1.05);
	box-shadow: var(--shadow-lg);
}

/* ===================================
   Blog Section
   =================================== */

.blog-section {
	background: rgba(15, 23, 42, 0.3);
}

.blog-grid {
	display: grid;
	gap: 3rem;
}

.blog-card {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: var(--transition-normal);
}

.blog-card.featured {
	border: 2px solid var(--accent);
	box-shadow: 0 0 30px rgba(20, 184, 166, 0.3);
}

.blog-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-xl);
}

.blog-image {
	position: relative;
	height: 350px;
	overflow: hidden;
}

.blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition-slow);
}

.blog-card:hover .blog-image img {
	transform: scale(1.1);
}

.blog-overlay {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
}

.blog-badge {
	padding: 0.6rem 1.5rem;
	background: var(--gradient-5);
	color: var(--white);
	border-radius: var(--radius-full);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.blog-content {
	padding: 2.5rem;
}

.blog-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	color: var(--gray);
}

.blog-meta span {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.blog-meta i {
	color: var(--accent);
}

.blog-content h3 {
	color: var(--white);
	font-size: 2rem;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.blog-content > p {
	color: var(--gray);
	line-height: 1.8;
	margin-bottom: 1.5rem;
	font-size: 1.05rem;
}

.blog-excerpt {
	background: rgba(99, 102, 241, 0.05);
	padding: 2rem;
	border-radius: var(--radius-md);
	border-left: 4px solid var(--primary);
	margin-bottom: 2rem;
}

.blog-excerpt h4 {
	color: var(--white);
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

.blog-excerpt ul {
	list-style: none;
	padding: 0;
	margin-bottom: 1.5rem;
}

.blog-excerpt li {
	color: var(--gray);
	line-height: 1.8;
	margin-bottom: 1rem;
	padding-left: 1.5rem;
	position: relative;
}

.blog-excerpt li::before {
	content: '▸';
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: bold;
}

.blog-excerpt li strong {
	color: var(--white);
}

.blog-excerpt p {
	color: var(--gray);
	line-height: 1.8;
	margin-bottom: 1rem;
}

.read-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	background: var(--gradient-1);
	color: var(--white);
	text-decoration: none;
	border-radius: var(--radius-full);
	font-weight: 600;
	transition: var(--transition-normal);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.read-more-btn:hover {
	transform: translateX(5px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.degree-title {
	color: var(--accent) !important;
	font-weight: 600 !important;
	font-size: 1.1rem !important;
	margin-bottom: 1rem !important;
}

/* ===================================
   Testimonials Section
   =================================== */

.testimonials-section {
	background: rgba(30, 41, 59, 0.3);
}

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

.testimonial-card {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	padding: 2rem;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: var(--transition-normal);
	position: relative;
	overflow: hidden;
}

.testimonial-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--gradient-1);
	transform: scaleX(0);
	transition: var(--transition-normal);
}

.testimonial-card:hover::before {
	transform: scaleX(1);
}

.testimonial-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-xl);
	border-color: var(--primary);
}

.testimonial-header {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	align-items: center;
}

.testimonial-avatar {
	width: 70px;
	height: 70px;
	background: var(--gradient-2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: var(--white);
	flex-shrink: 0;
	box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.testimonial-info h4 {
	color: var(--white);
	font-size: 1.1rem;
	margin-bottom: 0.3rem;
}

.testimonial-info p {
	color: var(--accent);
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.rating {
	display: flex;
	gap: 0.3rem;
}

.rating i {
	color: var(--warning);
	font-size: 0.9rem;
}

.testimonial-content {
	position: relative;
}

.quote-icon {
	position: absolute;
	top: -10px;
	left: -10px;
	font-size: 3rem;
	color: var(--primary);
	opacity: 0.2;
}

.testimonial-content p {
	color: var(--gray);
	line-height: 1.8;
	font-style: italic;
	position: relative;
	z-index: 1;
}

/* ===================================
   Dark Mode Toggle
   =================================== */

.dark-mode-toggle {
	width: 50px;
	height: 50px;
	background: rgba(99, 102, 241, 0.2);
	border: 2px solid var(--primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition-normal);
	color: var(--primary);
	font-size: 1.2rem;
}

.dark-mode-toggle:hover {
	background: var(--gradient-1);
	color: var(--white);
	transform: rotate(180deg) scale(1.1);
	box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Light Mode Styles */
body.light-mode {
	background: #f8fafc;
	color: var(--dark);
}

body.light-mode .animated-bg {
	opacity: 0.3;
}

body.light-mode .floating-nav {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-link {
	color: var(--dark);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
	color: var(--white);
}

body.light-mode .section-title,
body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4 {
	color: var(--dark);
}

body.light-mode .hero-description,
body.light-mode p {
	color: var(--gray);
}

body.light-mode .info-card,
body.light-mode .skill-category,
body.light-mode .timeline-content,
body.light-mode .ai-card,
body.light-mode .research-card,
body.light-mode .blog-card,
body.light-mode .testimonial-card,
body.light-mode .contact-card,
body.light-mode .publications-section {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .card-content h3,
body.light-mode .ai-content h3,
body.light-mode .research-content h3,
body.light-mode .blog-content h3,
body.light-mode .testimonial-info h4,
body.light-mode .contact-card h3 {
	color: var(--dark);
}

/* ===================================
   Back to Top Button
   =================================== */

.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 60px;
	height: 60px;
	background: var(--gradient-1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-size: 1.5rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition-normal);
	z-index: 999;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
	border: none;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	transform: translateY(-5px) scale(1.1);
	box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.back-to-top::before {
	content: '';
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	background: var(--gradient-1);
	opacity: 0;
	animation: ripple 2s infinite;
}

@keyframes ripple {
	0% {
		transform: scale(1);
		opacity: 0.5;
	}
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

/* ===================================
   Loading Animation
   =================================== */

.page-loader {
	position: fixed;
	inset: 0;
	background: var(--dark);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
	opacity: 0;
	visibility: hidden;
}

.loader-content {
	text-align: center;
}

.loader-spinner {
	width: 80px;
	height: 80px;
	border: 4px solid rgba(99, 102, 241, 0.2);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.loader-text {
	color: var(--light);
	font-size: 1.2rem;
	font-weight: 600;
}

/* ===================================
   Accessibility Improvements
   =================================== */

/* Focus Styles */
*:focus {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

button:focus,
a:focus {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}

/* Skip to Content Link */
.skip-to-content {
	position: absolute;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary);
	color: var(--white);
	padding: 1rem 2rem;
	border-radius: var(--radius-md);
	text-decoration: none;
	font-weight: 600;
	z-index: 10000;
	transition: var(--transition-fast);
}

.skip-to-content:focus {
	top: 1rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
	:root {
		--primary: #4f46e5;
		--secondary: #db2777;
		--accent: #0d9488;
	}
	
	.gradient-text,
	.nav-brand {
		-webkit-text-fill-color: var(--primary);
	}
}

/* ===================================
   Footer
   =================================== */

.footer {
	background: rgba(15, 23, 42, 0.8);
	padding: 2rem 0;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
	color: var(--gray);
	margin-bottom: 0.5rem;
}

.footer-content i {
	color: var(--danger);
	animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
}

/* ===================================
   Animations
   =================================== */

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

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

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

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
	.hero-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	
	.hero-visual {
		order: -1;
	}
	
	.profile-card {
		width: 300px;
		height: 300px;
	}
	
	.about-content {
		grid-template-columns: 1fr;
	}
	
	.timeline::before {
		left: 30px;
	}
	
	.timeline-item {
		flex-direction: row !important;
		padding-left: 80px;
	}
	
	.timeline-dot {
		left: 30px;
	}
	
	.timeline-content {
		width: 100%;
	}
}

@media (max-width: 768px) {
	/* Mobile: full-width top bar instead of centered pill */
	.floating-nav {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		transform: none;
		border-radius: 0;
		padding: 0.75rem 1rem;
		gap: 1rem;
		justify-content: space-between;
	}
	
	.nav-menu {
		position: fixed;
		top: 80px;
		left: -100%;
		width: 100%;
		height: calc(100vh - 80px);
		background: rgba(15, 23, 42, 0.98);
		backdrop-filter: blur(20px);
		flex-direction: column;
		padding: 2rem;
		transition: var(--transition-normal);
		gap: 0;
	}
	
	.nav-menu.active {
		left: 0;
	}
	
	.nav-link {
		width: 100%;
		padding: 1rem;
		justify-content: center;
	}
	
	.hamburger {
		display: flex;
	}
	
	.hero-title {
		font-size: 2.5rem;
	}
	
	.section-title {
		font-size: 2rem;
	}
	
	.hero-buttons {
		justify-content: center;
	}
	
	.experience-grid,
	.research-grid,
	.skills-container {
		grid-template-columns: 1fr;
	}
	
	.contact-info {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 2rem;
	}
	
	.profile-card {
		width: 250px;
		height: 250px;
	}
	
	.icon-item {
		width: 50px;
		height: 50px;
		font-size: 1.2rem;
	}
	
	.section {
		padding: 4rem 0;
	}
	
	.btn {
		width: 100%;
		justify-content: center;
	}
}
