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

:root {
    --white: #ffffff;
    --off-white: #f9f8f5;
    --dark: #1a1a18;
    --mid: #4a4a45;
    --accent: #3d8b7a;
    --accent-light: #e8f4f1;
    --shadow-color: rgba(61, 139, 122, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    font-family: "Baloo 2", sans-serif;
    background: #fff;
    color: #333;
}

#site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
}

.navbar {
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
    z-index: 9999;
    border: none !important;
    box-shadow: none !important;
}


.navbar-brand img {
    height: 30px;
    width: auto;
    display: block;
}

header {
    display: block;
    padding: 0;
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border: 2.5px solid var(--accent);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::after {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--accent);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.logo-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 4px;
    color: var(--dark);
}

.cards-section {
    width: 100%;
    overflow: hidden;
    padding: 45px 0 75px;
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 280px;
}

.cards-track {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    max-width: 760px;
    width: 100%;
    padding: 0 20px;
    gap: 40px;
}

.card {
    flex: 0 0 120px;
    /* distribute evenly */
    max-width: 88.7px;
    height: 122px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;

    opacity: 0;
    transform: none;

    perspective: 1200px;
    cursor: pointer;
    will-change: transform, filter;
    transition: transform 0.35s cubic-bezier(.23, 1, .32, 1),
        filter 0.3s ease;
}

.card:hover {
    transform: translateY(-18px);
    z-index: 20;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;

    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.23, 1, .32, 1);

    border-radius: 14px;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    border-radius: 10px;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-back {
    transform: rotateY(180deg);

    background: linear-gradient(145deg, #0f172a, #1e293b);

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

    gap: 6px;
}

.card-back span:first-child {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #60a5fa;
}

.card-back span:last-child {
    font-size: 12px;
    color: #fff;

    background: rgba(255, 255, 255, .08);
    padding: 3px 10px;
    border-radius: 30px;
}

.card:hover {
    transform: translateY(-18px);
    z-index: 20;
}

.card:hover {
    transform: translateY(-18px);
    z-index: 20;
}

.card:nth-child(1) {
    transform: rotate(-22deg);
    margin-bottom: -6px !important;
}

.card:nth-child(2) {
    transform: rotate(-14deg);
    margin-bottom: 30px;
}

.card:nth-child(3) {
    transform: rotate(-7deg);
    margin-bottom: 48px;
}

.card:nth-child(4) {
    transform: rotate(0deg);
    margin-bottom: 58px;
}

.card:nth-child(5) {
    transform: rotate(7deg);
    margin-bottom: 48px;
}

.card:nth-child(6) {
    transform: rotate(14deg);
    margin-bottom: 30px;
}

.card:nth-child(7) {
    transform: rotate(22deg);
    margin-bottom: -6px !important;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* .card:nth-child(1) {
    background: linear-gradient(135deg, #2d5a3d, #1a3a2a);
}

.card:nth-child(2) {
    background: linear-gradient(135deg, #3a6080, #1e3f5a);
}

.card:nth-child(3) {
    background: linear-gradient(135deg, #6b7f6b, #3d4d3d);
}

.card:nth-child(4) {
    background: linear-gradient(135deg, #8a7050, #5a4530);
}

.card:nth-child(5) {
    background: linear-gradient(135deg, #2e6b4e, #1a3d2e);
}

.card:nth-child(6) {
    background: linear-gradient(135deg, #1a3a6b, #0d1f3d);
}

.card:nth-child(7) {
    background: linear-gradient(135deg, #6b2a3a, #3d1520);
} */

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.card:hover {
    z-index: 10;
}

/* ── CONTENT ── */
.approach-section {
    max-width: 620px;
    margin: 0 auto;
    padding: 20px 40px 80px;
    text-align: center;
}

.section-block {
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(28px);
}

.section-block h2 {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 4vw, 28px);
    color: var(--dark);
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.section-block p {
    font-size: 15.5px;
    line-height: 1.78;
    color: var(--mid);
    font-weight: 300;
    margin-bottom: 14px;
}

.career-para p a {
    color: #1a1a18;
    transition: all 0.3s ease;
}

.career-para p a:hover {
    color: #2dba7e;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.4;
}

.footer-bar {
    background: #2dba7e;
    width: 100%;
    padding: 14px 30px;
    text-align: center;
    margin-top: auto;
}

.footer-bar p {
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.5px;
    margin: 0;
    font-weight: 500;
}

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

    .top-navbar {
        padding: 12px 0;
    }

    .navbar-logo img {
        height: 26px;
    }

    .cards-section {
        padding: 50px 0 70px;
        min-height: 220px;
        background: linear-gradient(180deg, #f9f8f5 0%, #ffffff 100%);
    }

    .cards-track {
        gap: 18px;
        max-width: 100%;
        padding: 0 24px;
        align-items: flex-end;
    }

    .card {
        width: 76px;
        height: 104px;
        border-radius: 12px;
        opacity: 1;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
        transition: transform 0.35s cubic-bezier(.23, 1, .32, 1),
            box-shadow 0.35s ease;
    }

    /* Restore arc rotations — tablet-sized */
    .card:nth-child(1) {
        transform: rotate(-16deg) !important;
        margin-bottom: 0px !important;
    }

    .card:nth-child(2) {
        transform: rotate(-10deg) !important;
        margin-bottom: 22px !important;
    }

    .card:nth-child(3) {
        transform: rotate(-5deg) !important;
        margin-bottom: 36px !important;
    }

    .card:nth-child(4) {
        transform: rotate(0deg) !important;
        margin-bottom: 42px !important;
    }

    .card:nth-child(5) {
        transform: rotate(5deg) !important;
        margin-bottom: 36px !important;
    }

    .card:nth-child(6) {
        transform: rotate(10deg) !important;
        margin-bottom: 22px !important;
    }

    .card:nth-child(7) {
        transform: rotate(16deg) !important;
        margin-bottom: 0px !important;
    }

    .card:hover {
        transform: translateY(-14px) !important;
        box-shadow: 0 18px 40px var(--shadow-color), 0 6px 16px rgba(0, 0, 0, 0.16) !important;
    }

    .card-back span:first-child {
        font-size: 9px;
    }

    .card-back span:last-child {
        font-size: 11px;
    }
}

/* ─── MOBILE (≤ 576px) ───────────────────────────────────────────── */
@media (max-width: 576px) {

    .top-navbar {
        padding: 10px 0;
        z-index: 100;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    }

    .top-navbar .container {
        padding: 0 16px;
    }

    .navbar-logo img {
        height: 22px;
    }

    /* ── Cards section ── */
    .cards-section {
        overflow-x: auto;
        overflow-y: hidden;
        padding-left: 15px;
        padding-right: 15px;
    }

    .cards-track {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .cards-section {
        padding: 32px 0 52px;
        min-height: 170px;
        background: linear-gradient(180deg, #f4f7f6 0%, #ffffff 100%);
    }

    .cards-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        align-items: flex-end;

        /* keeps space at both scroll ends */
        padding-left: 15px;
        padding-right: 15px;

        /* prevents shrinking issues */
        width: max-content;
    }

    .card {
        flex: 0 0 auto;
        width: 46px;
        height: 64px;
        border-radius: 9px;
        opacity: 1;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
        transition: transform 0.3s cubic-bezier(.23, 1, .32, 1),
            box-shadow 0.3s ease;
    }

    /* Arc rotations — mobile */
    .card:nth-child(1) {
        transform: rotate(-14deg) !important;
        margin-bottom: 0px !important;
    }

    .card:nth-child(2) {
        transform: rotate(-8deg) !important;
        margin-bottom: 12px !important;
    }

    .card:nth-child(3) {
        transform: rotate(-4deg) !important;
        margin-bottom: 20px !important;
    }

    .card:nth-child(4) {
        transform: rotate(0deg) !important;
        margin-bottom: 24px !important;
    }

    .card:nth-child(5) {
        transform: rotate(4deg) !important;
        margin-bottom: 20px !important;
    }

    .card:nth-child(6) {
        transform: rotate(8deg) !important;
        margin-bottom: 12px !important;
    }

    .card:nth-child(7) {
        transform: rotate(14deg) !important;
        margin-bottom: 0px !important;
    }

    .card:hover {
        transform: translateY(-10px) !important;
        box-shadow: 0 14px 32px var(--shadow-color), 0 4px 10px rgba(0, 0, 0, 0.14) !important;
    }

    /* Flip back panel — compact */
    .card-back {
        gap: 4px;
    }

    .card-back span:first-child {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .card-back span:last-child {
        font-size: 8px;
        padding: 2px 7px;
    }

    /* ── Footer ── */
    .footer-bar {
        padding: 12px 16px;
        text-align: center;
    }

    .footer-bar p {
        font-size: 10.5px;
    }
}