.header,
.scroll-to-top {
  position: fixed;
  z-index: 1000;
}
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap");

:root,
[data-theme="dark"] {
  --gradient: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}
#study,
body {
  background-color: var(--bg-color);
}
.section-subtitle,
.timeline-date {
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn,
.nav-links a,
.project-links a {
  text-decoration: none;
}
.footer,
.hero-image,
.section-header,
.stat-item {
  text-align: center;
}
#home,
.nav-links a,
.project-card,
.project-image,
.section {
  overflow: hidden;
}
/* Enhanced CSS Variables with smooth transitions */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #8b5cf6;
  --accent-color: #10b981;
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --heading-color: #0f172a; /* Slate-900 */
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.05);
  --gradient: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

[data-theme="dark"] {
  --primary-color: #60a5fa;
  --secondary-color: #a78bfa;
  --accent-color: #34d399;
  --bg-color: #0f172a;
  --surface-color: #1e293b;
  --heading-color: #ffffff; /* Pure white for clarity */
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --gradient: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Performance and Loading Optimizations */

/* Critical rendering path optimizations */
.hero-content {
  contain: layout style paint;
}

.project-card {
  contain: layout style paint;
  will-change: transform, opacity;
}

.timeline-item {
  contain: layout style paint;
}

/* Preload critical images */
.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("profile.webp") center/cover;
  opacity: 0;
  pointer-events: none;
}

/* Advanced Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes bounceIn {
  0%,
  20%,
  40%,
  60%,
  80% {
    opacity: 0;
    transform: scale(0.3);
  }
  0% {
    transform: scale(0.3);
  }
  20% {
    transform: scale(1.1);
  }
  40% {
    transform: scale(0.9);
  }
  60% {
    transform: scale(1.03);
  }
  80% {
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

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

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

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
  }
}

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4),
      0 0 30px rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6),
      0 0 50px rgba(139, 92, 246, 0.4);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%,
  70% {
    opacity: 1;
  }
  85% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* General fade-in animation class */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.bounce-in {
  animation: bounceIn 0.8s ease-out;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 3s ease-in-out infinite;
}

.glow-animation {
  animation: glow 3s ease-in-out infinite alternate;
}

.stagger-animation {
  animation-delay: var(--stagger-delay, 0s);
}

/* Enhanced Hero Section Animations */
.hero-text {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-greeting {
  /* Remove problematic typewriter effect */
  overflow: visible;
  white-space: normal;
  border-right: none;
  animation: fadeInUp 1s ease-out 0.8s forwards;
  opacity: 0;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.2s forwards;
}

.hero-description {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.6s forwards;
}

.hero-buttons {
  opacity: 0;
  animation: fadeInUp 1s ease-out 2s forwards;
}

.hero-image {
  opacity: 0;
  animation: fadeInRight 1s ease-out 1s forwards;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: scale(1.05) rotate(2deg);
}

/* Enhanced Button Animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 1.2rem 2.5rem;
  border-radius: 60px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 200px;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1;
  pointer-events: auto;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 10;
  pointer-events: auto;
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
  z-index: 10;
  pointer-events: auto;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #3b82f6;
  border: 2px solid #3b82f6;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

.btn-outline:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border-color: transparent;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
  z-index: 10;
  pointer-events: auto;
}

/* Enhanced Button Effects */
.enhanced-btn {
  position: relative;
  overflow: hidden;
}

.enhanced-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.enhanced-btn:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

.enhanced-btn.pulse-animation {
  animation: breathe 4s ease-in-out infinite;
}

.enhanced-btn.glow-animation {
  animation: glow 3s ease-in-out infinite alternate;
}

/* Icon styling within buttons */
.btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

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

.btn-primary i {
  color: rgba(255, 255, 255, 0.9);
}

.btn-outline i {
  color: #3b82f6;
  transition: color 0.3s ease;
}

.btn-outline:hover i {
  color: white;
}

/* Responsive Button Styles */
@media (max-width: 768px) {
  .btn {
    padding: 1rem 2rem;
    min-width: 160px;
    font-size: 0.9rem;
  }

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

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

@media (max-width: 480px) {
  .btn {
    padding: 0.9rem 1.5rem;
    min-width: 140px;
    font-size: 0.85rem;
    border-radius: 50px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 200px;
  }

  .btn i {
    font-size: 1rem;
  }
}

/* Enhanced Project Card Animations */
.project-card,
.project-card.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}

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

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

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

.project-card:hover .project-links {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

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

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

/* Enhanced Timeline Animations */
.experience-timeline {
  position: relative;
  padding: 2rem 0;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    var(--accent-color) 100%
  );
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0.3;
  animation: timelineGlow 3s ease-in-out infinite;
}

@keyframes timelineGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.timeline-item {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin: 4rem 0;
  position: relative;
  z-index: 10;
}

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

.timeline-item:nth-child(even) {
  transform: translateY(50px) scale(0.9);
}

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

.timeline-content {
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 2.5rem;
  border-radius: 20px;
  background: var(--surface-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  margin-left: 80px;
  margin-right: 0;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.timeline-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 80px;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.timeline-item:hover .timeline-content::after {
  opacity: 1;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 2rem;
  width: 60px;
  height: 60px;
  background: var(--surface-color);
  border: 4px solid var(--border-color);
  border-radius: 50%;
  z-index: 100;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.timeline-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

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

.timeline-marker.education {
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.timeline-marker.experience {
  border-color: var(--secondary-color);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
}

.timeline-item.checkpoint-active .timeline-marker,
.timeline-marker.education.checkpoint-active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2), 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: markerPulse 2s ease-in-out infinite;
}

.timeline-marker.experience.checkpoint-active {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.2), 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: markerPulse 2s ease-in-out infinite;
}

.timeline-marker.current {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, var(--accent-color), #22d3ee);
  animation: currentMarkerPulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes markerPulse {
  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2), 0 8px 25px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(59, 130, 246, 0.1),
      0 12px 35px rgba(0, 0, 0, 0.25);
  }
}

@keyframes currentMarkerPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0.1),
      0 12px 35px rgba(0, 0, 0, 0.25);
  }
}

@keyframes pulse-marker {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.timeline-marker i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-item.checkpoint-active .timeline-marker i {
  color: white;
  transform: translate(-50%, -50%) scale(1.2);
  animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
  0%,
  20%,
  40%,
  60%,
  80% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translate(-50%, -50%) scale(1.3);
  }
}

.timeline-content:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  z-index: 1;
  transition: all 0.3s ease;
}

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

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

.timeline-item:hover .timeline-content::before {
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

/* Enhanced Timeline Content Styling */
.timeline-content h3 {
  color: var(--heading-color);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.timeline-content h3::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.timeline-item:hover .timeline-content h3::after {
  width: 60px;
}

.timeline-content h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: var(--surface-color);
  background: var(--gradient);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.2rem;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.timeline-date::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.6s ease;
}

.timeline-item:hover .timeline-date::before {
  left: 100%;
}

.timeline-date.current-badge {
  background: linear-gradient(135deg, var(--accent-color), #22d3ee);
  animation: currentBadgePulse 2s ease-in-out infinite;
}

@keyframes currentBadgePulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
  }
}

.timeline-company {
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-company::before {
  content: "🏢";
  font-size: 1rem;
}

.timeline-details p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.timeline-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.achievement-tag {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left 0.4s ease;
}

.achievement-tag:hover {
  transform: translateY(-2px);
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.achievement-tag:hover::before {
  left: 100%;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

/* Responsive Timeline */
@media (max-width: 768px) {
  .experience-timeline::before {
    left: 30px;
    transform: none;
  }

  .timeline-item {
    transform: translateY(30px) scale(0.9);
  }

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

  .timeline-item:nth-child(even) {
    transform: translateY(30px) scale(0.9);
  }

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

  .timeline-content {
    margin-left: 80px;
    margin-right: 20px;
    padding: 2rem;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    margin-right: 20px;
  }

  .timeline-marker {
    left: 30px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
  }

  .timeline-content::before {
    left: -15px;
    right: auto;
    border-right-color: var(--surface-color);
    border-left-color: transparent;
    border-width: 12px;
    border-right-width: 15px;
  }

  .timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    right: auto;
    border-right-color: var(--surface-color);
    border-left-color: transparent;
    border-width: 12px;
    border-right-width: 15px;
  }

  .timeline-content h3 {
    font-size: 1.4rem;
  }

  .timeline-date {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .achievement-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .timeline-content {
    margin-left: 70px;
    margin-right: 10px;
    padding: 1.5rem;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 70px;
    margin-right: 10px;
  }

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

  .timeline-content h3 {
    font-size: 1.2rem;
  }

  .timeline-company {
    font-size: 1rem;
  }

  .timeline-details p {
    font-size: 0.9rem;
  }
}

/* Enhanced Skill Animations */
.skill-item,
.skill-card,
.tech-item {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-item.visible,
.skill-card.visible,
.tech-item.visible {
  opacity: 1;
  transform: scale(1);
}

.skill-item:hover,
.skill-card:hover,
.tech-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced Contact Form Animation */
.contact-form .form-group {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-form .form-group.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  transition: all 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* Enhanced Social Links Animation */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  align-items: center;
  margin-top: 2rem;
}

.social-links a {
  transition: all 0.3s ease;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-links a:nth-child(1) {
  --delay: 0.1s;
  animation-delay: 2.2s;
}
.social-links a:nth-child(2) {
  --delay: 0.2s;
  animation-delay: 2.4s;
}
.social-links a:nth-child(3) {
  --delay: 0.3s;
  animation-delay: 2.6s;
}
.social-links a:nth-child(4) {
  --delay: 0.4s;
  animation-delay: 2.8s;
}

/* Enhanced Navigation Animation */
.nav-links a {
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

/* Enhanced Stats Animation */
.stat-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
  position: relative;
  min-width: 1.2em;
  text-align: center;
}

/* Enhanced counting animation effects */
.stat-number[data-animating="true"] {
  color: var(--secondary-color);
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  animation: countingPulse 0.1s ease-in-out infinite alternate;
}

@keyframes countingPulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.02);
  }
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
  color: var(--secondary-color);
  text-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* Add subtle glow effect during animation */
.stat-number[data-animated="true"] {
  animation: completionGlow 0.8s ease-out;
}

/* Non-numeric stat numbers (like availability indicator) */
.stat-number.non-numeric {
  font-size: 2rem;
  color: var(--accent-color);
  animation: pulseBeat 2s ease-in-out infinite;
}

@keyframes pulseBeat {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

[data-theme="dark"] .stat-number.non-numeric {
  color: var(--accent-color);
  text-shadow: 0 0 15px rgba(52, 211, 153, 0.5);
}

@keyframes completionGlow {
  0% {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    transform: scale(1);
  }
}

/* Enhanced stats container */
.about-stats {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-stats.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Individual stat item improvements */
.stat-item {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
  color: var(--primary-color);
}

/* Mobile responsiveness for stats */
@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 1.8rem;
  }

  .stat-item {
    padding: 0.8rem;
  }
}

/* Enhanced Contact Form Animation */

/* AWESOME LOADING ANIMATION WITH RK */
/* Modern Enhanced Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #0f0f23 0%,
    #1a1a2e 25%,
    #16213e 50%,
    #0f3460 75%,
    #533483 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

/* Animated background with multiple layers */
.loading-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 219, 255, 0.2) 0%,
      transparent 50%
    );
  animation: backgroundShift 8s ease-in-out infinite;
}

.loading-overlay::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: shimmer 4s linear infinite;
  transform: rotate(45deg);
}

@keyframes backgroundShift {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: scale(1.1) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(0.9) rotate(180deg);
    opacity: 1;
  }
  75% {
    transform: scale(1.05) rotate(270deg);
    opacity: 0.9;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.loading-overlay.hidden {
  opacity: 0;
  transform: scale(0.95) rotateX(15deg);
  pointer-events: none;
}

/* Enhanced loading container */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 10;
  transform: perspective(1000px);
}

/* Modernized logo with glassmorphism */
.rk-logo {
  font-family: "Inter", "SF Pro Display", -apple-system, sans-serif;
  font-size: 8rem;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #4facfe 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientFlow 6s ease-in-out infinite,
    logoFloat 4s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  position: relative;
  letter-spacing: -0.05em;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.rk-logo::before {
  content: "RK";
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.05);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: -1;
  animation: logoGlow 3s ease-in-out infinite;
  transform: scale(1.1);
  filter: blur(2px);
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
    transform: scale(1);
  }
  33% {
    background-position: 100% 0%;
    transform: scale(1.02);
  }
  66% {
    background-position: 0% 100%;
    transform: scale(0.98);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px) rotateX(0deg);
  }
  25% {
    transform: translateY(-15px) rotateX(2deg);
  }
  50% {
    transform: translateY(-8px) rotateX(0deg);
  }
  75% {
    transform: translateY(-20px) rotateX(-2deg);
  }
}

@keyframes logoGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1.1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

/* Modern loading text with typewriter effect */
.loading-text {
  font-family: "Inter", "SF Pro Text", -apple-system, sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0;
  animation: fadeInScale 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
  position: relative;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.loading-text::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  animation: cursor 1s infinite;
  border-radius: 2px;
}

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

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Advanced progress bar with multiple segments */
.loading-progress {
  width: 400px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.loading-progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #4facfe 100%
  );
  background-size: 200% 100%;
  border-radius: 10px;
  animation: progressFill 4s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    progressShine 2s linear infinite;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.loading-progress::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: calc(100% + 2px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  border-radius: 10px;
  animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  25% {
    width: 25%;
  }
  50% {
    width: 60%;
  }
  75% {
    width: 85%;
  }
  100% {
    width: 100%;
  }
}

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

@keyframes progressGlow {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

/* Enhanced floating particles */
.loading-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.2) 70%,
    transparent 100%
  );
  animation: particleFloat 6s ease-in-out infinite;
  filter: blur(0.5px);
}

.particle:nth-child(1) {
  width: 6px;
  height: 6px;
  top: 15%;
  left: 20%;
  animation-delay: 0s;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.8) 0%,
    transparent 70%
  );
}

.particle:nth-child(2) {
  width: 4px;
  height: 4px;
  top: 70%;
  left: 80%;
  animation-delay: 1s;
  background: radial-gradient(
    circle,
    rgba(118, 75, 162, 0.8) 0%,
    transparent 70%
  );
}

.particle:nth-child(3) {
  width: 8px;
  height: 8px;
  top: 85%;
  left: 25%;
  animation-delay: 2s;
  background: radial-gradient(
    circle,
    rgba(240, 147, 251, 0.8) 0%,
    transparent 70%
  );
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 35%;
  left: 75%;
  animation-delay: 3s;
  background: radial-gradient(
    circle,
    rgba(245, 87, 108, 0.8) 0%,
    transparent 70%
  );
}

.particle:nth-child(5) {
  width: 7px;
  height: 7px;
  top: 10%;
  left: 65%;
  animation-delay: 4s;
  background: radial-gradient(
    circle,
    rgba(79, 172, 254, 0.8) 0%,
    transparent 70%
  );
}

.particle:nth-child(6) {
  width: 3px;
  height: 3px;
  top: 50%;
  left: 15%;
  animation-delay: 1.5s;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0%,
    transparent 70%
  );
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translateY(-15px) translateX(-10px) rotate(180deg) scale(0.8);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-40px) translateX(15px) rotate(270deg) scale(1.1);
    opacity: 0.9;
  }
}

/* Modern orbital rings */
.loading-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  z-index: 2;
  animation: orbitRotate 8s linear infinite;
}

.loading-ring:nth-child(1) {
  width: 180px;
  height: 180px;
  border-top: 2px solid rgba(102, 126, 234, 0.6);
  border-right: 2px solid rgba(118, 75, 162, 0.4);
  animation-duration: 8s;
}

.loading-ring:nth-child(2) {
  width: 240px;
  height: 240px;
  border-left: 2px solid rgba(240, 147, 251, 0.5);
  border-bottom: 2px solid rgba(245, 87, 108, 0.3);
  animation-duration: 12s;
  animation-direction: reverse;
}

.loading-ring:nth-child(3) {
  width: 300px;
  height: 300px;
  border-top: 2px solid rgba(79, 172, 254, 0.4);
  border-right: 2px solid rgba(102, 126, 234, 0.2);
  animation-duration: 16s;
}

@keyframes orbitRotate {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: rotate(180deg) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.6;
  }
}

/* Enhanced simple loader component */
.loader {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid;
  border-image: linear-gradient(45deg, #667eea, #764ba2, #f093fb) 1;
  border-radius: 50%;
  animation: modernSpin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.loader::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid rgba(102, 126, 234, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: modernSpin 0.8s linear infinite reverse;
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
  .rk-logo {
    font-size: 5rem;
  }

  .loading-text {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
  }

  .loading-progress {
    width: 280px;
  }

  .loading-ring:nth-child(1) {
    width: 140px;
    height: 140px;
  }

  .loading-ring:nth-child(2) {
    width: 180px;
    height: 180px;
  }

  .loading-ring:nth-child(3) {
    width: 220px;
    height: 220px;
  }

  .loader {
    width: 50px;
    height: 50px;
  }

  .loader::after {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .rk-logo {
    font-size: 3.5rem;
  }

  .loading-text {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    padding: 0.5rem 1rem;
  }

  .loading-progress {
    width: 220px;
    height: 4px;
  }

  .loading-container {
    gap: 2rem;
  }

  .particle {
    opacity: 0.6;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .loading-overlay {
    background: linear-gradient(
      135deg,
      #000000 0%,
      #1a1a2e 25%,
      #16213e 50%,
      #0e1b42 75%,
      #2d1b69 100%
    );
  }

  .loading-text {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .loading-overlay::before,
  .loading-overlay::after,
  .rk-logo,
  .particle,
  .loading-ring,
  .loader {
    animation-duration: 10s;
  }

  .loading-progress::before {
    animation: progressFill 4s linear forwards;
  }
}
/* Smooth scrolling enhancements */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-color);
  scroll-padding-top: 100px;
}
/* Enhanced body and theme transitions */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  transition: color 0.5s ease, background-color 0.5s ease;
  overflow-x: hidden;
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  font-size: 16px;
  background-color: var(--bg-color);
}

/* Enhanced theme transitions */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #8b5cf6;
  --accent-color: #10b981;
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

[data-theme="dark"] {
  --primary-color: #60a5fa;
  --secondary-color: #a78bfa;
  --accent-color: #34d399;
  --bg-color: #0f172a;
  --surface-color: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.2);
}

/* Enhanced section styling with better transitions */
.section {
  padding: 6rem 0;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
}

.section:not(#home) {
  background-color: var(--surface-color);
  margin-top: 0;
}

.section + .section {
  margin-top: 0;
}

/* Enhanced section spacing */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  #home {
    padding: 6rem 0 1rem;
  }
}

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

  #home {
    padding: 5rem 0 1rem;
  }
}
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 10px;
  border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

#home .container,
#home .hero-content {
  position: relative;
  z-index: 2;
}

.btn,
.nav-toggle,
.theme-switcher {
  transition: 0.3s;
  cursor: pointer;
}
.btn,
.theme-switcher {
  box-shadow: 0 2px 4px var(--shadow-color);
}

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

/* Section spacing improvements */
.section {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }
}
/* Base Button Styles */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Pseudo-elements for visual effects */
.scroll-to-top::before,
.scroll-to-top::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  top: 0;
  left: 0;
}

/* Outer gradient ring */
.scroll-to-top::before {
  width: 100%;
  height: 100%;
  background: conic-gradient(
    #4facfe 0deg,
    #00f2fe var(--scroll-progress, 0deg),
    rgba(255, 255, 255, 0.1) var(--scroll-progress, 0deg),
    rgba(255, 255, 255, 0.05) calc(var(--scroll-progress, 0deg) + 45deg),
    transparent calc(var(--scroll-progress, 0deg) + 90deg)
  );
  filter: drop-shadow(0 0 5px rgba(79, 172, 254, 0.5));
  z-index: 1;
}

/* Inner solid circle */
.scroll-to-top::after {
  width: calc(100% - 4px); /* Creates a small border effect */
  height: calc(100% - 4px);
  background: var(--primary-color);
  z-index: 2;
  margin: 2px;
}

/* Icon styles */
.scroll-to-top i {
  color: #fff;
  font-size: 1.2rem;
  z-index: 3;
  position: relative;
}

/* Visibility states */
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:not(.visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* Hover effects */
.scroll-to-top:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .scroll-to-top i {
    font-size: 1rem;
  }
}

/* Prevent potential tap highlights on mobile */
.scroll-to-top {
  -webkit-tap-highlight-color: transparent;
}
.btn {
  padding: 0.8rem 2rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  background: #2563eb;
}
.btn-outline {
  background: transparent;
  color: #3b82f6;
  border-color: #3b82f6;
}
.btn-outline:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
@media (max-width: 768px) {
  #home {
    padding-bottom: 80px;
  }
}
@media (max-width: 480px) {
  #home {
    padding-bottom: 60px;
  }
}
.header {
  top: 0;
  width: 100%;
  background-color: transparent;
  padding: 1.5rem 0;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
#home,
.nav-links a,
.section,
.timeline-item {
  position: relative;
}
.logo,
.nav-links a::before {
  background: var(--gradient);
}
.header.scrolled {
  background-color: hsla(0, 0%, 100%, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .header.scrolled {
  background-color: hsla(222, 47%, 11%, 0.95);
  border-bottom: 1px solid var(--border-color);
}
.timeline-item.checkpoint-active .timeline-marker,
.timeline-marker.education.checkpoint-active {
  border-color: var(--primary-color);
  background: var(--primary-color);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#home,
.nav-links {
  display: flex;
  align-items: center;
}
.logo {
  font-size: 2rem;
  font-weight: 800;
  color: #2c3e50;
}

[data-theme="dark"] .logo {
  color: #f8fafc;
}
.nav-links {
  list-style: none;
  gap: 1.8rem;
}
.mobile-theme-toggle,
.nav-toggle {
  display: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  background: 0 0;
}
.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 2px;
  transform: translateX(-50%);
}
#home::before,
.nav-links a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
}
.nav-links a::after {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0,
    rgba(139, 92, 246, 0.1) 100%
  );
  opacity: 0;
  transition: 0.3s;
  border-radius: 12px;
  z-index: -1;
}
.nav-links a.active,
.nav-links a:hover {
  background: var(--surface-color);
  color: var(--primary-color);
}
.nav-links a.active::before,
.nav-links a:hover::before {
  width: 80%;
}
.nav-links a:hover::after {
  opacity: 1;
  transform: scale(1.05);
}
.nav-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}
.nav-links a.active {
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}
.nav-links a.active::after {
  opacity: 0.8;
}
.nav-toggle {
  background: 0 0;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
}
.nav-toggle:hover {
  background: var(--surface-color);
  box-shadow: 0 2px 8px var(--shadow-color);
}
.nav-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: 0.3s ease-in-out;
  background-color: var(--text-primary);
  border-radius: 2px;
}
.theme-switcher {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.8rem;
  margin-left: 1rem;
}
.theme-switcher:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px var(--shadow-color);
}
.theme-switcher i {
  color: var(--primary-color);
  font-size: 1.2rem;
}
.section {
  padding: 6rem 0;
}
.section-header {
  margin-bottom: 5rem;
  padding: 0 1rem;
}
.section-subtitle {
  font-family: "Inter", sans-serif;
  color: #3498db;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
}

[data-theme="dark"] .section-subtitle {
  color: #60a5fa;
}
.section-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

[data-theme="dark"] .section-title {
  color: #f8fafc;
}
.section-description {
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  color: #6c757d;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

[data-theme="dark"] .section-description {
  color: #94a3b8;
}
#home {
  min-height: 100vh;
  padding: 8rem 0 2rem;

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
}

#home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 250, 252, 0.9);
  z-index: 1;
  transition: background 0.5s ease;
}

[data-theme="dark"] #home::before {
  background: rgba(15, 23, 42, 0.9);
}

#home .container,
#home .hero-content {
  position: relative;
  z-index: 2;
}

/* Wave animation for subtle movement */

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

.hero-image {
  opacity: 0;
  animation: fadeInRight 1s ease-out 1s forwards;
  max-width: 100%;
  overflow: hidden;
}

.hero-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
}

/* Enhanced wave effect with better spacing */

.hero-text {
  max-width: none;
  overflow: visible;
}

.hero-greeting {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #e74c3c;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

[data-theme="dark"] .hero-greeting {
  color: #ff6b6b;
}

.hero-text .subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 400;
  overflow: visible;
  white-space: normal;
}

[data-theme="dark"] .hero-text .subtitle {
  color: #94a3b8;
}

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

/* Divider Styles */
.divider {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.divider img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.1);
}

.divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
  #home {
    overflow-x: hidden;
  }

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

  .hero-image {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-image img {
    max-width: 280px;
  }

  .hero-greeting {
    font-size: clamp(1.8rem, 8vw, 3rem);
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-text .subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

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

  .btn {
    width: 100%;
    max-width: 250px;
    margin: 0.5rem 0;
  }

  .social-links {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .timeline-item {
    margin: 2rem 0;
  }

  .timeline-content {
    padding: 1.5rem;
  }

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

@media (max-width: 480px) {
  .hero-image img {
    max-width: 220px;
  }

  .hero-greeting {
    font-size: clamp(1.5rem, 9vw, 2.5rem);
  }

  .hero-text .subtitle {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
.hero-text h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #2c3e50;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .hero-text h1 {
  color: #f8fafc;
}

/* Hero Greeting Styles */
.hero-greeting {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #e74c3c;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .hero-greeting {
  color: #ff6b6b;
}
.hero-content {
  margin-left: 20px;
  margin-right: 20px;
}
/* Animation for the greeting */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Name and Role Highlighting */
.name-highlight {
  background: linear-gradient(135deg, #e74c3c, #f39c12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.role-highlight {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

[data-theme="dark"] .name-highlight {
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .role-highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Text Animation */
.gradient-text {
  background: linear-gradient(135deg, #e74c3c, #f39c12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  display: inline-block;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text .subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 400;
}

[data-theme="dark"] .hero-text .subtitle {
  color: #94a3b8;
}

/* Enhanced Typing Animation Styles */
#typewriter-container {
  display: block;
  min-height: 3.5rem;
  line-height: 1.2;
}

.initial-text {
  opacity: 1;
  transition: all 0.5s ease;
  color: var(--text-secondary);
  font-style: italic;
}

.typing-line-1,
.typing-line-2,
.typing-line-3 {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: fadeInSlide 0.3s ease-out;
}

.typing-cursor {
  color: var(--primary-color);
  font-weight: bold;
  animation: typingBlink 1s infinite;
  margin-left: 2px;
  display: inline-block;
}

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

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
/* Enhanced Social Links */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.footer-social a,
.social-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--text-secondary);
  font-size: 1.5rem;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--surface-color);
  box-shadow: 0 4px 12px var(--shadow-color);
  text-decoration: none;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  z-index: 1;
}

.social-links a i {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.footer p {
  font-family: "Caprasimo", cursive;
  font-size: 1.2rem;
}

.footer-social a:hover,
.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px var(--shadow-color);
  color: white;
}

.social-links a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.social-links a:hover i {
  transform: scale(1.2) rotate(15deg);
  color: white;
}

/* Platform-specific colors */
.social-links a[href*="facebook"]:hover::before {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.social-links a[href*="youtube"]:hover::before {
  background: linear-gradient(135deg, #ff0000, #ff5722);
}

.social-links a[href*="github"]:hover::before {
  background: linear-gradient(135deg, #333, #24292e);
}

.social-links a[href*="whatsapp"]:hover::before,
.social-links a[href*="wa.me"]:hover::before {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-links a[href*="linkedin"]:hover::before {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-links a[href*="twitter"]:hover::before {
  background: linear-gradient(135deg, #1da1f2, #0d95e8);
}

.social-links a[href*="instagram"]:hover::before {
  background: linear-gradient(135deg, #e4405f, #fd1d1d, #fccc63);
}

/* Dark theme adjustments */
[data-theme="dark"] .social-links a {
  background: var(--surface-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.hero-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 50%;
  border: 5px solid var(--surface-color);
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: transform 0.3s;
  aspect-ratio: 1/1;
}
.hero-image img:hover,
.project-card:hover .project-image img {
  transform: scale(1.05);
}
#about,
#contact,
#projects {
  background-color: var(--surface-color);
}

/* Enhanced About Section Animations */
.about-main-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-text-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-text-section.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-visual-section {
  position: relative;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-visual-section.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-intro {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px var(--shadow-color);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-passion,
.about-approach {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-passion.visible,
.about-approach.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-passion {
  animation-delay: 0.2s;
}

.about-approach {
  animation-delay: 0.4s;
}

@media (max-width: 992px) {
  .about-main-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text-section,
  .about-visual-section {
    transform: translateY(30px);
  }

  .about-text-section.visible,
  .about-visual-section.visible {
    transform: translateY(0);
  }
}

.about-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-heading i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.about-subheading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-subheading i {
  color: var(--accent-color);
}

.about-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-description strong {
  color: var(--primary-color);
  font-weight: 600;
}

.about-passion,
.about-approach {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

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

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.about-list li i {
  color: var(--accent-color);
  font-size: 1rem;
}

/* About Visual Section */
.about-visual-section {
  position: relative;
}

.about-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-color);
  transition: transform 0.3s ease;
}

.about-image-container:hover {
  transform: translateY(-10px);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.about-image-container:hover .about-image-overlay {
  transform: translateY(0);
}

.coding-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.coding-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

.coding-stat i {
  color: var(--accent-color);
}

/* Skills Section */
.about-skills-section {
  margin: 4rem 0;
  padding: 3rem;
  background: var(--bg-color);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.skills-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  justify-content: center;
}

.skills-title i {
  color: var(--primary-color);
}

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

.skill-category {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.skill-category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.skill-category-title i {
  color: var(--secondary-color);
}

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

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.skill-tag i {
  font-size: 1rem;
}

/* Specific skill tag colors */
.skill-tag.html {
  background: linear-gradient(135deg, #e34f26, #f16524);
}
.skill-tag.css {
  background: linear-gradient(135deg, #1572b6, #33a9dc);
}
.skill-tag.js {
  background: linear-gradient(135deg, #f7df1e, #f0db4f);
  color: #333;
}
.skill-tag.python {
  background: linear-gradient(135deg, #3776ab, #ffd43b);
}
.skill-tag.django {
  background: linear-gradient(135deg, #092e20, #0c4b33);
}
.skill-tag.tailwind {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.skill-tag.bootstrap {
  background: linear-gradient(135deg, #7952b3, #6f42c1);
}

/* Enhanced Stats Section */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.about-stats.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}

.stat-item.visible,
.about-stats.visible .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.about-stats.visible .stat-item:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.about-stats.visible .stat-item:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.about-stats.visible .stat-item:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.about-stats.visible .stat-item:nth-child(4) {
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.about-stats.visible .stat-item:nth-child(5) {
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-color);
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

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

.stat-number {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #e74c3c;
  display: block;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .stat-number {
  color: #ff6b6b;
}

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

.available-stat {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(6, 182, 212, 0.1)
  );
  border-color: var(--accent-color);
}

.available-stat .stat-icon {
  background: var(--accent-color);
  animation: pulse 2s ease-in-out infinite;
}

.available-stat .stat-number,
.available-stat .stat-label {
  color: var(--accent-color);
}

.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}

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

/* Fun Facts Section */
.about-fun-facts {
  background: var(--bg-color);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  margin-top: 3rem;
}

.fun-facts-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

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

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

.fun-fact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.fun-fact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.fun-fact i {
  font-size: 1.5rem;
  color: var(--primary-color);
  min-width: 30px;
}

.fun-fact p {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .about-main-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-intro,
  .about-skills-section,
  .about-fun-facts {
    padding: 2rem;
  }

  .about-heading {
    font-size: 1.5rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .fun-facts-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .about-main-content {
    gap: 2rem;
  }

  .about-intro {
    padding: 1.5rem;
  }

  .about-heading {
    font-size: 1.3rem;
  }

  .skills-title,
  .fun-facts-title {
    font-size: 1.5rem;
  }
}
.experience-timeline::after,
.experience-timeline::before {
  position: absolute;
  top: 0;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 2px;
  left: 50%;
  content: "";
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #e74c3c;
  display: block;
}

[data-theme="dark"] .stat-number {
  color: #ff6b6b;
}
.timeline-content,
.timeline-marker {
  background: var(--surface-color);
  box-shadow: 0 4px 12px var(--shadow-color);
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.experience-timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.experience-timeline::before {
  bottom: 0;
  background: var(--border-color);
  z-index: 0;
}
.experience-timeline::after {
  height: var(--timeline-progress, 0%);
  background: var(--gradient);
  transition: height 0.8s ease-out;
  z-index: 1;
}
.timeline-item {
  margin: 3rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
  z-index: 10;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 58%;
  padding-right: 4rem;
  text-align: right;
}
.timeline-item:nth-child(2n) .timeline-content {
  margin-left: 58%;
  margin-right: 0;
  padding-left: 4rem;
  text-align: left;
}
.timeline-marker {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 60px;
  height: 60px;
  border: 4px solid var(--border-color);
  border-radius: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999 !important;
  transition: 0.5s;
  opacity: 0.5;
}
.timeline-item.checkpoint-active .timeline-marker {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.timeline-marker.experience.checkpoint-active {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
}
.timeline-marker.current {
  border-color: var(--accent-color);
  background: var(--accent-color);
  opacity: 1;
  animation: 2s infinite pulse-marker;
}
@keyframes pulse-marker {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 4px 12px var(--shadow-color);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px var(--accent-color);
  }
}
.timeline-marker i {
  color: #fff;
  font-size: 1.5rem;
  transition: 0.3s;
  opacity: 0.7;
}
.timeline-item.checkpoint-active .timeline-marker i {
  opacity: 1;
}
.timeline-content {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: 0.3s;
  position: relative;
  z-index: 5;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}
.timeline-content:hover {
  transform: translateY(-5px);
}
.timeline-content::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 0;
  height: 0;
  border: 15px solid transparent;
}
.timeline-item:nth-child(odd) .timeline-content::before {
  right: -25px;
  border-left-color: var(--surface-color);
}
.timeline-item:nth-child(2n) .timeline-content::before {
  left: -25px;
  border-right-color: var(--surface-color);
}
.timeline-date {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.current-badge {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  display: inline-block;
  animation: 2s infinite pulse;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.timeline-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.timeline-company,
.timeline-details p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.timeline-company {
  font-weight: 600;
  font-size: 1.1rem;
}
.timeline-details p {
  line-height: 1.6;
}
.timeline-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}
.timeline-item:nth-child(odd) .timeline-achievements {
  justify-content: flex-end;
}
.achievement-tag {
  background: var(--accent-color);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: 0.3s;
}
.achievement-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
  z-index: 5;
  pointer-events: auto;
}
@media (max-width: 768px) {
  .experience-timeline {
    padding: 1rem 0.5rem;
  }
  .experience-timeline::after,
  .experience-timeline::before {
    left: 25px;
    width: 3px;
    transform: none;
  }
  .timeline-marker {
    left: 25px;
    width: 40px;
    height: 40px;
    transform: translateX(-50%);
  }
  .timeline-marker i {
    font-size: 1rem;
  }
  .timeline-item:nth-child(2n) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: left;
  }
  .timeline-content::before {
    display: none;
  }
  .timeline-achievements {
    justify-content: flex-start !important;
  }
  .timeline-content {
    padding: 1.5rem;
  }
  .timeline-item {
    margin: 2rem 0;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .experience-timeline {
    max-width: 900px;
    padding: 1.5rem 1rem;
  }

  .timeline-marker {
    width: 55px;
    height: 55px;
  }
  .timeline-marker i,
  .timeline-title {
    font-size: 1.3rem;
  }
  .timeline-content {
    padding: 1.8rem;
  }
  .timeline-company {
    font-size: 1rem;
  }
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.project-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
  will-change: transform, opacity;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px var(--shadow-color);
}
.project-image {
  height: 220px;
  aspect-ratio: 16/9;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.05);
}
.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}
.contact-form .form-group,
.contact-item,
.project-tech {
  margin-bottom: 1.5rem;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-tag {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light theme tech tags */
[data-theme="light"] .tech-tag {
  background: #f1f5f9;
  color: #3b82f6;
  border: 1px solid #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.tech-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  z-index: 5;
  pointer-events: auto;
}
.project-links a:not(.project-btn) {
  color: var(--primary-color);
  font-weight: 600;
  transition: color 0.3s;
  margin-right: 1.5rem;
}
contact-info p,
.contact-item,
.footer {
  color: var(--text-secondary);
}
.project-links a:not(.project-btn):hover {
  text-decoration: underline;
}
.project-links i {
  margin-right: 0.5rem;
}
.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  background-color: var(--bg-color);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.contact-info p {
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--surface-color);
  color: var(--text-primary);
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px hsla(221, 83%, 53%, 0.2);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.footer {
  background: var(--surface-color);
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
}
.footer .logo {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}
/* Social Links Container Spacing */
.hero-text .social-links {
  text-align: center;
  margin-top: 3rem;
  justify-content: center;
}

/* Mobile responsive social links */
@media (max-width: 768px) {
  .social-links {
    gap: 1rem;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .social-links {
    gap: 0.8rem;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 992px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.8rem;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
  }
}
@media (max-width: 885px) {
  .nav-links,
  .nav-links li {
    width: 100%;
  }
  .hero-content,
  .nav-links {
    text-align: center;
  }
  .about-stats,
  .hero-content,
  .study-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    background: var(--bg-color);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  .mobile-theme-toggle,
  .nav-links li {
    transform: translateX(-50px);
    transition: transform 0.5s, opacity 0.5s;
    opacity: 0;
  }
  [data-theme="dark"] .nav-links {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links a {
    display: block;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    border-radius: 15px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    margin: 0.5rem 0;
    background: 0 0;
    border: 2px solid transparent;
  }
  .nav-links a::before {
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    height: 2px;
  }
  .nav-links a::after {
    border-radius: 15px;
  }
  .nav-links a.active,
  .nav-links a:hover {
    border: 2px solid var(--primary-color);
    background: var(--surface-color);
  }
  .nav-links a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-color);
    color: var(--primary-color);
  }
  .nav-links a:hover::after {
    opacity: 1;
  }
  .nav-links a.active {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
  }
  .nav-links.active .mobile-theme-toggle,
  .nav-links.active li {
    transform: translateX(0);
    opacity: 1;
  }
  .mobile-theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.2rem;
    background: var(--surface-color);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
  }
  .mobile-theme-switcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
  }
  .mobile-theme-switcher i {
    color: var(--primary-color);
    font-size: 1.2rem;
  }
  .mobile-theme-switcher span {
    font-weight: 600;
    color: var(--text-primary);
  }
  .nav-links.active li:first-child {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.15s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.25s;
  }
  .nav-links.active li:nth-child(5) {
    transition-delay: 0.3s;
  }
  .nav-links.active li:nth-child(6) {
    transition-delay: 0.35s;
  }
  .nav-links.active li:nth-child(7) {
    transition-delay: 0.4s;
  }
  .nav-toggle {
    display: block;
    z-index: 1001;
    position: relative;
  }
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .bar:first-child {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .theme-switcher {
    display: none;
  }
  .mobile-theme-toggle {
    display: block;
  }
  .hero-text {
    order: 2;
  }
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
  .hero-buttons,
  .social-links {
    justify-content: center;
  }
  .about-stats {
    gap: 1rem;
  }
  .study-card {
    padding: 1.5rem;
  }
}
@media (hover: none) and (pointer: coarse) {
  .btn,
  .mobile-theme-switcher,
  .nav-links a,
  .project-card,
  .skill-card,
  .theme-switcher {
    min-height: 44px;
    min-width: 44px;
  }
  .nav-toggle {
    padding: 10px;
  }
  .nav-toggle .bar {
    width: 24px;
    height: 3px;
  }
}
@supports (-webkit-overflow-scrolling: touch) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .container,
  .navbar {
    padding: 0 1rem;
  }
  .header {
    padding: 0.8rem 0;
  }
  .logo {
    font-size: 1.5rem;
  }
  .nav-links a,
  .timeline-title {
    font-size: 1.2rem;
  }
  .nav-toggle .bar {
    width: 22px;
    height: 3px;
    margin: 4px auto;
  }
  .nav-links,
  .skill-card {
    padding: 1rem;
  }
  .nav-links a {
    padding: 1.2rem 1.5rem;
    margin: 0.3rem 0;
  }
  .experience-timeline {
    padding: 1rem 0.5rem;
  }
  .experience-timeline::after,
  .experience-timeline::before {
    left: 20px;
    width: 2px;
  }
  .timeline-marker {
    left: 20px;
    width: 35px;
    height: 35px;
  }
  .timeline-details p,
  .timeline-marker i {
    font-size: 0.9rem;
  }
  .timeline-item:nth-child(2n) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
  }
  .timeline-content {
    padding: 1.2rem;
  }
  .timeline-company {
    font-size: 0.95rem;
  }
  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  .hero-greeting {
    font-size: 1.8rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: center;
  }
  .hero-text .subtitle {
    font-size: 1.1rem;
    margin: 1rem 0;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  .section {
    padding: 3rem 0;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stat-card {
    padding: 1.5rem 1rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-form,
  .project-card {
    padding: 1.5rem;
  }
  .form-row {
    flex-direction: column;
  }
  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    left: auto;
    right: 1rem;
    transform: none;
  }
  .mobile-theme-switcher {
    padding: 1rem;
    gap: 0.5rem;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .nav-links a {
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
  }
  .nav-links a.active::after,
  .nav-links a::after {
    display: none;
  }
  .nav-links a.active,
  .nav-links a:hover {
    background: 0 0;
    box-shadow: none;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar {
    padding: 0 1rem;
  }
  .nav-links {
    gap: 2rem;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }
  .hero-text h1 {
    font-size: 3.2rem;
  }
  .hero-text .subtitle {
    font-size: 1.2rem;
  }
  .about-stats,
  .projects-grid,
  .study-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    font-size: 2.8rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  .hero-text h1 {
    font-size: 4rem;
  }
  .nav-links {
    gap: 3rem;
  }
  .nav-links a {
    font-size: 1.2rem;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  .section {
    padding: 8rem 0;
  }
  .hero-text h1 {
    font-size: 4.5rem;
  }
}
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
  .hero-text h1 {
    font-size: 5rem;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 1.5rem;
    padding: 1rem;
  }
  .nav-links li {
    flex: 0 0 auto;
  }
  .nav-links a {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }
  .mobile-theme-switcher {
    order: 999;
    margin-top: 1rem;
    width: 100%;
  }
}
/* Modern Typography Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.875rem;
}

h5 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.625rem;
}

[data-theme="dark"] h1 {
  color: #f8fafc;
}

[data-theme="dark"] h2 {
  color: #e2e8f0;
}

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

[data-theme="dark"] h4 {
  color: #34d399;
}

[data-theme="dark"] h5 {
  color: #a78bfa;
}

[data-theme="dark"] h6 {
  color: #fbbf24;
}

.section-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #3498db;
  margin-bottom: 0.8rem;
}

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

.subtitle,
.section-description {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #6c757d;
  line-height: 1.7;
  font-size: 1.125rem;
}

[data-theme="dark"] .subtitle,
[data-theme="dark"] .section-description {
  color: #94a3b8;
}

p {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #495057;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

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

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: #6c757d;
  line-height: 1.8;
}

[data-theme="dark"] .lead {
  color: #94a3b8;
}

.small {
  font-size: 0.875rem;
  color: #868e96;
  line-height: 1.5;
}

[data-theme="dark"] .small {
  color: #64748b;
}

.about-heading,
.skills-title,
.timeline-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.timeline-company,
.project-description {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Code and technical text */
.tech-tag,
skill-tag,
code,
pre {
  font-family: "JetBrains Mono", "Fira Code", "Monaco", "Consolas", monospace;
  font-weight: 400;
  font-size: 0.875rem;
}

/* Navigation styling */
.nav-links a {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Button styling */
.btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Contact form styling */
.contact-form input,
.contact-form textarea {
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

/* Stats and numbers */
.stat-number {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #e74c3c;
  display: block;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .stat-number {
  color: #ff6b6b;
}

.stat-label {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Logo styling */
.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 2rem;
  color: #2c3e50;
}

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

/* Enhanced readability for content */
.about-description,
.timeline-details p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  font-size: 1rem;
}

/* Fun facts and special text */
.fun-fact p {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Enhanced Modern Typography & Stylish Fonts */

/* Ultra-modern font loading with variable font support */
@supports (font-variation-settings: normal) {
  body {
    font-family: "Inter var", "Inter", "SF Pro Display", -apple-system,
      BlinkMacSystemFont, sans-serif;
    font-variation-settings: "wght" 400, "slnt" 0;
  }
}

/* Advanced Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", "Playfair Display", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

/* Premium Display Typography */
.hero-greeting {
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

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

/* Special highlighting for name */
.highlight-name,
.name-highlight {
  color: var(--accent-color) !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme="dark"] .highlight-name,
[data-theme="dark"] .name-highlight {
  color: var(--accent-color) !important;
}

/* Professional role highlighting */
.role-highlight {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .role-highlight {
  color: var(--primary-color) !important;
}

/* Elite Section Titles */
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

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

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  opacity: 0.8;
}

[data-theme="dark"] .section-title::after {
  background: var(--primary-color);
}

/* Premium Subtitle Styling */
.section-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-subtitle::before,
.section-subtitle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

[data-theme="dark"] .section-subtitle::before,
[data-theme="dark"] .section-subtitle::after {
  background: var(--primary-color);
}

.section-subtitle::before {
  left: -50px;
}

.section-subtitle::after {
  right: -50px;
}

/* Sophisticated Body Text */
.subtitle,
.section-description {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* Enhanced Heading
.about-heading,
.skills-title,
.fun-facts-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about-heading i,
.skills-title i,
.fun-facts-title i {
  margin-right: 0.5rem;
  color: var(--primary-color);
  font-size: 1.2em;
}

/* Premium Timeline Typography */
.timeline-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-company {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Project Card Typography */
.project-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.project-description {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

/* Tech Tags Typography */
.tech-tag,
.skill-tag {
  font-family: "JetBrains Mono", "SF Mono", "Monaco", "Consolas", monospace;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* Navigation Typography */
.nav-links a {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  font-weight: 700;
  letter-spacing: 1px;
}

/* Button Typography Enhancement */
.btn {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* Stats Typography */
.stat-number {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 3rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

/* Contact Form Typography */
.contact-form input,
.contact-form textarea {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Logo Typography */
.logo {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 2.2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

/* Enhanced Reading Experience */
.about-description,
.timeline-details p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--text-primary);
  opacity: 0.9;
}

/* Mobile Typography Optimizations */
@media (max-width: 768px) {
  .hero-greeting {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    line-height: 1.1;
  }

  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .subtitle,
  .section-description {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .section-subtitle::before,
  .section-subtitle::after {
    width: 25px;
  }

  .section-subtitle::before {
    left: -35px;
  }

  .section-subtitle::after {
    right: -35px;
  }
}

/* Dark Theme Typography Enhancements */
[data-theme="dark"] .hero-greeting {
  text-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .section-title {
  opacity: 0.95;
}

[data-theme="dark"] .about-description,
[data-theme="dark"] .timeline-details p {
  color: #e2e8f0;
  opacity: 0.9;
}

/* Text Selection Styling */
::selection {
  background: var(--primary-color);
  color: white;
  text-shadow: none;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
  text-shadow: none;
}

/* Light theme specific selection - better contrast */
:root ::selection {
  background: #3b82f6;
  color: white;
}

:root ::-moz-selection {
  background: #3b82f6;
  color: white;
}

/* Dark theme specific selection */
[data-theme="dark"] ::selection {
  background: #60a5fa;
  color: #0f172a;
}

[data-theme="dark"] ::-moz-selection {
  background: #60a5fa;
  color: #0f172a;
}

/* Enhanced Focus States */
h1:focus,
h2:focus,
h3:focus,
.btn:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Premium text styling for special sections */
.contact-title,
.skills-title,
.fun-facts-title {
  position: relative;
  overflow: hidden;
}

.contact-title::after,
.skills-title::after,
.fun-facts-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #3498db;
  border-radius: 2px;
}

[data-theme="dark"] .contact-title::after,
[data-theme="dark"] .skills-title::after,
[data-theme="dark"] .fun-facts-title::after {
  background: #60a5fa;
}

/* Improved readability for dark theme */
[data-theme="dark"] .subtitle,
[data-theme="dark"] .section-description,
[data-theme="dark"] .about-description {
  color: #cbd5e1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Enhanced number styling with better font rendering */
.stat-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Premium Project Button Styles - Fixed and Enhanced */

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 25px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 5;
  pointer-events: auto;
}

/* Live Demo Button */
.live-demo-btn {
  background: #667eea;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.live-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  background: #5a6fd8;
  z-index: 10;
  pointer-events: auto;
}

/* Source Code Button */
.source-btn {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.source-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  z-index: 10;
  pointer-events: auto;
}

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

[data-theme="dark"] .source-btn:hover {
  background: var(--primary-color);
  color: white;
  z-index: 10;
  pointer-events: auto;
}

/* Button Icons */
.project-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.project-btn:hover i {
  transform: translateX(2px);
}

/* Ensure buttons remain clickable during parent animations */
.project-btn:hover,
.project-btn:focus {
  z-index: 20;
  pointer-events: auto;
  position: relative;
}

/* Enhanced Button Animations - Clean and Simple */
.project-btn:active,
.btn:active {
  transform: translateY(0px) scale(0.98);
  transition: all 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 15;
}

/* Global fix for all interactive elements */
.btn,
.project-btn,
.tech-tag,
.achievement-tag,
.nav-links a,
.social-links a {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Premium Filter Buttons - Fixed Design */
.project-filter-btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-primary);
  cursor: pointer;
}

.project-filter-btn.active {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  border-color: transparent;
}

.project-filter-btn:not(.active):hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Fixed Project Filter Layout */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 3rem 0;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .project-filters {
    gap: 0.8rem;
    margin: 1.5rem 0 2rem 0;
  }
}

@media (max-width: 480px) {
  .project-filters {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
}

footer {
  margin-bottom: 10px;
}

/* Wave Divider Styles */
.custom-shape-divider-top-1758269831 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-shape-divider-top-1758269831 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 150px;
}
.custom-shape-divider-top-1758269831 .shape-fill {
  fill: var(--primary-color);
  opacity: 0.9;
  transition: fill 0.3s ease;
}

[data-theme="dark"] .custom-shape-divider-top-1758269831 .shape-fill {
  fill: #60a5fa;
  opacity: 0.8;
}

/** For tablet devices **/
@media (min-width: 768px) and (max-width: 1023px) {
  .custom-shape-divider-top-1758269831 svg {
    width: calc(147% + 1.3px);
    height: 150px;
  }
}

/** For mobile devices **/
@media (max-width: 767px) {
  .custom-shape-divider-top-1758269831 svg {
    width: calc(146% + 1.3px);
    height: 76px;
  }
}
