/* ==========================================================================
   PROFENAA TECHNOLOGIES
   FLAGSHIP MOUs & GALLERY PAGE
   FULL RESPONSIVE CSS
   Desktop → Laptop → Tablet → Mobile
   Clean White Background
   ========================================================================== */


/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */

:root {
    --pf-navy-900: #0e1330;
    --pf-navy-800: #161c42;
    --pf-navy-700: #212eae;

    --pf-blue: #212eae;
    --pf-blue-light: #eef1ff;

    --pf-amber-500: #f5a623;
    --pf-amber-600: #e0891a;

    --pf-cream-100: #fbf9f4;
    --pf-cream-200: #f1ede3;

    --pf-ink-900: #16182b;
    --pf-ink-600: #55597a;
    --pf-ink-500: #6b7280;

    --pf-white: #ffffff;
    --pf-border: #e5e7eb;

    --pf-font-display: 'Space Grotesk', 'Catamaran', sans-serif;
    --pf-font-body: 'Inter', sans-serif;

    --pf-radius-sm: 8px;
    --pf-radius-md: 16px;
    --pf-radius-lg: 28px;

    --pf-shadow-card:
        0 10px 30px -12px rgba(14, 19, 48, 0.18);

    --pf-shadow-card-hover:
        0 20px 45px -14px rgba(14, 19, 48, 0.25);

    --pf-container-max: 1180px;
    --pf-gutter: 24px;

    --pf-transition:
        280ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* ==========================================================================
   GLOBAL WHITE BACKGROUND
   ========================================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;

    background: #ffffff !important;

    overflow-x: hidden;
}

body {
    color: var(--pf-ink-900);
    font-family: var(--pf-font-body);
}

main {
    width: 100%;
    background: #ffffff !important;
}

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


/* ==========================================================================
   MEDIA SAFETY
   ========================================================================== */

img,
video,
canvas,
svg {
    max-width: 100%;
}

img {
    vertical-align: middle;
}


/* ==========================================================================
   PARTICLE FIELD
   ========================================================================== */

#particle-field {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    max-width: 100%;
    max-height: 100%;

    pointer-events: none;

    background: transparent !important;

    /*
       Set opacity to 0 for a completely clean white page.
       Change to .12 if you want very subtle particles.
    */
    opacity: 0 !important;

    z-index: -1;
}


/* ==========================================================================
   CURSOR GLOW
   ========================================================================== */

#cursor-glow {
    position: fixed;
    max-width: 100%;
    pointer-events: none;
}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--pf-container-max);

    margin-inline: auto;

    padding-left: var(--pf-gutter);
    padding-right: var(--pf-gutter);
}


/* ==========================================================================
   SECTIONS
   ========================================================================== */

section {
    position: relative;
    width: 100%;
}


/* ==========================================================================
   PAGE HERO
   ========================================================================== */

.page-hero {
    position: relative;

    min-height: 56vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #0e1330;
}


/* Hero Image */

.page-hero-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;

    opacity: 0.55;

    z-index: 0;
}


/* Hero Overlay */

.page-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(14, 19, 48, 0.50) 0%,
            rgba(14, 19, 48, 0.78) 60%,
            rgba(14, 19, 48, 0.95) 100%
        );

    z-index: 1;
}


/* Hero Content */

.page-hero-content {
    position: relative;

    z-index: 2;

    max-width: 760px;

    padding-top: 96px;
    padding-bottom: 72px;
}


/* ==========================================================================
   HERO BADGE
   ========================================================================== */

.badge {
    display: inline-flex;

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

    gap: 8px;

    padding: 6px 16px;

    border-radius: 999px;

    font-family: var(--pf-font-body);

    font-size: 0.8rem;

    font-weight: 600;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    margin-bottom: 20px;
}


.badge-amber {
    background: rgba(245, 166, 35, 0.14);

    color: var(--pf-amber-500);

    border: 1px solid rgba(245, 166, 35, 0.35);
}


/* ==========================================================================
   HERO TITLE
   ========================================================================== */

.page-hero h1 {
    margin: 0 0 20px;

    font-family: var(--pf-font-display);

    font-weight: 700;

    font-size: clamp(
        2.1rem,
        4.2vw,
        3.4rem
    );

    line-height: 1.12;

    color: #ffffff;
}


/* Gradient Text */

.text-grad-amber {
    background:
        linear-gradient(
            100deg,
            var(--pf-amber-500),
            #ffd27a 60%,
            var(--pf-amber-600)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* ==========================================================================
   HERO DESCRIPTION
   ========================================================================== */

.page-hero-sub {
    margin: 0;

    max-width: 56ch;

    font-family: var(--pf-font-body);

    font-size: clamp(
        1rem,
        1.6vw,
        1.15rem
    );

    line-height: 1.65;

    color: rgba(255, 255, 255, 0.82);
}


/* ==========================================================================
   MCU SECTION
   ========================================================================== */

.mcu-section {
    width: 100%;

    background: #ffffff !important;

    padding-top: 80px;
    padding-bottom: 80px;
}


/* ==========================================================================
   SECTION HEAD
   ========================================================================== */

.section-head {
    max-width: 640px;

    margin-bottom: 48px;

    text-align: left;
}


.eyebrow {
    margin: 0 0 10px;

    font-family: var(--pf-font-body);

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: var(--pf-amber-600);
}


.section-head h2 {
    margin: 0;

    font-family: var(--pf-font-display);

    font-weight: 600;

    font-size: clamp(
        1.6rem,
        3vw,
        2.3rem
    );

    line-height: 1.25;

    color: var(--pf-ink-900);
}


/* ==========================================================================
   MCU GRID
   ========================================================================== */

.mcu-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* ==========================================================================
   MCU CARD
   ========================================================================== */

.mcu-card {
    position: relative;

    min-width: 0;

    background: #ffffff !important;

    border: 1px solid var(--pf-border);

    border-radius: var(--pf-radius-md);

    padding:
        28px
        26px
        24px;

    box-shadow: var(--pf-shadow-card);

    transition:
        transform var(--pf-transition),
        box-shadow var(--pf-transition),
        border-color var(--pf-transition);

    will-change: transform;
}


/* Card Hover */

.mcu-card:hover {
    transform: translateY(-6px);

    background: #ffffff !important;

    border-color:
        rgba(245, 166, 35, 0.45);

    box-shadow:
        var(--pf-shadow-card-hover);
}


/* ==========================================================================
   MCU NUMBER
   ========================================================================== */

.mcu-num {
    display: inline-block;

    margin-bottom: 14px;

    padding: 4px 10px;

    border-radius: 999px;

    background:
        rgba(245, 166, 35, 0.12);

    color: var(--pf-amber-600);

    font-family: var(--pf-font-display);

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 0.08em;
}


/* ==========================================================================
   MCU TITLE
   ========================================================================== */

.mcu-card h3 {
    margin: 0 0 10px;

    font-family: var(--pf-font-display);

    font-size: 1.15rem;

    font-weight: 600;

    line-height: 1.35;

    color: var(--pf-ink-900);
}


/* ==========================================================================
   MCU DESCRIPTION
   ========================================================================== */

.mcu-card p {
    margin: 0 0 18px;

    font-family: var(--pf-font-body);

    font-size: 0.94rem;

    line-height: 1.6;

    color: var(--pf-ink-600);
}


/* ==========================================================================
   MCU META
   ========================================================================== */

.mcu-meta {
    display: block;

    width: 100%;

    padding-top: 14px;

    border-top:
        1px solid rgba(14, 19, 48, 0.08);

    font-family: var(--pf-font-body);

    font-size: 0.78rem;

    font-weight: 600;

    color: var(--pf-navy-800);
}


/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */

.gallery-section {
    width: 100%;

    background: #ffffff !important;

    padding-top: 80px;
    padding-bottom: 80px;
}


/* ==========================================================================
   GALLERY TITLE
   ========================================================================== */

.gallery-title {
    margin: 0 0 40px;

    text-align: center;

    font-family: var(--pf-font-display);

    font-size: clamp(
        1.8rem,
        3vw,
        2.4rem
    );

    font-weight: 700;

    line-height: 1.25;

    color: var(--pf-navy-700);
}


/* ==========================================================================
   GALLERY GRID
   ========================================================================== */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    grid-auto-rows: 220px;

    gap: 16px;

    width: 100%;

    background: #ffffff;
}


/* ==========================================================================
   GALLERY CARD
   ========================================================================== */

.gallery-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border-radius: var(--pf-radius-sm);

    background: #ffffff;

    border: 1px solid #eeeeee;
}


/* ==========================================================================
   GALLERY IMAGE
   ========================================================================== */

.gallery-card img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;

    transition:
        transform 500ms ease;
}


/* ==========================================================================
   GALLERY HOVER
   ========================================================================== */

.gallery-card:hover img {
    transform: scale(1.06);
}


/* ==========================================================================
   GALLERY OVERLAY
   ========================================================================== */

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    padding: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(14, 19, 48, 0) 45%,
            rgba(14, 19, 48, 0.75) 100%
        );

    opacity: 0;

    transition:
        opacity var(--pf-transition);

    font-family: var(--pf-font-body);

    font-size: 0.85rem;

    color: #ffffff;
}


.gallery-card:hover .gallery-overlay {
    opacity: 1;
}


/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.final-cta {
    width: 100%;

    background: #ffffff !important;

    padding-top: 80px;
    padding-bottom: 80px;
}


/* ==========================================================================
   CTA BAND
   ========================================================================== */

.cta-band {
    background:
        linear-gradient(
            135deg,
            #212eae 0%,
            #161c42 100%
        );

    border-radius: var(--pf-radius-lg);

    padding:
        64px
        48px;

    text-align: center;

    color: #ffffff;

    box-shadow:
        0 20px 50px rgba(14, 19, 48, 0.15);
}


/* ==========================================================================
   CTA TITLE
   ========================================================================== */

.cta-band h2 {
    margin: 0 0 16px;

    font-family: var(--pf-font-display);

    font-weight: 700;

    font-size: clamp(
        1.6rem,
        3vw,
        2.2rem
    );

    line-height: 1.25;

    color: #ffffff;
}


/* ==========================================================================
   CTA DESCRIPTION
   ========================================================================== */

.cta-band p {
    max-width: 52ch;

    margin:
        0 auto
        32px;

    font-family: var(--pf-font-body);

    line-height: 1.6;

    color:
        rgba(255, 255, 255, 0.80);
}


/* ==========================================================================
   CTA ACTIONS
   ========================================================================== */

.cta-actions {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    flex-wrap: wrap;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;

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

    min-height: 48px;

    padding:
        13px
        30px;

    border-radius: 999px;

    border: 1px solid transparent;

    font-family: var(--pf-font-body);

    font-size: 0.95rem;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform var(--pf-transition),
        background var(--pf-transition),
        color var(--pf-transition),
        border-color var(--pf-transition);
}


.btn:hover {
    transform: translateY(-2px);
}


/* Amber Button */

.btn-amber {
    background: var(--pf-amber-500);

    color: #ffffff;
}


.btn-amber:hover {
    background: var(--pf-amber-600);

    color: #ffffff;
}


/* Ghost Button */

.btn-ghost {
    background: transparent;

    color: #ffffff;

    border-color:
        rgba(255, 255, 255, 0.35);
}


.btn-ghost:hover {
    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(255, 255, 255, 0.65);

    color: #ffffff;
}


/* Full Width */

.btn-block {
    width: 100%;
}


/* ==========================================================================
   TABLET — 1024px
   ========================================================================== */

@media (max-width: 1024px) {

    :root {
        --pf-gutter: 22px;
    }


    /* MCU */

    .mcu-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }


    /* Gallery */

    .gallery-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        grid-auto-rows: 190px;

        gap: 14px;
    }


    /* Hero */

    .page-hero-content {
        padding-top: 80px;
        padding-bottom: 60px;
    }


    /* CTA */

    .cta-band {
        padding:
            52px
            36px;
    }
}


/* ==========================================================================
   TABLET / LARGE MOBILE — 768px
   ========================================================================== */

@media (max-width: 768px) {

    :root {
        --pf-gutter: 20px;
    }


    /* Hero */

    .page-hero {
        min-height: 46vh;
    }


    .page-hero-content {
        padding-top: 64px;
        padding-bottom: 48px;
    }


    .page-hero h1 {
        font-size:
            clamp(
                2rem,
                6vw,
                2.8rem
            );
    }


    /* Sections */

    .mcu-section,
    .gallery-section,
    .final-cta {
        padding-top: 56px;
        padding-bottom: 56px;
    }


    /* Section Head */

    .section-head {
        margin-bottom: 32px;
    }


    /* MCU */

    .mcu-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    /* Gallery */

    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-auto-rows: 170px;

        gap: 12px;
    }


    .gallery-grid
    .gallery-card:nth-child(1),
    .gallery-grid
    .gallery-card:nth-child(6) {

        grid-column: span 2;

        grid-row: span 1;
    }


    /* CTA */

    .cta-band {
        padding:
            40px
            24px;

        border-radius:
            var(--pf-radius-md);
    }


    .cta-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .cta-actions .btn {
        width: 100%;
    }
}


/* ==========================================================================
   MOBILE — 480px
   ========================================================================== */

@media (max-width: 480px) {

    :root {
        --pf-gutter: 16px;
    }


    /* Hero */

    .page-hero {
        min-height: 52vh;
    }


    .page-hero-content {
        padding-top: 54px;
        padding-bottom: 42px;
    }


    .badge {
        font-size: 0.72rem;

        padding:
            6px
            12px;
    }


    .page-hero h1 {
        font-size: 1.8rem;

        line-height: 1.15;
    }


    .page-hero-sub {
        font-size: 0.95rem;

        line-height: 1.6;
    }


    /* MCU */

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


    .mcu-card h3 {
        font-size: 1.08rem;
    }


    .mcu-card p {
        font-size: 0.9rem;
    }


    /* Gallery */

    .gallery-title {
        font-size: 1.8rem;

        margin-bottom: 28px;
    }


    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-auto-rows: 140px;

        gap: 10px;
    }


    /* CTA */

    .cta-band {
        padding:
            34px
            18px;
    }


    .cta-band h2 {
        font-size: 1.5rem;
    }


    .cta-band p {
        font-size: 0.9rem;
    }


    .btn {
        width: 100%;

        padding:
            12px
            20px;
    }
}


/* ==========================================================================
   VERY SMALL MOBILE — 360px
   ========================================================================== */

@media (max-width: 360px) {

    :root {
        --pf-gutter: 14px;
    }


    .page-hero h1 {
        font-size: 1.6rem;
    }


    .page-hero-sub {
        font-size: 0.9rem;
    }


    .gallery-grid {
        grid-auto-rows: 120px;
    }


    .mcu-card {
        padding:
            20px
            18px;
    }


    .cta-band {
        padding:
            30px
            16px;
    }
}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.tilt-card:focus-visible,
.btn:focus-visible,
.gallery-card:focus-visible {

    outline:
        3px solid
        var(--pf-amber-500);

    outline-offset: 3px;
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .mcu-card,
    .gallery-card img,
    .gallery-overlay,
    .btn {
        transition: none !important;
    }
}