/* ============================================
   Goody Gum Drop Candy Shoppe
   Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #e65533;
    color: #ffffff;
}

/* ============================================
   Navbar
   ============================================ */
.nav-text {
    transition: color 0.3s ease;
}

.nav-text-muted {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

/* Scrolled Navbar State */
nav.scrolled {
    background-color: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled .nav-text {
    color: #0f0f1a;
}

nav.scrolled .nav-text-muted {
    color: #8c5d2c;
}

nav.scrolled .nav-link {
    color: #44403c;
}

/* ============================================
   Floating Card Animations
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}

.floating-card:nth-child(3) {
    animation-delay: -3s;
}

.floating-card:nth-child(4) {
    animation-delay: -4.5s;
}

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

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-left.revealed {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-right.revealed {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background-color: #fce4de;
    border-radius: 4px;
    transition: width 0.2s ease;
}

.mobile-nav-link:hover::before {
    width: 4px;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 85, 51, 0.15);
}

/* ============================================
   Button Hover Effects
   ============================================ */
button,
a[type="submit"] {
    cursor: pointer;
}

/* ============================================
   Image Loading
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
*:focus-visible {
    outline: 2px solid #e65533;
    outline-offset: 2px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    #hero {
        min-height: 100vh;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav,
    #contact-form,
    .floating-card,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
