/* CSS Variables for Theme Support */
:root {
  /* Light Theme Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #2563eb 0%, #7c3aed 40%, #ec4899 80%, #f59e0b 100%);
}

/* Dark Theme */
[data-theme="dark"] {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #94a3b8;
  --accent-color: #fbbf24;
  
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-light: #94a3b8;
  
  --border-color: #334155;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.4);
  
  /* Dark Theme Gradients */
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #581c87 100%);
  --gradient-hero: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #374151 100%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Tahoma, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  direction: ltr;
  text-align: left;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  text-align: left;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.1rem;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
    font-size: 1rem;
    max-width: 110px;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.language-toggle:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
}

.language-toggle i {
  font-size: 1.1rem;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
}

.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: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: -2;
  transition: background 0.3s ease;
}

[data-theme="dark"] .hero-background {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #374151 70%, #4b5563 100%);
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.05) 50%, rgba(236, 72, 153, 0.1) 100%);
  z-index: -1;
  transition: background 0.3s ease;
}

[data-theme="dark"] .gradient-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.3) 50%, rgba(51, 65, 85, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-text {
  color: white;
  text-align: left;
}

[data-theme="dark"] .hero-text {
  color: var(--text-primary);
}

[data-theme="dark"] .hero-text .name-primary,
[data-theme="dark"] .hero-text .name-secondary,
[data-theme="dark"] .hero-text .hero-subtitle,
[data-theme="dark"] .hero-text .hero-description {
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-video {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  width: 100%;
  max-width: 500px;
}

.video-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  opacity: 0.95;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease-out 0.5s both;
}

[data-theme="dark"] .video-title {
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  animation: scaleIn 1s ease-out 0.8s both;
}

[data-theme="dark"] .video-wrapper {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .video-wrapper:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.video-wrapper iframe {
  border-radius: 12px;
  width: 100%;
  height: 400px;
}

.hero-title {
  margin-bottom: 1rem;
}

.name-primary {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInLeft 1s ease-out;
}

.name-secondary {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  opacity: 0.9;
  font-style: italic;
  animation: fadeInLeft 1s ease-out 0.3s both;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-justify: inter-word;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  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 ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  backdrop-filter: blur(10px);
}

.btn-primary:hover {
  background: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
  animation: buttonPress 0.2s ease;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 1.5rem;
}

@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 Base Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-card {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    #3b82f6, #8b5cf6, #06b6d4, #10b981, 
    #f59e0b, #ef4444, #ec4899, #3b82f6);
  background-size: 300% 300%;
  border-radius: 1rem;
  z-index: -1;
  animation: gradientShift 8s ease infinite;
}

.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.06), 
    rgba(255, 255, 255, 0.12), 
    rgba(255, 255, 255, 0.06), 
    transparent);
  animation: shimmer 3s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes shimmer {
  0% { left: -100%; opacity: 0; }
  50% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.about-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  text-align: justify;
  text-justify: inter-word;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

@keyframes shimmerSlow {
  0% { left: -100%; opacity: 0; }
  50% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.animated-border {
  animation: borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { 
    box-shadow: var(--shadow-medium), 0 0 20px rgba(59, 130, 246, 0.1);
  }
  50% { 
    box-shadow: var(--shadow-medium), 0 0 30px rgba(59, 130, 246, 0.2);
  }
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 0 4px var(--border-color);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

/* Projects Section */
.projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-card {
  background: var(--bg-primary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.project-image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.project-overlay i {
  font-size: 4rem;
  color: white;
  opacity: 0.8;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: justify;
  text-justify: inter-word;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--primary-dark);
}

.other-projects {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.other-projects h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.project-list {
  display: grid;
  gap: 1.5rem;
}

.project-item {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
}

.project-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  text-align: justify;
  text-justify: inter-word;
}

.project-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.project-item a:hover {
  color: var(--primary-dark);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.skill-category h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.skill-category h3 i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 120px;
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-in-out;
}

.skill-percent {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  min-width: 40px;
  text-align: right;
}

/* Testimonials Section */
.testimonials {
  background: var(--bg-secondary);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.achievement-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.achievement-icon i {
  font-size: 2rem;
  color: white;
}

.achievement-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.achievement-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
  text-justify: inter-word;
}

.achievement-date {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Contact Section */
.contact .contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon::before {
    transform: scale(1);
}

.contact-details h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-medium);
}

.social-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.social-link i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.quick-contact {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.quick-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.quick-contact h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.quick-contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-align: justify;
}

.quick-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.quick-contact .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.quick-contact .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.quick-contact .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.quick-contact .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-info p {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    position: relative;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
    order: 1;
  }
  
  .hero-video {
    order: 2;
  }
  
  .video-container {
    max-width: 400px;
  }
  
  .video-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .video-wrapper iframe {
    height: 250px;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-medium);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 1rem;
  }

  .timeline-item {
    padding-left: 3rem;
  }

  .timeline-item::before {
    left: 0.25rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .skill-name {
    min-width: auto;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-item {
    padding: 1.5rem;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .social-section {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-link {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .quick-contact {
    padding: 2rem;
  }
  
  .quick-contact h3 {
    font-size: 1.5rem;
  }
  
  .quick-contact p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .quick-contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .quick-contact .btn {
    padding: 0.8rem 1.5rem;
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .timeline-content,
  .project-content,
  .skill-category,
  .contact-form {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Animation */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ==========================================
   COURSES SECTION STYLES
   ========================================== */

.courses {
  padding: 6rem 0;
  background: var(--bg-secondary);
  position: relative;
}

[data-theme="dark"] .courses {
  background: var(--bg-secondary);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.course-card {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  position: relative;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.course-content {
  padding: 2rem;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  min-height: 2.8rem;
}

.course-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-size: 0.9rem;
}

.course-rating i {
  color: #fbbf24;
}

.course-level {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.course-tags .tag {
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

[data-theme="dark"] .course-tags .tag {
  background: var(--primary-color);
  opacity: 1;
}

.course-btn-wrapper {
  margin-top: 1.5rem;
}

.course-btn {
  width: 100%;
  justify-content: space-between;
  background: transparent;
  color: var(--primary-color);
  padding: 0.6rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.course-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .course-btn {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

[data-theme="dark"] .course-btn:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* DevTube Banner */
.devtube-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .devtube-banner {
  background: linear-gradient(135deg, #1e40af, #3730a3);
}

.devtube-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.banner-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.banner-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.5;
}

.banner-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.banner-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .course-card {
    margin: 0 1rem;
  }
  
  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .banner-text h3 {
    font-size: 1.5rem;
  }
  
  .banner-text p {
    font-size: 1rem;
  }
  
  .devtube-banner {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
}

@media (max-width: 480px) {
  .course-content {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  /* Reset font for better print quality */
  * {
    font-family: 'Inter', 'Times New Roman', serif !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  body {
    font-size: 12pt !important;
    line-height: 1.4 !important;
    color: #000 !important;
    background: white !important;
  }
  
  .navbar,
  .hero-buttons,
  .courses,
  .contact-form,
  .theme-toggle,
  .mobile-menu-toggle,
  .scroll-indicator {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 1rem 0;
  }
  
  section {
    padding: 1rem 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .hero-background,
  .gradient-overlay {
    display: none;
  }
  
  .hero-text {
    color: #000 !important;
  }
  
  /* Improve text readability for print */
  .hero-title .name-primary {
    font-size: 24pt !important;
    font-weight: bold !important;
    color: #000 !important;
    text-shadow: none !important;
  }
  
  .hero-title .name-secondary {
    font-size: 18pt !important;
    color: #333 !important;
    font-style: normal !important;
  }
  
  .hero-subtitle {
    font-size: 14pt !important;
    color: #333 !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-description {
    font-size: 11pt !important;
    color: #000 !important;
    line-height: 1.5 !important;
  }
  
  .section-title {
    font-size: 16pt !important;
    font-weight: bold !important;
    color: #000 !important;
    border-bottom: 2pt solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem !important;
  }
  
  .section-title::after {
    display: none;
  }
  
  .section-subtitle {
    font-size: 12pt !important;
    color: #333 !important;
  }
  
  /* Timeline styles for print */
  .timeline::before {
    background: #000 !important;
  }
  
  .timeline-item::before {
    background: #000 !important;
    border-color: white !important;
    box-shadow: 0 0 0 2pt #000;
  }
  
  .timeline-date {
    font-size: 10pt !important;
    font-weight: bold !important;
    color: #000 !important;
  }
  
  .timeline-content h3 {
    font-size: 13pt !important;
    font-weight: bold !important;
    color: #000 !important;
  }
  
  .timeline-content h4 {
    font-size: 11pt !important;
    color: #333 !important;
  }
  
  .timeline-content p {
    font-size: 10pt !important;
    color: #000 !important;
  }
  
  /* Project cards for print */
  .project-card {
    border: 1pt solid #000 !important;
    background: white !important;
    box-shadow: none !important;
    margin-bottom: 1rem !important;
    break-inside: avoid;
  }
  
  .project-image {
    display: none !important;
  }
  
  .project-content h3 {
    font-size: 13pt !important;
    font-weight: bold !important;
    color: #000 !important;
  }
  
  .project-content p {
    font-size: 10pt !important;
    color: #000 !important;
  }
  
  .project-tags {
    margin: 0.5rem 0 !important;
  }
  
  .tag {
    border: 1pt solid #000 !important;
    background: white !important;
    color: #000 !important;
    font-size: 9pt !important;
    padding: 2pt 6pt !important;
  }
  
  .project-link {
    font-size: 10pt !important;
    color: #000 !important;
    text-decoration: underline !important;
  }
  
  /* Skills section for print */
  .skill-category h3 {
    font-size: 13pt !important;
    font-weight: bold !important;
    color: #000 !important;
  }
  
  .skill-name {
    font-size: 10pt !important;
    color: #000 !important;
  }
  
  .skill-percent {
    font-size: 10pt !important;
    font-weight: bold !important;
    color: #000 !important;
  }
  
  .skill-bar {
    border: 1pt solid #000 !important;
    background: white !important;
  }
  
  .skill-progress {
    background: #000 !important;
  }
  
  /* About section stats */
  .stat-number {
    font-size: 18pt !important;
    font-weight: bold !important;
    color: #000 !important;
  }
  
  .stat-label {
    font-size: 10pt !important;
    color: #000 !important;
  }
  
  /* Contact info for print */
  .contact-details h3 {
    font-size: 12pt !important;
    font-weight: bold !important;
    color: #000 !important;
  }
  
  .contact-details p {
    font-size: 11pt !important;
    color: #000 !important;
  }
  
  /* Footer for print */
  .footer {
    border-top: 2pt solid #000 !important;
    background: white !important;
  }
  
  .footer-info h3 {
    font-size: 14pt !important;
    font-weight: bold !important;
    color: #000 !important;
  }
  
  .footer-info p,
  .footer-bottom p {
    font-size: 10pt !important;
    color: #000 !important;
  }
  
  .footer-links a {
    font-size: 10pt !important;
    color: #000 !important;
    text-decoration: underline !important;
  }
  
  /* Page setup */
  @page {
    margin: 2cm;
    size: A4;
  }
  
  .container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* ==========================================
   ADVANCED ANIMATIONS & KEYFRAMES
   ========================================== */

/* Entrance Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Floating and Pulse Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
  }
}

/* Text Animations */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Background Animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Micro Interactions */
@keyframes buttonPress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Particle Animation */
@keyframes particleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Animation Classes */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInDown {
  animation: fadeInDown 0.8s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease-out;
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease-out;
}

.animate-rotateIn {
  animation: rotateIn 0.8s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Delayed Animations */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }

/* Hover Animations */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hover-rotate {
  transition: transform 0.3s ease;
}

.hover-rotate:hover {
  transform: rotate(5deg) scale(1.05);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
  transform: scale(1.02);
}

/* Scroll Animations */
.scroll-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animations */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(37, 99, 235, 0.1);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Stagger Animation */
.stagger-animation > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Parallax Effect */
.parallax-element {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Dark Theme Animation Adjustments */
[data-theme="dark"] .animate-glow {
  animation: glow-dark 2s ease-in-out infinite;
}

@keyframes glow-dark {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
  }
}

[data-theme="dark"] .hover-glow:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.reduced-motion * {
  animation: none !important;
  transition: none !important;
}

/* Performance optimizations for animations */
.animate-fadeInUp,
.animate-fadeInDown,
.animate-fadeInLeft,
.animate-fadeInRight,
.animate-scaleIn,
.animate-rotateIn {
  will-change: transform, opacity;
}

.animate-float,
.animate-pulse,
.animate-glow {
  will-change: transform, box-shadow;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .animate-glow {
    animation: none;
  }
  
  .hover-glow:hover {
    box-shadow: none;
    border: 2px solid currentColor;
  }
}
