/* Modern Design System + Previous Sections */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #f59e0b;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  
  /* Borders */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode */
body[data-theme="dark"] {
  background: var(--gray-900);
  color: var(--gray-100);
}

body[data-theme="dark"] .modern-nav {
  background: rgba(31, 41, 55, 0.95);
  border-bottom-color: rgba(75, 85, 99, 0.2);
}

body[data-theme="dark"] .brand-text,
body[data-theme="dark"] .nav-item {
  color: var(--gray-200);
}

body[data-theme="dark"] .nav-item:hover,
body[data-theme="dark"] .nav-item.active {
  color: var(--primary-light);
}

body[data-theme="dark"] .theme-switcher {
  background: var(--gray-700);
  color: var(--gray-300);
}

body[data-theme="dark"] .section-title {
  color: var(--gray-100);
}

body[data-theme="dark"] .section-subtitle {
  color: var(--gray-400);
}

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

/* Modern Navigation */
.modern-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.modern-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-gradient {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  font-family: var(--font-mono);
}

.brand-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gray-800);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-full);
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.nav-item:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.nav-item.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
}

.nav-icon {
  font-size: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-switcher {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--border-radius-full);
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.theme-switcher:hover {
  background: var(--gray-200);
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
  transition: var(--transition-normal);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

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

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.3);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(245, 158, 11, 0.3);
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: rgba(6, 182, 212, 0.3);
  bottom: 20%;
  left: 60%;
  animation-delay: 4s;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-full);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  width: fit-content;
  animation: slideInUp 0.8s ease-out;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.greeting-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.greeting-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.wave-emoji {
  font-size: 1.5rem;
  animation: wave 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-word {
  display: inline-block;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.gradient-text {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.subtitle-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
}

.subtitle-prefix {
  font-weight: 400;
}

.typing-container {
  display: flex;
  align-items: center;
}

.typing-text {
  font-weight: 600;
  color: var(--white);
}

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

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  animation: slideInUp 0.8s ease-out 0.8s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  animation: slideInUp 0.8s ease-out 1s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #fff;
  margin-top: var(--space-xs);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  animation: slideInUp 0.8s ease-out 1.2s both;
}

.btn-primary, .btn-secondary {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

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

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

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn-primary:hover .btn-shine {
  left: 100%;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease 0.5s both;
}

.profile-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.profile-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.profile-ring::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
}

.profile-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tech-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
}

.tech-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Scroll Prompt */
.scroll-prompt {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.8);
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s infinite;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-main-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.who-i-am-section, .what-i-bring-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.who-i-am-section h3, .what-i-bring-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.lead-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 2rem;
}

.key-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: #4a5568;
}

.point i {
  color: #48bb78;
  font-size: 1.1rem;
}

.expertise-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.expertise-card {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.expertise-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.expertise-content p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.tech-highlights span {
  padding: 0.25rem 0.75rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.stats-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-section h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 2rem;
  text-align: center;
}

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

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  color: #4a5568;
  font-weight: 500;
}

/* Skills Section */
.skills {
  padding: 6rem 0;
  background: #ffffff;
}

.skills-interface {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skills-sidebar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
}

.search-box {
  position: relative;
  margin-bottom: 2rem;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.category-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.category-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.category-nav .nav-item .count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
}

.skills-content {
  padding: 2rem;
}

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

.content-header h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
}

.content-header span {
  color: #718096;
  font-size: 0.9rem;
}

.skills-instruction {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 0.5rem;
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 500;
}

.skills-instruction i {
  font-size: 1rem;
}

.skills-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 70px;
}

.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.skill-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.skill-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

/* Experience Section */
.experience {
  padding: 6rem 0;
  background: var(--gray-50);
}

.experience-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.view-toggle {
  display: flex;
  background: white;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toggle-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

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

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 2px;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  animation: slideInUp 0.6s ease forwards;
}

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

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

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 60px;
  height: 60px;
  background: white;
  border: 4px solid var(--primary);
  border-radius: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-marker.current {
  border-color: var(--success);
  background: var(--success);
  color: white;
  animation: pulse 2s infinite;
}

.timeline-content {
  width: 45%;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 55%;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 2rem;
  width: 0;
  height: 0;
  border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -30px;
  border-right-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -30px;
  border-left-color: white;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1.5rem;
}

.role-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.company-name {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.duration-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.current-badge {
  background: var(--success);
  position: relative;
  overflow: hidden;
}

.current-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

.role-summary {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric {
  text-align: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.tech-stack {
  margin-bottom: 1.5rem;
}

.tech-stack h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.tech-badge i {
  font-size: 1rem;
}

.key-projects {
  margin-top: 1rem;
}

.project-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-toggle:hover {
  color: var(--primary-dark);
}

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

.project-toggle.expanded i {
  transform: rotate(180deg);
}

.projects-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 1rem;
}

.projects-list.expanded {
  max-height: 300px;
}

.project-item {
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--primary);
}

.project-name {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

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

.experience-grid.active {
  display: grid;
}

.experience-timeline.active {
  display: block;
}

.experience-timeline:not(.active) {
  display: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Social Profiles Section */
.social-profiles {
  padding: 6rem 0;
  background: var(--gray-50);
}

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

.connect-hero {
  position: sticky;
  top: 2rem;
}

.connect-visual {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
}

.connect-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  z-index: 3;
  overflow: hidden;
}

.connect-avatar .profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite;
}

.connect-rings {
  position: absolute;
  inset: 0;
}

.ring {
  position: absolute;
  border: 2px solid;
  border-radius: 50%;
  opacity: 0.3;
}

.ring-1 {
  inset: 0;
  border-color: var(--primary);
  animation: rotate 20s linear infinite;
}

.ring-2 {
  inset: 20px;
  border-color: var(--secondary);
  animation: rotate 15s linear infinite reverse;
}

.ring-3 {
  inset: 40px;
  border-color: var(--accent);
  animation: rotate 10s linear infinite;
}

.connect-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
  text-align: center;
}

.connect-info p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: center;
}

.quick-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
}
.quick-stats .stat-number {
  color: var(--primary);
}
.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.quick-stats .stat-label {
  color: var(--gray-600);
}
.stat-label {
  font-size: 0.85rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.social-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
}

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.card-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-card.github:hover .card-bg { background: linear-gradient(135deg, #333, #24292e); opacity: 0.05; }
.social-card.linkedin:hover .card-bg { background: linear-gradient(135deg, #0077b5, #00a0dc); opacity: 0.05; }
.social-card.stackoverflow:hover .card-bg { background: linear-gradient(135deg, #f48024, #f2740d); opacity: 0.05; }
.social-card.medium:hover .card-bg { background: linear-gradient(135deg, #00ab6c, #00d4aa); opacity: 0.05; }
.social-card.credly:hover .card-bg { background: linear-gradient(135deg, #ff6b35, #f7931e); opacity: 0.05; }
.social-card.techgig:hover .card-bg { background: var(--gradient-primary); opacity: 0.05; }

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

.social-card.github .social-icon { background: linear-gradient(135deg, #333, #24292e); }
.social-card.linkedin .social-icon { background: linear-gradient(135deg, #0077b5, #00a0dc); }
.social-card.stackoverflow .social-icon { background: linear-gradient(135deg, #f48024, #f2740d); }
.social-card.medium .social-icon { background: linear-gradient(135deg, #00ab6c, #00d4aa); }
.social-card.credly .social-icon { background: linear-gradient(135deg, #ff6b35, #f7931e); }
.social-card.techgig .social-icon { background: var(--gradient-primary); }

.social-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.social-content p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.social-handle {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-family: var(--font-mono);
}

.card-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  transition: all 0.3s ease;
}

.social-card:hover .card-arrow {
  background: var(--primary);
  color: white;
  transform: translateX(5px);
}

/* Projects Section */
.projects {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.projects-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.projects-search {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.projects-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.projects-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.projects-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.projects-filters {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.filter-btn:hover:not(.active) {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.projects-view-toggle {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.25rem;
  border-radius: 8px;
}

.view-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.3s ease;
}

.view-btn.active {
  background: var(--primary);
  color: white;
}

.projects-container {
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  transition: all 0.3s ease;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: fit-content;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.project-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 1;
}

.project-card.grouped {
  border-left: 4px solid var(--accent);
}

.project-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.project-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.project-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.project-year {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.project-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-development {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-archived {
  background: rgba(107, 114, 128, 0.15);
  color: var(--gray-600);
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.featured-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.project-content {
  padding: 0 1.5rem 1.5rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.services-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.services-count {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.services-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.service-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.more-services {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.services-expanded {
  margin-bottom: 1rem;
}

.service-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.service-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.metric-chip {
  padding: 0.25rem 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.metric-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.metric-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-tech {
  margin-bottom: 1.5rem;
}

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

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.tech-tag i {
  font-size: 0.9rem;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
}

.expand-btn, .details-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.expand-btn {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

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

.details-btn {
  background: var(--primary);
  color: white;
}

.details-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.project-card.expanded {
  transform: scale(1.02);
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: var(--gray-800);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.tooltip.show {
  opacity: 1;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--gray-800);
}

@media (max-width: 768px) {
  .projects-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .projects-search {
    max-width: none;
  }
  
  .projects-filters {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-actions {
    flex-direction: column;
  }
  
  .project-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .project-badges {
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  flex: 1;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: white;
  font-size: 1.2rem;
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
}

.contact-card p {
  color: #4a5568;
  font-size: 0.9rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group label {
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  background: white;
  padding: 0 0.5rem;
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 500;
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn .loading-spinner {
  position: absolute;
}

.submit-btn .btn-text,
.submit-btn .btn-icon {
  transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
  opacity: 0;
}

.submit-btn.loading .loading-spinner {
  display: block !important;
}

/* Form validation styles */
.form-group .error-message {
  display: block;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.form-group.error .error-message {
  opacity: 1;
  transform: translateY(0);
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.success input,
.form-group.success textarea {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Form messages */
.form-messages {
  margin-top: 2rem;
}

.success-message,
.error-message-global {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.error-message-global {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.success-message.show,
.error-message-global.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.success-message i {
  font-size: 1.2rem;
}

.error-message-global i {
  font-size: 1.2rem;
}

/* Contact form animations */
.form-group {
  animation: slideInUp 0.6s ease-out;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

/* Skill Panel */
.skill-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.skill-panel.active {
  right: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.panel-icon {
  width: 50px;
  height: 50px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.panel-header h3 {
  flex: 1;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

.panel-close {
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: white;
  transition: background 0.3s ease;
}

.panel-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.panel-body {
  padding: 2rem 1.5rem;
}

.skill-experience,
.skill-implementations {
  margin-bottom: 1.5rem;
}

.skill-experience h4,
.skill-implementations h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

.skill-experience ul,
.skill-implementations ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-experience li,
.skill-implementations li {
  position: relative;
  padding-left: 1.5rem;
  color: #4a5568;
  line-height: 1.6;
}

.skill-experience li::before,
.skill-implementations li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-10deg); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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



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

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

@keyframes scroll-wheel {
  0% { opacity: 1; top: 8px; }
  50% { opacity: 0.5; top: 16px; }
  100% { opacity: 0; top: 24px; }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  margin-bottom: 2rem;
}

.logo-animation {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 0 auto;
  animation: logoSpin 2s ease-in-out infinite;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.progress-bar {
  height: 100%;
  background: white;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

@keyframes logoSpin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .connect-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .connect-hero {
    position: static;
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    margin-right: 0 !important;
  }
  
  .timeline-content::before {
    left: -30px !important;
    right: auto !important;
    border-right-color: white !important;
    border-left-color: transparent !important;
  }
}

@media (max-width: 768px) {
  .quick-stats {
    flex-direction: column;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  
  .tech-icons {
    justify-self: center;
    grid-template-columns: repeat(4, 1fr);
    max-width: 240px;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .about-main-row {
    grid-template-columns: 1fr;
  }
  
  .skills-interface {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 var(--space-md);
  }
  
  .hero-container {
    padding: 0 var(--space-md);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .stat-divider {
    display: none;
  }
  
  .container {
    padding: 0 1rem;
  }
}
.experience-grid .experience-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-grid .experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.experience-grid .experience-card.current::before {
  background: var(--success);
  transform: scaleX(1);
}

.experience-grid .experience-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-left: 4px solid;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left-color: var(--success);
}

.toast-error {
  border-left-color: var(--error);
}

.toast-icon {
  font-size: 20px;
}

.toast-success .toast-icon {
  color: var(--success);
}

.toast-error .toast-icon {
  color: var(--error);
}

.toast-content {
  flex: 1;
}

.toast-message {
  font-weight: 500;
  color: var(--gray-800);
  margin: 0;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
  }
  
  .experience-grid {
    grid-template-columns: 1fr;
  }
  
  .impact-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}