/* ==========================================
   TROPICAL VIBES NUTRITION — Custom Styles
   Premium Dark Luxury Theme
   ========================================== */

/* Custom Font Classes */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   NAVBAR
   ========================================== */

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   SMOOTH SCROLL
   ========================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================
   CUSTOM SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* ==========================================
   SELECTION
   ========================================== */

::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f1f5f9;
}

/* ==========================================
   CARD HOVER EFFECTS
   ========================================== */

.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:not(.visible) {
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    transform: translateY(0);
}

/* ==========================================
   FORM STYLES
   ========================================== */

select option {
    background: #1e293b;
    color: #f1f5f9;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
        transform: none;
    }
}
