/* Custom CSS Variables */
:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #28a745; /* Green */
    --text-color: #333;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --light-green: #e9f7ef;
    --font-poppins: 'Poppins', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-poppins);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light-gray {
    background-color: var(--light-gray);
}

.bg-light-green {
    background-color: var(--light-green);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

/* --- Utility/Button Styles --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-header-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-header-primary:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn-header-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-header-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 12px 25px;
    font-size: 1.1rem;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: var(--secondary-color);
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Adjust logo height */
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    text-align: center;
}

.main-nav ul li a {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: block; /* Visible on mobile */
    color: var(--primary-color);
}

.header-buttons {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* Mobile Menu Toggle */
.main-nav.active {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 999;
}

.header-buttons.active {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    padding: 10px 20px;
    background-color: var(--white);
    z-index: 999;
    border-top: 1px solid var(--light-gray);
}

/* --- Hero Section --- */
.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; 
}

/* Semi-transparent overlay for better contrast over the entire hero section background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* KEY CHANGE: Transparent black layer directly behind the headline and subtext */
.hero-text-overlay {
    background-color: rgba(0, 0, 0, 0.75); 
    padding: 20px 30px; 
    border-radius: 8px;
    margin-bottom: 20px; 
    display: inline-block; 
    max-width: 800px; 
    width: 90%; 
}

.hero-headline {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-subtext {
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 300;
    color: var(--white);
    line-height: 1.4;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

/* --- Intro Text Section --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.intro-block h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* --- CEO Profile Section --- */
.ceo-profile-section {
    background-color: var(--light-gray); 
}

.ceo-profile-grid {
    display: flex;
    flex-direction: column; /* Stacks image on top of content on Mobile */
    gap: 30px;
    align-items: center; /* Centers content on mobile */
    text-align: center; /* Centers text on mobile */
}

.ceo-image-container {
    width: 250px;
    height: 250px;
    border-radius: 50%; 
    overflow: hidden;
    border: 5px solid var(--secondary-color); /* Used secondary color for border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ceo-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceo-content {
    max-width: 600px;
}

.section-title-left {
    text-align: center;
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-size: 2rem;
}

.ceo-content h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 400;
}


/* --- Services Overview --- */
.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-overview-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-overview-card h4 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

/* --- Why Choose Us Section --- */
.why-choose-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.why-choose-us-content ul {
    list-style: none;
    margin-bottom: 30px;
}

.why-choose-us-content li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.why-choose-us-content li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Same Size Image Box - Why Choose Us */
.why-choose-us-image {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.why-choose-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the fixed box without distortion */
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--light-green);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.quote {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.client-name {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* --- Image Slider Section (Automatic CSS Slider) --- */
.slider-section {
    background-color: var(--light-gray);
    overflow: hidden; 
}

.image-slider-placeholder {
    max-width: 100%;
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 20px 0; 
    background-color: var(--white); /* This was added here and will be removed */
}

.slider-track {
    display: flex;
    gap: 30px; /* Increased gap between cards */
    overflow: hidden; 
    padding: 0 20px; 
    
    /* Animation properties */
    animation: scroll-slides 20s linear infinite; 
    /* Each card is 350px wide + 20px padding + 30px gap = 400px. 5 cards = 2000px */
    width: calc(400px * 5); 
}

.slider-track:hover {
    animation-play-state: paused; 
}

/* 🟢 NEW: Styling for the individual slide cards */
.slide-card {
    flex-shrink: 0; 
    width: 350px; /* Base width for the card */
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Ensures image corners are rounded if parent is */
    padding: 15px; /* Padding inside the card for the image */
    transition: transform 0.3s ease-in-out;
}

.slide-card:hover {
    transform: translateY(-8px); /* Slightly more prominent lift on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 🟢 Styling for the image within the slide card */
.slide-image {
    width: 100%;
    height: 250px; /* Fixed height for the image */
    object-fit: cover;
    border-radius: 4px; /* Slightly rounded corners for the image inside the card */
}

/* Keyframes for the automatic sliding motion (Mobile) */
@keyframes scroll-slides {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move left by the width of the 4 original slides plus their gaps */
        /* (350px width + 15px padding * 2 + 30px gap) * 4 = 400px * 4 = 1600px */
        transform: translateX(calc(-400px * 4)); 
    }
}


/* --- News and Articles Section --- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

/* Same Size Image Box - Article Card */
.article-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.article-card h4 {
    padding: 15px 15px 5px 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.article-card p {
    padding: 0 15px 15px 15px;
    font-size: 0.95rem;
    color: #555;
}

.read-more {
    display: block;
    padding: 10px 15px 15px 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- Footer --- */
.main-footer {
    background-color: #222;
    color: var(--white);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-hours p {
    margin-bottom: 10px;
    color: #ccc;
}

.btn-footer-cta {
    margin-top: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* ================================== */
/* --- MEDIA QUERIES (Desktop Overrides) --- */
/* ================================== */

@media (min-width: 768px) {
    /* --- Top Bar (Desktop) --- */
    .top-bar-content {
        justify-content: space-between;
    }

    /* --- Header (Desktop) --- */
    .menu-toggle {
        display: none;
    }

    .main-nav {
        display: block;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        gap: 25px;
    }

    .main-nav ul li a {
        padding: 5px 0;
    }

    .header-buttons {
        display: flex;
        flex-direction: row;
        gap: 15px;
    }
    
    .header-buttons a {
        padding: 8px 15px;
        font-size: 1rem;
    }

    /* --- Hero Section (Desktop) --- */
    .hero-headline {
        font-size: 3.5rem;
    }

    .hero-ctas {
        flex-direction: row;
        max-width: none;
        width: auto;
    }

    /* --- Intro Text Section (Desktop) --- */
    .intro-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* CEO Profile Section (Desktop - Image Left, Text Right) */
    .ceo-profile-grid {
        display: grid;
        grid-template-columns: 250px 1fr; /* Image column width, content takes rest */
        gap: 50px; 
        text-align: left; /* Align text content to the left */
        align-items: flex-start; /* Aligns content to the top of the row */
    }

    .ceo-image-container {
        justify-self: start; /* Aligns the image to the left */
    }

    .section-title-left {
        text-align: left;
    }

    /* --- Services (Desktop) --- */
    .services-overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* --- Why Choose Us (Desktop) --- */
    .why-choose-us-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Same Size Image Box - Why Choose Us (Desktop height adjustment) */
    .why-choose-us-image {
        height: 400px; 
    }

    /* --- Testimonials (Desktop) --- */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* --- Image Slider Section (Desktop Animation Adjustments) --- */
    .slider-track {
        /* Each card is 400px wide + 20px padding + 30px gap = 450px. 5 cards = 2250px */
        width: calc(450px * 5); 
    }

    /* 🟢 NEW: Styling for the individual slide cards (Desktop width/height adjustment) */
    .slide-card {
        width: 400px; /* Larger card width on desktop */
        padding: 20px; /* More padding on desktop */
    }

    /* 🟢 Styling for the image within the slide card (Desktop height adjustment) */
    .slide-image {
        height: 300px; /* Larger image height on desktop */
    }

    /* Recalculate keyframes for desktop widths */
    @keyframes scroll-slides {
        0% {
            transform: translateX(0);
        }
        100% {
            /* Move left by the width of the 4 original slides plus their gaps */
            /* (400px width + 20px padding * 2 + 30px gap) * 4 = 450px * 4 = 1800px */
            transform: translateX(calc(-450px * 4)); 
        }
    }


    /* --- News and Articles (Desktop) --- */
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Same Size Image Box - Article Card (Desktop height adjustment) */
    .article-card img {
        height: 250px;
    }

    /* --- Footer (Desktop) --- */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    }
}