/* Custom Styles for The Blackhorse Studio */

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

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

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

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

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

/* Reveal Animation - Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback for reduced motion or no JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* No JS fallback */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

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

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

/* Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

/* Button Hover Animation */
button,
a {
    transition: all 0.3s ease;
}

/* Image Hover Zoom */
.group:hover img {
    transform: scale(1.05);
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Print Styles */
@media print {
    nav,
    #back-to-top,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-dark-900,
    .bg-dark-800 {
        background: white !important;
    }
    
    .text-sand-100,
    .text-sand-300,
    .text-sand-400 {
        color: black !important;
    }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .bg-gold-500 {
        background-color: ButtonText;
    }
    
    .text-gold-500 {
        color: ButtonText;
    }
}

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

/* Selection Color */
::selection {
    background: rgba(201, 169, 98, 0.3);
    color: #faf9f7;
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
    outline: 2px solid #c9a962;
    outline-offset: 2px;
}

/* Smooth Image Loading */
img {
    loading: lazy;
}
