:root {
    --primary: #ff6b1a;
    --primary-dark: #d9520b;
    --primary-soft: #fff3e8;
    --white: #ffffff;
    --light: #fffaf6;
    --text: #2f241f;
    --muted: #6c5b4f;
    --border: #f3dccf;
    --shadow: 0 18px 45px rgba(255, 107, 26, 0.14);
    --radius: 22px;
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #fffdfb 0%, #fff7ef 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    scroll-padding-top: 90px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1160px, calc(100% - 1.5rem));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 107, 26, 0.12);
}

.nav-container {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.logo i {
    font-size: 1.35rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.6rem;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0.2rem;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: flex;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--primary-dark);
    font-size: 1.65rem;
}

.hero {
    padding: 5rem 0 4.5rem;
    background: radial-gradient(circle at top left, rgba(255, 107, 26, 0.2), transparent 28%), linear-gradient(120deg, #fffdf9 0%, #ffe9d8 100%);
}

.hero-content {
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto 1.75rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 12px 24px rgba(255, 107, 26, 0.25);
}

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

section {
    padding: clamp(3.2rem, 6vw, 4.8rem) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: clamp(1.65rem, 2.3vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--muted);
}

.features-grid,
.project-grid,
.stats-grid,
.footer-grid,
.contact-grid,
.about-grid {
    display: grid;
    gap: 1.2rem;
}

.features {
    padding-top: 2rem;
}

.features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid,
.footer-grid,
.contact-grid,
.about-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card,
.project-card,
.stat-box,
.contact-info,
.contact-form,
.about-content,
.about-image {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-card,
.project-card,
.stat-box {
    padding: 1.5rem;
}

.feature-card i,
.project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.4rem;
    color: var(--primary-dark);
    background: var(--primary-soft);
    margin-bottom: 1rem;
}

.feature-card h3,
.project-card h3,
.contact-info h2,
.contact-form h2,
.about-content h2 {
    margin-bottom: 0.55rem;
}

.feature-card p,
.project-card p,
.about-content p,
.contact-info p,
.contact-form label,
.contact-item p,
.footer p,
.footer li {
    color: var(--muted);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.project-btn {
    margin-top: auto;
    width: fit-content;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.page-banner {
    padding: 3.4rem 0 2rem;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0.5rem auto 0;
}

.projects-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.project-sidebar {
    position: sticky;
    top: 90px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.project-detail-layout {
    position: relative;
    width: 100%;
    margin: 0;
}

.project-detail-sidebar {
    position: fixed;
    left: 0;
    top: 72px;
    bottom: 0;
    width: 270px;
    z-index: 8;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: linear-gradient(180deg, #fffdfb 0%, #fff4e8 100%);
    border-right: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    padding: 1.25rem 1rem;
}

.project-detail-content {
    min-width: 0;
    margin-left: 270px;
    padding: 0 1rem 0 1rem;
}

.project-main {
    min-width: 0;
}

.project-main .project-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    align-items: stretch;
}

.project-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.project-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-sidebar a {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    transition: 0.2s ease;
}

.project-sidebar a:hover,
.project-sidebar a.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.about-grid,
.contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
}

.about-image img {
    border-radius: var(--radius);
    min-height: 320px;
    object-fit: cover;
}

.about-content,
.contact-info,
.contact-form {
    padding: 1.6rem;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-box {
    text-align: center;
}

.stat-box h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.contact-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.contact-item i {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-top: 0.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    font: inherit;
    background: #fffdfa;
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid rgba(255, 107, 26, 0.2);
    border-color: var(--primary);
}

.cta {
    padding: 3rem 0 4rem;
}

.cta .container {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-radius: 28px;
    padding: 2.2rem 1.5rem;
    box-shadow: var(--shadow);
}

.cta p {
    margin: 0.5rem auto 1.25rem;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.92);
}

.footer:not(.project-footer) {
    margin-top: auto;
}

.footer {
    background: linear-gradient(135deg, #241d19 0%, #2f2521 100%);
    color: var(--white);
    padding: 2.25rem 0 1rem;
    width: 100%;
}

.footer .container,
.footer .copyright {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-grid>div {
    min-width: 0;
}

.footer h3,
.footer h4 {
    margin-bottom: 0.75rem;
    color: #ffb37a;
}

.footer p,
.footer li {
    color: rgba(255, 255, 255, 0.82);
    overflow-wrap: anywhere;
}

.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

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

.copyright {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.93rem;
    line-height: 1.8;
}

.copyright a {
    color: #ffb37a !important;
}

@media (max-width: 992px) {
    .projects-shell {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }

    .features-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-main .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 0.8rem;
        width: min(280px, calc(100% - 2rem));
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: 0.3s ease;
        z-index: 1100;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .nav-links.mobile-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-content {
        position: static;
        display: none;
        min-width: auto;
        box-shadow: none;
        border: 0;
        padding: 0.3rem 0 0 0.7rem;
        background: transparent;
    }

    .dropdown.active .dropdown-content {
        display: flex;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .features-grid,
    .project-grid,
    .stats-grid,
    .footer-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;

    }

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

    .about-content,
    .contact-info,
    .contact-form {
        padding: 1.25rem;
    }

    .project-sidebar ul {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        gap: 0.6rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .project-sidebar li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .project-sidebar a {
        white-space: nowrap;
    }

    .project-detail-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        margin-bottom: 1rem;
    }

    .project-detail-content {
        margin-left: 0;
    }

    .project-main .project-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 2.25rem 0 1rem;
    }

    .footer-grid {
        gap: 1.1rem;
        margin: 20px;
    }

    .copyright {
        font-size: 0.9rem;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {

    .nav-container,
    .container {
        width: min(100% - 1.1rem, 1160px);
    }

    .footer .container,
    .footer .copyright {
        width: min(100% - 1.1rem, 1160px);
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .feature-card,
    .project-card,
    .stat-box,
    .about-content,
    .contact-info,
    .contact-form,
    .project-sidebar {
        padding: 1.15rem;
    }

    .project-detail-content {
        padding: 0 0.25rem 1.5rem 0.25rem;
    }
}

.project-footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}

.project-footer .container,
.project-footer .copyright {
    width: min(1160px, calc(100% - 2rem));
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .project-footer {
        width: 100%;
        max-width: 100%;
    }

    .project-footer .container,
    .project-footer .copyright {
        width: min(1160px, calc(100% - 1.5rem));
    }
}

.project-footer {
    margin-left: 270px;
    width: calc(100% - 270px);
    background: #2a211d;
    color: #fff;
}

.project-footer .container {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
}

.project-footer .copyright {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width:768px) {

    .project-footer {
        margin-left: 0;
        width: 100%;
    }

    .project-footer .container,
    .project-footer .copyright {
        width: min(1160px, calc(100% - 1.5rem));
    }

}

/* 1. Update the grid layout to auto-wrap beautifully without breaking */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    /* Forces all cards in a row to have equal height */
}

/* 2. Refactor the card layout to handle uneven contents cleanly */
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers items horizontally */
    text-align: center;
    justify-content: space-between;
    /* Pushes the button to the bottom if text varies */
    height: 100%;
}

/* 3. Handle image scaling gracefully */
.feature-card img {
    max-width: 100%;
    height: auto;
    /* Maintains original aspect ratio */
    max-height: 80px;
    /* Keeps logos/images uniform */
    object-fit: contain;
    /* Prevents cropping or distortion */
    margin: 15px auto;
}

/* 4. Fix typography spacing inside the dynamic card */
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: auto;
    /* Pushes text up, keeping button pinned low */
    padding: 10px 0;
}

.map-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);
}

.map-card img {
    width: 100%;
    display: block;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
}


/* GST Video */
.project-video .video-wrapper {
    width: min(100%, 1000px);
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border: 0;
}

@media (max-width:768px) {
    .project-video iframe {
        height: 300px;
    }
}


/* Remove extra top spacing from project video section */
.project-video {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.project-video .section-title:empty {
    display: none;
}

@media (max-width:768px) {

    .project-detail-layout {
        display: flex;
        flex-direction: column;
    }

    .project-detail-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
        margin-bottom: 1rem;
    }

    .project-detail-content {
        margin-left: 0;
        width: 100%;
    }

    .project-footer {
        margin-left: 0;
        width: 100%;
    }
}

.project-footer {
    margin-top: auto;
    margin-left: 270px;
    width: calc(100% - 270px);
    background: #2a211d;
    color: #fff;
    box-sizing: border-box;
}

@media (max-width:768px) {
    .project-footer {
        margin-top: auto;
        margin-left: 0;
        width: 100%;
    }
}

.project-card {
    text-align: center;
}

.project-card .project-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 30px;
}

.project-card h3 {
    text-align: center;
    margin-bottom: 12px;
}

.project-card p {
    text-align: center;
}


.logo img {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}


/* Desktop */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.footer-grid>div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}



        /* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    right: 20px;
    bottom: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: scale(1.1);
    color: #fff;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        right: 15px;
        bottom: 15px;
        font-size: 32px;
    }
}


.project-detail-sidebar {
    top: 130px !important; 
    max-height: calc(100vh - 130px) !important; 
}

.project-sidebar {
    top: 130px !important;
}
