/* ===== Custom Styles for Pro-Chem Pest Management ===== */

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

/* Custom selection color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* ===== Floating Card Animations ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -1.5s;
}

.card-3 {
    animation-delay: -3s;
}

.card-4 {
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ===== Service Card Hover ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

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

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .logo-text {
    color: #0f766e !important;
}

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

.reveal.visible {
    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; }

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ===== Subtle Pattern Background ===== */
.pattern-bg {
    background-image: url('data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%230d9488\" fill-opacity=\"0.03\"%3E%3Cpath d=\"M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* ===== Decorative Divider ===== */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, rgba(13, 148, 136, 0.3), transparent);
}

/* ===== Input Focus Animations ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

/* ===== Button Ripple Effect ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 80px 0 60px;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, .floating-card, #contactForm, #successMessage {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
