/* Custom styles for Golden Oak Media */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #d99a1a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c77d10;
}

/* Selection color */
::selection {
    background: #d99a1a;
    color: #102a43;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Scroll line animation */
@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Navbar active state */
.nav-active {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

.nav-active .nav-link {
    color: #102a43;
}

.nav-active .nav-text {
    color: #102a43;
}

.nav-active .nav-text-muted {
    color: #627d98;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding: 1rem 0;
}

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

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d99a1a;
    transition: width 0.3s ease;
}

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

/* Hero parallax effect */
#hero {
    perspective: 10px;
}

#hero img {
    will-change: transform;
}

/* Card hover effects */
.group:hover .group-hover\\:bg-gold-500 {
    background-color: #d99a1a;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d99a1a;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-scroll-line {
        animation: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, footer, #contactForm, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Additional responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

/* Gradient text effect for special highlights */
.text-gradient-gold {
    background: linear-gradient(135deg, #d99a1a 0%, #e4b03a 50%, #c77d10 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(217, 154, 26, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
