@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

body {
    scroll-behavior: smooth;
    line-height: 1.6;
    font-size: 16px;
}

.logo img {
    margin-top: 10px;
    width: 100px;
    height: auto;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #ffffff;
    color: #000;
    height: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Navbar list */
.navbar ul {
    font-size: 1.2rem;
    list-style: none;
    display: flex;
    gap: 40px;
}

.navbar ul li a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #ff6347;
}

/* ✅ Active page color */
.navbar ul li a.active {
    color: #ff6347;
    font-weight: bold;
    border-bottom: 2px solid #ff6347;
}

.navbar ul li a:hover {
    color: #ff6347;
}

button {
    border: none;
    outline: none;
    background: white;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}


@media (max-width: 840px) {

    .navbar ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 100px;
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 0;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    }

    .navbar ul.active {
        max-height: 500px;
        padding: 20px 0;
    }

    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        z-index: 1001;
    }


    .logo img {
        width: 80px;
    }

    .hero-section {
        height: auto;
        min-height: 70vh;
    }
}


/* //////////////////////////////////////////////////////// */
/* /////////////////////////////////////////////////////// */
.about-section {
    position: relative;
    height: 30vh;
    background: url('/src/assets/images/projects/aboutimage1.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    margin-top: 100px;
    /* Add this line to push the section down */
}

/* Adds a semi-transparent overlay to make the text more readable */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 44, 44, 0.6);
    z-index: 1;
}

.about-container {
    position: relative;
    z-index: 2;
    /* Ensures the content is above the overlay */
    max-width: 800px;
    padding: 20px;
}

.about-container h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Adds a subtle shadow for depth */
}

.back-to-top-arrow {
  /* 1. Sticky Position and Location (as before) */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s; 
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #333; 
  color: white; 
  text-decoration: none; 
  border-radius: 50%;
  font-size: 18px;
}


.back-to-top-arrow.show-arrow {
  opacity: 1;
  visibility: visible;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .about-section {
        height: 50vh;
        /* Reduces height on mobile for better visibility */
    }

    .about-container h1 {
        font-size: 2.5rem;
    }
}

/* =================================Value Section============================= */
.values-section {
    padding: 60px 20px;
    background-color: white;
    text-align: center;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.value-card {
    background-color: #ffff;
    border: 8px solid #f0f0f0;
    border-radius: 8px;
    padding: 40px 20px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.values-container .value-card:nth-child(2),
.values-container .value-card:nth-child(4) {
    height: 350px;
    justify-content: flex-start;
}

.values-container .value-card:nth-child(1),
.values-container .value-card:nth-child(3) {
    height: 300px;
    justify-content: center;
}

.value-card i {
    font-size: 2.5rem;
    color: rgb(223, 145, 1);
    margin-bottom: 10px;
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.value-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
    .values-container {
        flex-direction: column;
        align-items: center;
    }

    .value-card {
        flex: 1 1 100%;
        max-width: 1100px;
        width: 100%;
    }
}


/* =======================================trusted section================================== */
.trusted-section {
    padding: 80px 20px;
    background-color: #fff;
}

.trusted-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.trusted-heading-container {
    flex: 1;
    max-width: 40%;
    display: flex;
    align-items: center;
}

.trusted-heading-container h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #29754a;
    /* A deep green color */
    line-height: 1.2;
}

.trusted-heading-container span {
    color: rgb(223, 145, 1);
}

.trusted-text-container {
    flex: 1;
    max-width: 60%;
    text-align: justify;
    line-height: 1.6;
}

.trusted-text-container p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
}

/* Responsive design for tablets and mobile */
@media (max-width: 992px) {
    .trusted-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .trusted-heading-container {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .trusted-heading-container h2 {
        font-size: 2.2rem;
    }

    .trusted-text-container {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .trusted-heading-container h2 {
        font-size: 2rem;
    }
}


/* ==========================Infrastructure-section============================ */

/* New Design: Light Earthy Theme with Overlapping Card Layout and Green Accents */
.infra-section {
    width: 100%;
    min-height: auto;
    background-color: #2ecc71;
    /* Soft light gray-white gradient for a clean, professional feel */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle geometric background pattern for texture (using CSS shapes) */
.infra-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(39, 174, 96, 0.03) 2px, rgba(39, 174, 96, 0.03) 4px),
        radial-gradient(circle at 30% 70%, rgba(39, 174, 96, 0.05) 0%, transparent 50%);
    animation: subtleShift 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes subtleShift {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 0.8;
        transform: translateX(10px);
    }
}

/* Main container: Flexbox with overlap for modern asymmetry */
.infra-container {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    /* Image on left, text on right – reversed for fresh flow */
    align-items: flex-start;
    gap: 3rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    backdrop-filter: blur(15px);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.08),
        0 5px 20px rgba(0, 0, 0, 0.05);
    /* Layered shadows for depth */
    transition: all 0.4s ease-out;
    overflow: hidden;
    /* Clip any overlaps */
}

/* Overlap effect: Text slightly overlaps image container */
.infra-text-container {
    margin-left: -2rem;
    /* Negative margin for overlap */
    z-index: 3;
}



/* Heading container: Clipped shape for uniqueness (e.g., rounded with clip-path) */
.infra-heading-container {
    flex: 1;
    position: relative;
    height: 350px;
    /* Fixed height for consistency */
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
    /* Subtle angled clip for modern edge */
    background-color: #ecf0f1;
    /* Fallback if image fails */
}

/* Image: Optimized fitting with shape mask */
.infra-heading-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: sepia(10%) contrast(1.05);
    /* Earthy tint to match theme */
}

/* Hover: Rotate and zoom for engagement */
.infra-heading-container:hover img {
    transform: rotate(2deg) scale(1.08);
}

/* Broken image handling */
.infra-heading-container img:not([src]),
.infra-heading-container img[src=""] {
    display: none;
}

.infra-heading-container:empty::before {
    content: 'Project Preview';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #7f8c8d;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: 10px;
    z-index: 4;
}

/* Text container: Right-aligned with earthy accents */
.infra-text-container {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    text-align: left;
    color: #2c3e50;
    /* Dark navy for readability */
}

/* Heading: Earthy gradient with custom font weight */
.infra-text-container h2 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #27ae60 0%, #087c38 50%, #55e792 100%);
    /* Green gradient for growth/infrastructure theme */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Animated border around heading */
.infra-text-container h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.infra-text-container h2:hover::before {
    opacity: 0.1;
}


.infra-text-container h2 span {
    font-weight: 800;
    text-shadow: none;
}

/* Paragraphs: Clean cards with green borders, fade-up animation */
.infra-text-container p {
    font-size: 1.2rem;
    line-height: 1.75;
    margin: 0;
    padding: 1.2rem;
    background: #fff;
    border: 2px solid #e8f5e8;
    /* Light green border */
    border-radius: 15px;
    color: #555;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    font-family: 'Open Sans', sans-serif;
    /* Readable font (load via Google Fonts) */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Staggered fade-up animation */
.infra-text-container p:nth-child(1) {
    animation: fadeUp 0.7s ease forwards 0.2s;
}

.infra-text-container p:nth-child(2) {
    animation: fadeUp 0.7s ease forwards 0.5s;
}

.infra-text-container p:nth-child(3) {
    animation: fadeUp 0.7s ease forwards 0.8s;
}

.infra-text-container p:nth-child(4) {
    animation: fadeUp 0.7s ease forwards 1.1s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover: Green lift effect */
.infra-text-container p:hover {
    border-color: #27ae60;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.15);
}

/* Responsive: Stack on mobile, adjust overlap */
@media (max-width: 768px) {
    .infra-container {
        flex-direction: column;
        /* Stack: Image first, then text */
        gap: 2rem;
        padding: 2rem;
        align-items: center;
        text-align: center;
    }

    .infra-heading-container {
        height: 280px;
        min-width: auto;
        clip-path: circle(50%);
        /* Circular on mobile for fun, compact shape */
        order: 1;
        /* Image on top */
    }

    .infra-text-container {
        margin-left: 0;
        /* No overlap on mobile */
        order: 2;
        text-align: center;
        gap: 1.5rem;
    }

    .infra-text-container h2 {
        text-align: center;
    }

    .infra-text-container p {
        text-align: center;
        font-size: 1.1rem;
    }

    .infra-heading-container img {
        object-position: center;
    }
}

/* Tablet: Reduce overlap */
@media (min-width: 769px) and (max-width: 1024px) {
    .infra-container {
        gap: 2.5rem;
        padding: 2.5rem;
    }

    .infra-heading-container {
        height: 320px;
    }

    .infra-text-container {
        margin-left: -1rem;
    }
}

/* Larger screens: Enhanced spacing */
@media (min-width: 1200px) {
    .infra-container {
        gap: 4rem;
        padding: 4rem;
    }

    .infra-heading-container {
        height: 400px;
    }
}

/* Mobile fine-tuning */
@media (max-width: 480px) {
    .infra-section {
        padding: 1rem 0.5rem;
    }

    .infra-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .infra-heading-container {
        height: 250px;
    }

    .infra-text-container p {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Accessibility: Contrast and reduced motion */
@media (prefers-contrast: high) {
    .infra-text-container p {
        border-color: #27ae60;
        background: #fff;
    }

    .infra-heading-container img {
        filter: none;
        /* Remove tint for clarity */
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.infra-container:focus-within {
    outline: 3px solid #27ae60;
    outline-offset: 2px;
}

/* Performance */
.infra-heading-container img,
.infra-text-container p {
    will-change: transform, opacity;
}

/* 
////////////////////////////////////////////////////////
/////////////////////////////////////////////////////// */

.clients-section {
    background: #f8f8f8;
    padding: 50px 20px;
    text-align: center;
    /* Centers the heading text */
}

.clients-heading {
    color: #0a0a0a;
    /* A shade of blue/purple to match the image */
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Container for the sliding effect */
.logos-container {
    overflow: hidden;
    /* Hides any content that overflows the container */
    white-space: nowrap;
    /* Prevents the logos from wrapping to the next line */
    padding: 20px 0;
    /* Adjust vertical spacing */
}

/* The element that will be animated */
.logos-slide {
    width: 100%;
}

.logos-slide img {
    height: 120px;
    width: 240px;
    margin: 0 20px;
    display: inline-block;
}


/* =================Director-Section=================== */
/*
  Directors Section
  -----------------
  The main container for the entire section.
*/
.directors-section {
    width: 100%;
    height: auto;
    padding: 20px;
}

/*
  Section Title
  -------------
  The heading for the section.
*/
.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    /* Responsive font size */
    font-weight: 900;
    margin-bottom: 30px;
    margin-top: 20px;
    color: #2d5a27;
}

.directors-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1400px;
    margin: auto;
}

.director-card {
    width: 100%;
    /* Use 100% width to be responsive */
    display: flex;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}


.director-card img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 5px 0 0 0;
}


.director-info {
    flex-grow: 1;
    padding: 15px 20px;
}

.director-name {
    margin: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 8px;
    color: #fff;
    border-radius: 4px;
    width: fit-content;
}

.director-name.Aman {
    padding: 5px 20px;
    background: #ff0000;
}

.director-name.hitesh {
    padding: 5px 20px;
    background: #ff0000;
    margin-left: auto;
}


.director-info p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #444;
    text-align: justify;
    font-weight: normal;
}


@media (max-width: 768px) {
    .director-card {
        
        flex-direction: column;
    }

    .director-card img {
        width: 100%;
        height: auto;
    }

    .director-name {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
}

/* ====================================================
=======================footer=======================
==================================================== */


/* --- Main Footer Container and Columns --- */
.site-footer {
    background-color: #00003b;
    padding: 60px 20px 20px;
}


.footer-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}

.footer-column {
    margin: 10px auto;
    flex-basis: 22%;
    box-sizing: border-box;
    min-width: 200px;
}


.footer-column:nth-child(2),
.footer-column:nth-child(3),
.footer-column:nth-child(4) {
    max-width: 150px;
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: #ffbb00;
    /* A bright gold/yellow color */
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* --- Lists and Links --- */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.contact-list li,
.link-list li {
    font-size: 0.68rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-list li span {
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
}


.contact-list li a {
    color: white;
    text-decoration: none;
}

.link-list {
    display: flex;
    flex-direction: column;
}


.link-list a,
.contact-list span {
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}


.link-list a:hover {
    color: #f7d268;
}


.icon {
    width: 20px;
    height: 20px;
    stroke: orange;
    margin-right: 4px;
    fill: none;
    flex-shrink: 0;
    vertical-align: middle;
}

/* --- Project Gallery Grid --- */
.gallery-grid {
    width: 150px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}


/* --- Copyright Section --- */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}



/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-column {
        min-width: 100%;
    }

    .contact-list,
    .link-list {
        text-align: left;
    }

    .gallery-grid {
        justify-items: center;
    }
}

/* ================== RESPONSIVE DESIGN ================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .navbar {
        padding: 10px 30px;
    }

}

/* Tablets */
@media (max-width: 840px) {

    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
    }
   
}

/* Mobiles */
@media (max-width: 768px) {
    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}


