/* Custom styles for Knox's Crane Service */

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

/* Base styles */
body {
    background-color: #0a0612;
    color: #e8e0f0;
    overflow-x: hidden;
}

/* Gold gradient utility */
.gold-gradient {
    background: linear-gradient(135deg, #b8860b 0%, #f5c842 50%, #b8860b 100%);
}

/* Plum gradient utility */
.plum-gradient {
    background: linear-gradient(135deg, #1e0033 0%, #3b0764 50%, #1e0033 100%);
}

/* Amber glow effect */
.amber-glow {
    box-shadow: 0 0 40px rgba(245, 200, 66, 0.15), 0 0 80px rgba(245, 200, 66, 0.05);
}

/* Plum glow effect */
.plum-glow {
    box-shadow: 0 0 40px rgba(88, 28, 135, 0.3), 0 0 80px rgba(88, 28, 135, 0.1);
}

/* Gold text */
.text-gold {
    color: #f5c842;
}

/* Gold border */
.border-gold {
    border-color: rgba(245, 200, 66, 0.3);
}

/* Background colors */
.bg-plum-dark {
    background-color: #0a0612;
}

.bg-plum-mid {
    background-color: #120820;
}

.bg-plum-light {
    background-color: #1e0033;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(88, 28, 135, 0.3), 0 0 40px rgba(245, 200, 66, 0.1);
}

/* Stat card glass effect */
.stat-card {
    backdrop-filter: blur(10px);
    background: rgba(30, 0, 51, 0.6);
    border: 1px solid rgba(245, 200, 66, 0.2);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b8860b, #f5c842);
    transition: width 0.3s ease;
}

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

/* Section dividers */
.section-divider {
    background: linear-gradient(90deg, transparent, rgba(245, 200, 66, 0.3), transparent);
    height: 1px;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Hero background */
.hero-bg {
    background: radial-gradient(ellipse at 30% 50%, rgba(88, 28, 135, 0.4) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(245, 200, 66, 0.08) 0%, transparent 40%),
                #0a0612;
}

/* Gold line decoration */
.line-through-gold {
    background: linear-gradient(90deg, #b8860b, #f5c842, #b8860b);
    height: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b8860b, #f5c842);
    border-radius: 4px;
}

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

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #f5c842;
    outline-offset: 2px;
}

/* Select dropdown styling */
select option {
    background-color: #120820;
    color: #e8e0f0;
}

/* Animation for floating elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Pulse animation for status indicator */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 6, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 200, 66, 0.1);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #120820 inset !important;
    -webkit-text-fill-color: #e8e0f0 !important;
}
