/* Twisted Steel Ranch — Custom Styles */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #171c26;
}
::-webkit-scrollbar-thumb {
    background: #3d4756;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #627089;
}

/* Selection color */
::selection {
    background: rgba(184, 134, 11, 0.3);
    color: #f6f7f9;
}

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

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

/* Noise texture overlay for sections */
.noise-overlay {
    position: relative;
}
.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(212, 168, 67, 0.08);
}

/* Input autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #f6f7f9;
    -webkit-box-shadow: 0 0 0px 1000px #1a2232 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(23, 28, 38, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 71, 86, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal base — content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive typography */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    nav, #contact, .cta-banner, footer {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
