/* Custom styles for Wood Grain Designs */

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

/* 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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% {
        top: -16px;
        opacity: 1;
    }
    100% {
        top: 40px;
        opacity: 0;
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Navigation transitions */
.nav-link {
    position: relative;
}

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

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

/* Navbar scrolled state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #1c2b46 !important;
}

.navbar-scrolled .nav-subtext {
    color: #c96b10 !important;
}

.navbar-scrolled .nav-link {
    color: #1c2b46 !important;
}

.navbar-scrolled #menuIcon span {
    background-color: #1c2b46 !important;
}

/* Mobile menu active state */
.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

/* Reveal animations - progressive enhancement, only active with JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for revealed elements */
.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #f2c96e 0%, #e68a1a 50%, #c96b10 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231c2b46' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Selection color */
::selection {
    background-color: rgba(230, 138, 26, 0.2);
    color: #1c2b46;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #e68a1a;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #8da2cf;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6783bf;
}

/* Mobile menu animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-active .mobile-link {
    animation: slideDown 0.4s ease forwards;
}

.mobile-menu-active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-active .mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-active .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* Hamburger to X animation */
#bar1.open {
    transform: translateY(5px) rotate(45deg);
}

#bar2.open {
    opacity: 0;
}

#bar3.open {
    transform: translateY(-5px) rotate(-45deg);
}

/* Image hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Card hover shadow */
.group:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Gallery image hover */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28, 43, 70, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.overflow-hidden:hover::after {
    background: rgba(28, 43, 70, 0.1);
}

/* Staggered reveal delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
