/* ============================================
   Nutrition House Broussard — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFB703, transparent 70%);
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #9D4EDD, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: #FFB703;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    animation: float-medium 15s ease-in-out infinite;
    opacity: 0.04;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #9D4EDD;
    top: 60%;
    left: 8%;
    animation: float-fast 18s ease-in-out infinite;
    opacity: 0.05;
}

.shape-ring-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid #FFB703;
    top: 30%;
    left: 50%;
    animation: float-slow 22s ease-in-out infinite;
    opacity: 0.04;
}

.shape-dot-cluster {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #FFB703 2px, transparent 2px);
    background-size: 20px 20px;
    bottom: 20%;
    right: 15%;
    animation: float-medium 12s ease-in-out infinite;
    opacity: 0.08;
}

/* ============================================
   Floating Card Animations
   ============================================ */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

.card-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.card-float-medium {
    animation: float-medium 4.5s ease-in-out infinite;
}

.card-float-fast {
    animation: float-fast 3.5s ease-in-out infinite;
}

/* Stagger animation delays */
.card-float-medium:nth-child(2) {
    animation-delay: -1.5s;
}

.card-float-fast:nth-child(3) {
    animation-delay: -0.8s;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 5, 48, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFB703;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobileMenu {
    max-height: 0;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
    background: rgba(26, 5, 48, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

#menuBtn.active #bar1 {
    transform: translateY(3.5px) rotate(45deg);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 1.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(157, 78, 221, 0.15);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Product Card Hover Glow
   ============================================ */
.group:hover .group-hover\:rotate-6 {
    transform: rotate(6deg);
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(160, 130, 200, 0.5);
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(255, 183, 3, 0.3);
    color: #FFB703;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1A0530;
}

::-webkit-scrollbar-thumb {
    background: #5A189A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B2CBF;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .card-float-slow,
    .card-float-medium,
    .card-float-fast {
        animation-duration: 5s;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
