/* ============================================
   Responsive Styles — Ek Marakkar
   ============================================ */

@media (max-width: 1400px) {
    .hero-accent {
        font-size: 55px;
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 70px;
    }

    .menu-btn {
        display: grid;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        right: 24px;
        flex-direction: column;
        gap: 0;
        min-width: 180px;
        padding: 8px;
        border-radius: 14px;
        background: rgba(8, 45, 95, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(10px);
        z-index: 20;
    }

    .main-nav a {
        padding: 10px 16px;
        border-radius: 8px;
    }

    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    body.nav-open .main-nav {
        display: flex;
    }

    .hero {
        min-height: fit-content;
    }

    .hero-inner {
        height: auto;
        min-height: 0;
        padding-top: 44px;
    }

    .hero-inner>.row {
        height: auto;
    }

    .hero-content {
        padding-bottom: 24px;
        max-width: 100%;
    }

    .hero-media {
        flex-direction: column;
        align-items: center;
        margin-top: 8px;
        overflow: visible;
    }

    .hero-person {
        height: auto;
        width: min(420px, 90vw);
        margin-left: 0;
        align-self: center;
        object-position: center bottom;
    }

    .hbadge {
        font-size: 10px;
        padding: 8px 12px;
    }

    .hbadge-founder {
        top: auto;
        bottom: 34%;
        left: 0;
        color: #000;
    }

    .hbadge-years {
        top: auto;
        bottom: 40%;
        left: auto;
        right: 0;
    }

    .hbadge-mission {
        position: absolute;
        left: 50%;
        bottom: 24px;
        transform: translateX(-50%);
        width: max-content;
        max-width: calc(100% - 24px);
        margin: 0;
        white-space: normal;
        text-align: center;
        justify-content: center;
        color: #000;
    }

    .hero-title {
        margin-bottom: 18px;
    }

    .hero-line-1 {
        gap: 8px;
        margin-bottom: 0;
    }

    .hero-the {
        font-size: 30px;
    }

    .hero-name {
        font-size: 26px;
    }

    .hero-accent {
        font-size: 52px;
        letter-spacing: -0.03em;
    }

    .hero-desc-mask {
        margin-bottom: 28px;
    }

    .hero-desc {
        max-width: 560px;
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-cta {
        gap: 10px;
    }

    .hero-cta .hbtn {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* .ventures-header {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 40px;
        flex-direction: column;
    } */

    .cta-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 30px;
    }

    .impact-img {
        margin-top: 0;
    }

    /* ---------- Venture Stack ---------- */
    .venture-stack-section {
        padding: 50px 0 0;
    }

    .venture-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .venture-header-right {
        font-size: 14px;
    }

    /* Disable pin animation; show cards stacked naturally */
    .venture-stack {
        height: auto;
        overflow: visible;
    }

    .venture-card {
        position: relative;
        transform: none !important;
        top: auto;
        bottom: auto;
        height: auto;
        margin-bottom: 40px;
    }

    .venture-card-2 {
        top: auto;
        height: auto;
    }

    .venture-card-2 .venture-card-inner {
        height: auto;
    }

    .venture-card-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .venture-card-media {
        order: -1;
    }

    .venture-media-wrapper video,
    .venture-media-wrapper img,
    .venture-media-wrapper iframe {
        height: 290px;
    }

    .venture-card-content {
        padding: 0;
    }

    .venture-brand {
        margin-bottom: 20px;
    }

    .venture-brand-logo {
        height: 36px;
    }

    .venture-card-title {
        font-size: 20px;
    }

    .venture-card-desc {
        font-size: 14px;
    }

    .venture-pills {
        gap: 6px;
        margin: 18px 0;
    }

    .venture-pill {
        padding: 5px 10px;
        font-size: 15px;
    }

    .venture-pill img {
        width: 14px;
        height: 14px;
    }

    .venture-tagline {
        margin-bottom: 24px;
        font-size: 13px;
    }

    /* ---------- Vision & Mission ---------- */
    .section-pad {
        padding: 60px 0;
    }

    .gradient-heading {
        font-size: 26px;
        margin-bottom: 22px;
    }

    .heading-para {
        font-size: 15px;
        margin-top: 30px;
        margin-bottom: 35px;
    }

    .vm-card {
        padding: 22px 20px;
    }

    .vm-card-bg {
        transform: rotate(-1deg);
    }

    .vm-card-title {
        font-size: 18px;
    }

    .vm-card-text {
        font-size: 14px;
    }

    .matters-divider {
        margin: 32px 0 22px;
    }

    .matters-label {
        font-size: 18px;
    }

    /* ---------- About ---------- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-img {
        max-height: max-content;
        width: 100%;
        object-fit: cover;
        object-position: top;
    }

    /* ---------- Expertise ---------- */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .expertise-left {
        max-width: 480px;
    }

    .expertise-left .heading-para {
        margin-bottom: 22px;
    }

    /* ---------- Gallery ---------- */
    .gallery-header {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 38px;
    }

    .gallery-intro {
        max-width: 520px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 34px 22px;
        padding: 14px 16px 20px;
    }
}

@media (max-width: 480px) {
    .hero-inner {
        padding-top: 80px;
    }

    .hero-the {
        font-size: 24px;
    }

    .hero-name {
        font-size: 21px;
    }

    .hero-accent {
        font-size: 40px;
    }

    .hero-desc-mask {
        margin-bottom: 22px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-person {
        width: min(300px, 88vw);
    }

    .hbadge {
        font-size: 12px;
        padding: 7px 9px;
        gap: 6px;
    }

    .hbtn {
        height: 40px;
        padding: 0 18px;
    }

    .hbadge-founder {
        left: -6px;
        bottom: 22%;
    }

    .hbadge-years {
        right: -6px;
        bottom: 14%;
        color: #000;
    }

    /* ---------- Venture Stack ---------- */
    .venture-stack-section {
        padding: 40px 0 0;
    }

    .venture-header {
        gap: 14px;
        padding-bottom: 22px;
        margin-bottom: 24px;
    }

    .venture-header-right {
        font-size: 13px;
    }

    .venture-card {
        margin-bottom: 30px;
    }

    .venture-card-inner {
        gap: 18px;
    }

    .venture-media-wrapper video,
    .venture-media-wrapper img,
    .venture-media-wrapper iframe {
        height: 250px;
    }

    .venture-brand {
        margin-bottom: 16px;
    }

    .venture-card-title {
        font-size: 18px;
    }

    .venture-card-sub {
        font-size: 9px;
        margin-bottom: 10px;
    }

    .venture-card-desc {
        font-size: 13px;
    }

    .venture-pills {
        gap: 8px;
        margin: 14px 0;
    }

    .venture-pill {
        padding: 4px 8px;
        font-size: 15px;
        gap: 4px;
    }

    .venture-pill img {
        width: 12px;
        height: 12px;
    }

    .venture-tagline {
        margin-bottom: 18px;
        font-size: 15px;
    }

    .venture-cta {
        padding: 10px 16px;
        font-size: 12px;
    }

    /* ---------- Vision & Mission ---------- */
    .section-pad {
        padding: 45px 0;
    }

    .gradient-heading {
        font-size: 22px;
    }

    .vm-card {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .vm-card-bg {
        transform: rotate(-1deg);
    }

    .vm-card-title {
        font-size: 22px;
    }

    .vm-card-text {
        font-size: 13px;
    }

    .vm-card-icon {
        width: 28px;
        height: 28px;
    }

    .matters-divider {
        margin: 26px 0 18px;
    }

    .matter-card {
        padding: 18px 16px;
    }

    .matter-icon {
        /* width: 24px; */
        /* height: 24px; */
        margin-bottom: 15px;
    }

    .matter-text {
        font-size: 13px;
    }

    /* ---------- About ---------- */
    b .about-img {
        max-height: 280px;
    }

    .why-banner {
        margin-top: 32px;
    }

    .why-left,
    .why-right {
        padding: 24px 20px;
    }

    .why-right-inner {
        gap: 12px;
    }

    .why-sub {
        font-size: 13px;
    }

    .why-big {
        font-size: 28px;
    }

    .why-the {
        font-size: 15px;
    }

    /* ---------- Expertise ---------- */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .expertise-left {
        max-width: 100%;
    }

    .expertise-left .heading-para {
        margin-bottom: 20px;
    }

    .expertise-card {
        flex: 0 0 260px;
        height: 360px;
        margin: 0;
    }

    .expertise-card-title {
        font-size: 18px;
    }

    .expertise-card-text {
        font-size: 13px;
    }

    /* ---------- Gallery ---------- */
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
        padding: 8px 8px 16px;
    }

    .gallery-item {
        padding: 6px;
    }

    .gallery-item::after {
        inset: 6px;
    }

}


@media (max-width: 991px) {
    .heading-para {
        margin-top: 0;
        margin-bottom: 35px;
    }

    .impact-section {
        padding: 70px 0;
    }

    .impact-img-wrap {
        margin-bottom: 40px;
    }

    .cta-card {
        margin-top: 0;
    }

    .cta-content {
        padding: 50px 18px;
    }

    .cta-heading {
        font-size: 38px;
    }

    .cta-img-wrap {
        position: static;
        height: auto;
        justify-content: center;
        pointer-events: auto;
    }

    .cta-img {
        height: auto;
        max-width: 80%;
        margin: 0 auto;
    }

    /* ---------- Venture Stack (tablet) ---------- */
    .venture-stack {
        height: auto;
        overflow: visible;
    }

    .venture-card {
        position: relative;
        transform: none !important;
        top: auto;
        bottom: auto;
        height: auto;
        margin-bottom: 40px;
    }

    .venture-card-2 {
        top: auto;
        height: auto;
    }

    .venture-card-2 .venture-card-inner {
        height: auto;
    }

    .venture-card-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .venture-card-media {
        order: -1;
    }

    .venture-card-content {
        padding: 0;
    }

    /* .venture-green {
        margin-top: 26px;
    } */
}


@media (min-width: 321px) and (max-width: 482px) {
    .gradient-heading {
        font-size: 30px;
    }

    .heading-para {
        font-size: 16px;
    }

    /* .venture-green {

        margin-top: 21px;
    }

    .venture-btn {
        font-size: 12px;
        padding: 12px 11px;
    }

    .venture-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .venture-note {
        text-align: left;
    } */

    .break {
        display: none;
    }

    /* .venture-tags {
        gap: 7px;
    } */

    .clients-section {
        padding-top: 40px;
    }

    .logo-card img {
        max-height: 60px;
    }


    .logo-track {
        gap: 14px;
    }

    .future-pills {
        gap: 9px;
        margin-top: 20px;
    }

    .future-pill {
        gap: 12px;
        padding: 13px 11px;
        font-size: 15px;
    }

    .future-para {
        font-size: 16px;
    }

    .cta-section {
        padding-top: 40px;
    }

    .future-section {
        padding-bottom: 40px;
    }

    .hbadge {
        background: rgb(255 255 255 / 67%);
    }
}

@media (max-width: 860px) {
    p {
        font-size: 15px !important;
    }

    .future-card-title {
        font-size: 16px;
        padding: 15px 14px 15px;
    }

    .footer-nav {
        gap: 15px 20px;
    }

    .footer-sign {
        height: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}


/* ============================================
   Venture Stack: Disable pin below 1200px
   ============================================ */
@media (max-width: 1199px) {
    .venture-stack {
        height: auto;
        overflow: visible;
    }

    .venture-card {
        position: relative;
        transform: none !important;
        top: auto;
        bottom: auto;
        height: auto;
        margin-bottom: 60px;
    }

    .venture-card-2 {
        top: auto;
        height: auto;
    }

    .venture-card-2 .venture-card-inner {
        height: auto;
        grid-template-columns: 1fr;
    }

    .venture-card-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .venture-card-media {
        order: -1;
    }

    .venture-card-content {
        padding: 0;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {

    /* ---------- Hero: keep badges off the portrait ---------- */
    .hero-person {
        margin-left: -18%;
    }

    .hbadge {
        font-size: 13px;
        padding: 8px 12px;
    }

    .hbadge-founder {
        top: 58%;
        left: 52%;
    }

    .hbadge-years {
        top: 68%;
        left: 62%;
    }
}


@media (min-width: 861px) and (max-width: 991.98px) {

    /* ---------- Hero: stacked layout, prevent image clipping ---------- */
    .hero {
        min-height: fit-content;
    }

    .hero-inner {
        height: auto;
        min-height: 0;
        padding-top: 44px;
    }

    .hero-inner>.row {
        height: auto;
    }

    .hero-content {
        padding-bottom: 24px;
        max-width: 100%;
    }

    .hero-media {
        flex-direction: column;
        align-items: center;
        margin-top: 8px;
        height: auto;
        overflow: visible;
    }

    .hero-person {
        height: auto;
        width: min(460px, 80vw);
        margin-left: 0;
        align-self: center;
        object-position: center bottom;
    }

    .hbadge {
        font-size: 12px;
        padding: 8px 12px;
    }

    .hbadge-founder {
        top: auto;
        bottom: 34%;
        left: 4%;
    }

    .hbadge-years {
        top: auto;
        bottom: 40%;
        left: auto;
        right: 4%;
    }

    .hero-title {
        margin-bottom: 18px;
    }

    .hero-the {
        font-size: 38px;
    }

    .hero-name {
        font-size: 32px;
    }

    .hero-accent {
        font-size: 64px;
    }

    .hero-desc-mask {
        margin-bottom: 28px;
    }

    .hero-desc {
        max-width: 560px;
    }
}

/* ============================================
   Viewport Height Media Queries
   ============================================ */
@media (min-width: 1200px) and (max-width: 1400px) and (min-height: 500px) and (max-height: 780px) {
    .venture-header {
        padding-bottom: 30px;
    }

    .venture-card-content {
        padding: 30px 0;
    }

    .venture-card-2 .venture-card-inner {
        grid-template-columns: 1.5fr 1fr;
    }

    .venture-card-desc {
        font-size: 15px;
    }

    .venture-stack-section {
        padding: 40px 0 0;
    }
}


@media (min-width: 1200px) and (max-width: 1400px) and (min-height: 500px) and (max-height: 700px) {
    .venture-brand {
        margin-bottom: 25px;
    }

    .venture-tagline {
        margin-bottom: 15px;
    }
}
