/* Custom Styles for Avila's Home Improvement */

/* Base Styles */
@layer base {
    html {
        scroll-behavior: smooth;
    }
    
    body {
        font-family: 'Outfit', sans-serif;
    }
    
    .font-cinzel {
        font-family: 'Cinzel', serif;
    }
}

/* Navbar Styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(28, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Mobile Menu */
.mobile-link {
    transition: all 0.3s ease;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

::-webkit-scrollbar-track {
    background: #1C0A0A;
}

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

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

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* Button Hover Effects */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-\[#1C0A0A\] {
        background-color: #000000 !important;
    }
    
    .text-\[#D4AF37\] {
        color: #FFD700 !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    
    .group:hover .group-hover\:translate-x-0 {
        transform: none;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

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

/* Subtle Glow */
.glow-gold {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.glow-gold-strong {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

/* Hover Card Lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
