/* ========================================
   A-1 Drain Masters — Custom Styles
   ======================================== */

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

/* Selection color */
::selection {
    background-color: rgba(45, 212, 191, 0.3);
    color: #f0f4f8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0c1219;
}
::-webkit-scrollbar-thumb {
    background: #2C3E5A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2DD4BF;
}

/* ========== NAVIGATION ========== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #2DD4BF;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(6, 9, 14, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 62, 90, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========== HERO ========== */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2DD4BF, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.service-card:hover::before {
    opacity: 1;
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 212, 191, 0.2);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s 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; }

/* ========== MOBILE MENU ========== */
.mobile-menu-open {
    overflow: hidden;
}
#mobile-menu.menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ========== FORM STYLES ========== */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(45, 212, 191, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

@media (min-width: 768px) {
    .service-card {
        transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    }
    .service-card:hover {
        transform: translateY(-6px);
    }
}
