/* CSS Variables for consistent theming - BLUE + TEAL PROFESSIONAL PALETTE */
:root {
  /* Primary Colors - Navy Blue with Teal Accent */
  --primary-color: #1e40af; /* Navy Sapphire - Professional & Trustworthy */
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --accent-color: #14b8a6; /* Teal - Unique Tech Accent */
  --accent-dark: #0d9488;
  --accent-light: #5eead4;
  --secondary-color: #0ea5e9; /* Sky Blue - Modern & Clean */
  --secondary-light: #38bdf8;
  --highlight-color: #06b6d4; /* Cyan - Bright Highlight */

  /* Neutral Colors */
  --background-color: #ffffff;
  --surface-color: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border Radius */
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* Dark mode variables - Enhanced with Blue + Teal palette */
[data-theme="dark"] {
  --background-color: #0f172a;
  --surface-color: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1;
  --border-color: #475569;

  /* Adjusted colors for dark mode */
  --primary-color: #3b82f6; /* Brighter blue for dark backgrounds */
  --primary-light: #60a5fa;
  --accent-color: #5eead4; /* Bright teal for dark mode */
  --accent-light: #99f6e4;
  --secondary-color: #38bdf8; /* Bright sky blue */
  --highlight-color: #22d3ee; /* Bright cyan */

  /* Enhanced shadows for dark mode */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.6);
}

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

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

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

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-color);
  scroll-behavior: smooth;
  transition: var(--transition);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  font-display: swap; /* Improve font loading performance */
}

/* Loading state */
body.loading {
  overflow: hidden;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

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

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

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

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

/* Image lazy loading placeholder */
.image-placeholder {
  background: linear-gradient(90deg, var(--surface-color) 25%, var(--border-color) 50%, var(--surface-color) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Optimized images */
img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Enhanced project card animations */
/* Initial project card animation styles moved to main definition */

/* All transition timing now handled by JavaScript for precise control */

/* Performance optimization: will-change for animations */
.project-card,
.skill-category,
.nav-link,
.btn,
.theme-toggle {
  will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .page-loader {
    display: none !important;
  }
}

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

/* 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: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 60px;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

/* Floating Theme Toggle */
.theme-toggle-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  /* Prevent button from causing horizontal overflow */
  max-width: calc(100vw - 4rem);
}

.theme-toggle-floating:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

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

.theme-toggle-floating:active i {
  transform: rotate(180deg);
}

/* Dark mode specific improvements */
/* About section - new elements */
[data-theme="dark"] .about-text em {
  color: var(--primary-light);
}

[data-theme="dark"] .highlight-stat {
  color: var(--highlight-color);
  background: rgba(6, 182, 212, 0.15);
}

/* Navbar improvements - use primary blue color reference */
[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid #475569;
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-link {
  color: var(--primary-light);
}

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

[data-theme="dark"] .brand-text {
  color: var(--primary-light);
}

/* Hero section accent text in dark mode */
[data-theme="dark"] .accent-text {
  color: var(--highlight-color);
}

/* Skills section improvements */
[data-theme="dark"] .skill-category {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .skill-category h3 {
  color: #f8fafc;
}

[data-theme="dark"] .skill-item {
  background: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .skill-item i,
[data-theme="dark"] .skill-item svg {
  color: var(--primary-light);
}

[data-theme="dark"] .skill-item:hover {
  background: var(--primary-color);
  color: #ffffff;
}

[data-theme="dark"] .skill-item:hover i,
[data-theme="dark"] .skill-item:hover svg {
  color: #ffffff;
}

/* Project cards improvements */
[data-theme="dark"] .project-card {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .project-header h3 {
  color: #f8fafc;
}

[data-theme="dark"] .project-description {
  color: #e2e8f0;
}

[data-theme="dark"] .project-details {
  color: #cbd5e1;
}

[data-theme="dark"] .tech-tag {
  background: #334155;
  color: var(--primary-light);
  border-color: #475569;
}

[data-theme="dark"] .tech-tag:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Contact section improvements */
[data-theme="dark"] .contact-item {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .contact-details h4 {
  color: #f8fafc;
}

[data-theme="dark"] .contact-details p {
  color: #e2e8f0;
}

[data-theme="dark"] .social-link-large {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #475569;
}

[data-theme="dark"] .social-link-large:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

/* Footer improvements */
[data-theme="dark"] footer {
  background: #0f172a;
  border-top: 1px solid #475569;
}

/* Filter buttons improvements */
[data-theme="dark"] .filter-btn {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #475569;
}

[data-theme="dark"] .filter-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

[data-theme="dark"] .filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

/* Mobile menu improvements */
[data-theme="dark"] .nav-menu {
  background: #0f172a;
  border-top-color: #475569;
}

[data-theme="dark"] .nav-list li {
  border-bottom-color: #475569;
}

[data-theme="dark"] .mobile-menu-toggle .hamburger,
[data-theme="dark"] .mobile-menu-toggle .hamburger::before,
[data-theme="dark"] .mobile-menu-toggle .hamburger::after {
  background: #ffffff;
}

/* General text improvements */
[data-theme="dark"] .hero-description,
[data-theme="dark"] .about-text p,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .hero-subtitle {
  color: #e2e8f0;
}

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

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hero Section - MINIMALIST */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
  color: white;
  position: relative;
  overflow: hidden;
}


.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.greeting {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.name {
  display: block;
  color: white;
}

/* Accent text styling */
.accent-text {
  color: #06b6d4;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.accent-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.hero-subtitle:hover .accent-text::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
  opacity: 0.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}


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

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

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: white;
  transition: width 0.4s ease;
  z-index: -1;
}

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

.btn-secondary:hover::before {
  width: 100%;
}

.profile-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
  /* Force proper sizing to prevent oversized images */
  max-width: 300px;
  max-height: 300px;
}

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

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

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

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--surface-color);
}

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

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

.about-text em {
  color: var(--primary-color);
  font-style: italic;
  font-weight: 500;
}

.highlight-stat {
  color: var(--accent-color);
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 4px;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

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

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

.skill-category {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.skill-category h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.skill-category:last-child .skill-items {
  grid-template-columns: repeat(2, 1fr);
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.skill-item:hover {
  background: var(--primary-color);
  color: white;
}

.skill-item i,
.skill-item svg {
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.skill-item:hover i,
.skill-item:hover svg {
  color: white;
}

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

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  transform: translateX(-50%);
}

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

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

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

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border: 3px solid var(--background-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.timeline-content {
  background: var(--background-color);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.experience-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37, 99, 235, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

.timeline-content:hover .experience-overlay {
  opacity: 1;
}

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

.experience-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

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

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

.timeline-content:hover {
  box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd) .timeline-content::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 1.5rem;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid var(--background-color);
}

.timeline-item:nth-child(even) .timeline-content::after {
  content: '';
  position: absolute;
  left: -15px;
  top: 1.5rem;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid var(--background-color);
}

.experience-header {
  margin-bottom: 1.5rem;
}

.company-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.position-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.position-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.duration {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.experience-highlight {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--border-radius);
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  position: relative;
  overflow: hidden;
}

.experience-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.experience-highlight:hover::before {
  left: 100%;
}

.highlight-text {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.experience-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-details li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.experience-details li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
  top: 0.4rem;
}

/* Dark mode experience styles */
[data-theme="dark"] .timeline::before {
  background: #60a5fa;
}

[data-theme="dark"] .timeline-marker {
  background: #60a5fa;
  border-color: #0f172a;
}

[data-theme="dark"] .timeline-content {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .timeline-item:nth-child(odd) .timeline-content::after {
  border-left-color: #1e293b;
}

[data-theme="dark"] .timeline-item:nth-child(even) .timeline-content::after {
  border-right-color: #1e293b;
}

[data-theme="dark"] .company-name {
  color: #60a5fa;
}

[data-theme="dark"] .position-title {
  color: #f8fafc;
}

[data-theme="dark"] .duration {
  color: #cbd5e1;
}

[data-theme="dark"] .experience-details li {
  color: #e2e8f0;
}

[data-theme="dark"] .experience-details li::before {
  color: #60a5fa;
}

/* Mobile timeline adjustments */
@media (max-width: 768px) {
  .timeline::before {
    left: 1.5rem;
  }
  
  .timeline-marker {
    left: 1.5rem;
    width: 16px;
    height: 16px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 3.5rem;
    margin-right: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    display: none;
  }
  
  .experience-highlight {
    margin-left: 0;
    margin-right: 0;
  }
  
  .position-info {
    gap: 0.5rem;
  }
  
  .company-name {
    font-size: 1.2rem;
  }
  
  .position-title {
    font-size: 1rem;
  }
}

/* Projects Section */
.projects {
  padding: 6rem 0;
}

/* Project Filters */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  background: var(--background-color);
  color: var(--text-secondary);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

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

.project-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  filter: brightness(1) contrast(1.05) saturate(1.1);
}

.project-image img:hover {
  filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* Enhanced image loading states */
.project-image img.image-placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  animation: pulse 2s ease-in-out infinite;
}

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

/* Dark theme image container */
[data-theme="dark"] .project-image {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

.project-link:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.project-content {
  padding: 1.5rem;
}

.project-header {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

/* Project Badges - Minimalist */
.project-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-badge.featured {
  background: var(--accent-color);
  color: white;
}

.project-badge.backend {
  background: var(--primary-color);
  color: white;
}

/* Project Impact Metrics - Minimalist */
.project-impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.impact-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.impact-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.impact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-details {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-timeline,
.project-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-timeline i,
.project-duration i {
  color: var(--primary-color);
  width: 14px;
}

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

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--surface-color);
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.tech-tag:hover {
  background: var(--primary-color);
  color: white;
}

/* Clean project card scroll animation states */
.project-card.hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

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

/* Timeline animation states */
.timeline-item.timeline-hidden {
  opacity: 0;
  transform: translateX(-50px) scale(0.95);
}

.timeline-item.timeline-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Alternate animation direction for even timeline items */
.timeline-item:nth-child(even).timeline-hidden {
  transform: translateX(50px) scale(0.95);
}

.timeline-item:nth-child(even).timeline-visible {
  transform: translateX(0) scale(1);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
}

.contact-content-simple {
  display: flex;
  justify-content: center;
}

.contact-info-centered {
  max-width: 900px;
  width: 100%;
}

.contact-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--background-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  min-height: 130px;
  height: 100%;
}

.contact-item:hover {
  box-shadow: var(--shadow-md);
}

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

.contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-details h4 {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.3;
}

.contact-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

/* Large Social Links */
.social-links-large {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-link-large {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--background-color);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  border: 2px solid var(--border-color);
  font-weight: 500;
  min-width: 140px;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.social-link-large:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.social-link-large i {
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-link-large span {
  font-size: 1rem;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
  .contact-items {
    max-width: 600px;
    gap: 2rem;
  }
  
  .contact-item {
    padding: 1.5rem;
    min-height: 120px;
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  /* Fix horizontal overflow for devices smaller than 600px */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
  }
  
  main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .container {
    padding: 0 0.75rem;
    max-width: 100%;
    width: 100%;
  }
  
  /* Increase navbar size on smaller devices for better proportions */
  .nav-container {
    padding: 0.6rem 0.75rem;
    max-width: 100%;
    width: 100%;
    min-height: 55px;
  }
  
  .brand-text {
    font-size: 1.2rem;
  }
  
  /* Adjust hero margin for taller navbar */
  .hero-container {
    margin-top: 55px;
    padding: 2rem 0.75rem;
    max-width: 100%;
    width: 100%;
  }
  
  /* Fix grid layouts */
  .hero-content,
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-items {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 350px;
  }
  
  .contact-item {
    padding: 1.25rem;
    min-height: 110px;
    gap: 0.875rem;
  }
  
  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .contact-details h4 {
    font-size: 1rem;
  }
  
  .contact-details p {
    font-size: 0.9rem;
  }
  
  /* Ensure theme toggle doesn't cause overflow */
  .theme-toggle-floating {
    right: 0.75rem;
    bottom: 1rem;
    width: 45px;
    height: 45px;
    max-width: 45px;
  }
  
  /* Prevent any remaining overflow elements */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  /* Specifically target sections */
  .hero,
  .about,
  .skills,
  .experience,
  .projects,
  .contact,
  footer {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Fix specific grid elements that might overflow */
  .hero-content,
  .about-content,
  .skills-grid,
  .projects-grid,
  .timeline,
  .contact-content-simple {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Fix navbar responsive sizing on mobile */
  .nav-container {
    padding: 0.6rem 1rem;
    min-height: 55px;
  }
  
  .brand-text {
    font-size: 1.3rem;
  }
  
  /* Fix hero text overlap with navbar */
  .hero-container {
    margin-top: 55px; /* Add margin to prevent text overlap */
  }

  .theme-toggle-floating {
    bottom: 1rem;
    right: 0.75rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    /* Move button more to the left on mobile */
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link {
    display: block;
    padding: 1rem 1.5rem;
  }
  

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

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

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

  .profile-img {
    width: 200px;
    height: 200px;
  }

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

  .about-img {
    width: 100%;
    max-width: 400px;
  }

  .about-stats {
    justify-content: center;
  }

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

  .skill-items {
    grid-template-columns: 1fr;
  }

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

  .project-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }


  .social-links-large {
    gap: 1rem;
  }

  .social-link-large {
    padding: 0.75rem 1.5rem;
    min-width: 120px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

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

/* Medium mobile devices (431px-480px) */
@media (min-width: 431px) and (max-width: 480px) {
  .nav-container {
    padding: 0.7rem 1.3rem;
    min-height: 58px;
  }
  
  .brand-text {
    font-size: 1.4rem;
  }
  
  .hero-container {
    margin-top: 58px;
    padding: 2.5rem 1.3rem;
  }
  
  .container {
    padding: 0 1.3rem;
  }
  
  .theme-toggle-floating {
    right: 1rem;
    bottom: 1.2rem;
    width: 50px;
    height: 50px;
  }
}

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

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

  .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 1.5em; /* Prevent layout shift during typing */
  }

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

  /* Reduce motion for better mobile performance */
  .hero-text {
    animation-duration: 0.4s; /* Faster on mobile */
  }

  /* Mobile-specific hero spacing */
  .hero-container {
    padding: 2rem 1rem;
  }

  .hero-content {
    gap: 1.5rem;
  }

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

  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Small tablets / Large phablets (481px-600px) */
@media (min-width: 481px) and (max-width: 600px) {
  .nav-container {
    padding: 0.65rem 1.4rem;
    min-height: 56px;
  }
  
  .brand-text {
    font-size: 1.45rem;
  }
  
  .hero-container {
    margin-top: 56px;
    padding: 3rem 1.4rem;
  }
  
  .container {
    padding: 0 1.4rem;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.35rem;
  }
  
  .theme-toggle-floating {
    right: 1.2rem;
    bottom: 1.2rem;
    width: 52px;
    height: 52px;
  }
}
/* Very small mobile screens (iPhone SE, etc.) */
@media (max-width: 480px) {
  /* Fix horizontal overflow */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Ensure viewport doesn't expand */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }

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

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

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

  .hero-container {
    padding: 1.5rem 0.75rem;
    max-width: 100%;
  }

  /* Fix floating button positioning for very small screens */
  .theme-toggle-floating {
    bottom: 0.75rem;
    right: 0.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    /* Move button further left for small screens */
    position: fixed;
  }

  /* Ensure all containers don't overflow */
  .container {
    padding: 0 0.5rem;
    max-width: 100%;
    width: 100%;
  }

  .nav-container {
    padding: 0 0.5rem;
    max-width: 100%;
    width: 100%;
  }
  
  /* Fix section paddings that might cause overflow */
  .hero-container {
    padding: 1.5rem 0.5rem;
    max-width: 100%;
    width: 100%;
  }
}

/* iPhone 12/13/14 (390x844) */
@media (min-width: 375px) and (max-width: 390px) {
  .nav-container {
    padding: 0.65rem 1rem;
    min-height: 58px;
  }
  
  .brand-text {
    font-size: 1.25rem;
  }
  
  .hero-container {
    margin-top: 58px;
    padding: 2rem 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* iPhone 11 Pro Max, iPhone XS Max (414x896) & Galaxy S20/S21, Pixel 6 (412x915) */
@media (min-width: 390px) and (max-width: 414px) {
  .nav-container {
    padding: 0.7rem 1.2rem;
    min-height: 60px;
  }
  
  .brand-text {
    font-size: 1.3rem;
  }
  
  .hero-container {
    margin-top: 60px;
    padding: 2.5rem 1.2rem;
  }
  
  .container {
    padding: 0 1.2rem;
  }
  
  .theme-toggle-floating {
    right: 1rem;
    bottom: 1.2rem;
    width: 50px;
    height: 50px;
  }
}

/* iPhone 14 Pro Max (430x932) */
@media (min-width: 414px) and (max-width: 430px) {
  .nav-container {
    padding: 0.75rem 1.25rem;
    min-height: 62px;
  }
  
  .brand-text {
    font-size: 1.35rem;
  }
  
  .hero-container {
    margin-top: 62px;
    padding: 2.5rem 1.25rem;
  }
  
  .container {
    padding: 0 1.25rem;
  }
  
  .theme-toggle-floating {
    right: 1rem;
    bottom: 1.2rem;
    width: 52px;
    height: 52px;
  }
  
  /* Optimize for larger mobile screens */
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
}

/* Remove ghost padding and ensure proper layout for all mid-range devices */
@media (min-width: 375px) and (max-width: 430px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  /* Remove any ghost padding from sections */
  .hero,
  .about,
  .skills,
  .experience,
  .projects,
  .contact {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* Extra small devices (iPhone SE, etc.) */
@media (max-width: 375px) {
  /* Additional overflow prevention for very small screens */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  /* Make navbar taller for better proportions on very small screens */
  .nav-container {
    padding: 0.7rem 0.5rem;
    min-height: 60px;
  }
  
  .brand-text {
    font-size: 1.1rem;
  }
  
  .hero-container {
    margin-top: 60px;
  }

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

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

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

  .theme-toggle-floating {
    bottom: 0.5rem;
    right: 0.4rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    /* Move button even more to the left for very small screens */
    position: fixed;
  }

  .hero-container {
    padding: 1rem 0.5rem;
  }

  .container {
    padding: 0 0.5rem;
  }
  
  /* Final safety net for horizontal overflow */
  * {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  
  /* Specifically target potentially problematic elements */
  .theme-toggle-floating,
  .navbar,
  .hero,
  .about,
  .skills,
  .experience,
  .projects,
  .contact,
  footer {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
}

/* Optimize animations for mobile */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on all mobile devices */
  * {
    max-width: 100%;
  }
  
  /* Ensure body and main containers never overflow */
  body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }
  
  main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  /* Fix grid layouts that may cause overflow */
  .hero-content,
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-text,
  .about-text,
  .skill-category,
  .project-card,
  .contact-item {
    will-change: auto; /* Reduce GPU usage on mobile */
  }

  /* Fix any potential overflow elements */
  .hero-content,
  .about-content,
  .skills-grid,
  .projects-grid,
  .timeline,
  .contact-content-simple {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    .hero-subtitle {
      border-right: none !important;
    }
    
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

.hero-text,
.about-text,
.skill-category,
.project-card,
.contact-item {
  will-change: transform, opacity;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  opacity: 0.7;
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 2px;
  height: 30px;
  background: white;
  margin: 0.5rem auto;
  animation: bounce 2s infinite;
}

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