/* Custom Styles & Animations for THE BOX */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #111111;
  border-radius: 4px;
  border: 2px solid #000000;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4FF59;
}

/* Custom Gradients */
.hero-gradient {
  background: radial-gradient(circle at 70% 30%, rgba(212, 255, 89, 0.08) 0%, rgba(0, 0, 0, 1) 75%);
}

.text-glow {
  text-shadow: 0 0 20px rgba(212, 255, 89, 0.4);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Modal Transitions */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Slide Transition for Carousel */
.carousel-container {
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}
@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 50%;
  }
}
@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 33.333333%;
  }
}

/* Custom Checkbox Animation for Habits */
.habit-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}
.habit-checkbox:checked {
  background-color: #D4FF59;
  border-color: #D4FF59;
}
.habit-checkbox::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}
.habit-checkbox:checked::after {
  transform: rotate(45deg) scale(1);
}

/* Accordion transition utility */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Toast System styling */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  background: rgba(17, 17, 17, 0.95);
  border-left: 4px solid #D4FF59;
  border-radius: 8px;
  color: white;
  padding: 16px 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  animation: slideInToast 0.3s forwards, slideOutToast 0.3s 3.7s forwards;
  min-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left-width: 4px;
}
.toast-success {
  border-left-color: #D4FF59;
}
.toast-info {
  border-left-color: #3b82f6;
}
.toast-warning {
  border-left-color: #f59e0b;
}

@keyframes slideInToast {
  to {
    transform: translateX(0);
  }
}
@keyframes slideOutToast {
  to {
    transform: translateX(120%);
  }
}

/* Page load animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Hover Scale and Neon Glow */
.card-hover-glow {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover-glow:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 255, 89, 0.15);
  border-color: rgba(212, 255, 89, 0.4);
}

/* Pulsing sparkles */
.sparkle-animate {
  animation: sparklePulse 3s infinite ease-in-out;
}
@keyframes sparklePulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.2) rotate(15deg);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(212, 255, 89, 0.4));
  }
}

/* Sticky header background scroll transition */
header {
  transition: all 0.3s ease;
}
header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

/* PREMIUM ADDITIONS */

/* Scroll Reveal animation system */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Slow Floating animation */
.float-animation-slow {
  animation: floatSlow 6s infinite ease-in-out;
}
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

.float-animation-delay {
  animation: floatSlowDelay 6s infinite ease-in-out;
  animation-delay: 3s;
}
@keyframes floatSlowDelay {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1deg);
  }
}

/* WhatsApp Floating Bubble Animation */
@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
  }
}
.animate-bounce-slow {
  animation: bounceSlow 3s infinite ease-in-out;
}

/* INSTAGRAM FEED PREMIUM EFFECTS */
.instagram-card {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.instagram-card-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Hide scrollbar utility */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

