/* Custom styles for GAMS Simply Sweet & Savory */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #E85D5D;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.reveal-up {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-left {
    opacity: 1;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.reveal-right {
    opacity: 1;
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Stagger animations */
.reveal-up:nth-child(2) {
    animation-delay: 0.1s;
}

.reveal-up:nth-child(3) {
    animation-delay: 0.2s;
}

.reveal-up:nth-child(4) {
    animation-delay: 0.3s;
}

.reveal-up:nth-child(5) {
    animation-delay: 0.4s;
}

.reveal-up:nth-child(6) {
    animation-delay: 0.5s;
}

.reveal-up:nth-child(7) {
    animation-delay: 0.6s;
}

.reveal-up:nth-child(8) {
    animation-delay: 0.7s;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        animation: none;
    }
}

/* Hover effects for interactive elements */
a, button {
    transition: all 0.3s ease;
}

img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Button hover effects */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

/* Card hover effects */
.bg-charcoal-800:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gradient text effect (if needed) */
.gradient-text {
    background: linear-gradient(135deg, #FF6B6B 0%, #E85D5D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Accessibility focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-charcoal-900,
    .bg-charcoal-800 {
        background: #f5f5f5 !important;
    }
    
    .text-white,
    .text-charcoal-900 {
        color: #000 !important;
    }
}
