/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

:root {
--g2: linear-gradient(45deg, #8cb500, #0047aa);
}

/* HERO SECTION WITH BLACK TINT */
.hero {
    position: relative;
    height: 100vh;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), 
        url('assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

/* NAV */
nav {
    position: absolute;        /* 🔥 key fix */
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 20;
}

.nav-spacer {
    flex: 1;
}

.logo img {
    width: 300px;
    border-radius: 12px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-links > li > a {
    position: relative;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: .4s ease;
    box-shadow: 0 0 10px #0047aa40;
}

/* RIPPLE */
.nav-links > li > a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--g2);
    opacity: .85;
    border-radius: inherit;
    transform: scale(0);
    transition: .5s ease;
    z-index: -1;
}

.nav-links > li > a:hover::after {
    transform: scale(1);
}

/* DROPDOWN */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 170%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    padding: .75rem;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .35s ease;

    display: grid;
    grid-template-columns: 1fr; /* default: single column */
    gap: .25rem;
    min-width: 160px;
}

/* 🔥 If dropdown has MORE THAN 3 items → 2 columns */
.dropdown:has(a:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    min-width: 340px;
}


/* ✅ ONLY JS CONTROLS VISIBILITY */
.nav-item.open .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: .75rem 1.25rem;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: .3s ease;
}

.dropdown a:hover {
    background: var(--g2);
    transform: translateX(4px);
}



/* HERO CONTENT LEFT ALIGNED */
.hero-content {
    position: relative;
    z-index: 5;
    max-width: 1600px;
    margin-left: 4rem;
    padding: 3rem 0;
    text-align: left;
    margin-top: 5rem;
}

h1 {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 900px;
    margin-bottom: 4rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* FEATURE CARDS LEFT ALIGNED */
.features {
    position: relative;
    z-index: 5;
    display: flex;

    gap: 2rem;

    margin-top: 4rem;
    margin-left: 4rem;

    max-width: 900px;      /* Controls how wide the cards spread */
    justify-content: flex-start;
}

.feature-card {
    flex: 1;               /* keep horizontal layout */
    max-width: 280px;      /* prevent large stretching */
    
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2rem;
    font-size: 1.15rem;
    line-height: 1.6;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.cta-container {
    position: absolute;
    bottom: 0rem;
    left: 38rem;
    width: 100%;

    display: flex;
    justify-content: center;
}

.cta-bottom {
    background: white;
    color: black;
    padding: 1.5rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;

    border: 3px solid black;
    border-radius: 20px;        /* controls rounding */
    
    position: relative;
    top: 20px;                  /* lifts it slightly upward */
    
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-inner {
    padding: 1rem 3rem;
    border: 2px solid black;
    border-radius: 15px;

    font-size: 1.4rem;
    font-weight: 600;
}


/* SCROLL INDICATOR ABOVE CTA */
.scroll-indicator {
    position: absolute;
    bottom: 8.5rem; /* sits above CTA */
    right: 4rem;

    z-index: 10;
    width: 70px;
    height: 70px;

    border: 3px solid white;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.1);
}

.scroll-indicator svg {
    width: 35px;
    height: 35px;
    stroke: white;
    stroke-width: 3;
    fill: none;
}

.next-section {
    width: 100%;
    padding: 4rem 2rem;
    text-align: center;
}

.next-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.next-subtitle {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 3rem;
    line-height: 1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;   /* adjust to match your layout */
    margin: 4rem auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Play button in center */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 110px;
    height: 110px;

    border-radius: 50%;
    background: radial-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    
    border: 2px solid rgba(255,255,255,0.7);
}

.play-button svg {
    width: 45px;
    height: 45px;
}
/* PROJECTS SECTION */
.projects-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.projects-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: center;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* CARD BASE */
.solution-card {
    position: relative;
    height: 360px;
    border-radius: 26px;
    overflow: hidden;
    cursor: pointer;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

/* Wide card = 8/12 */
.solution-card.long {
    grid-column: span 8;
}

/* Narrow card = 4/12 */
.solution-card.short {
    grid-column: span 4;
}


/* BACKGROUND IMAGE */
.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
    transition: transform .6s ease;
}

.solution-card:hover .card-bg {
    transform: scale(1.08);
}

/* OVERLAY CONTENT */
.card-overlay {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    z-index: 2;
}

/* TITLE ALWAYS VISIBLE */
.card-overlay h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0;
    transition: transform .4s ease;
}

/* DETAILS – HIDDEN INITIALLY */
.card-overlay p {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: .4s ease;
}

/* GLASSMORPHIC REVEAL */
.solution-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: .4s ease;
    z-index: 1;
}

.solution-card:hover::after {
    opacity: 1;
}

.solution-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* ARROW */
.card-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.6);
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.2rem;
    z-index: 3;
    background: rgba(0,0,0,.25);
}

/* BACKGROUND IMAGES (replace URLs as needed) */
.bg-1 { background-image: url("https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?w=800&q=80"); }
.bg-2 { background-image: url("https://images.unsplash.com/photo-1532634733-cae1395e440f?w=800&q=80"); }
.bg-3 { background-image: url("https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=800&q=80"); }
.bg-4 { background-image: url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800&q=80"); }

/* WHY BHUMI SECTION */
.why-bhumi-section {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 6rem 3rem;
        }

        .section-title {
            font-size: 4rem;
            font-weight: 900;
            margin-bottom: 5rem;
            text-align: center;
            background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .content-block {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s ease forwards;
        }

        .content-block:nth-child(2) {
            animation-delay: 0.2s;
        }

        .content-block:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .text-content {
            padding: 2rem;
        }

        .text-content h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .green-box {
            background: #e8f7e8;            /* light green background */
            border: 2px solid #31a24c;      /* green border */
            border-radius: 12px;            /* rounded corners */
            padding: 20px;                  /* space inside box */
            margin: 0px 0;                 /* spacing around box */
        }

        .text-content p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: rgba(0, 0, 0, 0.85);
            text-align: justify;
        }

        .image-content {
            position: relative;
            height: 450px;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }

        .image-content:hover {
            transform: translateY(-8px);
            box-shadow: 0 30px 80px rgba(74, 222, 128, 0.3);
        }

        .image-content img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .image-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .image-content:hover .image-overlay {
            opacity: 1;
        }

        /* Decorative elements */
        .text-content::before {
            content: '';
            position: absolute;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
            border-radius: 2px;
            margin-top: -1rem;
        }

        /* Reverse layout for alternating blocks */
        .content-block.reverse {
            direction: rtl;
        }

        .content-block.reverse .text-content,
        .content-block.reverse .image-content {
            direction: ltr;
        }


        /* Section Styling */
        .why-bhumi {
            text-align: center;
            margin: 0px 0;
            font-family: "Poppins", sans-serif;
        }

        .why-bhumi h2 {
            font-size: 4.5rem;
            font-weight: 700;
            margin-bottom: 30px;
            margin-top: 0px;
        }

        /* Cards Container */
        .cards-container {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 25px;
            margin-left: 100px;
            margin-right: 100px;
        }

        /* Individual Card Styling */
        .bhumi-card {
            margin-left: 1.2rem;
            margin-bottom: 1rem;
            width: 400px;
            height: 230px;
            padding: 22px;
            border-radius: 18px;
            background: linear-gradient(135deg, #d8f5d0, #7ecf7a);
            box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
            text-align: left;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        /* Hover Effect */
        .bhumi-card:hover {
            transform: translateY(-5px);
            box-shadow: 0px 6px 20px rgba(0,0,0,0.22);
        }

        /* Typography inside cards */
        .bhumi-card h3 {
            margin: 0;
            font-size: 1.4rem;
            font-weight: 1400;
            color: #1a1a1a;
        }

        .bhumi-card p {
            margin-top: 8px;
            font-size: 0.95rem;
            color: rgba(0, 0, 0, 0.75);
            line-height: 1.4;
        }


        /* Overall Footer */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 50px 80px;
    background: linear-gradient(145deg, #0047a5, #003579);
    color: #fff;
    font-family: "Poppins", sans-serif;
    position: relative;
}

/* LEFT SIDE */
.footer-left h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

.footer-badges {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #00d063;
    border-radius: 50%;
    margin-right: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    font-size: 15px;
    line-height: 1.9;
}

.footer-links li {
    cursor: pointer;
    transition: opacity 0.2s;
}

.footer-links li:hover {
    opacity: 0.7;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.85;
}

/* RIGHT SIDE */
.footer-right {
    width: 40%;
    text-align: right;
    margin-right: 60px;
}

.footer-desc {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 50px;
}

.footer-btn {
    padding: 10px 22px;
    border-radius: 30px;
    background: #fff;
    color: #003579;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: 0.3s;
}

.footer-btn:hover {
    transform: translateX(3px);
}

.arrow {
    margin-left: 6px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 20px 0;
}

.footer-logo img {
    width: 250px;
    margin-right: 15px;
    border-radius: 12px;
}

.footer-logo-text h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.footer-logo-text p {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.85;
}

.footer-legal {
    margin-top: 25px;
}

.footer-legal a {
    color: #fff;
    font-size: 13px;
    margin-left: 20px;
    text-decoration: none;
    opacity: 0.85;
}

.footer-legal a:hover {
    opacity: 1;
}

/* FLOATING ICONS */
.footer-floating-icons {
    position: absolute;
    right: 40px;
    top: 80px;
}

.circle-btn {
    width: 45px;
    height: 45px;
    background: #004fbb;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 15px;
}

.side-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #003f96;
    padding: 12px;
    border-radius: 30px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    background: #0051c5;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 18px;
}

.icon-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* makes SVG white */
    pointer-events: none;
}


.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .card-1, .card-2, .card-3, .card-4 {
        grid-column: 1;
        grid-row: auto;
        height: 340px !important;
        margin: 0 !important;
    }

    .projects-title {
        font-size: 2.5rem;
    }

    .project-overlay h3 {
        font-size: 2rem;
    }
}

