/* =================================================================== */
/* 1. GLOBAL STYLES & VARIABLES                                      */
/* =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --color-1: #2a2f31; /*dark grey*/
    --color-2: #f4f6f8; /*cool off-white*/
    --color-3: #0000ff;
    --text-black: #000000;
    --text-color: #ffffff; /*white*/
    --accent-color: #7f3a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    overscroll-behavior: none; /* Prevents "pull-down" scroll bounce */
    width: 100%;
    max-width: 100%;
}

body {
    overscroll-behavior: none;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}


/* =================================================================== */
/* 2. HEADER & NAVIGATION (Desktop First)                            */
/* =================================================================== */

.mobile-menu-button {
    display: none !important; /* Always hide sidebar button */
}

.header-main {
    display: flex;
    position: relative;
    top: 0;
    width: 100%;
    height: 4rem;
    padding: 0 2rem; /* Reduced to standard desktop padding */
    background-color: var(--color-2);
    z-index: 100;
}

.header-main nav {
    display: flex; /* Shown by default */
    align-items: center;
    width: 100%;

    @media (max-width: 991px) {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        background-color: transparent !important;
        overflow: visible !important;
        transform: none !important;
        transition: none !important;
    }
}

.header-main .logo {
    height: 1.45rem;
    align-self: center;
    cursor: pointer;
}

.header-main .logo img {
    height: 100%;
}

.header-main ul {
    display: flex;
    height: 100%;
    padding-left: 3rem;
    list-style: none;
    align-self: center;
    flex-grow: 1;
}

.header-main ul .push-to-right {
    margin-left: auto;
}


/* Main menu Item (LI) and Link (A) Styling */

.header-main ul li {
    position: relative; /* Anchor for dropdown */
    transition: background-color 300ms ease-in-out;
}

.header-main ul li a,
.header-main ul li span {
    display: block;
    padding: 0 0.75rem;
    height: 100%;
    line-height: 4rem;
    font-size: 1rem; /* Body Large (16px) */
    color: var(--text-black);
    text-decoration: none;
    white-space: nowrap;
}

.header-main ul li a {
    cursor: pointer;
    transition: color 100ms ease-in-out;
}

.header-main ul li span {
    cursor: default;
}

/* Hover effect on the LI */

.header-main ul li:hover > a {
    color: var(--color-3);
}


/* =================================================================== */
/*  FULLSCREEN MOBILE MENU (Used by JS)                            */
/* =================================================================== */
/* This section styles the menu *after* the hamburger button is clicked open */

.header-main.is-open {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0;
    background-color: var(--color-1);
    overflow-y: auto;
}

.is-open nav {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
}

.is-open ul {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding-left: 0;
}

.is-open ul li {
    width: 100%;
    border-top: 1px solid var(--color-2);
}

.is-open ul li:last-of-type {
    border-bottom: 1px solid var(--color-2);
}

.is-open ul li:hover {
    background-color: transparent;
}

.is-open ul li a {
    height: auto;
    line-height: normal;
    font-size: 1.375rem; /* Title Large (22px) */
    padding: 1rem 0; color: var(--text-color);
}

.is-open ul li a:hover {
    background-color: transparent !important;
}

/* Dropdown (sub-menu) on mobile */
.is-open ul li ul {
    background-color: #7f3a1a;
    display: flex;
    position: static;
    box-shadow: none;
    border-top: 1px solid var(--color-2);
    background-color: transparent;
    padding: 0;
    width: 100%;
    height: auto;
}

.is-open ul li.submenu-open > ul {
    display: flex;
    flex-direction: column;
}

.is-open ul li ul li a {
    background-color: var(--color-2);
    font-size: 1rem; /* Body Large (16px) */
    padding: 0.75rem 1rem;
}

/* Additional styles from the media query section for mobile menu */
@media (max-width: 991px) {
    /* Create the dark overlay when the menu is open */
    .header-main.is-open::before {
        content: '';
        position: fixed;
        inset: 0; /* shorthand for top, bottom, left, right = 0 */
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 150; /* Below the nav panel, above the page content */
    }

    /* Slides the nav panel into view when menu is open */
    .header-main.is-open nav {
        transform: translateX(0);
    }

    /* Styling for links inside the mobile menu */
    .header-main.is-open ul {
        width: 100%;
        flex-direction: column;
        align-items: center;
        height: auto;
        padding-left: 0;
    }

    .header-main.is-open ul li {
        width: 100%;
        border-top: 1px solid var(--color-2);
    }

    .header-main.is-open ul li:last-of-type {
        border-bottom: 1px solid var(--color-2);
    }

    .header-main.is-open ul li:hover {
        background-color: transparent;
    }

    .header-main.is-open ul li ul{
        visibility: visible;
        opacity: 1;
    }

    .header-main.is-open ul li a,
    .header-main.is-open ul li span {
        height: auto;
        line-height: normal;
        font-size: 1.375rem; /* Title Large (22px) */
        padding: 1rem;
        color: var(--color-1);
    }

    .header-main.is-open ul li a:hover {
        background-color: transparent !important;
    }
    
    /* This styles the TOP-LEVEL links */
    .header-main.is-open nav > ul > li > a,
    .header-main.is-open nav > ul > li > span {
        color: var(--text-black); /* Text should be dark on the beige background */
        font-size: 1rem; /* Body Large (16px) */
        font-weight: 600;
        padding: 1.25rem 1.5rem;
        display: block;
    }
    
    /* This resets the submenu container to prevent overflow */
    .header-main.is-open nav ul li ul {
        position: static !important;  /* CRITICAL: Stops all overflow issues */
        transform: none !important;     /* CRITICAL: Resets any desktop transforms */
        width: 100%;
        height: auto;
        display: none; /* Keep hidden until parent is open */
        box-shadow: none;
        padding: 0;
    }

    /* This shows the submenu when needed */
    .header-main.is-open nav li.submenu-open > ul {
        display: block;
    }

    /* This styles the SUBMENU ITEMS definitively */
    .header-main.is-open nav ul li ul li {
        background-color: #e0e0e0; /* A slightly darker background for nesting */
        border-top: 1px solid #d0d0d0;
    }

    /* This styles the SUBMENU LINKS with indentation and black text */
    .header-main.is-open nav ul li ul li a {
        color: var(--text-black) !important; /* CRITICAL: Force black text */
        background-color: transparent !important;
        font-size: 1rem;
        padding: 0.8rem 1.5rem 0.8rem 3rem; /* Indentation */
    }

    /* And finally, the hover for the SUBMENU links */
    .header-main.is-open nav ul li ul li a:hover {
        color: var(--color-3) !important; /* Blue text */
    }
}


/* =================================================================== */
/* 3. DROPDOWN MENU                                                  */
/* =================================================================== */

.header-main ul li ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 100vw;
    height: 35vh;
    z-index: 1000;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(auto-fill, 2.25rem);
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow-x: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 150ms ease-in-out, visibility 150ms ease-in-out;
}

.header-main ul li:hover > ul {
    visibility: visible;
    opacity: 1;
}

.header-main ul li ul li {
    width: 250px;
    border: none;
    background: none !important; /* Override parent hover */
}

.header-main ul li ul li a {
    height: auto;
    line-height: normal;
    text-align: left;
    white-space: nowrap;
    font-size: 0.875rem; /* Body Medium / Subtext (14px) */
    color: var(--color-1);
    background-color: transparent;
    padding: 0.5rem 1rem;
    color: var(--text-black); /* Set default text color to black */
    transition: color 150ms ease-in-out; /* Smooth color change on hover */
}
/* =================================================================== */
/* 4. HERO SECTION                                                   */
/* =================================================================== */

.tabbed-hero-section {
    padding-top: 1rem;
    background-color: var(--text-color);
    color: var(--text-black);
}

.hero-tabs {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 2rem; /* Reduced to standard desktop padding */

    @media (max-width: 767px) {
        padding: 0 1rem;
    }
}

.hero-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem; /* Label Large (14px) */
    font-weight: 600;
    color: var(--color-1);
    padding: 1rem 1.5rem;
    position: relative;
    border-bottom: 3px solid transparent;
    transition: color 150ms ease-in-out;
}
.hero-tab:hover {
    color: var(--color-3);
}

.hero-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.hero-panel {
    display: none;
}

.hero-panel.active {
    display: block;
}

/* Desktop & Tablet Default: 2 Columns */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
    max-width: 1200px; /* Standardized container width */
    margin: 0 auto;
    padding: 5vh 2rem;

    @media (max-width: 767px) {
        flex-direction: column; /* Stack to 1 column */
        text-align: center;
        padding: 4rem 2rem;
    }
}

.hero-content {
    flex-basis: 50%;
    max-width: 50%;
    padding-right: 2rem;

    @media (max-width: 767px) {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 3rem;
    }
}

.hero-content h1 {
    font-size: 2.25rem; /* Headline Large (36px) */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-1);

    @media (max-width: 767px) {
        font-size: 1.75rem;
    }
}

.hero-content h1.ditch {
    font-size: 3.5rem; /* Display Large (56px) */
    margin-bottom: 0.1rem;
    line-height: 1;
    color: var(--accent-color);

    @media (max-width: 767px) {
        font-size: 2.75rem;
    }
}

.hero-content h2 {
    font-size: 1.375rem; /* Title Large (22px) */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--color-1);

    @media (max-width: 767px) {
        font-size: 1.125rem;
    }
}

.hero-content p {
    font-size: 1rem; /* Body Large (16px) */
    line-height: 1.65;
    margin-bottom: 2.25rem;
    max-width: 650px;
}

.hero-sub-para {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 1rem; /* Label Large (16px emphasized) */
    font-weight: 600;
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border-radius: 5px;
    transition: transform 150ms ease-in-out;
}

.cta-button:hover {
    transform: scale(1.05);
}

.hero-image {
    flex-basis: 45%;
    max-width: 45%;

    @media (max-width: 767px) {
        max-width: 80%;
        flex-basis: auto;
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.file-upload-area {
    flex-basis: 45%;
    border: 2px dashed #cccccc;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: border-color 150ms ease-in-out;
    background-color:var(--text-color);

    @media (max-width: 767px) {
        max-width: 80%;
        flex-basis: auto;
    }
}

.file-upload-area:hover, .file-upload-area.drag-over {
    border-color: var(--color-3);
    background-color: #f7f7ff;
}

.file-upload-area input[
    type="file"] { display: none;
    }

.file-upload-area label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}


/* =================================================================== */
/* 5. CARDS GRID SECTION                                             */
/* =================================================================== */
.cards-section {
    padding: 3rem 2rem; /* Standardized outer side margins */
    background: linear-gradient(135deg, var(--color-2) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;

    @media (max-width: 767px) {
        padding: 2rem 1rem;
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
    max-width: 1200px; /* Standardized grid width */
    margin: 0 auto; /* Center alignment */

    @media (max-width: 1023px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 767px) {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #ffffff;
    border: 1px solid rgba(42, 47, 49, 0.08);
    box-shadow: 0 8px 32px 0 rgba(42, 47, 49, 0.04);
    color: var(--color-1);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    @media (max-width: 767px) {
        padding: 1.75rem 1.25rem;
    }
}

.card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-color: rgba(42, 47, 49, 0.15);
    box-shadow: 0 12px 40px 0 rgba(127, 58, 26, 0.12); /* Soft glow using accent color */
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card .material-icons {
    color: var(--accent-color);
    font-size: 3.5rem;
    text-shadow: 0 0 15px rgba(127, 58, 26, 0.2);
    transition: transform 0.3s ease;
}

.card:hover .material-icons {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-1);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #5c6265; /* softer dark grey */
    flex-grow: 1;
}

.card-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-1);
    text-decoration: none;
    border-bottom: 1px solid rgba(42, 47, 49, 0.2);
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* =================================================================== */
/* 8. WHY CHOOSE US SECTION                                          */
/* =================================================================== */

.why-choose-us {
    padding: 5rem 2rem;
    background-color: #ffffff; /* White background, as in the image */
    color: var(--text-black);
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensures background elements don't overflow */
    
    @media (max-width: 767px) {
        padding: 4rem 1rem;
    }
}

.why-choose-us .container {
    max-width: 1200px; /* Standardized container width */
    margin: 0 auto;
    position: relative; /* Ensures content is above background elements */
    z-index: 2;
}

.why-choose-us .section-header h2 {
    font-size: 2rem; /* Headline Large (32px) */
    font-weight: 700;
    margin-bottom: 0.5rem;

    @media (max-width: 767px) {
        font-size: 1.625rem;
    }
}

.why-choose-us .section-header h2 span {
    color: var(--accent-color); /* This makes "Us" red/accent colored */
}

.why-choose-us .section-header p,
.why-choose-us .intro-text {
    font-size: 1rem; /* Body Large (16px) */
    color: #6c757d;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-choose-us .intro-text {
    margin-bottom: 3rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: left;

    @media (max-width: 991px) {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 3rem; /* Increase gap for vertical stacking */
    }
}

.feature-item {
    position: relative;
    padding: 0 1rem;

    @media (max-width: 991px) {
        text-align: center; /* Center content when stacked */
    }
}

/* Creates the vertical separator line */
.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1rem; /* Positions the line in the middle of the gap */
    height: 75%;
    width: 1px;
    background-color: #e0e0e0;

    @media (max-width: 991px) {
        display: none;
    }
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    
    @media (max-width: 991px) {
        margin-left: auto;
        margin-right: auto;
    }
}

.feature-icon .material-icons{
    font-size: 4rem;
    color: #a54c2a;
}

.feature-number {
    display: block;
    font-size: 0.875rem; /* Label Large (14px) */
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.feature-item h3 {
    font-size: 1.25rem; /* Title Medium (20px) */
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 0.875rem; /* Body Medium (14px) */
    line-height: 1.6;
    color: #495057;
}

.section-footer p {
    font-size: 1.125rem; /* Body Large (18px) */
    font-weight: 500;
    color: var(--accent-color);
}

/* =================================================================== */
/* 8b. PARTNER PORTAL SECTION                                         */
/* =================================================================== */

.partner-portal-section {
    padding: 5rem 2rem;
    background-color: var(--color-2); /* Cool off-white page background */
    color: var(--text-black); /* Dark text */
    position: relative;
    overflow: hidden;

    @media (max-width: 767px) {
        padding: 4rem 1rem;
    }
}

.partner-portal-section .container {
    max-width: 1200px; /* Standardized container width */
    margin: 0 auto;
}

.partner-portal-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.partner-portal-section .section-header h2 {
    font-size: 2rem; /* Headline Large (32px) */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-black);

    @media (max-width: 767px) {
        font-size: 1.625rem;
    }
}

.partner-portal-section .section-header h2 span {
    color: var(--accent-color);
}

.partner-portal-section .section-header p {
    font-size: 1rem; /* Body Large (16px) */
    color: #4a5568; /* Darker gray for contrast */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Interactive Tabs Navigation */
.portal-interactive-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.portal-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Darker border line */
    padding-bottom: 1.5rem;
}

.portal-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.03); /* Light background for tabs */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: #4a5568; /* Dark text for tabs */
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem; /* Label Large (14px) */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portal-tab-btn i {
    font-size: 1.2rem;
}

.portal-tab-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-black);
    border-color: rgba(0, 0, 0, 0.2);
}

.portal-tab-btn.active {
    background: var(--accent-color);
    color: var(--text-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(127, 58, 26, 0.3);
}

@media (max-width: 767px) {
    .portal-tabs {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch; /* Smooth touch momentum scrolling on iOS */
        scrollbar-width: none; /* Hide scrollbar in Firefox */
    }
    
    .portal-tabs::-webkit-scrollbar {
        display: none; /* Hide scrollbar in Chrome, Safari, and Opera */
    }
    
    .portal-tab-btn {
        flex-shrink: 0; /* Prevent the buttons from compressing/shrinking */
    }
}

/* Panels */
.portal-panels {
    position: relative;
    min-height: 450px;
}

.portal-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;

    @media (max-width: 991px) {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.portal-panel.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

/* Content Panel Styles */
.portal-panel-content h3 {
    font-size: 1.75rem; /* Headline Medium (28px) */
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.portal-panel-content p {
    font-size: 1rem; /* Body Large (16px) */
    line-height: 1.7;
    color: #4a5568; /* Darker text for contrast */
    margin-bottom: 2rem;
}

.portal-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem; /* Body Medium (14px) */
    color: #2d3748; /* Dark text for contrast */
}

.portal-feature-list li i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* Visual Panel Mockups */
.portal-panel-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone Mockup Frame */
.phone-mockup-wrapper {
    width: 220px; /* Slimmer width as per screenshot */
    aspect-ratio: 9 / 19.5; /* Modern tall aspect ratio to fit the screenshot/video perfectly without side gaps */
    max-width: 100%;
    border: 10px solid #1a1e20; /* Slightly thinner bezel for smaller scale */
    border-radius: 18px; /* Reduced border radius */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background-color: #000;
    position: relative;
    
    @media (max-width: 480px) {
        width: 180px;
        border-width: 8px;
        border-radius: 14px; /* Reduced mobile border radius */
    }
}

.phone-mockup-wrapper img.video-still {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.phone-mockup-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
}

.phone-mockup-wrapper video.is-playing {
    opacity: 1;
}


/* Phone Image Slider Styles */
.phone-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.phone-slider-track {
    display: flex;
    width: 600%; /* 6 images */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Premium smooth ease-out */
}

.phone-slider-track img {
    width: 16.6666%; /* 100% / 6 */
    height: 100%;
    object-fit: cover;
}

.portal-mockup-window {
    width: 100%;
    max-width: 550px;
    background: #1a1e20;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.mockup-header {
    background: #252a2d;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-header .dot.red { background: #ff5f56; }
.mockup-header .dot.yellow { background: #ffbd2e; }
.mockup-header .dot.green { background: #27c93f; }

.mockup-header .mockup-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

.mockup-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mockup-body.centered {
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
}

/* Form Mockup Elements */
.mockup-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mockup-field label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #718096;
    font-weight: 600;
}

.mockup-input {
    background: #252a2d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.mockup-input.select::after {
    content: "▼";
    margin-left: auto;
    font-size: 0.7rem;
    color: #718096;
}

.mockup-input.highlighted {
    border-color: var(--accent-color);
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.mockup-input .badge {
    background: rgba(127, 58, 26, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.mockup-action-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-color);
    padding: 1rem;
    border-radius: 4px;
}

.mockup-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.mockup-card-title i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.mockup-action-card p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #a0aec0;
    margin-bottom: 0;
}

/* Ledger Mockup Elements */
.mockup-ledger-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}

.mockup-ledger-row.header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #718096;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mockup-ledger-row span:not(:first-child) {
    text-align: right;
}

.mockup-ledger-row .credit { color: #48bb78; }
.mockup-ledger-row .debit { color: #f56565; }
.mockup-ledger-row .balance { color: #e2e8f0; font-weight: 500; }

/* Queue Mockup Elements */
.mockup-queue-card {
    background: #252a2d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #718096;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-queue-card.urgent { border-left-color: #f6ad55; }
.mockup-queue-card.blocked { border-left-color: #fc8181; }

.queue-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #718096;
}

.queue-card-body strong {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.queue-card-body p {
    font-size: 0.8rem;
    color: #718096;
    margin: 0;
}

.mockup-queue-card .badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.mockup-queue-card .badge.urgent { background: rgba(246, 173, 85, 0.15); color: #f6ad55; }
.mockup-queue-card .badge.normal { background: rgba(255, 255, 255, 0.05); color: #a0aec0; }
.mockup-queue-card .badge.blocked { background: rgba(252, 129, 129, 0.15); color: #fc8181; }

/* Dispatch & Bag Rows */
.mockup-address-card {
    background: #252a2d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.mockup-address-card strong {
    font-size: 0.9rem;
    color: #e2e8f0;
    display: block;
    margin-bottom: 0.25rem;
}

.mockup-address-card p {
    font-size: 0.75rem;
    color: #718096;
    margin: 0;
}

.mockup-bag-row {
    background: #252a2d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.mockup-bag-row .select-icon {
    font-size: 1.1rem;
    color: var(--accent-color);
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Sync Outbox Elements */
.sync-status-indicator i.sync-icon {
    font-size: 3rem;
    color: #f6ad55;
    margin-bottom: 1rem;
}

.sync-status-indicator h4 {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.sync-status-indicator p {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.sync-outbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 250px;
    text-align: left;
}

.sync-outbox-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-outbox-item i {
    font-size: 0.95rem;
    color: #718096;
}

/* =================================================================== */
/* 9. CAPABILITIES SECTION                                           */
/* =================================================================== */

.capabilities-section {
    padding: 5rem 2rem;
    background-color: #f8f9fa; /* Light grey background */

    @media (max-width: 767px) {
        padding: 4rem 1rem;
    }
}

.capabilities-section .container {
    max-width: 1200px; /* Standardized container width */
    margin: 0 auto;
}

.capabilities-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.capabilities-section .section-header h2 {
    font-size: 2rem; /* Headline Large (32px) */
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 1rem;
}

.capabilities-section .section-header p {
    font-size: 1rem; /* Body Large (16px) */
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.capabilities-grid {
    /* padding: 0 6rem; */
    display: grid;
    /* Create 4 columns on desktop, adjusting as the screen shrinks */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.capability-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden; /* Important for keeping the image inside the rounded corners */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Hover Effects --- */
.capability-card:hover {
    cursor: pointer; /* 3. Pointer finger on hover */
    transform: translateY(-5px); /* Subtle lift effect */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* 2. Shadow effect on hover */
}

.card-image-wrapper {
    overflow: hidden; /* This is crucial for the zoom effect */
}

.capability-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* 1. Zoom the image on hover */
.capability-card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem; /* Title Medium (20px) */
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 0.75rem;
}

.card-content h3 svg {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.capability-card:hover h3 svg {
    transform: translateX(3px) translateY(-3px);
}

.card-content p {
    font-size: 0.875rem; /* Body Medium (14px) */
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1rem;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem; /* Body Medium (14px) */
    color: #495057;
}

.card-content ul li svg {
    flex-shrink: 0; /* Prevents the icon from shrinking */
    color: var(--accent-color);
    margin-top: 2px; /* Aligns icon nicely with text */
    stroke: var(--accent-color);
    fill: var(--accent-color);
    stroke-width: 1;
}

/* =================================================================== */
/* 10. FOOTER SECTION                                                */
/* =================================================================== */

.site-footer {
    background-color: #ffffff;
    padding: 4rem 2rem 1rem; /* More padding at top, less at bottom */
    color: #343a40;
    font-size: 0.875rem; /* Body Medium (14px) */
}

.site-footer .container {
    max-width: 1200px; /* Standardized container width */
    margin: 0 auto;
}

/* --- Main Footer Grid --- */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* First column is wider, adjusted for 3 columns */
    gap: 2rem;
    margin-bottom: 2rem;

    @media (max-width: 991px) {
        grid-template-columns: 1fr 1fr; /* 2x2 grid on tablets */
    }

    @media (max-width: 767px) {
        grid-template-columns: 1fr; /* Stack all columns on mobile */
        text-align: center;
    }
}

.footer-column.about .footer-logo {
    height: 35px;
    margin-bottom: 1rem;
}

.footer-column.about .company-name {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;

    @media (max-width: 767px) {
        justify-content: center;
    }
}

.contact-info .icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color); /* Use accent color for icons */
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-column.links h4 {
    font-weight: 700;
    font-size: 0.875rem; /* Label Large (14px) */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-column.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column.links a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column.links a:hover {
    color: var(--accent-color);
}

/* --- Bottom Section: Social & Subscribe --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;

    @media (max-width: 767px) {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.subscribe-form {
    display: flex;

    @media (max-width: 767px) {
        width: 100%;
    }
}

.subscribe-form input {
    padding: 0.75rem 1rem;
    font-size: 0.875rem; /* Body Medium (14px) */
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 5px 0 0 5px;
    min-width: 300px;

    @media (max-width: 767px) {
        width: 100%;
    }
}

.subscribe-form button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem; /* Label Large (14px) */
    font-weight: 600;
    background-color: var(--accent-color);
    color: #ffffff;
    border: 1px solid var(--accent-color);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.subscribe-form button:hover {
    background-color: #a54c2a; /* Darker accent color */
}

/* --- Legal Section --- */
.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 0.75rem; /* Body Small (12px) */
    color: #6c757d;

    @media (max-width: 767px) {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.legal-links {
    display: flex;
    gap: 1.5rem;

    @media (max-width: 767px) {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.legal-links a {
    color: #6c757d;
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--accent-color);
}

/* =================================================================== */
/* 15. HERO SECTION DYNAMIC BADGE                                      */
/* =================================================================== */
.hero-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    font-size: 0.875rem; /* Label Large (14px) */
    font-weight: 600;
    border-radius: 6px;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    vertical-align: middle;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-transform: capitalize;
}

/* Badge colors for each state */
.hero-badge.production {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.hero-badge.inventory {
    background-color: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hero-badge.delivery {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.hero-badge.wastage {
    background-color: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.hero-badge.shrinkage {
    background-color: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.hero-badge.raw-material {
    background-color: rgba(75, 85, 99, 0.12);
    color: #4b5563;
    border: 1px solid rgba(75, 85, 99, 0.25);
}

/* Fade transitions for animation */
.hero-badge.fade-out {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
}

.hero-badge.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portal-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease-in-out;
}

.portal-link:hover {
    color: #1d4ed8;
}

/* =================================================================== */
/* 20. ABOUT PAGE STYLES                                              */
/* =================================================================== */

.accent-text {
    color: var(--accent-color);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 2px;
    background-color: var(--accent-color);
}

.section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header-centered h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 1rem;
}

.section-header-centered p {
    font-size: 1.05rem;
    color: #5c6265;
    line-height: 1.6;
}

/* --- About Hero --- */
.about-hero {
    padding: 7rem 2rem 4rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-2) 100%);
    color: var(--text-black);
    text-align: center;
}

.about-hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.about-hero .hero-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1rem;
}

.about-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--color-1);
}

.about-hero .hero-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #495057;
    font-weight: 400;
}

@media (max-width: 767px) {
    .about-hero {
        padding: 5rem 1rem 3rem;
    }
    .about-hero h1 {
        font-size: 2.25rem;
    }
    .about-hero .hero-lead {
        font-size: 1.05rem;
    }
}

/* --- History Cards --- */
.about-history {
    padding: 2rem 2rem 5rem;
    background-color: var(--color-2);
}

.about-history .container.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.history-card {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(42, 47, 49, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.history-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-1);
    margin: 1.5rem 0 1rem;
}

.history-card p {
    font-size: 0.975rem;
    line-height: 1.65;
    color: #5c6265;
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(127, 58, 26, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrapper i {
    font-size: 1.75rem;
}

/* Highlighted HEXmold Card */
.history-card.active-card {
    background: var(--color-1);
    color: #ffffff;
    border-color: var(--color-1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.history-card.active-card h3 {
    color: #ffffff;
}

.history-card.active-card p {
    color: #e2e8f0;
}

.history-card.active-card .card-icon-wrapper {
    background-color: var(--accent-color);
    color: #ffffff;
}

@media (max-width: 991px) {
    .about-history .container.grid-2 {
        grid-template-columns: 1fr;
    }
    .history-card {
        padding: 2rem 1.5rem;
    }
}

/* --- Mission Section --- */
.about-mission {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.about-mission .container {
    max-width: 1000px;
    margin: 0 auto;
}

.mission-wrapper {
    background: linear-gradient(135deg, rgba(127, 58, 26, 0.05) 0%, rgba(127, 58, 26, 0.02) 100%);
    border-left: 4px solid var(--accent-color);
    padding: 4rem 3rem;
    border-radius: 0 16px 16px 0;
}

.mission-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-black);
    margin: 1rem 0 1.5rem;
}

.mission-text {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #333333;
    font-weight: 400;
}

@media (max-width: 767px) {
    .mission-wrapper {
        padding: 2.5rem 1.5rem;
    }
    .mission-wrapper h2 {
        font-size: 1.5rem;
    }
    .mission-text {
        font-size: 1rem;
    }
}

/* --- What We Offer --- */
.about-offers {
    padding: 6rem 2rem;
    background-color: var(--color-2);
}

.about-offers .container {
    max-width: 1200px;
    margin: 0 auto;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.offer-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(42, 47, 49, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(127, 58, 26, 0.08);
}

.offer-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.offer-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-1);
    margin-bottom: 1rem;
}

.offer-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5c6265;
}

/* --- The HEXmold Edge (Differentiators) --- */
.about-edge {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.about-edge .container {
    max-width: 1200px;
    margin: 0 auto;
}

.edge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.edge-card {
    background-color: var(--color-2);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.edge-card:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(42, 47, 49, 0.1);
}

.edge-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.edge-icon {
    font-size: 1.75rem;
    color: var(--accent-color);
}

.edge-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-1);
}

.edge-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
}

.full-width-card {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .edge-grid {
        grid-template-columns: 1fr;
    }
    .full-width-card {
        grid-column: span 1;
    }
    .edge-card {
        padding: 2rem 1.5rem;
    }
}

/* --- Future Expansion Roadmap --- */
.about-vision {
    padding: 6rem 2rem;
    background-color: var(--color-2);
}

.about-vision .container {
    max-width: 1200px;
    margin: 0 auto;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.vision-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(42, 47, 49, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.vision-icon {
    font-size: 2.25rem;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
}

.vision-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-1);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.vision-card p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #5c6265;
}

@media (max-width: 991px) {
    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Brand Core Values --- */
.brand-values {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.brand-values .container {
    max-width: 1200px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.value-card {
    background-color: var(--color-2);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.value-card:hover {
    background-color: #ffffff;
    border-color: rgba(127, 58, 26, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(127, 58, 26, 0.08);
}

.value-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(127, 58, 26, 0.15);
}

.value-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 0.25rem;
}

.value-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.value-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.25rem;
}

.value-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-bullets li {
    font-size: 0.8rem;
    color: #5c6265;
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.value-bullets li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 1199px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Team Core Values --- */
.team-values {
    padding: 6rem 2rem;
    background-color: var(--color-2);
}

.team-values .container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(42, 47, 49, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(42, 47, 49, 0.1);
}

.team-icon {
    font-size: 2.25rem;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
}

.team-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-1);
    margin-bottom: 0.75rem;
}

.team-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5c6265;
}

@media (max-width: 991px) {
    .team-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .team-values-grid {
        grid-template-columns: 1fr;
    }
    .team-card {
        padding: 2rem 1.5rem;
    }
}

/* --- Callout Banner --- */
.about-callout {
    padding: 6rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.about-callout .container {
    max-width: 1000px;
    margin: 0 auto;
}

.callout-box {
    background: linear-gradient(135deg, var(--color-1) 0%, #1e2224 100%);
    color: #ffffff;
    padding: 4rem 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.callout-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.callout-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .callout-box {
        padding: 2.5rem 1.5rem;
    }
    .callout-box h2 {
        font-size: 1.5rem;
    }
    .callout-box p {
        font-size: 0.95rem;
    }
}

/* =================================================================== */
/* 21. OUR PLATFORM PAGE STYLES                                       */
/* =================================================================== */

/* --- Platform Hero --- */
.platform-hero {
    padding: 7rem 2rem 4rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-2) 100%);
    color: var(--text-black);
    text-align: center;
}

.platform-hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.platform-hero .hero-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1rem;
}

.platform-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--color-1);
}

.platform-hero .hero-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #495057;
    font-weight: 400;
}

@media (max-width: 767px) {
    .platform-hero {
        padding: 5rem 1rem 3rem;
    }
    .platform-hero h1 {
        font-size: 2.25rem;
    }
    .platform-hero .hero-lead {
        font-size: 1.05rem;
    }
}

/* --- Why We Built This Section --- */
.platform-why {
    padding: 5rem 2rem;
    background-color: var(--color-2);
}

.platform-why .container.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.why-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-1);
    margin: 1rem 0 1.5rem;
}

.why-content p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #495057;
    margin-bottom: 1.5rem;
}

.why-visual .mockup-img-wrapper {
    background: #ffffff;
    border: 8px solid #1a1e20;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.why-visual .mockup-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .platform-why .container.grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --- Platform Features (Alternating) --- */
.platform-features {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.platform-features .container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-desc {
    flex: 1;
    max-width: 550px;
}

.feature-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: monospace;
}

.feature-desc h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.feature-desc p {
    font-size: 1rem;
    line-height: 1.7;
    color: #5c6265;
}

.feature-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup-frame {
    width: 280px;
    aspect-ratio: 9 / 19.5;
    border: 10px solid #1a1e20;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    background-color: #000000;
}

.phone-mockup-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    .feature-desc {
        max-width: 100%;
    }
}

/* --- Benefits Section --- */
.platform-benefits {
    padding: 6rem 2rem;
    background-color: var(--color-2);
}

.platform-benefits .container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.benefit-item {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(42, 47, 49, 0.04);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(127, 58, 26, 0.08);
}

.benefit-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(127, 58, 26, 0.08);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-icon-box i {
    font-size: 1.5rem;
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-1);
    margin-bottom: 0.75rem;
}

.benefit-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #5c6265;
}

@media (max-width: 1199px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Access CTA Section --- */
.platform-cta {
    padding: 6rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.platform-cta .container {
    max-width: 1000px;
    margin: 0 auto;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-1) 0%, #1e2224 100%);
    color: #ffffff;
    padding: 4.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-box h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.cta-box p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #cbd5e1;
    max-width: 750px;
    margin: 0 auto 2.5rem;
}

.cta-button-light {
    display: inline-block;
    background-color: #ffffff;
    color: var(--color-1);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.9rem 2.5rem;
    border-radius: 5px;
    transition: transform 150ms ease-in-out, background-color 150ms ease-in-out;
}

.cta-button-light:hover {
    transform: scale(1.05);
    background-color: var(--color-2);
}

@media (max-width: 767px) {
    .cta-box {
        padding: 3rem 1.5rem;
    }
    .cta-box h2 {
        font-size: 1.75rem;
    }
    .cta-box p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* --- Feature 6 Coming Soon Mockup & Badge --- */
.coming-soon-badge {
    display: inline-block;
    vertical-align: middle;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    background-color: rgba(127, 58, 26, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-left: 0.75rem;
    border: 1px solid rgba(127, 58, 26, 0.2);
}

.coming-soon-mockup {
    background: linear-gradient(135deg, #1f2326 0%, #111315 100%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.coming-soon-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    height: 100%;
    width: 100%;
}

.cs-icon {
    font-size: 4rem !important;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(127, 58, 26, 0.4);
    animation: csPulse 2.5s infinite ease-in-out;
}

.cs-label {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.cs-subtext {
    font-size: 0.8rem;
    color: #a0aec0;
    line-height: 1.5;
    padding: 0 1rem;
}

@keyframes csPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
        color: #a54c2a;
    }
}

/* =================================================================== */
/* 11. LOCATION SECTION                                                */
/* =================================================================== */
.location-section {
    padding: 5rem 0;
    background-color: var(--color-2); /* Using the site's cool off-white */
    color: var(--color-1); /* Dark grey text for readability on off-white */
}

.location-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.location-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.location-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 1rem;
}

.location-section .section-header p {
    font-size: 1.1rem;
    color: #5a6065;
    max-width: 700px;
    margin: 0 auto;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    display: block;
}

/* Floating Contact Us Button */
.floating-contact-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.floating-contact-btn:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: #a54c2a;
    box-shadow: none;
    color: #ffffff;
    text-decoration: none;
}

/* --- Legal Page Styles --- */
body.legal-page-body {
    background-color: #fafafa !important;
    color: #000000 !important;
}

body.legal-page-body .legal-container,
body.legal-page-body .legal-container h1,
body.legal-page-body .legal-container h2,
body.legal-page-body .legal-container h3,
body.legal-page-body .legal-container p,
body.legal-page-body .legal-container li,
body.legal-page-body .legal-container strong,
body.legal-page-body .legal-container span,
body.legal-page-body .legal-container div {
    color: #000000 !important;
}

.legal-section {
    padding: 6rem 0 8rem;
    background-color: #fafafa;
    min-height: 70vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    font-family: inherit;
    color: #333333;
}

.legal-container h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.legal-container .last-updated {
    font-size: 0.875rem;
    color: #888888;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 1rem;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.legal-container p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #4a4a4a;
}

.legal-container ul, .legal-container ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-container li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #4a4a4a;
}

.legal-container a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

/* Consent Preferences Interactive styling */
.preference-group {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preference-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.preference-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #666666;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.btn-save-consent {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save-consent:hover {
    background-color: #a54c2a;
}

/* --- Cookie Consent Banner Styles --- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 850px;
    background: rgba(42, 47, 49, 0.95); /* var(--color-1) with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.hidden {
    display: none !important;
    opacity: 0;
    transform: translate(-50%, 30px);
}

.cookie-banner-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ffffff !important; /* Force white text for readability against dark bg */
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background-color: var(--accent-color);
    color: #ffffff !important;
    border: 1px solid var(--accent-color);
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn-cookie-accept:hover {
    background-color: #a54c2a;
}

.btn-cookie-reject {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-cookie-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.btn-cookie-settings {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: underline;
    white-space: nowrap;
}

.btn-cookie-settings:hover {
    color: #ffffff !important;
}

/* Mobile Responsiveness for Banner */
@media (max-width: 767px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        bottom: 1rem;
        gap: 1.25rem;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }
    
    .cookie-banner-actions button,
    .cookie-banner-actions a {
        text-align: center;
        display: block;
        width: 100%;
    }
}

/* Hide non-essential navigation links on mobile view */
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }
    
    .header-main ul {
        padding-left: 1rem !important;
    }
    
    .floating-contact-btn {
        position: fixed !important;
        right: 3.5rem !important;
        bottom: 1.5rem !important;
        left: auto !important;
        transform: none !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        max-width: calc(100% - 7rem) !important;
        box-sizing: border-box !important;
        z-index: 11000 !important; /* Ensure it stays on top of the cookie banner */
    }
}

/* --- Portal Screenshots Showcase Section --- */
.portal-showcase-section {
    padding: 6rem 0;
    background-color: var(--color-2);
    overflow: hidden;
}

.portal-showcase-section .container-fluid {
    width: 100%;
    padding: 0 4rem;
    box-sizing: border-box;
}

.showcase-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(127, 58, 26, 0.4) transparent;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar styling for webkit */
.showcase-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.showcase-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.showcase-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(127, 58, 26, 0.3);
    border-radius: 4px;
}

.showcase-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(127, 58, 26, 0.6);
}

.showcase-card {
    flex: 0 0 450px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.showcase-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.showcase-card h4 {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0.5rem 0 0 0;
}

.showcase-card p {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

.card-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.card-badge.dark {
    background-color: #2a2f31;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 991px) {
    .portal-showcase-section {
        padding: 4rem 0;
    }
    .portal-showcase-section .container-fluid {
        padding: 0 1.5rem;
    }
    .showcase-card {
        flex: 0 0 320px;
        padding: 1rem;
    }
    .showcase-card img {
        height: 130px;
    }
}

/* --- Lightbox Modal Gallery --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.lightbox-content-wrapper {
    max-width: 85%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 1.5rem 1.2rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    user-select: none;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--accent-color);
    color: #ffffff;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        padding: 1rem 0.8rem;
        font-size: 1.5rem;
    }
    .lightbox-prev {
        left: 1rem;
    }
    .lightbox-next {
        right: 1rem;
    }
    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
}

