
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--construction-orange);
    color: var(--deep-navy);
}

.btn-primary:hover {
    background-color: var(--deep-navy);
    box-shadow: 0 0 15px rgba(196, 196, 235, 0.288);
    color: var(--construction-orange);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--bright-white);
    color: var(--bright-white);
}

.btn-secondary:hover {
    border-color: var(--construction-orange);
    color: var(--construction-orange);
    
}

.btn-tertiary {
    background-color: var(--construction-orange);
    box-shadow: 0 0 15px rgba(196, 196, 235, 0.288);
    color: var(--deep-navy);
    display:block;
    width: fit-content;
    margin: 40px auto 0;
   
}

.btn-tertiary:hover {
    background-color: var(--deep-navy);
    color: var(--construction-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.4);
    
}



.btn-full { width: 100%; }

/* Navigation */
header {
    
    background-color: color-mix(in srgb, var(--deep-navy) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}


.nav-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1rem;
    padding-right: 0.5rem;
    padding-bottom: 1.1rem;
    padding-left: 280px;
    position: relative;
    width: 100%;
}

.logo {
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    left: 1rem;
    z-index: 100;
}

.logo-image{
    width: 185px;
    height: auto;
    max-height: 160px;
}

#nav-links a {
    color: var(--bright-white);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

#nav-links a:hover { color: var(--construction-orange); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--construction-orange);
    font-size: 1.5rem;
    cursor: pointer;
}

.phone-link {font-size: 0.875rem; font-weight: 600; color: var(--neon-green); align-items: center; gap: 0.5rem; text-decoration: none !important; white-space: nowrap;}

.phone-link i { color: var(--construction-orange); }
.phone-link:hover { color: var(--bright-white); }

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: url("../assets/images/electrical-infrastructure-hero.webp") center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--deep-navy) 5%, transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    text-align: left;
    overflow: hidden;
    margin-left: 3rem;
    margin-right: auto;
}

.hero h1 { font-size: 3rem; line-height: 1.2; }
.hero p { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; }


.blink { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

.data-point {
    color: var(--construction-orange);
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.trust-bar {
    background-color: var(--steel-blue, #4682B4);
    padding: 1rem 0;
    color: var(--bright-white, #FFFFFF);
    font-size: 0.9rem;
    overflow: hidden; 
    white-space: nowrap; 
}

.trust-grid {
    display: flex;
    gap: 3rem; 
    width: max-content; 
    animation: scroll-trust 20s linear infinite; 
}

.trust-bar:hover .trust-grid {
    animation-play-state: paused;
}

.trust-item {
    display: flex;
    align-items: center; 
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--construction-orange);
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0; 
}

@keyframes scroll-trust {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1.5rem)); 
    }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .trust-grid {
        
        animation-duration: 35s; 
        gap: 2rem; 
    }
}

@media (max-width: 480px) {
    .trust-grid {
        
        animation-duration: 45s; 
    }
}





/* 11 Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000; 
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
    animation: pulse-glow 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe57; /* Slightly darker green on hover */
    transform: scale(1.1) translateY(-3px);
    animation: none; 
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* Subtle Pulse Animation for High Conversion */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* --- Desktop overrides (for the new HTML structure) --- */
.header-controls {
    display: none; 
    align-items: center;
    gap: 1rem;
}

/* Show the controls on desktop too, so the CTA is always visible */
@media (min-width: 992px) {
    .header-controls {
        display: flex;
        order: 3; 
        margin-left: 2rem;
    }
    .mobile-toggle {
        display: none; 
    }
}

/* --- Mobile / Tablet Styles --- */
@media (max-width: 991px) {
    .nav-wrapper {
        padding: 0.5rem 1rem; 
        justify-content: space-between; 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        width: 100%;
    }

    .logo {
        position: relative; 
        top: 0;
        transform: none;
        display:flex;
        align-items: center;
        margin: 0;

    }

    .logo-image {
        max-width: 175px; 
        height: auto;
        max-height:58px;
        object-fit:contain;
    }

    .header-controls {
        display: flex;
        align-items: center; 
        gap: 1rem; 
        margin: 0;
    }

    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--construction-orange);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0;
    }

    /* Hide the nav links by default and style the dropdown */
    #nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        
        /* Matches frosted glass look */
        background-color: color-mix(in srgb, var(--deep-navy) 95%, transparent);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    /* The class that gets added by Javascript to open the menu */
    #nav-links.active {
        display: flex;
    }

    /* Style the links for the vertical mobile menu */
    #nav-links a {
        margin: 0;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left;
        width: 100%;
    }

    #nav-links a:last-child {
        border-bottom: none;
    }
/* --- Hero Section Mobile Adjustments --- */
    .hero-content {
        position: relative;
        z-index: 1;
        max-width: 100%; /* Allows it to fill the mobile screen naturally rather than forcing 600px */
        text-align: left;
        overflow: hidden;
        margin-left: 1rem; /* Bumping from 0.5rem to 1rem gives slightly better breathing room */
        margin-right: 1rem;
        margin-top: 80px; /* Crucial: Pushes the text down so the fixed navbar doesn't cover it */
    }

    .hero h1 { 
        font-size: 2.2rem; /* Scaled down from 3rem to prevent awkward line breaks on phones */ 
        line-height: 1.2; 
    }

    .hero p { 
        font-size: 1rem; /* Scaled down slightly from 1.1rem for better proportions */
        margin-bottom: 1.5rem; 
        color: #FFA500;
    }

    .hero-ctas { 
        display: flex; 
        flex-direction: column; /* Stacks the buttons vertically on phones to prevent horizontal scrolling */
        gap: 1rem;
        align-items: flex-start; 
    }
}
    /* =========================================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS (Max-width: 768px)
========================================================= */

@media (max-width: 768px) {
    /* --- 1. Global Spacing & Typography --- */
    .section, .bg-alt {
        padding: 3rem 0; /* Shrinks the massive 5rem desktop padding */
    }
    
    .section-title, 
    .about-text h2, 
    #services h2 {
        font-size: 2rem; /* Scales down from 2.5rem to prevent awkward line wrapping */
        margin-bottom: 2rem;
    }

    /* --- 2. About Section --- */
    .about-section {
        padding: 3rem 1rem;
    }

    .content-row {
       
        flex-direction: column; 
        gap: 2rem;
    }

    /* --- 3. Services & Projects Grids --- */
    .services-grid, 
    .projects-grid {
        /* Drops min-width from 320px to 280px so cards don't overflow small screens (like iPhone SE) */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
        gap: 1.5rem;
    }

    .card {
        padding: 20px; /* Slimmer inner padding for mobile cards */
    }

    /* --- 4. Team Section --- */
    .team-grid {
        gap: 30px;
    }

    .team-image-wrapper::before {
        /* Reduces the offset border distance so it doesn't push off the screen */
        top: 10px;
        left: 10px;
    }

    /* --- 5. Reviews Carousel --- */
    .review-card {
        padding: 25px 20px; /* Reclaims space from the thick 40px desktop padding */
    }
    
    .quote-mark {
        font-size: 3rem; /* Scales down the decorative quote */
        top: 15px;
        right: 15px;
    }

    /* --- 6. Clients Section --- */
    .clients-grid {
        gap: 20px; /* Tighter grid for logos */
    }

    /* --- 7. Contact & Form Section --- */
    .contact-grid {
        gap: 40px; /* Brings the contact info and form closer together */
    }

    .form-card {
        padding: 25px 20px; /* Slims down the form's inner padding */
    }

    .map-container {
        min-height: 250px; /* Prevents the map from taking up the whole screen height */
    }

    /* --- 8. Footer --- */
    .site-footer {
        padding: 2rem 0;
    }
}

