/* Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Floating Navigation Icons */
.floating-nav {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg,
    rgba(22, 22, 26, 0.25) 0%,
    rgba(16, 16, 20, 0.25) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  padding: 12px 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 54px;
  height: 54px;
  background: transparent;
  border: none;
  border-radius: 27px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  color: var(--white2-color);
  opacity: 0.5;
  overflow: hidden;
  white-space: nowrap;
}

.nav-icon svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  stroke-width: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-label {
  display: none;
}

.nav-icon:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.nav-icon:active {
  transform: scale(0.95);
}

.nav-icon.active {
  background: var(--white-color);
  color: var(--black2-color);
  opacity: 1;
  border-radius: 25px;
}

.nav-icon.active svg {
  stroke: var(--black2-color);
}

/* Page Management */
.page {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.page.active {
  display: block;
}

/* Unified scrollable container for all pages */
.page-content-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* Add bottom padding so content can scroll past the floating nav (nav height ~200px + 20px bottom margin + extra space) */
  padding-top: 10vh;
  padding-bottom: 35vh;
  /* No padding-top so content can scroll behind header for blur effect */

  /* Smooth scrolling */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-content-container::-webkit-scrollbar {
  display: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .floating-nav {
    right: 15px;
    padding: 10px 6px;
    gap: 16px;
  }

  .nav-icon {
    width: 48px;
    height: 48px;
  }

  .nav-icon svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }
}

@media (max-width: 480px) {
  .floating-nav {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 8px 12px;
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }

  .nav-icon {
    width: 45px;
    height: 45px;
  }

  .nav-icon svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }
}