/* 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;
    min-height: 100vh;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), 
        url('assets/images/kp-hero.png');
    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 WRAPPER */
.key-project-hero {
    position: relative;
    height: 92vh;
    background: url("assets/images/kochi-hero.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* TITLE */
.kp-title {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.kp-title span {
    font-size: 1.6rem;
    font-weight: 600;
    opacity: 0.9;
}

.kp-title h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-top: 0.2rem;
}

/* CARDS WRAPPER */
.kp-cards {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;

    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.6rem;
    width: 86%;
}

/* BASE CARD */
.kp-card {
    border-radius: 22px;
    padding: 1.6rem;
    color: #fff;

    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 40%),
        rgba(0,0,0,0.45);

    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.25);

    box-shadow:
        inset 0 0 40px rgba(255,255,255,0.08),
        0 25px 70px rgba(0,0,0,0.8);
}

/* CARD 1 */
.kp-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.kp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kp-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.kp-text p {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* CARD 2 — HIGHLIGHT */
.kp-card.highlight h2 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #c8ff7a;
    margin-bottom: 0.4rem;
}

.kp-card.highlight p {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* CARD 3 — ICON */
.icon-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kp-icon {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

/* SECTION WRAPPER */
.project-overview-section {
    background: #ffffff;
}

/* OVERVIEW BLOCK */
.overview-block {
    padding: 3.5rem 4.5rem 2.5rem;
}

.overview-block h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color:rgb(0, 0, 0);
}

.overview-block p {
    max-width: 760px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(0,0,0,0.75);
}

/* ================= CHALLENGES BLOCK ================= */

.challenges-block {
    background: #6b3611;
    padding: 4rem 5rem 4.5rem;
}

/* TITLE */
.challenges-block h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* UNDERLINE */
.challenges-block .section-underline {
    background: #d7d83c;
    margin-bottom: 3rem;
}

/* GRID */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
}

/* CARD */
.challenge-card {
    background: rgba(227, 227, 107, 0.92);
    border-radius: 20px;
    padding: 2.2rem 2.1rem;
    min-height: 200px;

    box-shadow:
        0 10px 28px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.35);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* HOVER */
.challenge-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.45);
}

/* CARD TITLE */
.challenge-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2b2b1a;
    margin-bottom: 0.7rem;
}

/* TITLE ACCENT */
.challenge-card h4::after {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    background: #2b2b1a;
    border-radius: 3px;
    margin-top: 0.45rem;
}

/* CARD TEXT */
.challenge-card p {
    margin-top: 1rem;
    font-size: 0.97rem;
    line-height: 1.6;
    color: rgba(0,0,0,0.75);
}




/* SECTION WRAPPER */
.work-process-section {
    background: #ffffff;
}

/* TITLES */
.work-process-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #003579;
}

/* UNDERLINE */
.section-underline {
    display: block;
    width: 90px;
    height: 4px;
    background: #d7d83c;
    border-radius: 3px;
    margin-top: 1rem;
}

/* PROCESS BLOCK */
.process-block {
    padding: 3.5rem 4.5rem 4rem;
}

/* STEPS */
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* STEP */
.process-step {
    width: 220px;
    text-align: center;
}

/* ICON WRAPPER */
.icon-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.2rem;
    background: #e6e87b;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

/* ICON */
.icon {
    font-size: 2.2rem;
}

/* STEP NUMBER */
.step-number {
    position: absolute;
    right: -6px;
    top: 8px;
    width: 38px;
    height: 38px;
    background: #6b3f16;
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

/* TEXT */
.process-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.process-step p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(0,0,0,0.65);
}

/* CONNECTOR */

.connector {
    flex: 1;
    height: 2px;
    background: #6b3f16;
    margin: 3.5rem 1rem 0;
}



/* ================= IMPACT BLOCK ================= */

.impact-block {
    background: #f7f8e8; /* softer, cleaner */
    padding: 4rem 5rem 5rem;
}

/* GRID */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    margin-top: 3rem;
}

/* CARD */
.impact-card {
    background: rgba(227, 227, 107, 0.85);
    border-radius: 24px;               /* reduced */
    padding: 2.4rem 2.2rem;
    min-height: 240px;

    box-shadow: 
        0 12px 30px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.35);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* HOVER (subtle, professional) */
.impact-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 45px rgba(0,0,0,0.14),
        inset 0 1px 0 rgba(255,255,255,0.45);
}

/* TITLE */
.impact-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e2b1f;
    margin-bottom: 0.75rem;
}

/* ACCENT LINE */
.impact-card h4::after {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    background: #1e2b1f;
    border-radius: 3px;
    margin-top: 0.5rem;
}

/* TEXT */
.impact-card p {
    margin-top: 1.2rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(0,0,0,0.78);
}




        /* 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;
}

.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: 1100px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .impact-block {
        padding: 3rem 2rem 4rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .impact-card {
        min-height: auto;
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .challenges-block {
        padding: 3rem 2rem 4rem;
    }

    .challenges-grid {
        grid-template-columns: 1fr;
    }

    .challenge-card {
        min-height: auto;
    }
}
