/* Custom Styles for August Grey Interiors */

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

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

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

::-webkit-scrollbar-thumb {
    background: #1a2b4f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2c4a7c;
}

/* Hero Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-anim {
    animation: slideUp 0.8s ease-out forwards;
}

.hero-anim:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-anim:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-anim:nth-child(4) {
    animation-delay: 0.6s;
}

/* Reveal Animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile Menu Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Menu Button Animation */
#menu-toggle.active #menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active #menu-line-2 {
    opacity: 0;
}

#menu-toggle.active #menu-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Mobile Menu States */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(250, 250, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.dark .navbar-scrolled {
    background: rgba(10, 17, 40, 0.95) !important;
}

/* Image Hover Effects */
img {
    transition: transform 0.7s ease;
}

/* Button Focus States */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #4bb888;
    outline-offset: 2px;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 184, 136, 0.2);
}

/* Print Styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    nav, #contact-form, .animate-bounce {
        display: none !important;
    }
}

/* Reduced Motion */
@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;
    }
}
