/* Custom Styles for Amarko Staffing */

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #F8FAFC;
}

/* Base animations */
.reveal-element {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Scroll reveal (progressive enhancement - applied via JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-element.scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal-element.scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
#navbar.scrolled {
    background: rgba(11, 17, 32, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Mobile menu animations */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Gold glow effect */
.gold-glow {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
}

/* Card hover effects */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Select dropdown styling */
select option {
    background: #1E293B;
    color: #F8FAFC;
}

/* Mobile menu link transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* Ensure all images have proper sizing */
img {
    max-width: 100%;
    height: auto;
}

/* Form focus ring animation */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Subtle pattern overlay for dark sections */
.bg-pattern {
    background-image: radial-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Text gradient for special headings */
.text-gradient-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #E5C158 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading state for form */
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ensure proper contrast for all text */
.text-slate-300 {
    color: #CBD5E1;
}

.text-slate-400 {
    color: #94A3B8;
}

/* Mobile responsiveness refinements */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    nav,
    #contactForm,
    .reveal-element {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
