/* ============================================
   GREEN BOTTLE REDEMPTION CENTER
   Custom Styles & Animations
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   FLOATING DECORATIVE SHAPES (Background)
   ============================================ */
.floating-shapes {
    z-index: 0;
}

.shape-circle-1 {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(192, 96, 58, 0.15);
    border-radius: 50%;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-circle-2 {
    position: absolute;
    top: 60%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: rgba(61, 122, 82, 0.08);
    border-radius: 50%;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-square-1 {
    position: absolute;
    top: 40%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: rgba(212, 171, 96, 0.1);
    border-radius: 12px;
    transform: rotate(45deg);
    animation: floatShape 12s ease-in-out infinite;
}

.shape-triangle {
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(192, 96, 58, 0.08);
    animation: floatShape 9s ease-in-out infinite reverse;
}

.shape-ring {
    position: absolute;
    top: 75%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(61, 122, 82, 0.1);
    border-radius: 50%;
    animation: floatShape 11s ease-in-out infinite;
}

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

/* ============================================
   HERO FLOATING STAT CARDS
   ============================================ */
.floating-card-1 {
    animation: floatCard1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: floatCard2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: floatCard3 5.5s ease-in-out infinite;
}

.floating-card-4 {
    animation: floatCard4 8s ease-in-out infinite;
}

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

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}

@keyframes floatCard4 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   Progressive enhancement — content is visible
   by default; JS adds the animated state.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ============================================
   NAVBAR SCROLL STATE
   ============================================ */
nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

nav.scrolled .font-display.font-bold {
    color: #30140D !important;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-link {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Hamburger animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   UTILITY
   ============================================ */
::selection {
    background: rgba(192, 96, 58, 0.2);
    color: #30140D;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid #C0603A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth image loading */
img {
    loading: lazy;
}
