/* Custom Styles for Moy Kong */

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

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

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

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

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

/* Navbar Scroll Effect */
nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hover Effects */
a {
    transition: all 0.3s ease;
}

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

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button Hover Effects */
button:hover,
a:hover {
    transform: translateY(-2px);
}

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

/* Focus Styles for Accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #d9ab60;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Gallery Grid */
.grid-cols-2 img,
.grid-cols-4 img {
    transition: transform 0.5s ease;
}

/* Form Input Focus */
input:focus,
textarea:focus {
    border-color: #e85335;
    box-shadow: 0 0 0 3px rgba(232, 83, 53, 0.1);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-display {
        font-size: 2.5rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-display {
        font-size: 3rem;
    }
}

/* Loading States */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Print Styles */
@media print {
    nav,
    button,
    form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
