html {
  scroll-behavior: smooth;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-section,
.projects-section,
.contact-section {
  animation: fadeInUp 0.8s ease-out;
}
.skill-item {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}
.skill-item:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-item:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-item:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-item:nth-child(4) {
  animation-delay: 0.4s;
}
.skill-item:nth-child(5) {
  animation-delay: 0.5s;
}
.skill-item:nth-child(6) {
  animation-delay: 0.6s;
}
.skill-item:nth-child(7) {
  animation-delay: 0.7s;
}
.skill-item:nth-child(8) {
  animation-delay: 0.8s;
}
.skill-item:nth-child(9) {
  animation-delay: 0.9s;
}
.project-card {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}
.project-card:nth-child(1) {
  animation-delay: 0.2s;
}
.project-card:nth-child(2) {
  animation-delay: 0.4s;
}
.project-card:nth-child(3) {
  animation-delay: 0.6s;
}

.main-content {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px var(--shadow);
}
.mobile-menu-toggle i {
  width: 25px;
  color: var(--text-primary);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 250px;
  }

  :root {
    --sidebar-width: 250px;
  }

  .hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  }
}
@media (max-width: 768px) {
  /* Show mobile menu button */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide sidebar by default */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
    z-index: 9999;
  }

  /* Show sidebar when active */
  .sidebar.active {
    transform: translateX(0);
  }

  /* Adjust main content */
  .main-content {
    margin-left: 0;
  }

  /* Two column layouts become single column */
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Skills grid becomes 2 columns on tablet */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  /* Hero buttons stack */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

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