/* Custom Animations and Styles */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out;
}

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

/* Navigation scroll effect */
#navigation.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navigation.scrolled #logo {
    opacity: 1;
}

#navigation.scrolled .nav-link {
    color: #1C2A33 !important;
}

#navigation.scrolled #lang-jp,
#navigation.scrolled #lang-en {
    color: #1C2A33;
}

#navigation.scrolled #lang-jp.active {
    background-color: #8BA98B;
    color: white;
}

#navigation.scrolled #lang-en.active {
    background-color: #8BA98B;
    color: white;
}

#navigation.scrolled #mobile-menu-btn {
    color: #1C2A33 !important;
}

/* Custom color utilities to match the design */
.text-custom-dark {
    color: #1C2A33;
}

.bg-custom-green {
    background-color: #8BA98B;
}

.text-custom-green {
    color: #8BA98B;
}

.bg-custom-cream {
    background-color: #F8F7F4;
}

.text-custom-gold {
    color: #C7BFA3;
}

.border-custom-gold {
    border-color: #C7BFA3;
}

/* Ensure mobile menu icons are visible */
#mobile-menu-btn svg {
    display: block;
}

/* FAQ accordion smooth transition */
.faq-item {
    transition: all 0.3s ease;
}

.faq-answer {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: #8BA98B !important;
    box-shadow: 0 0 0 3px rgba(139, 169, 139, 0.1);
}

/* Button hover effects */
button,
a.btn {
    transition: all 0.3s ease;
}

/* Modal backdrop animation */
#collection-modal {
    transition: opacity 0.3s ease;
}

#collection-modal.show {
    opacity: 1;
}

/* Loading state for form submission */
#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Status message styles */
.status-success {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.status-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Responsive image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Link hover states */
a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #1C2A33;
}

/* Print styles */
@media print {
    nav,
    footer,
    #collection-modal {
        display: none !important;
    }
}

/* Accessibility improvements */
:focus-visible {
    outline: 2px solid #8BA98B;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-\[\#F8F7F4\],
    .bg-\[\#F3F5F1\],
    .bg-\[\#FAF8F3\] {
        background-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }
}

/* Ensure icons are properly sized */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}
