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

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #f1f5f9;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary-color: #3b82f6;
  --secondary-color: #2563eb;
  --accent-color: #60a5fa;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-light: #9ca3af;
  --bg-primary: #1f2937;
  --bg-secondary: #111827;
  --bg-accent: #374151;
  --border-color: #4b5563;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.3);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  overflow-x: hidden;
}

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

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  text-align: center;
}

.loader-circle {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.loader p {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.logo .tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

header nav {
  display: flex;
  gap: 2rem;
}

header nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 0.5rem 0;
}

header nav a:hover,
header nav a.active {
  color: var(--primary-color);
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

header nav a:hover::after,
header nav a.active::after {
  width: 100%;
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
}

.dark-mode-toggle:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.dark-mode-toggle i {
  font-size: 1rem;
  transition: var(--transition);
}

[data-theme="dark"] .dark-mode-toggle i::before {
  content: "\f185"; /* fa-sun */
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero */
.hero {
  background: var(--gradient-secondary);
  text-align: center;
  padding: 8rem 1rem 6rem;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('./Assets/hero.jpg') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

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

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.hero .avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.avatar-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  margin: 2rem 0 1rem;
}

.hero-title .greeting {
  display: block;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.hero-title .name {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

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

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styling */
section {
  padding: 5rem 0;
  position: relative;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* About Section */
.about {
  background: var(--bg-primary);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-intro {
  font-size: 1.25rem !important;
  font-weight: 500;
  color: var(--text-primary) !important;
}

.achievements {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-accent);
  border-radius: 12px;
  transition: var(--transition);
}

.achievement:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.achievement i {
  font-size: 2rem;
  color: var(--primary-color);
  min-width: 40px;
}

.achievement h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.achievement p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.875rem;
}

.about-stats {
  display: grid;
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Skills Section */
.skills {
  background: var(--bg-accent);
}

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

.skill-category {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.category-header h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-list {
  display: grid;
  gap: 1.5rem;
}

.skill {
  position: relative;
}

.skill-name {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease-out;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Timeline Section */
.timeline {
  background: var(--bg-secondary);
  position: relative;
  background-image: url('./Assets/Education.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 250, 252, 0.9);
  z-index: 1;
}

.timeline .container {
  position: relative;
  z-index: 2;
}

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

/* Blue vertical line removed */

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: slideInUp 0.8s ease-out forwards;
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-10px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 50%;
  padding-right: 2rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  margin-right: 0;
  padding-left: 2rem;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 70px;
  height: 70px;
  background: var(--bg-primary);
  border: 5px solid var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.timeline-marker:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.timeline-marker i {
  font-size: 1.75rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.timeline-marker:hover i {
  transform: scale(1.1);
}

.timeline-content {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid var(--border-color);
}

.timeline-content:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.timeline-content .time {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.timeline-content .time:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.timeline-content h4 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.timeline-content h5 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.timeline-content .institution {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.highlights {
  margin: 1rem 0;
}

.highlight {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.highlight.honor {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.details {
  margin-top: 1rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: var(--bg-accent);
  border-radius: 12px;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.detail-item:hover {
  background: var(--bg-primary);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.detail-item i {
  color: var(--primary-color);
  margin-top: 0.25rem;
  min-width: 20px;
  font-size: 1.125rem;
}

.detail-item span {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Internship Link Styling */
.internship-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.internship-link:hover {
  color: var(--secondary-color);
  border-bottom-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Projects Section */
.projects {
  background: var(--bg-primary);
}
/* Project Disclaimer */
.project-disclaimer {
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}

.project-disclaimer strong {
  color: var(--text-primary);
  font-weight: 600;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card.animate {
  opacity: 1;
  transform: translateY(0);
}

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

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.project-image img,
.project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-image video {
  cursor: pointer;
  display: block;
  background: #000;
}

/* Custom Video Play Button */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
  backdrop-filter: blur(10px);
}

.video-play-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button i {
  color: white;
  font-size: 2rem;
  margin-left: 4px; /* Slight offset to center the play triangle */
}

.video-play-button.playing {
  opacity: 0;
  pointer-events: none;
}

.project-video.playing {
  z-index: 2;
}

.project-card:hover .project-image img,
.project-card:hover .project-image video {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

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

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  transform: translateY(20px);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-link:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.project-category {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.project-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-tech {
  margin-top: auto;
}

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

.tech-tag {
  background: var(--bg-accent);
  color: var(--text-primary);
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Contact Section */
.contact {
  background: var(--bg-accent);
  position: relative;
  background-image: url('./Assets/IT.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(241, 245, 249, 0.9);
  z-index: 1;
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-30px);
  min-height: 120px;
  height: 120px;
}

.contact-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.contact-details h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-details a,
.contact-details span {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

.contact-form {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(30px);
}

.contact-form.animate {
  opacity: 1;
  transform: translateX(0);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-secondary);
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.875rem;
  color: var(--primary-color);
  background: var(--bg-primary);
  padding: 0 0.5rem;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

/* Footer */
footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Scroll to Top Button */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  border: none;
  outline: none;
  background: var(--gradient-primary);
  color: white;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  width: 60px;
  height: 60px;
}

#scrollTopBtn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Notifications */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
  transform: translateX(100%);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left-color: #10b981;
}

.notification.error {
  border-left-color: #ef4444;
}

.notification i {
  font-size: 1.25rem;
}

.notification.success i {
  color: #10b981;
}

.notification.error i {
  color: #ef4444;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .timeline-container::before {
    left: 30px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    margin-right: 0;
    padding-left: 2rem;
    padding-right: 1rem;
    text-align: left;
  }

  .timeline-marker {
    left: 30px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .dark-mode-toggle {
    width: 35px;
    height: 35px;
  }

  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  header nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  header nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .hero {
    padding: 6rem 1rem 4rem;
  }

  .hero-title .name {
    font-size: 2.5rem;
  }

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

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  section {
    padding: 3rem 0;
  }

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

  .hero-title .name {
    font-size: 2rem;
  }

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

  .achievement {
    flex-direction: column;
    text-align: center;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    padding-left: 1rem;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    left: 20px;
  }

  .timeline-marker i {
    font-size: 1rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  #scrollTopBtn {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    transform: translateY(-100%);
  }

  .notification.show {
    transform: translateY(0);
  }
}

/* Dark Mode Specific Styles */
[data-theme="dark"] header {
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] header.scrolled {
  background: rgba(31, 41, 55, 0.98);
}

[data-theme="dark"] header nav {
  background: var(--bg-primary);
}

[data-theme="dark"] footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .footer-info h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .footer-info p {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer-bottom p {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer-social a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

[data-theme="dark"] .footer-social a:hover {
  background: var(--primary-color);
  color: white;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

[data-theme="dark"] .hero-background {
  opacity: 0.05;
}

[data-theme="dark"] .loading-screen {
  background: var(--bg-primary);
}

[data-theme="dark"] .loader-circle {
  border-color: var(--border-color);
  border-top-color: var(--primary-color);
}

[data-theme="dark"] .notification {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-left-color: var(--primary-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: var(--bg-accent);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  background: var(--bg-primary);
  border-color: var(--primary-color);
}

[data-theme="dark"] .form-group label {
  color: var(--text-light);
}

[data-theme="dark"] .form-group input:focus + label,
[data-theme="dark"] .form-group input:not(:placeholder-shown) + label,
[data-theme="dark"] .form-group textarea:focus + label,
[data-theme="dark"] .form-group textarea:not(:placeholder-shown) + label {
  color: var(--primary-color);
  background: var(--bg-primary);
}

[data-theme="dark"] .contact::before {
  background: rgba(17, 24, 39, 0.9);
}

[data-theme="dark"] .timeline::before {
  background: rgba(17, 24, 39, 0.9);
}

/* Animation Classes */
.animate {
  animation: fadeInUp 0.6s ease forwards;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

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

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

/* Print Styles */
@media print {
  header,
  .hero-buttons,
  .social-links,
  .contact-form,
  #scrollTopBtn,
  .mobile-menu-toggle {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  section {
    page-break-inside: avoid;
    padding: 1rem 0 !important;
  }
}
