@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=array@400&display=swap');

:root {
    --bg-color: #2F5180;
    --text-color: #DEE6F8;
    --accent-color: #CDD9F3;
    --btn-bg: #1A304F;
}

        body {
            margin: 0;
            padding: 0;
            background-color: var(--bg-color);
            font-family: 'Poppins', sans-serif;
            color: var(--text-color);
            overflow-x: hidden;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 60px;
            position: relative;
            width: 100%;
            box-sizing: border-box;
        }
        
        .logo-icon {
            display: flex;
            align-items: center;
        }
        .logo-icon svg {
            width: 32px;
            height: auto;
        }

        .logo-text {
            font-size: 28px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--text-color);
            text-decoration: none;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .menu-btn {
            background-color: #253956;
            color: #FFFFFF;
            border: none;
            padding: 12px 24px;
            display: flex;
            align-items: center;
            gap: 16px;
            font-family: 'Poppins', sans-serif;
            font-size: 20px;
            font-weight: 500;
            cursor: pointer;
            z-index: 1000;
            position: fixed;
            top: 30px;
            right: 60px;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
        }

        .menu-btn.btn-hidden {
            transform: translateY(-100px);
        }

        .menu-btn.btn-scrolled {
            background-color: rgba(26, 48, 79, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }

        .menu-icon {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 24px;
            height: 16px;
            position: relative;
        }

        .menu-icon .line {
            display: block;
            height: 2px;
            background-color: #DEE6F8;
            border-radius: 2px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .menu-icon .line-1 { width: 14px; align-self: flex-start; }
        .menu-icon .line-2 { width: 24px; }
        .menu-icon .line-3 { width: 14px; align-self: flex-end; }

        /* Menu Open State */
        .menu-btn.is-open .menu-icon .line-1 {
            transform: translateY(7px) rotate(45deg);
            width: 24px;
        }
        .menu-btn.is-open .menu-icon .line-2 {
            opacity: 0;
            transform: translateX(-10px);
        }
        .menu-btn.is-open .menu-icon .line-3 {
            transform: translateY(-7px) rotate(-45deg);
            width: 24px;
            align-self: flex-start;
        }

        /* Menu Overlay */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }

        .menu-overlay-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(14, 21, 31, 0.95);
            backdrop-filter: blur(10px);
            opacity: 0;
        }

        .menu-overlay-nav {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
        }

        .overlay-link {
            font-family: 'Poppins', sans-serif;
            font-size: 64px;
            font-weight: 600;
            color: #DEE6F8;
            text-decoration: none;
            opacity: 0;
            transform: translateY(50px);
            transition: color 0.3s;
        }

        .overlay-link:hover {
            color: #FFFFFF;
            text-shadow: 0 0 20px rgba(255,255,255,0.3);
        }

        .overlay-link.btn-start-overlay {
            background-color: #DEE6F8;
            color: #0E151F;
            padding: 10px 40px;
            border-radius: 60px;
            font-size: 56px;
        }
        .hero-container {
            flex: 1;
            position: relative;
            width: 100%;
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .images-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .image-wrapper {
            position: absolute;
            padding: 4px;
            border: 1px solid var(--text-color);
            background: transparent;
        }

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

        .corner {
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: var(--text-color);
        }
        .corner.tl { top: -5px; left: -5px; }
        .corner.tr { top: -5px; right: -5px; }
        .corner.bl { bottom: -5px; left: -5px; }
        .corner.br { bottom: -5px; right: -5px; }

        /* Left Image styling */
        .img-left {
            left: 12%;
            top: -10px;
            width: 176px;
            height: 88px;
        }

        /* Right Image styling */
        .img-right {
            right: 15%;
            top: 90px;
            width: 152px;
            height: 76px;
        }

        .text-layer {
            position: relative;
            max-width: 100%;
            width: 100%;
            margin-top: 240px;
            z-index: 10;
            padding-left: 10px;
        }

        .headline {
            font-size: 50px; 
            line-height: 1;
            font-weight: 400;
            margin: 0 0 35px 0;
            color: var(--text-color);
            text-align: left;
            letter-spacing: 0px;
        }

        .highlight {
            font-weight: 700;
            position: relative;
            display: inline-block;
            text-decoration: none;
        }

        .fincord-underline {
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 100%;
            height: auto;
            z-index: -1;
        }

        .actions {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
        }

        .actions:hover .btn-report,
        .actions:hover .btn-icon {
            background-color: var(--text-color);
            color: var(--btn-bg);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .actions:hover .btn-icon .arrow-main {
            transform: translate(24px, -24px) rotate(-45deg);
            stroke: var(--btn-bg);
        }
        .actions:hover .btn-icon .arrow-hover {
            transform: translate(0, 0) rotate(-45deg);
            stroke: var(--btn-bg);
        }

        .btn-report {
            background-color: var(--btn-bg);
            color: var(--text-color);
            font-family: 'Poppins', sans-serif;
            font-size: 20px;
            font-weight: 600;
            padding: 12px 32px;
            border-radius: 40px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }

        .char-wrap {
            display: inline-block;
            position: relative;
            overflow: hidden;
            line-height: 1.2;
            vertical-align: top;
        }

        .char {
            display: inline-block;
            transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
            transition-delay: calc(var(--i) * 0.02s);
            white-space: pre;
            transform: translateY(0);
        }

        .char::after {
            content: attr(data-char);
            position: absolute;
            left: 0;
            top: 100%;
        }

        .actions:hover .char {
            transform: translateY(-100%);
        }

        .btn-icon {
            background-color: var(--btn-bg);
            width: 52px;
            height: 52px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-icon svg {
            width: 24px;
            height: 24px;
            stroke: var(--text-color);
            stroke-width: 3;
            transition: stroke 0.3s ease, transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
            position: absolute;
        }
        .btn-icon .arrow-main {
            transform: translate(0, 0) rotate(-45deg);
        }
        .btn-icon .arrow-hover {
            transform: translate(-30px, 30px) rotate(-45deg);
            stroke: var(--btn-bg);
        }

        @media (max-width: 1024px) {
            .headline {
                font-size: 38px;
            }
            .img-left {
                width: 136px;
                height: 68px;
                top: 0px;
            }
            .img-right {
                width: 112px;
                height: 56px;
                top: 70px;
            }
            .text-layer {
                margin-top: 180px;
            }
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 20px;
            }
            .logo-text {
                font-size: 24px;
            }
            .logo-icon svg {
                width: 24px;
            }
            .hero-container {
                padding: 0 20px;
            }
            .headline {
                font-size: 28px;
            }
            .btn-report {
                font-size: 18px;
                padding: 12px 28px;
            }
            .btn-icon {
                width: 50px;
                height: 50px;
            }
            .images-layer {
                position: static;
                display: flex;
                flex-direction: column;
                gap: 20px;
                margin-top: 40px;
                height: auto;
            }
            .img-left, .img-right {
                position: relative;
                left: auto;
                right: auto;
                top: auto;
            }
            .text-layer {
                margin-top: 40px;
            }
        }
.bg-pattern-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.8; /* adjust if needed to make it look perfect */
}


/* ================================
   PENGENALAN SECTION
   ================================ */

.pengenalan-section {
    background-color: #1A304F;
    width: 100%;
    padding: 80px 60px 100px;
    position: relative;
    box-sizing: border-box;
}

/* Top Tags */
.pengenalan-tags {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.tag-item {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #DEE6F8;
    letter-spacing: 1px;
}

/* Description */
.pengenalan-intro {
    max-width: 780px;
    margin-bottom: 60px;
}

.pengenalan-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #DEE6F8;
    line-height: 1.8;
    opacity: 0.85;
}

/* Title Pills */
.pengenalan-title-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 80px;
}

.title-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #2F5180;
    border-radius: 24px;
    padding: 16px 32px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #DEE6F8;
    width: fit-content;
}

.pill-large {
    font-size: 18px;
}

.pill-small {
    font-size: 16px;
}

.pill-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-weight: 700;
    color: #1A304F;
    margin: 0;
    letter-spacing: 1px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-title {
    font-family: 'Array', sans-serif;
    font-size: 100px;
    color: #1A304F;
    margin: 0;
    line-height: 1;
    letter-spacing: 2px;
}

.footer-pills {
    display: flex;
    gap: 16px;
}

.footer-pill {
    background-color: #2F5180;
    color: #fff;
    padding: 10px 28px;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-right .fincord-logo-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.footer-logo-icon {
    width: 50px;
    height: auto;
}

.footer-logo-underline {
    margin-top: 8px;
    width: 130px;
}

/* Force FINCORD logo color in footer to #95989D */
.footer-right .fincord-logo-footer .footer-brand {
    color: #95989D !important;
}

.footer-right .fincord-logo-footer .footer-logo-icon,
.footer-right .fincord-logo-footer .footer-logo-underline {
    filter: brightness(0) invert(66%) sepia(8%) saturate(191%) hue-rotate(182deg) brightness(91%) contrast(85%) !important;
}

/* Footer responsive */
@media (max-width: 1100px) {
    .footer-container {
        flex-direction: column;
        gap: 60px;
        text-align: center;
    }
    .footer-title {
        font-size: 70px;
    }
}

@media (max-width: 768px) {
    .footer-section {
        padding: 80px 30px;
    }
    .footer-title {
        font-size: 48px;
    }
    .footer-pills {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-pill {
        font-size: 14px;
        padding: 8px 20px;
    }
    .footer-brand {
        font-size: 28px;
    }
}

/* ================================
   FLOW CHART (Pengenalan)
   ================================ */
.pengenalan-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
}

.flow-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.flow-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 120px;
    position: relative;
}

.flow-card {
    background: rgba(47, 81, 128, 0.4);
    border: 1px solid rgba(222, 230, 248, 0.15);
    border-radius: 16px;
    padding: 28px 32px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 480px;
    transition: all 0.3s ease;
}

.flow-card:hover {
    background: rgba(47, 81, 128, 0.65);
    border-color: rgba(222, 230, 248, 0.3);
    transform: translateY(-2px);
}

.flow-card-main {
    flex-direction: column;
    align-items: flex-start;
    background: rgba(47, 81, 128, 0.6);
    border-color: rgba(222, 230, 248, 0.25);
}

.flow-card-main h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #DEE6F8;
    margin: 0 0 8px 0;
}

.flow-card-main p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(222, 230, 248, 0.7);
    margin: 0;
    line-height: 1.5;
}

.flow-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.flow-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(222, 230, 248, 0.65);
    margin: 0;
    line-height: 1.4;
}

.flow-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(222, 230, 248, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-card-icon svg {
    width: 22px;
    height: 22px;
}

.flow-card-highlight {
    flex-direction: column;
    align-items: flex-start;
    background: rgba(47, 81, 128, 0.5);
    border-color: rgba(222, 230, 248, 0.2);
    max-width: 100%;
}

.flow-card-highlight h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #DEE6F8;
    margin: 0 0 12px 0;
}

.flow-card-highlight p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(222, 230, 248, 0.7);
    margin: 0;
    line-height: 1.6;
}

.flow-connector {
    position: relative;
}

.flow-connector-v {
    width: 3px;
    height: 40px;
    background: rgba(222, 230, 248, 0.35);
    margin-left: 40px;
}

.flow-connector-h {
    width: 40px;
    height: 3px;
    background: rgba(222, 230, 248, 0.35);
    align-self: center;
    flex-shrink: 0;
}

.flow-branch {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}
}

.flow-branch .flow-card {
    flex: 1;
}

/* ================================
   TEAM MEMBER SECTION
   ================================ */
.team-section {
    position: relative;
    width: 100%;
    background-color: var(--bg-color);
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
}

.team-grid-container {
    width: 100%;
    max-width: 1920px;
    position: relative;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(6, 150px);
    grid-template-rows: repeat(16, 150px);
    z-index: 1;
}

/* Grid lines via pseudo-element so it doesn't take a grid slot */
.team-grid-container::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.25) 1px, transparent 1px);
    background-size: 150px 150px;
    background-position: calc(50% + 75px) 0;
}

/* Header pill — centered on row 2 */
.team-header-pill {
    background-color: rgba(236, 241, 251, 0.2);
    color: #DEE6F8;
    padding: 20px 40px;
    border-radius: 40px;
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 3 / 5;
    grid-row: 2;
    align-self: center;
    justify-self: center;
    white-space: nowrap;
    z-index: 1;
}

/* Photo frames */
.member-photo-frame {
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Number badges */
.member-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.member-number img {
    max-width: 80%;
    max-height: 80%;
    display: block;
}

/* Info text blocks */
.member-info-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.member-info-block.left-align {
    align-items: flex-start;
    text-align: left;
}

.member-info-block.right-align {
    align-items: flex-end;
    text-align: right;
}

.member-name {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #DEE6F8;
    margin: 0 0 8px 0;
}

.member-role {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: rgba(222, 230, 248, 0.7);
    margin: 0;
}

/* ===== EXACT GRID PLACEMENTS ===== */
/* Member 1 — row 4 (left layout) */
.m1-num { grid-column: 1; grid-row: 4; }
.m1-pic { grid-column: 2; grid-row: 4; }
.m1-txt { grid-column: 3; grid-row: 4; }

/* Member 2 — row 6 (right layout) */
.m2-txt { grid-column: 4; grid-row: 6; }
.m2-pic { grid-column: 5; grid-row: 6; }
.m2-num { grid-column: 6; grid-row: 6; }

/* Member 3 — row 8 (left layout) */
.m3-num { grid-column: 1; grid-row: 8; }
.m3-pic { grid-column: 2; grid-row: 8; }
.m3-txt { grid-column: 3; grid-row: 8; }

/* Member 4 — row 10 (right layout) */
.m4-txt { grid-column: 4; grid-row: 10; }
.m4-pic { grid-column: 5; grid-row: 10; }
.m4-num { grid-column: 6; grid-row: 10; }

/* Member 5 — row 12 (left layout) */
.m5-num { grid-column: 1; grid-row: 12; }
.m5-pic { grid-column: 2; grid-row: 12; }
.m5-txt { grid-column: 3; grid-row: 12; }

/* Member 6 — row 14 (right layout) */
.m6-txt { grid-column: 4; grid-row: 14; }
.m6-pic { grid-column: 5; grid-row: 14; }
.m6-num { grid-column: 6; grid-row: 14; }

/* ================================
   FOOTER SECTION
   ================================ */
.footer-section {
    background-color: #E5E6E7;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.footer-dots-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, #95989D 3px, transparent 3px);
    background-size: 18.75px 18.75px;
    opacity: 0.15;
}

.footer-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1920px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 80px 80px;
    box-sizing: border-box;
    min-height: 600px;
}

.footer-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1A304F;
    margin: 0;
}

.fincord-logo-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-logo-icon {
    width: 48px;
    height: auto;
    margin-bottom: 8px;
}

.footer-logo-underline {
    width: 130px;
    height: auto;
    margin-top: 4px;
}

.footer-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 40px 0;
}

.footer-title {
    font-family: 'Array', sans-serif;
    font-size: clamp(60px, 10vw, 140px);
    font-weight: 400;
    color: #1A304F;
    margin: 0;
    line-height: 1;
    letter-spacing: 2px;
    text-align: center;
}

.footer-pills {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.footer-pill {
    border: 2px solid #2F5180;
    background: transparent;
    color: #2F5180;
    padding: 12px 32px;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ================================
   RESPONSIVE — TEAM & FOOTER
   ================================ */
@media (max-width: 1024px) {
    /* Horizontal scroll for Team Section */
    .team-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px; /* space for scrollbar */
        justify-content: flex-start;
    }

    .team-grid-container {
        /* Force minimum width to maintain the perfect 6x150px layout */
        min-width: 900px;
        margin: 0 auto;
    }

    .footer-container {
        padding: 40px 30px 60px;
        min-height: auto;
    }

    .footer-title {
        font-size: 64px;
    }

    .footer-pills {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .pengenalan-section {
        padding: 60px 20px;
    }
    .pengenalan-tags {
        flex-direction: column;
        gap: 10px;
    }
    .pengenalan-intro {
        margin-bottom: 40px;
    }
    .title-pill {
        flex-direction: column;
        text-align: center;
        padding: 12px 20px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
    }
    
    .overlay-link {
        font-size: 40px;
    }
    .overlay-link.btn-start-overlay {
        font-size: 32px;
        padding: 10px 30px;
    }
}
