/* Custom Styles for Locks & Locksmiths */

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

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

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

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

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

/* Hero Animations */
.hero-subtitle {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-text {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

.hero-image-container {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Indicator Animation */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

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

/* Service Card Hover Effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

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

/* Print Styles */
@media print {
    #navbar,
    .scroll-indicator,
    .service-card:hover {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    
    button,
    a {
        border: 2px solid currentColor;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    h1 {
        font-size: 5rem;
    }
}

/* Tablet Adjustments */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
}
