/* Global Styles */
@import url('https://fonts.cdnfonts.com/css/zapfino-extra-lt');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3 {
    font-weight: 600;
}

/* ========== RESPONSIVE FIX PACK ========== */

/* Full responsive container */
.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
}

/* Mobile hero image fix */
@media (max-width: 600px) {
    .hero-image-block-asym {
        padding: 0 !important;
    }
}

/* Mobile Menu Fix */
@media (max-width: 768px) {
    nav ul {
        top: 70px !important;
    }
}

/* Colors */
:root {
    --primary-green: #2e8b57;
    --light-green: #e8f5e9;
    --dark-green: #1b5e20;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    /* UPDATED COLOR VARIABLES FOR BUTTON AND FOOTER */
    --button-primary: #E3693F;
    /* Darker Orange/Brown from the image */
    --dark-gray: #d6e9b2;
    /* Darker for better contrast on footer */
    --link-color: #222222;
    /* Retaining original text color */
    --button-shadow: #c75b2c;
    /* 💡 3D button depth color */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate {
    animation: fadeIn 1s ease-out forwards;
}

.animate-left {
    animation: slideInLeft 1s ease-out forwards;
}

.animate-right {
    animation: slideInRight 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

header {
    background-color: var(--white);
    position: fixed;
     top: 0;
    left: 0;
   
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    height: 40px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-green);
}

nav ul li a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a.nav-link:hover::after {
    width: 100%;
}

/* UPDATED BUTTON STYLES FOR SQUIRE 3D LOOK (Replaces old button/hover styles) */
.btn {
    display: inline-block;
    background: var(--button-primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    /* Square/Rectangular look */
    text-decoration: none;
    font-weight: 500;
    /* Simplified transition for 3D effect */
    transition: all 0.3s ease;
    border: 2px solid var(--button-primary);
    letter-spacing: 1px;
    font-size: 16px;
    min-width: 180px;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* 3D depth shadow */
    box-shadow: 0 6px 0 var(--button-shadow);
}

.btn:hover {
    color: var(--white);
    /* Text color remains white */
    background: var(--button-primary);
    /* Background remains solid */
    /* 3D press effect: button moves down */
    transform: translateY(6px);
    /* Remove shadow to simulate the button being pressed */
    box-shadow: 0 0 0 transparent;
}

/* Disable old conflicting ::after fill effect */
.btn::after {
    content: none;
}

/* Outline button 3D effect */
.btn-outline {
    background: transparent;
    border: 2px solid var(--button-primary);
    color: var(--button-primary);
    /* Lighter shadow for outline button */
    box-shadow: 0 6px 0 rgba(227, 105, 63, 0.4);
}

.btn-outline:hover {
    background: var(--button-primary);
    /* Fills on hover */
    color: var(--white);
    /* 3D press effect */
    transform: translateY(6px);
    box-shadow: 0 0 0 transparent;
}

.btn-outline::after {
    content: none;
}


/* Nav button styles */
.nav-btn {
    margin-left: 2px;
    padding: 8px 20px;
    font-size: 14px;
    min-width: 120px;
}

/* --- NEW HERO SECTION STYLES: Asymmetrical High-Contrast Block (Unique Style) --- */

.hero-asymmetrical {
    background-color: var(--white);
    /* Clean, solid background */
    padding: 130px 0 80px;
    position: relative;
    overflow: hidden;
    /* Contains the absolute elements */
    min-height: 600px;
}

.hero-asym-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    /* Ensure content sits slightly lower than the image block */
    position: relative;
    z-index: 10;
}

.hero-text-content-asym {
    flex: 1;
    max-width: 55%;
    /* Text takes up more space */
    text-align: left;
}

.hero-subheading {
    color: var(--button-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-title-main {
    margin-bottom: 40px;
    line-height: 1.1;
}

.zapfino-primary {
    color: var(--button-shadow);
    font-size: 4rem;
    font-weight: 400;
    display: block;
    margin-bottom: -20px;
    font-family: 'Zapfino Extra LT Pro', sans-serif;
}

.zapfino-secondary {
    color: var(--primary-green);
    font-size: 5.5rem;
    font-weight: 500;
    display: block;
    font-family: 'Zapfino Extra LT Pro', sans-serif;
}


/* --- Asymmetrical Image Block Styling --- */
.hero-image-block-asym {
    flex: 1;
    max-width: 45%;
    height: 500px;
    /* Fixed height for dramatic effect */
    position: relative;
    padding: 30px 0 0 30px;
    /* Padding for the image offset */
}

/* Background Block (The 'Unique' Geometric Shape) */
.hero-image-block-asym::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    /* Slightly smaller than the main block */
    height: 90%;
    background-color: var(--light-green);
    /* Light green accent color */
    border-radius: 8px;
    z-index: 1;
}

.hero-image-block-asym img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    /* Image floats over the accent block */
}


/* --- Horizontal Feature Block Styling --- */
.hero-features-block {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid var(--light-gray);
    /* Clean border */
    border-left: 5px solid var(--button-primary);
    /* Strong vertical accent line */
    border-radius: 4px;
}

.feature-item {
    text-align: center;
    flex: 1;
}

.feature-item i {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    line-height: 1.2;
}

.hero-cta-btn-asym {
    min-width: 250px;
    padding: 15px 30px;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-asym-container {
        flex-direction: column;
        gap: 60px;
    }

    .hero-text-content-asym {
        max-width: 100%;
        text-align: center;
        order: 2;
    }

    .hero-title-main {
        margin-bottom: 30px;
    }

    .hero-image-block-asym {
        max-width: 80%;
        height: 400px;
        margin-left: auto;
        margin-right: auto;
        order: 1;
    }

    .hero-features-block {
        justify-content: space-around;
        text-align: center;
    }

    .zapfino-primary {
        font-size: 3rem;
        margin-bottom: -15px;
    }

    .zapfino-secondary {
        font-size: 4.5rem;
    }
}

@media (max-width: 600px) {
    .hero-asymmetrical {
        padding: 100px 0 60px; /* Adjusted padding for better fit */
    }
    
    .hero-features-block {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .hero-image-block-asym {
        max-width: 100%; /* Use full width on small phones */
        height: 300px;
    }
    
    .zapfino-primary {
        font-size: 2.5rem;
        margin-bottom: -15px;
    }
    
    .zapfino-secondary {
        font-size: 4rem;
    }
    
    /* Ensure text content has some padding on the edges */
    .hero-text-content-asym {
        padding: 0 10px;
    }
}


/* Hero Buttons (retaining the empty class block if it was used elsewhere) */
.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}



/* Ongoing Projects Section */
.ongoing-projects {
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--link-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--primary-green);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #777;
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 1.1rem;
}

/* Default: Desktop (3 cards) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
}

/* Tablet (2 cards) */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile (1 card) */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr !important;
    }
}


.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: var(--white);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(46, 139, 87, 0.1), rgba(46, 139, 87, 0.3));
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-img::after {
    opacity: 1;
}

.project-info {
    padding: 25px;
    background: var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-green);
}

.project-info p {
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 14px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-green);
    width: 0;
    transition: width 3s ease-out;
    /* Slowed down progress fill speed */
}

.project-card:hover .progress {
    width: var(--progress);
}

/* Stats Section */
.stats {
    background: linear-gradient(rgba(0, 0, 0, 0.486), rgba(0, 0, 0, 0.616)), url('../Image/latitude-27.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(46, 139, 87, 0.7);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark-gray);
    /* Now using the darker dark-gray variable */
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--button-primary);
    /* Using button color for emphasis */
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--button-primary);
    /* Using button color for emphasis */
    bottom: 0;
    left: 0;
}

.footer-column p,
.footer-column a {
    color: #181616;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.footer-column a:hover {
    color: var(--button-primary);
    /* Using button color for emphasis */
    transform: translateX(5px);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--primary-green);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--button-primary);
    /* Using button color for emphasis */
    transform: translateY(-5px);
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-main-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-main-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    nav ul li {
        margin-left: 15px;
    }
}

.mobile-menu-toggle {
    display: none;
    /* Basic styling for when it IS displayed on mobile */
    background: transparent;
    border: none;
    color: var(--button-primary); /* Use the primary button color for visibility */
    font-size: 28px; /* Slightly larger for easier tap target */
    cursor: pointer;
    padding-top: 5px;
    padding-bottom: 5px;
    z-index: 1001; /* Ensure it is above the menu itself */
}

@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;        /* EXTREME RIGHT */
        top: 40%;
        transform: translateY(-50%);
        padding: 5px;
        background: transparent;
        border: none;
        font-size: 28px;
        color: var(--button-primary);
        z-index: 2000;      /* Keep above menu */
    }

    nav {
        width: 100%;        /* Prevent overlap */
    }

 


    nav ul {
        position: fixed;
        top: var(--header-height, 70px); /* Dynamic top fix */
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height, 70px));
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1500; /* keeps it above the page */
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 20px 0;
        width: 100%;
    }

    nav ul li a {
        color: var(--link-color);
        font-size: 18px;
        padding: 8px 0;
        display: block;
    }

    nav ul li .btn {
        margin-top: 10px;
        padding: 10px 20px;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 100px 0 60px;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-main-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-stat-item:before {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;

    }
}

@media (max-width: 600px) {
    .hero-main-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo {
        height: 35px;
    }

    .logo img {
        max-height: 35px;
    }

    header {
        padding: 10px 0;
    }

    nav ul {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .hero {
        min-height: 70vh;
        padding: 80px 0 40px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .logo img {
        height: 30px;
        /* Reduced from 40px */
    }

    header {
        padding: 10px 0;
    }

    nav ul {
        top: 70px;
        height: calc(100vh - 70px);

    }
    
    /* Projects Grid Stacking */
    .projects-grid {
        grid-template-columns: 1fr; /* Ensures single column stack */
    }
    
    .project-card {
        margin-bottom: 20px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-info h3 {
        font-size: 1.3rem; /* Slightly smaller */
    }
    
    .project-info p {
        font-size: 0.9rem; /* Smaller paragraph text */
    }

    /* Footer Stacking */
    .footer-content {
        grid-template-columns: 1fr; /* Explicitly stack columns on mobile */
        gap: 30px;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%); /* Center the underline for centered text */
    }
    
    .footer-column p, .footer-column a {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    
    .hero-asymmetrical {
        padding: 100px 0 40px; /* Adjust overall padding */
    }
    
    .zapfino-primary {
        font-size: 2rem;
        margin-bottom: -10px;
    }
    
    .zapfino-secondary {
        font-size: 3.5rem;
    }

    .hero-image-block-asym {
        height: 250px; /* Smaller image block */
        padding: 20px 0 0 20px;
    }
    
    .hero-image-block-asym::before {
        width: 95%;
        height: 95%;
    }
    
    .hero-features-block {
        padding: 15px 10px;
    }

    .hero-cta-btn-asym {
        min-width: 100%; /* Full-width button on smallest screens */
    }
    
    .hero {
        min-height: 400px;
        padding: 70px 10px 20px;
    }

    .hero-buttons .btn {
        padding: 10px 20px;
        min-width: auto;
        width: 100%;
        margin: 5px 0;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title p {
        font-size: 1rem;
    }
}

/* Eldeco Form Styles */
.el-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.el-form-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 95%;
    max-width: 600px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    animation: elFadeIn 0.4s ease-out;
    border-bottom: 6px solid var(--button-primary);
    /* Using new color */
    background-image: linear-gradient(to right, #ccd3cd79, #b6b0b054), url('../Image/pop-up.png');
    background-position: center center;
    background-repeat: no-repeat;
}

@keyframes elFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New row styling */
.el-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;


}

.half-width {
    flex: 1;
    min-width: 0;
    /* Prevents overflow issues */
}

.el-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.el-form-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 5px;
}

.el-form-header p {
    color: #555;
    font-size: 14px;
}

.el-form-group {
    margin-bottom: 0;
    /* Now handled by row */
}

.el-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.el-form-group input,
.el-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.el-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--button-primary);
    /* Using new color */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .el-form-row {
        flex-direction: column;
        gap: 18px;
    }

    .el-form-container {
        padding: 25px 20px;
    }
}

.el-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}