/* Floating Navigation Styles */
.floating-nav {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 996;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-nav-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #bb86fc, #6c63ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.floating-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(187, 134, 252, 0.5);
  color: white;
  text-decoration: none;
}

.floating-nav-btn:before {
  content: attr(data-tooltip);
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-nav-btn:hover:before {
  opacity: 1;
  visibility: visible;
}

/* Horizontal floating navigation for contact section */
.floating-nav-horizontal {
  background: rgba(187, 134, 252, 0.05);
  border-radius: 20px;
  padding: 1rem;
  margin-top: 1rem;
}

.floating-nav-horizontal .floating-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  min-width: 80px;
  text-decoration: none;
  position: relative;
  width: auto;
  height: auto;
  background: rgba(187, 134, 252, 0.1);
}

.floating-nav-horizontal .floating-nav-btn:hover {
  background: rgba(187, 134, 252, 0.2);
  transform: translateY(-2px);
}

.floating-nav-horizontal .floating-nav-btn .nav-label {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  opacity: 0.8;
  color: var(--text);
}

.floating-nav-horizontal .floating-nav-btn i {
  color: #bb86fc;
  font-size: 1.2rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .floating-nav {
    left: 10px;
    bottom: 10px;
  }
  
  .floating-nav-btn {
    width: 45px;
    height: 45px;
  }
  
  .floating-nav-btn:before {
    display: none;
  }
  
  .floating-nav-horizontal {
    padding: 0.5rem;
  }
  
  .floating-nav-horizontal .floating-nav-btn {
    min-width: 60px;
    padding: 0.8rem;
  }
}

/* Horizontal floating navigation for contact forms */
.floating-nav-horizontal {
  background: rgba(25, 25, 40, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1rem;
  border: 1px solid rgba(187, 134, 252, 0.2);
}

.floating-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #bb86fc, #4c00bb);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem;
  flex-shrink: 0;
}

.floating-nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(187, 134, 252, 0.4);
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .floating-nav-container {
    bottom: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .floating-nav-container::-webkit-scrollbar {
    display: none;
  }

  .floating-nav-btn {
    min-width: 50px;
    height: 50px;
  }

  .nav-label {
    font-size: 0.65rem;
  }
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.floating-nav-btn:hover .nav-label {
    opacity: 1;
}

/* Tooltip for hover effect */
.floating-nav-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.floating-nav-btn::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-nav-btn:hover::before,
.floating-nav-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-nav-container {
        gap: 20px;
        padding: 0 10px;
    }

    .floating-nav-btn {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }

    .nav-label {
        font-size: 8px;
        margin-top: 3px;
    }

    .floating-nav-btn::before {
        display: none;
    }

    .floating-nav-btn::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-nav-container {
        gap: 15px;
        justify-content: space-around;
    }

    .floating-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }

    .nav-label {
        font-size: 7px;
        margin-top: 2px;
    }
}

/* Animation for smooth entrance */
.footer-floating-nav {
    animation: slideUpFade 0.6s ease-out;
}

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

.floating-nav-btn {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}