:root {
    --hero-primary: #087a68;
    --hero-primary-dark: #075e52;
    --hero-primary-light: #eaf8f3;
    --hero-gold: #d8ab42;
    --hero-heading: #15201d;
    --hero-text: #586863;
    --hero-white: #ffffff;
    --hero-border: rgba(8, 122, 104, 0.12);
    --hero-shadow: 0 24px 70px rgba(15, 79, 68, 0.13);
}

/* Hero main section */

.ngo-hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 76px);
    /* padding: 55px 0; */
    overflow: hidden;

    background:
        radial-gradient(
            circle at 82% 8%,
            rgba(42, 193, 157, 0.18),
            transparent 28%
        ),
        linear-gradient(
            120deg,
            #f9fffc 0%,
            #f4fcf8 44%,
            #e6f8f1 100%
        );
}

.hero-container {
    position: relative;
    z-index: 5;

    width: min(1280px, calc(100% - 50px));
    min-height: 650px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(480px, 0.95fr) minmax(520px, 1.15fr);
    align-items: stretch;
    gap: 35px;
}

/* Background decorations */

.hero-background-shape {
    position: absolute;
    pointer-events: none;
}

.hero-shape-one {
    top: -160px;
    right: -120px;
    width: 540px;
    height: 540px;
    border-radius: 50%;

    background: linear-gradient(
        145deg,
        rgba(138, 229, 202, 0.3),
        rgba(8, 122, 104, 0.03)
    );
}

.hero-shape-two {
    right: -60px;
    bottom: -190px;
    width: 490px;
    height: 490px;
    border-radius: 80px;
    transform: rotate(35deg);

    background: linear-gradient(
        135deg,
        rgba(8, 122, 104, 0.19),
        rgba(85, 211, 176, 0.03)
    );
}

.hero-dot-pattern {
    position: absolute;
    top: 70px;
    right: 30px;
    width: 190px;
    height: 190px;
    opacity: 0.22;

    background-image: radial-gradient(
        var(--hero-primary) 1.2px,
        transparent 1.2px
    );

    background-size: 13px 13px;
}

/* Left content */

.hero-content {
    position: relative;
    z-index: 4;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding: 20px 0;
}

.hero-badge {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 20px;
    padding: 8px 13px;

    color: var(--hero-primary-dark);
    background: rgba(255, 255, 255, 0.8);

    border: 1px solid rgba(8, 122, 104, 0.14);
    border-radius: 100px;

    font-size: 12px;
    font-weight: 600;

    box-shadow: 0 8px 24px rgba(15, 91, 76, 0.06);
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;

    background: var(--hero-primary);
    border-radius: 50%;

    box-shadow: 0 0 0 5px rgba(8, 122, 104, 0.09);
}

/* Heading */

.hero-title {
    width: 100%;
    min-height: 145px;
    margin: 0;
    color: var(--title-color);
    font-family: var(--title-font);
    font-size: var(--title-size);
    font-weight: var(--title-weight);
    line-height: 1.07;
    letter-spacing: -1px;
}

/*
Modern Management ek hi line mein rahega.
For Modern NGOs. next line se start hoga.
*/

.hero-title-line {
    display: block;
    width: max-content;
    max-width: 100%;
}

.hero-title-first {
    white-space: nowrap;
}

.hero-title-second {
    margin-top: 3px;
    white-space: nowrap;
}

.hero-title-highlight {
    color: var(--title-accent);
}

/* Description */

.hero-description {
    max-width: 610px;
    min-height: 76px;
    color: var(--hero-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

/* Typing cursor */

.typing-text.typing-active::after {
    content: "";
    display: inline-block;

    width: 2px;
    height: 1em;
    margin-left: 4px;

    vertical-align: -2px;
    background: var(--hero-primary);

    animation: heroCursorBlink 0.7s infinite;
}

@keyframes heroCursorBlink {
    0%,
    48% {
        opacity: 1;
    }

    49%,
    100% {
        opacity: 0;
    }
}

/* Buttons */

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    /* margin-top: 28px; */
}

.hero-button {
    min-height: 50px;
    padding: 12px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500 ;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.hero-button svg {
    width: 17px;
    height: 17px;
}

.hero-primary-button {
    color: var(--hero-white);
    background: var(--hero-primary);

    box-shadow: 0 12px 26px rgba(8, 122, 104, 0.22);
}

.hero-primary-button:hover {
    color: var(--hero-white);
    background: var(--hero-primary-dark);

    transform: translateY(-3px);

    box-shadow: 0 16px 34px rgba(8, 122, 104, 0.3);
}

.hero-secondary-button {
    color: var(--hero-heading);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(8, 122, 104, 0.13);

    box-shadow: 0 8px 25px rgba(26, 66, 57, 0.06);
}

.hero-secondary-button:hover {
    color: var(--hero-primary);
    border-color: var(--hero-primary);

    transform: translateY(-3px);
}

.hero-play-icon {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--hero-primary);
    background: var(--hero-primary-light);

    border-radius: 50%;
}

.hero-play-icon svg {
    width: 11px;
    height: 11px;
    margin-left: 2px;
}

/* Statistics */

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;

    width: 100%;
    max-width: 590px;

    margin-top: 36px;
}

.hero-stat-card {
    min-height: 82px;
    padding: 15px;

    display: flex;
    align-items: center;
    gap: 11px;

    background: rgba(255, 255, 255, 0.86);

    border: 1px solid var(--hero-border);
    border-radius: 10px;

    box-shadow: 0 12px 30px rgba(23, 77, 65, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-stat-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 16px 35px rgba(23, 77, 65, 0.12);
}

.hero-stat-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--hero-primary);
    background: var(--hero-primary-light);

    border-radius: 8px;
}

.hero-stat-icon svg {
    width: 17px;
    height: 17px;
}

.hero-stat-card strong {
    display: block;

    color: var(--hero-heading);

    font-size: 14px;
    line-height: 1.2;
}

.hero-stat-card span {
    display: block;

    margin-top: 5px;

    color: var(--hero-text);

    font-size: 9px;
    line-height: 1.35;
}

/* Right image area */

.hero-visual {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: stretch;
    justify-content: center;

    width: 100%;
    min-width: 0;
    min-height: 650px;
}

/*
Wrapper poori hero height leta hai.
*/

.hero-dashboard-wrapper {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-height: 650px;

    animation: dashboardFloat 5.5s ease-in-out infinite;
}

/*
Image ko visually bada kiya gaya hai.
width 125% se image right column ko properly fill karegi.
*/

.hero-dashboard-image {
    position: relative;
    z-index: 3;

    display: block;

    width: 110%;
    max-width: none;
    height: 100%;
    min-height: 650px;

    margin-left: -5%;

    object-fit: contain;
    object-position: center;

    filter: drop-shadow(0 30px 45px rgba(17, 78, 66, 0.2));
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 95%;
    height: 80%;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(72, 212, 174, 0.31),
        transparent 68%
    );

    filter: blur(25px);
}

@keyframes dashboardFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Decorative square */

.hero-floating-square {
    position: absolute;
    z-index: 2;

    left: 2%;
    top: 39%;

    width: 52px;
    height: 52px;

    transform: rotate(38deg);

    border-radius: 8px;

    background: linear-gradient(
        135deg,
        #24ab89,
        #a0e8d4
    );

    box-shadow: 0 16px 35px rgba(8, 122, 104, 0.24);

    animation: squareRotate 7s ease-in-out infinite;
}

@keyframes squareRotate {
    0%,
    100% {
        transform: rotate(38deg) translateY(0);
    }

    50% {
        transform: rotate(46deg) translateY(-10px);
    }
}

/* Content reveal animation */

.hero-animate {
    opacity: 0;
    transform: translateY(18px);

    animation: heroContentReveal 0.8s ease forwards;
    animation-delay: var(--animation-delay, 0s);
}

@keyframes heroContentReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smaller desktop */

@media screen and (max-width: 1200px) {
    .hero-container {
        width: min(1120px, calc(100% - 40px));
        grid-template-columns: minmax(430px, 0.95fr) minmax(470px, 1.05fr);
        gap: 25px;
    }

    .hero-title {
        font-size: var(--title-size);
    }

    .hero-dashboard-image {
        width: 120%;
        margin-left: -10%;
    }
}

/* Laptop */

@media screen and (max-width: 1050px) {
    .ngo-hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-container {
        min-height: 580px;
        grid-template-columns: minmax(400px, 0.95fr) minmax(430px, 1.05fr);
        gap: 20px;
    }

    .hero-title {
        min-height: 125px;
        font-size: var(--title-size);
    }

    .hero-visual,
    .hero-dashboard-wrapper {
        min-height: 580px;
    }

    .hero-dashboard-image {
        min-height: 580px;
    }

    .hero-stat-card {
        padding: 12px 10px;
    }
}

/* Tablet */

@media screen and (max-width: 900px) {
    .ngo-hero {
        padding: 60px 0 70px;
    }

    .hero-container {
        width: min(100% - 32px, 760px);
        min-height: auto;

        grid-template-columns: 1fr;
        gap: 45px;

        text-align: center;
    }

    .hero-content {
        align-items: center;
        padding: 0;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        min-height: 125px;
    }

    .hero-title-line {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        min-height: 76px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        max-width: 650px;
    }

    .hero-stat-card {
        text-align: left;
    }

    .hero-visual {
        min-height: 530px;
        padding: 0;
    }

    .hero-dashboard-wrapper {
        min-height: 530px;
    }

    .hero-dashboard-image {
        width: 110%;
        height: 530px;
        min-height: 530px;
        margin-left: -5%;
    }

    .hero-floating-square {
        left: 4%;
    }
}

/* Mobile */

@media screen and (max-width: 600px) {
    .ngo-hero {
        padding: 45px 0 55px;
    }

    .hero-container {
        width: calc(100% - 28px);
        gap: 35px;
    }

    .hero-badge {
        max-width: 100%;
        padding: 7px 10px;
        font-size: 10px;
    }

    .hero-title {
        min-height: 95px;

        font-size: var(--title-size);
        line-height: 1.1;
        letter-spacing: -1.5px;
    }

    /*
    Mobile par screen chhoti hone ki wajah se wrapping allow hai.
    */

    .hero-title-line {
        width: 100%;
        max-width: 100%;
    }

    .hero-title-first,
    .hero-title-second {
        white-space: normal;
    }

    .hero-description {
        min-height: 105px;
        margin-top: 18px;

        font-size: 13px;
        line-height: 1.7;
    }

    .hero-buttons {
        width: 100%;
        gap: 10px;
        margin-top: 25px;
    }

    .hero-button {
        width: 100%;
        min-height: 48px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 10px;

        margin-top: 28px;
    }

    .hero-stat-card {
        min-height: 68px;
        padding: 13px 16px;
    }

    .hero-stat-card strong {
        font-size: 15px;
    }

    .hero-stat-card span {
        font-size: 10px;
    }

    .hero-visual {
        min-height: 430px;
        overflow: visible;
    }

    .hero-dashboard-wrapper {
        width: 100%;
        min-height: 430px;
    }

    .hero-dashboard-image {
        width: 120%;
        height: 430px;
        min-height: 430px;
        margin-left: -10%;

        object-fit: contain;
    }

    .hero-floating-square {
        display: none;
    }
}

/* Small mobile */

@media screen and (max-width: 420px) {
    .hero-title {
        min-height: 90px;
        font-size: var(--title-size);
    }

    .hero-description {
        min-height: 120px;
    }

    .hero-visual,
    .hero-dashboard-wrapper {
        min-height: 370px;
    }

    .hero-dashboard-image {
        width: 126%;
        height: 370px;
        min-height: 370px;
        margin-left: -13%;
    }
}

/* Very small mobile */

@media screen and (max-width: 360px) {
    .hero-title {
        font-size: var(--title-size);
    }

    .hero-visual,
    .hero-dashboard-wrapper {
        min-height: 330px;
    }

    .hero-dashboard-image {
        height: 330px;
        min-height: 330px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .hero-dashboard-wrapper,
    .hero-floating-square,
    .hero-animate,
    .typing-text.typing-active::after {
        animation: none !important;
    }

    .hero-animate {
        opacity: 1;
        transform: none;
    }
}