/* ===========================
   Navigation Bar (fixed at top)
   Horizontal scrolling for overflow
=========================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--color-nav-bg);
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  z-index: 1000;
}

/* Hide scrollbar for WebKit browsers */
nav::-webkit-scrollbar {
  display: none;
}

/* Navigation links (default state) */
nav a {
  flex-shrink: 0;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  padding: 6px 12px;
  border-radius: 4px;
  user-select: none;
  transition: color 0.3s;
}

/* Hover effect for navigation links */
nav a:hover {
  color: var(--color-text-hover);
}

/* Active navigation link */
nav a.active {
  color: var(--color-text);
}

/* ===========================
   Main Content Container
=========================== */
main {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 20px;
}

/* ===========================
   Page Sections
   Centered both vertically and horizontally
=========================== */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* ===========================
   Responsive Layout Adjustments
=========================== */

/* For tablets and small laptops (max-width: 768px) */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  #about-text {
    text-align: center;
  }

  .about-text-block,
  .about-animation-block {
    width: 100%;
  }
}

/* For mobile phones (max-width: 600px) */
@media (max-width: 600px) {
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 30px 0;
  }
  
  .app-item {
    max-width: 100%;
    aspect-ratio: auto;
  }
}