/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600;700&display=swap');

/* ===== FLOATING BOTTOM NAVBAR ===== */
.bottom-navbar {
  font-family: Inter, Unbounded, Arial, sans-serif;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 100%);
  width: min(600px, calc(100% - 48px));
  height: 70px;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(28, 28, 28, 0.9));
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 8px 16px;
  border: 1px solid rgba(183, 75, 75, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(183, 75, 75, 0.1);
  z-index: 1000;
  opacity: 0;
  animation: slideUpFloat 1s cubic-bezier(0.18, 0.9, 0.38, 1) 0.5s forwards;
}

.bottom-navbar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  width: 100%;
}

.bottom-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: Inter, Unbounded, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 35px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  min-width: 100px;
  text-align: center;
  background: transparent;
  letter-spacing: 0.4px;
}

/* Hover background effect */
.bottom-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(183, 75, 75, 0.1), rgba(183, 75, 75, 0.05));
  border-radius: 35px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Shimmer effect */
.bottom-nav-item::after {
  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;
}

.bottom-nav-item:hover::before {
  opacity: 1;
}

.bottom-nav-item:hover::after {
  left: 100%;
}

.bottom-nav-item:hover {
  color: #b74b4b;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(183, 75, 75, 0.25);
}

.bottom-nav-item.active {
  color: #b74b4b;
  background: linear-gradient(135deg, rgba(183, 75, 75, 0.15), rgba(183, 75, 75, 0.08));
  border: 1px solid rgba(183, 75, 75, 0.2);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(183, 75, 75, 0.3);
}

.bottom-nav-text {
  font-family: Inter, Unbounded, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.4px;
  position: relative;
  z-index: 2;
}

/* Animation keyframes */
@keyframes slideUpFloat {
  0% {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  70% {
    transform: translate(-50%, -10px);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translate(-50%, 0px);
  }
  50% {
    transform: translate(-50%, -5px);
  }
}

.bottom-navbar {
  animation: slideUpFloat 1s cubic-bezier(0.18, 0.9, 0.38, 1) 0.5s forwards,
             float 4s ease-in-out 1.5s infinite;
}

/* Pulse effect for active item */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 5px 15px rgba(183, 75, 75, 0.3);
  }
  50% {
    box-shadow: 0 5px 25px rgba(183, 75, 75, 0.5);
  }
}

.bottom-nav-item.active {
  animation: pulse 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bottom-navbar {
    width: min(500px, calc(100% - 32px));
    height: 65px;
    bottom: 20px;
  }
  
  .bottom-navbar-container {
    gap: 8px;
  }
  
  .bottom-nav-item {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    min-width: 85px;
    letter-spacing: 0.3px;
  }
  
  .bottom-nav-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 480px) {
  .bottom-navbar {
    width: min(420px, calc(100% - 24px));
    height: 60px;
    bottom: 15px;
  }
  
  .bottom-navbar-container {
    gap: 6px;
  }
  
  .bottom-nav-item {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    min-width: 75px;
    letter-spacing: 0.2px;
  }
  
  .bottom-nav-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
  }
}

@media (max-width: 360px) {
  .bottom-navbar {
    width: calc(100% - 20px);
    height: 55px;
    bottom: 12px;
  }
  
  .bottom-nav-item {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    min-width: 65px;
    letter-spacing: 0.2px;
  }
  
  .bottom-nav-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes slideUpFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 100%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(183, 75, 75, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(183, 75, 75, 0.1);
  }
}

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

@keyframes navItemHover {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-2px) scale(1.05);
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Body padding for navbar space */
body {
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 90px;
  }
}

@media (max-width: 480px) {
  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 360px) {
  body {
    padding-bottom: 75px;
  }
}
