/* Custom Styles for Arturo Electrical Contractor */

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

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

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

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

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

/* Selection color */
::selection {
    background: #d4af37;
    color: #0a192f;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.1);
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #d4af37;
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Image hover effects */
.group img {
    transition: transform 0.5s ease;
}

/* Button focus states */
button:focus,
a:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

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

/* Mobile menu animation */
#mobile-menu {
    backdrop-filter: blur(10px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-content,
    .hero-image {
        animation: none;
        opacity: 1;
    }
    
    .group img {
        transition: none;
    }
    
    .service-card::before {
        transition: none;
    }
}

/* Tablet and desktop optimizations */
@media (min-width: 768px) {
    .font-serif {
        text-rendering: optimizeLegibility;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .group {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-900,
    .bg-navy-50 {
        background: #fff !important;
        color: #000 !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-navy-900 {
        background: ButtonText;
    }
    
    .text-navy-900 {
        color: ButtonText;
    }
    
    .bg-gold-400 {
        background: Highlight;
    }
    
    .text-gold-400 {
        color: Highlight;
    }
}
