/* ABOUT PAGE : LINE NO 680 */
/* PROJECTS PAGE : LINE NO 875 */
/* SERVICES PAGE : LINE NO 1172 */
/* ANIMATION FOR ALL : LINE NO 1350 */
/* TODAYS CORRECTIONS : lINE NO 1535 */
/* FOOTER MOBILE RESPONSIVENESS : LINE NO : 1550 */
/* CONTACT ALIGNMENT ISSUE FIX : LINE NO : 1592 */
/* CREDIT DESIGN CSS IN FOOTER : LINE NO : 1632 */


:root {
    --color-dark-green: #1f3f3f; /* Primary brand color */
    --color-gold: #c9b47e; /* Accent color */
    --color-light-cream: #f4f2ef; /* Light, elegant background */
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --page-padding: 5vw;
}

/* --- Base & Typography --- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--color-text-dark);
    background-color: var(--color-text-light);
}

h1, h2, h3 {
    font-family: 'Georgia', serif;
    color: var(--color-dark-green);
    margin-top: 0;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 10px auto 0;
}

section {
    padding: 80px var(--page-padding);
    transition: background-color 0.3s;
}

/* --- Header / Navigation --- */
.navbar {
    background-color: var(--color-dark-green);
    color: var(--color-text-light);
    padding: 15px var(--page-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo strong {
    margin-left: 10px;
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    background-color: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 50%;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-dark-green);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 30px;
}

.explore-btn {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-dark-green);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.explore-btn:hover {
    background-color: #d8c298;
}

.hero-image-placeholder {
    width: 45%;
    height: 400px;
    background-color: #ddd;
    border-radius: 10px;
     background-image:  url('indexhero.jfif'); 
                     
}

/* --- Services Summary Section --- */
.services-section {
    background-color: var(--color-light-cream);
}

.service-cards {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    flex: 1;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    background-color: #fff;
    border: 2px solid transparent;
    transition: all 0.3s;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    border-color: var(--color-gold);
}

.service-card.active {
    border-color: var(--color-dark-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--color-dark-green);
    margin-bottom: 10px;
}

.service-card strong {
    display: block;
    font-size: 1rem;
}

.service-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 5px;
}

.service-description p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

/* --- Service Detail Sections (Toggle Content) --- */
.service-detail-section {
    padding-top: 50px; 
    padding-bottom: 50px;
    border-bottom: 1px solid #eee;
    
    /* Hides it initially. JS sets display to 'flex' to show it. */
    display: none; 
    transition: all 0.5s ease-in-out; 
    
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    flex-direction: column; /* Allows the inner wrapper to be the primary layout */
}

.service-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Text (2 parts) | Image (1 part) */
    gap: 40px;
    align-items: center;
}

.service-content-wrapper.reverse {
    grid-template-columns: 1fr 2fr; /* Image (1 part) | Text (2 parts) */
}

.service-content-wrapper.reverse .detail-text {
    order: 2; 
}

.service-content-wrapper.reverse .detail-image-placeholder {
    order: 1; 
}

.detail-text h2 {
    text-align: left;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--color-dark-green);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.detail-image-placeholder {
    width: 100%;
    height: 250px; 
    background-color: #ddd;
    border-radius: 5px;
    background-image: linear-gradient(135deg, #78909c 0%, #455a64 100%);
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.key-features {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.key-features li {
    font-size: 0.95rem;
    color: var(--color-dark-green);
    line-height: 2;
}

.key-features li::before {
    content: "✓ ";
    color: var(--color-gold);
    font-weight: bold;
    margin-right: 5px;
}

/* --- Approach Section --- */
.approach-section {
    background-color: #ffffff;
}

.approach-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    /* Drawing the line between steps */
    padding-top: 20px; 
}

.approach-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
    z-index: 2;
}

.icon-circle {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #e0e0e0;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    font-size: 1.5rem;
    transition: background-color 0.3s;
    border: 3px solid #fff; /* To make it stand out from the line */
}

.step.active .icon-circle {
    background-color: var(--color-dark-green);
}

.step.active .label {
    color: var(--color-dark-green);
    font-weight: bold;
}

.label {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

/* --- Approach Details (Elegant Display) --- */
.approach-details {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--color-light-cream); /* Elegant cream background */
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Soft shadow for depth */
    color: var(--color-dark-green);
    border-radius: 5px;
    min-height: 80px; 
    overflow: hidden; 
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.approach-details p.animated-text {
    animation: fadeIn 0.5s ease-out forwards;
    padding: 0; 
}

/* --- Projects Section --- */
.projects-section {
    background-color: var(--color-light-cream);
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* .project-card {
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
} */
.project-card{
background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    text-align: center;
    padding-bottom: 15px;
}
.project-card:hover {
    transform: translateY(-5px);
}

/*.project-image-placeholder {
    height: 180px;
    background-color: var(--color-dark-green);
    /* background-image: linear-gradient(135deg, #1f3f3f 0%, #3f6060 100%),url('work6.jfif'); 
}
/* 2. Unique Image Definitions (Assigns the specific local file to each card) */
.project-image-placeholder {
    height: 180px; /* Reduced height slightly for clean look */
    width: 100%;
    background-size: cover; 
    background-position: center;
    border-radius: 6px 6px 0 0;
    margin-bottom: 10px;
    background-color: #555; /* Fallback color */
}

.project-image-placeholder.metro {
    background-image: url('work7.jfif'); 
}

.project-image-placeholder.ecr {
    background-image: url('work6.jfif');
}

.project-image-placeholder.madurai {
    background-image: url('work5.jfif');
}

.project-image-placeholder.palace {
    background-image: url('work4.jfif');
}

.project-card p {
    padding: 15px 10px;
    font-weight: bold;
    color: var(--color-dark-green);
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.project-card p {
    margin: 0;
    padding: 0 10px;
    color: var(--color-dark-green);
}

/* --- Reviews Section (New Slider) --- */
.reviews-section {
    padding: 80px var(--page-padding);
    background-color: #ffffff; /* White background for elegance */
    text-align: center;
}

.review-slider-container {
    overflow: hidden; 
    max-width: 800px;
    margin: 40px auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--color-light-cream);
}

.review-track {
    display: flex;
    transition: transform 0.7s ease-in-out; 
}

.review-card {
    flex: 0 0 100%; 
    padding: 40px;
    text-align: center;
    box-sizing: border-box;
}

.review-card i.fa-quote-left {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.review-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: #444;
    margin-bottom: 25px;
}

.reviewer-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-dark-green);
    font-weight: bold;
}

.reviewer-info span {
    display: block;
    font-size: 0.9rem;
    color: #777;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #ccc;
    border-radius: 50%;
    transition: background-color 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: var(--color-dark-green);
}

/* --- Insights Section --- */
.insights-section {
    background-color: #f9f9f9;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.insight-card {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.insight-card h3 {
    color: var(--color-dark-green);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.insight-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.insight-card a {
    font-weight: bold;
    color: var(--color-gold);
    font-size: 0.85rem;
}

/* --- Footer --- */
.sitemap-footer {
    background-color: var(--color-dark-green);
    color: var(--color-text-light);
    padding: 50px var(--page-padding);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1 1 200px;
}

.footer-column h3 {
    color: var(--color-gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(201, 180, 126, 0.3);
    padding-bottom: 5px;
}

.sitemap-links a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.sitemap-links a:hover {
    color: var(--color-gold);
}

.contact-info p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.social-media a {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--color-text-light);
}


/* ========================================= */
/* === Responsive Design (Mobile First) === */
/* ========================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* page-padding: 5vw; Set padding for small screens */
    
    /* Navigation */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-dark-green);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin: 0;
        padding: 15px 5vw;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }
    
    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-image-placeholder {
        width: 100%;
        height: 250px;
    }

    /* Services */
    .service-cards {
        flex-direction: column;
    }
    
    /* Service Details */
    .service-content-wrapper,
    .service-content-wrapper.reverse {
        grid-template-columns: 1fr; /* Stack content and image vertically */
    }
    
    .service-content-wrapper.reverse .detail-text,
    .service-content-wrapper.reverse .detail-image-placeholder {
        order: initial; /* Reset order for stacking */
    }
    
    .detail-image-placeholder {
        height: 200px;
    }

    /* Approach */
    .approach-steps {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .step {
        flex: 0 0 45%; /* Two steps per row */
        margin-bottom: 20px;
    }

    .approach-steps::before {
        content: none; /* Remove line on mobile */
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        flex: 1 1 100%;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .sitemap-links a {
        display: inline-block;
        margin: 0 10px;
    }
    
    /* Reviews */
    .review-card {
        padding: 30px 20px; 
    }
}


/* ABOUT PAGE CSS */
/* ========================================= */
/* --- ABOUT US PAGE STYLES --- */
/* ========================================= */

/* 1. About Hero Section (Elegant Like Home) */
.about-hero-section {
     /* background-image: linear-gradient(rgba(34, 40, 49, 0.75), rgba(34, 40, 49, 0.85)), url('abouthero.jfif'); */
    background-color: var(--color-background-dark); /* Dark background */
    color: var(--color-text-light); /* Light text */
    padding: 150px 5%; /* Tall padding */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Optional: Add a subtle background image or gradient for elegance */
    background-image: linear-gradient(rgba(34, 40, 49, 0.8), rgba(34, 40, 49, 0.8)), url('abouthero.jfif');
    background-size: cover;
    background-position: center;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-gold); /* Use the accent color for impact */
}

.about-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* 2. Company Story Section (Simple and Readable) */
.company-story-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.company-story-section h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--color-dark-green);
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
}

/* Key Facts Grid */
.key-facts {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.fact-item {
    text-align: center;
}

.fact-item i {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.fact-item p {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: var(--color-dark-green);
}

.fact-item span {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

/* 3. Owner Profile Section (Image and Text Side-by-Side) */
.owner-profile-section {
    background-color: #f7f7f7; /* Light grey background for contrast */
    padding: 80px 5%;
    display: flex;
    flex-wrap: wrap; /* Allows stacking on small screens */
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.owner-image-container {
    flex: 1;
    min-width: 250px;
}

.owner-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.owner-details {
    flex: 2;
    min-width: 300px;
}

.owner-details h3 {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 5px;
}

.owner-details h2 {
    font-size: 2.5rem;
    color: var(--color-dark-green);
    margin-top: 0;
    margin-bottom: 10px;
}

.owner-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.owner-quote {
    font-style: italic;
    border-left: 3px solid var(--color-gold);
    padding-left: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Contact Button style */
.contact-owner-btn {
    display: inline-block;
    background-color: var(--color-dark-green);
    color: var(--color-text-light);
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.contact-owner-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-dark-green);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .about-title {
        font-size: 2.5rem;
    }

    .about-subtitle {
        font-size: 1.2rem;
    }

    .owner-profile-section {
        flex-direction: column;
    }

    .owner-image-container {
        max-width: 80%; /* Center image on mobile */
    }
    
    .key-facts {
        flex-direction: column;
        gap: 30px;
    }
}

/* PROJECTS PAGE  */
/* ========================================= */
/* --- PROJECTS PAGE STYLES --- */
/* ========================================= */

/* Project Hero Section */
.projects-hero-section {
    /* background-image: linear-gradient(rgba(34, 40, 49, 0.75), rgba(34, 40, 49, 0.85)), url('projectshero.jfif'); */
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: 120px 5%; /* Slightly smaller than main hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(34, 40, 49, 0.85), rgba(34, 40, 49, 0.85)),url('projectshero.jfif');
    background-size: cover;
    background-position: center;
}

.projects-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-gold);
}

.projects-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto;
}

/* Control Section (Tabs and Search) */
.project-controls-section {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.project-filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--color-gold);
    background-color: transparent;
    color: var(--color-dark-green);
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: var(--color-gold-light);
}

.filter-btn.active {
    background-color: var(--color-gold);
    color: var(--color-background-dark);
    border-color: var(--color-gold);
}

.project-search-box {
    position: relative;
}

#project-search {
    padding: 10px 10px 10px 40px; /* Space for icon */
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 250px;
    font-size: 1rem;
}

.project-search-box .fas {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Project Grid Display */
.project-grid-container {
    padding: 20px 5% 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.4rem;
    color: var(--color-dark-green);
    margin-top: 0;
    margin-bottom: 5px;
}

.project-type {
    display: inline-block;
    background-color: var(--color-gold-light);
    color: var(--color-dark-green);
    padding: 3px 8px;
    font-size: 0.8rem;
    border-radius: 3px;
    font-weight: 500;
    margin-bottom: 15px;
}

.project-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* View More Button (Reuse existing button style philosophy) */
.view-more-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--color-dark-green);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-more-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-dark-green);
}

/* --- Modal Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    padding-top: 50px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-dark-green);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding-top: 10px;
}

.modal-project-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-body h2 {
    color: var(--color-dark-green);
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-type-tag {
    display: inline-block;
    background-color: var(--color-gold);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-key-fact {
    margin-top: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-weight: 500;
}

.modal-key-fact i {
    color: var(--color-gold);
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-title {
        font-size: 2.5rem;
    }

    .project-controls-section {
        flex-direction: column;
        align-items: stretch;
    }

    .project-filter-tabs {
        width: 100%;
        justify-content: center;
    }

    .filter-btn {
        flex-grow: 1;
    }

    #project-search {
        width: 100%;
        box-sizing: border-box;
    }
    
    .project-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

/* ========================================= */
/* --- SERVICES PAGE STYLES --- */
/* ========================================= */

/* Services Hero Section (Elegant & Simple) */
.services-hero-section {
    background-image: linear-gradient(rgba(34, 40, 49, 0.75), rgba(34, 40, 49, 0.85)), 
                      url('serviceshero.jfif');
    /* background-color: var(--color-background-dark); */
    color: var(--color-text-light);
    padding: 150px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Adding a professional, subtle gradient look */
    /* background-image: linear-gradient(rgba(34, 40, 49, 0.9), rgba(34, 40, 49, 0.9)); */
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--color-gold); /* Subtle elegance */
}

.services-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-gold);
}

.services-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto;
}

/* Service Detail Container */
.services-detail-container {
    padding: 80px 5%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Individual Service Block Styling */
.service-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

/* Alternating style for visual interest (the 'highlight' class) */
.service-block.highlight {
    background-color: #f7f7f7;
    border-left: 5px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-icon-wrapper {
    background-color: var(--color-dark-green);
    color: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.service-block i {
    font-size: 2.5rem;
    color: var(--color-gold); /* Icon color within the dark circle */
}

.service-block.highlight .service-icon-wrapper {
    background-color: var(--color-gold);
}

.service-block.highlight i {
    color: var(--color-dark-green);
}

.service-block h2 {
    font-size: 2rem;
    color: var(--color-dark-green);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-gold-light);
    padding-bottom: 5px;
}

.service-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify; /* Ensure the large paragraphs look professional */
    max-width: 900px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-title {
        font-size: 2.5rem;
    }

    .services-subtitle {
        font-size: 1.1rem;
    }

    .service-block {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .service-block h2 {
        font-size: 1.6rem;
    }

    .service-block p {
        font-size: 1rem;
    }
}

/* animation and hover for all  */
/* ========================================= */
/* --- GLOBAL ANIMATIONS & TRANSITIONS (HIGH-IMPACT) --- 
/* ========================================= 

/* 1. Global Transition for Smooth Hovers 
button, a, .service-card, .project-card, .project-card-item, .contact-form-block, .contact-info-block, .calculator-card, .featured-project-card, .sitemap-footer a {
    /* Fast, smooth transition for all hoverable elements 
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

/* 2. Keyframes for HIGH-IMPACT Page Entry (Slide-in from Right) 
@keyframes fadeInSlideRight {
    from { 
        opacity: 0; 
        transform: translateX(150px); /* Massive slide-in effect from the right 
    } 
    to { 
        opacity: 1; 
        transform: translateX(0); 
    } 
}

/* 3. Staggered Content Entry Class (THE FIX) 
.animate-on-load {
    opacity: 0; 
    /* Increased duration to 1.8s for a slow, highly visible effect 
    animation: fadeInSlideRight 1.8s forwards; 
    /* Ensures the final state (opacity: 1, translateX: 0) is held to prevent snap-back 
}

/* Increased Staggered Animation Delay for Dramatic Effect (Applied to <section> tags) 
.animate-on-load:nth-child(1) { animation-delay: 0.3s; }
.animate-on-load:nth-child(2) { animation-delay: 0.8s; } 
.animate-on-load:nth-child(3) { animation-delay: 1.3s; } 
.animate-on-load:nth-child(4) { animation-delay: 1.8s; }
.animate-on-load:nth-child(5) { animation-delay: 2.3s; }


/* --- ENHANCED HOVER EFFECTS (Lift and Color Change) --- */

/* Hover for all main content cards (Services, Projects, Calculator, Home Featured) 
.project-card:hover, 
.service-block:hover, 
.calculator-card:hover, 
.project-card-item:hover,
.contact-info-block:hover, 
.contact-form-block:hover {
    transform: translateY(-8px) scale(1.01); /* Noticeable lift and slight growth 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); 
    /* Subtle background change/highlight 
    background-color: var(--color-background-light); 
    border-bottom: 4px solid var(--color-gold); /* Highlight accent color 
}

/* General button and link hovers 
.primary-btn:hover {
    background-color: #8c7844; /* Darker gold 
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.secondary-btn:hover, .view-more-btn:hover {
    background-color: var(--color-dark-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}*/
/* ========================================= */
/* --- GLOBAL ANIMATIONS & TRANSITIONS (ULTIMATE DYNAMIC EFFECT) --- */
/* ========================================= */

/* 1. Global Transition for Smooth Hovers */
button, a, .service-card, .project-card, .project-card-item, .contact-form-block, .contact-info-block, .calculator-card, .featured-project-card, .insight-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

/* 2. Directional Keyframes (Highly Visible) */

/* Slide In from Right */
@keyframes fadeInSlideRight {
    from { opacity: 0; transform: translateX(100px); } 
    to { opacity: 1; transform: translateX(0); } 
}

/* Slide In from Left */
@keyframes fadeInSlideLeft {
    from { opacity: 0; transform: translateX(-100px); } 
    to { opacity: 1; transform: translateX(0); } 
}

/* Fade Up from Bottom */
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(50px); } 
    to { opacity: 1; transform: translateY(0); }
}

/* 3. Base Animation Classes (Applied to <section> tags) */
.animate-right {
    opacity: 0; 
    animation: fadeInSlideRight 2.5s forwards; 
}
.animate-left {
    opacity: 0; 
    animation: fadeInSlideLeft 2.5s forwards; 
}
.animate-up {
    opacity: 0; 
    animation: fadeInSlideUp 2.5s forwards; 
}

/* 4. Staggered Delay (Controls when the sections appear) */
/* Apply these delays to alternating sections in your HTML (e.g., Home, About Us, Insights) */
.animate-right:nth-child(1), .animate-left:nth-child(1),.animate-up:nth-child(1) { animation-delay: 0.3s; }
.animate-right:nth-child(2), .animate-left:nth-child(2),.animate-up:nth-child(2) { animation-delay: 0.8s; } 
.animate-right:nth-child(3), .animate-left:nth-child(3) ,.animate-up:nth-child(3){ animation-delay: 1.3s; } 
.animate-right:nth-child(4), .animate-left:nth-child(4),.animate-up:nth-child(4) { animation-delay: 1.8s; }
.animate-right:nth-child(5), .animate-left:nth-child(5),.animate-up:nth-child(5) { animation-delay: 2.3s; }


/* --- NEW: INSIGHTS PAGE STYLES --- */
.insights-hero-section {
    background-image: linear-gradient(rgba(34, 40, 49, 0.7), rgba(34, 40, 49, 0.7)), url('insights-hero-background.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 5%;
    color: var(--color-text-light);
    text-align: center;
}
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.insight-card {
    background-color: var(--color-background-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.insight-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.insight-card-content {
    padding: 20px;
}
.insight-card h3 {
    color: var(--color-dark-green);
    margin-bottom: 10px;
}
.insight-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

/* --- ENHANCED HOVER EFFECTS (Lift and Color Change) --- */

.insight-card:hover {
    transform: translateY(-8px) scale(1.01); /* Noticeable lift and slight growth */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); 
    background-color: var(--color-background-light); 
    border-bottom: 4px solid var(--color-gold); /* Highlight accent color */
}

/* Apply this universal hover style to all cards for consistency */
.project-card:hover, 
.service-block:hover, 
.calculator-card:hover, 
.project-card-item:hover,
.contact-info-block:hover, 
.contact-form-block:hover {
    transform: translateY(-8px) scale(1.01); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); 
    background-color: var(--color-background-light); 
    border-bottom: 4px solid var(--color-gold); 
}

/* --- FOOTER ICON STYLES --- */

/* Ensures the icon and text are side-by-side */
.footer-column.contact-info p {
    display: flex;
    align-items: flex-start; /* CRITICAL FIX: Aligns text to the top of the icon/container */
    margin-bottom: 8px; 
    text-align: left; /* Ensure text starts flush left */
    font-size: 0.95rem; /* Slightly smaller font for long addresses */
}

/* Styles for the Icon itself */
.footer-column.contact-info p i {
    color: var(--color-gold); 
    font-size: 1.1rem;
    margin-right: 12px; 
    /* CRITICAL FIX: Gives the icon a fixed area so the text starts consistently */
    min-width: 20px; 
    text-align: center;
}

/* footer mobile responsiveness */
/* ========================================= */
/* --- FOOTER RESPONSIVENESS --- */
/* ========================================= */

@media (max-width: 768px) {
    /* Main footer content switches from grid to vertical flex stack */
    .footer-content {
        grid-template-columns: 1fr; /* Forces all columns onto one row */
        gap: 30px; /* Adds space between the stacked columns */
        padding: 40px 5%;
    }

    /* Centers the text within each column for a cleaner mobile stack */
    .footer-column {
        text-align: center;
    }

    /* Specifically fix alignment for the Contact Info Icons on mobile */
    .footer-column.contact-info p {
        justify-content: center; /* Center the icon and text block */
    }
    
    .footer-column.contact-info p i {
        /* Remove fixed width on mobile for slightly tighter spacing, if needed */
        width: auto;
    }

    /* Centers the social media icons */
    .footer-column.social-media {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}
/* CONTACT PAGE HTML ALIGMENENT ISSUE FIX */
/* --- CONTACT PAGE ICON ALIGNMENT FIX --- */

.info-item { /* CORRECTED CLASS NAME: Using .info-item */
    display: flex; /* Enables flexible layout */
    align-items: flex-start; /* CRITICAL: Ensures content aligns with the top of the icon */
    margin-bottom: 25px; /* Adds space between contact groups */
    padding-right: 20px;
}

.info-item i {
    color: var(--color-gold);
    font-size: 1.5rem; /* Larger icon for the main page */
    margin-right: 15px;
    min-width: 30px; /* Reserves space for the icon */
    text-align: center;
}

.info-item h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--color-gold);
}

.info-item p {
    margin: 0;
    line-height: 1.5;
}

/* Ensure the contact block looks good on mobile */
@media (max-width: 768px) {
    .info-item {
        padding-right: 0;
    }
}

/* credit design in footer */
/* --- FOOTER DESIGN CREDIT STYLES --- */
.design-credit {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    margin-top: 20px;
    /* Optional: Adds a thin line above the credit for separation */
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

.design-credit p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7); /* Lighter text for contrast */
    margin: 0;
}

.design-credit a {
    color: var(--color-gold); /* Uses your accent color */
    text-decoration: none;
    font-weight: bold;
}

.design-credit a:hover {
    text-decoration: underline;
}
