/* Custom Styles for David Shield Security Locksmith */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

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

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

/* Selection Color */
::selection {
    background: #C9A227;
    color: #0a1628;
}

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.1);
}

#navbar.scrolled .text-navy-900 {
    color: #0a1628;
}

#navbar.scrolled .text-navy-700 {
    color: #2a3f5f;
}

#navbar.scrolled .bg-navy-900 {
    background: #0a1628;
}

/* Mobile Menu Animation */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Menu Links */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Mobile Menu Button Animation */
#menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #C9A227 !important;
}

/* Button Hover Effects */
button[type="submit"]:hover {
    transform: translateY(-2px);
}

button[type="submit"] {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
.group:hover img {
    transform: scale(1.05);
}

/* Gradient Text (if needed) */
.text-gradient {
    background: linear-gradient(135deg, #C9A227 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative Lines */
.deco-line {
    position: absolute;
    background: linear-gradient(180deg, transparent 0%, #C9A227 50%, transparent 100%);
}

/* Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.1);
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print Styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
