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

:root {
    --primary-color: #ee4424;
    --secondary-color: #21448b;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgb(0 0 0 / 37%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.contact-btn {
    background: var(--secondary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    color: white !important;
}

.contact-btn:hover {
    background: var(--secondary-color);
    color: white !important;
}

/* ─── Hero Section ────────────────────────────────────────────────────────────── */
.hero {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/BDD-chawl.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-image 0.8s ease-in-out;
}

.hero.slide-1 {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/BDD-chawl.webp') center/cover;
}

.hero.slide-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/hiranandani.jpg') center/cover;
}

.hero.slide-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/piramal.jpeg') center/cover;
}

.hero.slide-4 {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/amazon\ data\ center.jpeg') center/cover;
}

.hero.slide-5 {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/bdd\ chawl.webp') center/cover;
}

.hero.slide-6 {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/airport.jpeg') center/cover;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease-in-out;
}

.hero-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.hero-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.hero-nav button:hover {
    background: rgba(255, 140, 66, 0.9);
    transform: scale(1.1);
}

/* ─── Section Styles ─────────────────────────────────────────────────────────── */
section {
    padding: 2rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
    color: var(--primary-color);
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

.section-title::before {
    left: calc(50% - 250px);
}

.section-title::after {
    right: calc(50% - 250px);
}

/* ─── About Section ──────────────────────────────────────────────────────────── */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #666;
}

.features {
    list-style: disc;
    padding-left: 1.5rem;
    /* ← move padding HERE so bullets have room */
    margin: 1.5rem 0;
}

.features li {
    padding: 0.4rem 0;
    /* top/bottom spacing only */
}

.features li::marker {
    color: var(--secondary-color);
}


.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}


/* ─── Services Section ───────────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
}

.service-card {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

.service-card:nth-child(1) .service-overlay {
    background: linear-gradient(to top, rgba(26, 32, 44, 0.95), transparent);
}

.service-card:nth-child(2) .service-overlay {
    background: linear-gradient(to top, rgba(255, 140, 66, 0.95), transparent);
}

.service-card:nth-child(3) .service-overlay {
    background: linear-gradient(to top, rgba(26, 32, 44, 0.95), transparent);
}

.service-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.projects-section {
    padding: 60px 20px 70px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Heading ── */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.section-heading .line {
    flex: 0 0 60px;
    height: 2px;
    background: var(--secondary-color);
}

.section-heading h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

/* ── Slider Outer ── */
.slider-outer {
    position: relative;
    overflow: hidden;
}

/* ── Slider Track ── */
.slider-track {
    display: flex;
    gap: 18px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Card ── */
.project-card {
    flex: 0 0 calc((100% - 36px) / 3);
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Dark gradient over image */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 45%,
            rgba(0, 0, 0, 0.75) 100%);
}

/* Caption bar at bottom */
.card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px 16px;
    text-align: center;
}

/* Featured card caption gets orange background like original */
.project-card.featured .card-caption {
    background: #e84b2a;
}

.card-caption h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.card-caption .sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    margin-top: 2px;
}

/* ── Arrow Buttons ── */
.arrow-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s;
}

.arrow-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.arrow-btn.prev {
    left: 6px;
}

.arrow-btn.next {
    right: 6px;
}

.arrow-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Dots ── */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.dot.active {
    background: #e84b2a;
    transform: scale(1.3);
}

/* ── Responsive ── */

/* Tablet: 2 visible */
@media (max-width: 900px) {
    .project-card {
        flex: 0 0 calc((100% - 18px) / 2);
    }
}

/* Mobile: 1 visible */
@media (max-width: 560px) {
    .project-card {
        flex: 0 0 100%;
    }

    .projects-section {
        padding: 40px 14px 50px;
    }
}

/* ─── Responsive Breakpoints ─── */

/* Tablet: 2 cards */
@media (max-width: 960px) {
    .project-card {
        flex: 0 0 calc((100% - 22px) / 2);
    }
}

/* Mobile: 1 card */
@media (max-width: 600px) {
    .projects-section {
        padding: 48px 16px 60px;
    }

    .project-card {
        flex: 0 0 100%;
    }

    .slider-btn.prev {
        left: -10px;
    }

    .slider-btn.next {
        right: -10px;
    }
}

/* ─── Testimonials ───────────── */
.testimonials {
    background: #f8f9fa;
}

.testimonials-wrapper {
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.testimonials-wrapper::before,
.testimonials-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.testimonials-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 0%, rgba(248, 249, 250, 0) 100%);
}

.testimonials-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 0%, rgba(248, 249, 250, 0) 100%);
}

.testimonials-row {
    margin-bottom: 2rem;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    animation: slideLeft 25s linear infinite;
    width: max-content;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    flex-shrink: 0;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: normal;
    min-height: 80px;
    font-size: 0.9rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: url("./assets/avatar.png");
}

.author-name {
    font-weight: 600;
    color: #333;
}

/* ─── Contact Section ────────────────────────────────────────────────────────── */
.contact {
    background: linear-gradient(135deg, #fd7701 0%, #ff5112 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 400"><path fill="%23ffffff" fill-opacity="0.1" d="M0,100 Q480,200 960,100 T1920,100 L1920,400 L0,400 Z"/></svg>');
    background-size: cover;
}

.can {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.9;
}

.can img {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-phone {
    font-size: 1rem;
    font-weight: 500;
    margin: 1rem 0;
}

.contact-phone::-webkit-scrollbar {
    display: none;
    /* hides scrollbar on Chrome/Safari */
}

.contact-location {
    font-size: 1.5rem;
    font-weight: 600;
}

.icon {
    margin-right: 10px;
}

.anchortag,
.anchortag:visited,
.anchortag:active {
    color: white;
    text-decoration: none;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

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

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

/* ─── Mobile Menu ────────────────────────────────────────────────────────────── */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ─── Responsive Breakpoints ─────────────────────────────────────────────────── */

/* Tablet (≤1024px): show 2 cards */
@media (max-width: 1024px) {
    .project-card {
        min-width: calc(50% - 12px);
        /* 2 cards, gap=24px → each card loses 12px */
    }
}

/* Large mobile & tablet (≤968px) */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .section-title::before,
    .section-title::after {
        width: 50px;
    }

    .section-title::before {
        left: calc(50% - 150px);
    }

    .section-title::after {
        right: calc(50% - 150px);
    }

    .testimonial-card {
        min-width: 280px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
        display: flex;
    }
}

/* Mobile (≤768px): show 1 card */
@media (max-width: 768px) {
    section {
        padding: 1.5rem 4%;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    /* ── Carousel mobile overrides ── */
    .projects-carousel {
        gap: 0.4rem;
    }

    .projects-track {
        gap: 12px;
        /* keep in sync with getGapPx() → 12 in JS */
    }

    .project-card {
        min-width: 100%;
        /* 1 card fills full viewport width */
        height: 220px;
        border-radius: 10px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .project-info {
        padding: 0.9rem 1rem;
    }

    .project-info h3 {
        font-size: 0.95rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 8px;
        height: 8px;
    }

    .about-content {
        grid-template-columns: 1fr;
        /* single column */
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }

    .testimonials-wrapper::before,
    .testimonials-wrapper::after {
        width: 40px;
    }

    .can {
        display: none;
    }

    .contact h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .contact h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .contact-phone {
        font-size: 12px;
    }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
    .projects-carousel {
        gap: 0.25rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .project-card {
        height: 200px;
    }

    .testimonial-card {
        width: 80vw;
        padding: 1rem;
    }

    .testimonials-track {
        gap: 1rem;
    }

    .can {
        display: none;
    }

    .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .contact h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .contact-phone {
        font-size: 10px;
    }
}