/* Global Dark Background */
html {
    background-color: #000;
    overflow-x: hidden;
}

body {
    position: relative;
    /* Fix Layout Alignment */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    /* Direct Dark Overlay on Background Image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.70)), url('assets/images/plumbing_pattern_bg.png') !important;
    background-size: auto !important;
    background-position: top left !important;
    background-attachment: scroll !important;
    /* Fixed causes mobile scroll issues, use scroll */
    background-repeat: repeat !important;
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker for better readability */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-logo:hover {
    color: var(--secondary-color);
}

.brand-text {
    margin-left: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    display: inline-block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #e0f7fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: #fff;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Adjust body padding for navbar */
body {
    padding-top: 5rem;
    /* Space for fixed navbar */
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem 0;
    text-align: center;
    color: #8899a6;
    margin-top: auto;
    /* Push to bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Action Bar */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    display: none;
    /* Hidden by default on desktop */
    z-index: 1001;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.action-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    gap: 10px;
    transition: background 0.3s;
}

.call-btn {
    background: #023e8a;
    color: white;
}

.call-btn:hover {
    background: #002f6c;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128c7e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Restore mobile menu functionality from style.css */
    /* .nav-links { display: none; }  <-- Removing this so the drawer works */

    .nav-container {
        justify-content: space-between;
        /* Restore space-between so logo is left, burger is right */
        padding: 0 1rem;
    }

    .mobile-action-bar {
        display: flex;
    }

    /* Force background to scroll on mobile to prevent flickering */
    body {
        background-attachment: scroll !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust specific containers for smoother rendering */
    .container,
    .glass-card {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* =========================================
   New SEO & Content Sections
   ========================================= */

/* Hero / Intro Section Enhancements */
.intro-content {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slogan {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.hero-subtext {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-desc {
    font-size: 1.1rem;
    color: #e0f7fa;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Highlights Section */
.highlights-section {
    margin: 3rem 0;
    padding: 1rem 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.highlight-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 180, 216, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.highlight-text {
    font-size: 0.95rem;
    color: #e0f7fa;
    line-height: 1.5;
    margin: 0;
}

/* Standardized Breakpoints (Bootstrap 5) */
@media (max-width: 991px) {
    .hamburger-menu {
        display: flex !important;
    }

    .hero-slogan {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .hero-subtext {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .mobile-action-bar {
        background: rgba(0, 0, 0, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    }
}

/* Tablet Layout (768px to 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .container {
        width: 92%;
        max-width: 850px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Base Mobile Optimization (< 576px) */
@media screen and (max-width: 575px) {
    .nav-logo .brand-text {
        font-size: 1rem;
    }

    .glass-card {
        padding: 1rem 0.5rem;
    }

    .hero-slogan {
        font-size: 1.3rem;
    }
}

/* =========================================
   404 Page Styles
   ========================================= */
.error-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 3rem 1rem;
    color: #fff;
    position: relative;
    z-index: 10;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: -webkit-linear-gradient(45deg, #00b4d8, #023e8a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Pipe/Water drop animation elements could be added here if needed, 
   but for now we use a clean modern text gradient look. 
   Let's add a simple water drop pulsing effect behind or near text if possible,
   or just keep it clean as per "premium" request. */

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.error-text {
    font-size: 1.2rem;
    color: #e0f7fa;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 35px;
    background: linear-gradient(45deg, #0077b6, #023e8a);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(2, 62, 138, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.6);
    background: linear-gradient(45deg, #0096c7, #0077b6);
}

@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 1.8rem;
    }

    .error-text {
        font-size: 1rem;
    }
}

/* =========================================
   Districts / SEO Section
   ========================================= */
.districts-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.district-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.district-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.district-card h3 {
    color: #00b4d8;
    /* Fallback/Explicit accent color */
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.district-card p {
    color: #e0f7fa;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   Universal Hero CTA Button
   ========================================= */

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #e63946, #d00000);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.6);
    background: linear-gradient(135deg, #ff4d5a, #e60000);
}

.hero-cta-btn:active {
    transform: translateY(1px);
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(230, 57, 70, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

/* Mobile Adjustments for CTA */
@media (max-width: 576px) {
    .hero-cta-btn {
        width: 90%;
        /* Make it wide on mobile for easy tapping */
        padding: 15px 20px;
        font-size: 1.1rem;
    }
}