/* Custom styles for Dynamic Total Protection Services */

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

/* Base font styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

/* Hero image parallax-like subtle effect */
#hero img {
    transition: transform 0.6s ease;
}

#hero:hover img {
    transform: scale(1.02);
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-2px);
}

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Navbar scroll effect */
nav.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .cta-section {
        display: none;
    }
    
    body {
        color: #0f172a;
        background: white;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.25rem;
    }
}

/* Ensure touch targets are large enough on mobile */
@media (hover: none) and (pointer: coarse) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}
