/* Custom styles for DIFY Pest Control & Handyman Services */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(198, 93, 62, 0.3); }
    50% { box-shadow: 0 0 40px rgba(198, 93, 62, 0.6); }
}

/* Geometric shape animations */
.service-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #C65D3E;
    color: #FDFCFA;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid #C65D3E;
    outline-offset: 2px;
}

/* Reduced motion preference */
@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;
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 500px;
}

/* Hero geometric shapes animation */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-shape-1 {
    animation: float-slow 6s ease-in-out infinite;
}

.hero-shape-2 {
    animation: rotate-slow 20s linear infinite;
}

.hero-shape-3 {
    animation: float-slow 8s ease-in-out infinite reverse;
}

/* Button hover effects */
button:hover,
a:hover {
    cursor: pointer;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(198, 93, 62, 0.2);
}

/* Loading state for button */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
