/* Reset & Box-Sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  background-color: #28282B;
  color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Logo styling with subtle animation */
.site-header .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.site-header .logo a:hover {
  transform: translateY(-1px);
}

.site-header .logo .logo-main {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  animation: fadeInLeft 0.8s ease-out;
}

.site-header .logo .logo-sub {
  font-weight: 400;
  font-size: 1rem;
  color: #fff;
  margin-left: 0.25rem;
  animation: fadeInLeft 0.8s ease-out 0.1s both;
}

/* Header */
.site-header {
  position: relative;
  min-height: 50px;
  background-color: #3B3C3F;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
  animation: slideInDown 0.6s ease-out;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #fff;
  transform: scaleY(0.5);
  transform-origin: bottom;
  animation: expandWidth 1s ease-out 0.3s both;
}

/* Top Navigation */
.top-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  padding: 0.5rem 0;
  display: inline-block;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-out 0.4s both;
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s ease;
}

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

/* Main Hub List with staggered animations */
.hub {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 2rem 1rem;
  width: 100%;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.hub-list {
  list-style: none;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.hub-list li {
  opacity: 0;
  animation: slideInUp 0.6s ease-out forwards;
}

.hub-list li:nth-child(1) { animation-delay: 0.1s; }
.hub-list li:nth-child(2) { animation-delay: 0.15s; }
.hub-list li:nth-child(3) { animation-delay: 0.2s; }
.hub-list li:nth-child(4) { animation-delay: 0.25s; }
.hub-list li:nth-child(5) { animation-delay: 0.3s; }
.hub-list li:nth-child(6) { animation-delay: 0.35s; }
.hub-list li:nth-child(7) { animation-delay: 0.4s; }
.hub-list li:nth-child(8) { animation-delay: 0.45s; }
.hub-list li:nth-child(9) { animation-delay: 0.5s; }

.hub-list li + li {
  margin-top: 0.75rem;
}

.hub-list a {
  text-decoration: none;
  color: #fff;
  font-size: 1.75rem;
  font-style: italic;
  display: inline-block;
  padding: 0.5rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

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

.hub-list a:hover::before {
  left: 100%;
}

.hub-list a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px) scale(1.02);
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Footer with subtle animations */
.site-footer {
  position: relative;
  min-height: 50px;
  background-color: #3B3C3F;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
  animation: slideInUp 0.6s ease-out;
}

.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #fff;
  transform: scaleY(0.5);
  transform-origin: top;
  animation: expandWidth 1s ease-out 0.3s both;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeIn 1s ease-out 0.6s both;
}

.footer-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-nav a:hover::after {
  width: 80%;
}

.footer-nav a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* Keyframe animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes expandWidth {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(0.5);
    opacity: 1;
  }
}

/* Pulse animation for subtle attention */
@keyframes subtlePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Floating animation for logo */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Enhanced hover states */
.site-header .logo a:hover {
  animation: float 2s ease-in-out infinite;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
  }
  
  .logo-main {
    font-size: 1.1rem !important;
  }
  
  .logo-sub {
    font-size: 0.9rem !important;
  }
  
  .hub {
    min-height: calc(100vh - 120px);
    padding: 1.5rem 1rem;
    justify-content: center;
  }
  
  .hub-list {
    text-align: center;
  }
  
  .hub-list a {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    line-height: 1.3;
  }
  
  .hub-list li + li {
    margin-top: 1rem;
  }
  
  .footer-nav {
    gap: 1rem;
    font-size: 0.8rem;
  }
  
  .footer-nav a {
    font-size: 0.8rem;
    padding: 0.25rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }
  
  .top-nav {
    margin-top: 0.5rem;
  }
  
  .hub {
    min-height: calc(100vh - 140px);
    padding: 1rem;
  }
  
  .hub-list a {
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
  }
  
  .hub-list li + li {
    margin-top: 0.75rem;
  }
  
  .site-footer {
    flex-direction: column;
    padding: 1rem;
  }
  
  .footer-nav {
    gap: 0.75rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-nav a {
    font-size: 0.75rem;
  }
  
  /* Reduce animation complexity on mobile */
  .hub-list a::before {
    display: none;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hub {
    min-height: calc(100vh - 100px);
    padding: 1rem;
  }
  
  .hub-list a {
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
  }
  
  .hub-list li + li {
    margin-top: 0.5rem;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .hub-list a:hover {
    background-color: transparent;
    transform: none;
    text-shadow: none;
  }
  
  .hub-list a:active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px) scale(1.01);
  }
  
  .footer-nav a:hover {
    opacity: 1;
  }
  
  .footer-nav a:active {
    opacity: 0.7;
    transform: translateY(0);
  }
  
  .site-header .logo a:hover {
    animation: none;
  }
  
  .top-nav a:hover::after,
  .footer-nav a:hover::after {
    width: 0;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}