
:root {
    --color-dark-main: #1C1C1C; /* Deep Industrial Gray/Black */
    --color-dark-accent: #2A2A2A; /* Slightly lighter background for sections */
    --color-primary-cta: #FF6600; /* Industrial Orange/Safety Orange */
    --color-secondary-cta: #FF9900; /* Lighter Orange for hover/accents */
    --color-text-light: #f4f4f4;
    --color-text-gray: #CCCCCC;
    --font-family-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-main);
    background-color: var(--color-dark-main);
    color: var(--color-text-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Base button styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 4px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary-cta);
    color: var(--color-dark-main);
}

.btn-primary:hover {
    background-color: var(--color-secondary-cta);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary-cta);
    color: var(--color-primary-cta);
}

.btn-secondary:hover {
    background-color: var(--color-primary-cta);
    color: var(--color-dark-main);
}


/*  1. Header & Navigation - */
.main-header {
    background-color: var(--color-dark-main);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-dark-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-primary-cta);
    letter-spacing: 1px;
    
}

.img {
    width: 365px;
    height: 104px;
    margin-left: -14px;
    
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--color-primary-cta);
}

.main-nav .cta-button {
    /* Inherits button styling */
    margin-left: 20px;
}

.menu-toggle {
    display: none; /* Hide on desktop */
    font-size: 1.5em;
    cursor: pointer;
}


/* --- 2. background img --- */
.hero-section {
    position: relative;
    height: 80vh; /* 80% of viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 0;
    
    background: url('images/background_image.png') no-repeat center center/cover; 
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay  */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-light);
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4em;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--color-text-gray);
}


/* 3. Services Overview Section */
.services-overview {
    padding: 80px 0;
    background-color: var(--color-dark-accent);
    text-align: center;
}

.services-overview h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--color-text-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--color-dark-main);
    padding: 30px;
    border-radius: 8px;
    border-top: 5px solid var(--color-primary-cta);
    transition: background-color 0.3s, transform 0.3s;
}

.service-item:hover {
    background-color: #333;
    transform: translateY(-5px);
}

.service-item .icon {
    font-size: 3em;
    color: var(--color-primary-cta);
    margin-bottom: 15px;
}




.service-item h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-item p {
    color: var(--color-text-gray);
    font-size: 0.95em;
}


/* 4. Projects */
.projects-section {
    padding: 80px 0;
    background-color: var(--color-dark-main);
    text-align: center;
}

.projects-section h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--color-text-light);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--color-dark-accent);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary-cta);
}

.project-info p {
    color: var(--color-text-gray);
    margin-bottom: 15px;
}

.project-info a {
    color: var(--color-text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary-cta);
    padding-bottom: 2px;
    font-size: 0.9em;
}


/*5. Contact/CTA Section*/
.contact-cta {
    background-color: var(--color-primary-cta);
    padding: 60px 0;
    color: var(--color-dark-main);
}

.contact-cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.contact-content {
    flex: 1;
}

.contact-content h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-content p {
    font-size: 1.1em;
    font-weight: 400;
}

.contact-form {
    flex: 1;
    display: grid;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-dark-main);
    font-family: var(--font-family-main);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-secondary {
    /* orange background section */
    background-color: var(--color-dark-main);
    color: var(--color-primary-cta);
    border: 2px solid var(--color-dark-main);
}

.contact-form .btn-secondary:hover {
    background-color: #3A3A3A;
    border-color: #3A3A3A;
    color: var(--color-secondary-cta);
}


/*  6. Footer  */
.main-footer {
    background-color: var(--color-dark-main);
    padding-top: 40px;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-dark-accent);
}

.footer-info, .footer-links, .footer-contact {
    width: calc(33.33% - 20px);
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-info h4, .footer-links h4, .footer-contact h4 {
    color: var(--color-primary-cta);
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: var(--color-text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--color-primary-cta);
}

.footer-contact p {
    color: var(--color-text-gray);
    margin-bottom: 10px;
    font-size: 0.95em;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--color-primary-cta);
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: var(--color-text-light);
    font-size: 1.3em;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-primary-cta);
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    background-color: #111; /* darker footer bottom */
}

.footer-bottom p {
    color: var(--color-text-gray);
    font-size: 0.85em;
}





/* --- 8. Floating Chat Button with Hover Effect --- */
.chat-float {
    /* Fixed Positioning */
    position: fixed; 
    right: 20px; 
    bottom: 100px; 
    z-index: 1010; 

    /* Styling */
    display: flex;
    align-items: center;
    background-color: #FF6600; /* WhatsApp Green */
    color: white;
    padding: 10px;
    border-radius: 50px; /* Highly rounded pill shape */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    border-bottom: none;
    cursor: pointer;
    
    /* Animation Control */
    transition: width 0.3s ease-in-out, background-color 0.3s;
    overflow: hidden;

    /* Initial State: Only icon is visible (width based on icon size and padding) */
    width: 46px; 
    height: 53px;
}

/* Style the WhatsApp Icon */
.chat-icon {
    font-size: 24px;
    margin-right: 0; /* Initially no space */
    transition: margin-right 0.3s;
}

/* Style the Chat Text */
.chat-text {
    white-space: nowrap; /* Prevent text wrapping */
    font-weight: 600;
    opacity: 0; /* Initially hidden */
    transform: translateX(10px); /* Start slightly to the right */
    transition: opacity 0.3s, transform 0.3s;
}

/* Hover State (Desktop) */
.chat-float:hover {
    width: 170px; /* Expanded width to reveal text */
    background-color: #FF6600; /* Slightly darker green on hover */
}

.chat-float:hover .chat-icon {
    margin-right: 10px; /* Add space between icon and text */
}

.chat-float:hover .chat-text {
    opacity: 1; /* Make text visible */
    transform: translateX(0); /* Move text into view */
}


/* Adjustments for Mobile Responsiveness chat button */
@media (max-width: 768px) {
    .chat-float {
        right: 15px;
        bottom: 103px;
        /* Mobile: Keep it in the expanded state by default for clarity on tap */
        width: 150px; 
        height: 50px;
    }
    
    .chat-float .chat-icon {
        margin-right: 10px; 
    }
    
    .chat-float .chat-text {
        opacity: 1; 
        transform: translateX(0);
        font-size: 0.9em;
    }
}





/*7. Mobile Responsiveness (Media Queries) */
@media (max-width: 992px) {
    .main-nav ul li {
        margin-left: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    /* Navigation Toggle */
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 61px; /* Below the header */
        left: 0;
        background-color: var(--color-dark-main);
        padding: 10px 0;
        border-top: 1px solid var(--color-dark-accent);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #333;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px;
    }

    .main-nav .cta-button {
        margin-left: 0;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero-section {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    /* Contact CTA */
    .contact-cta .container {
        flex-direction: column;
        text-align: center;
    }

    .contact-content {
        margin-bottom: 30px;
    }
    
    .contact-content h2 {
        font-size: 2em;
    }

    /* Footer */
    .main-footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info, .footer-links, .footer-contact {
        width: 100%;
        min-width: unset;
    }

    .footer-links ul {
        padding-left: 0;
    }

    .footer-contact p {
        text-align: center;
    }

    .social-links {
        margin-top: 10px;
        margin-bottom: 20px;
    }
}