@font-face {
    font-family: 'Google Sans';
    src: url('/fonts/GoogleSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('/fonts/GoogleSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('/fonts/GoogleSans-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* =========== Base Styles =========== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Google Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background-color: #ffffff;
    overflow-x: hidden;
    color: rgba(0, 0, 0, 0.87);
    font-weight: 400;
    font-size: 16px;
}

/* =========== Typography =========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Google Sans', sans-serif;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: rgba(0, 0, 0, 0.87);
    /* Primary text color */
}

h1 {
    font-size: 40px;
    font-weight: 500;
    /* Medium weight for h1 */
    margin-bottom: 24px;
}

h2 {
    font-size: 24px;
    font-weight: 500;
    /* Medium weight for h2 */
    margin: 24px 0 16px;
}

h3 {
    font-size: 28px;
    font-weight: 500;
    /* Medium weight for h3 */
    margin-bottom: 20px;
}

h4 {
    font-size: 24px;
    font-weight: 500;
    /* Medium weight for h4 */
    margin-bottom: 16px;
}

h5 {
    font-size: 20px;
    font-weight: 500;
    /* Medium weight for h5 */
    margin: 24px 0 16px;
}

h6 {
    font-size: 18px;
    font-weight: 500;
    /* Medium weight for h6 */
    margin: 20px 0 16px;
}

p {
    margin: 0 0 16px 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    /* Regular weight for paragraphs */
    color: rgba(0, 0, 0, 0.6);
    /* Secondary text color for better readability */
}

ul,
ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
    color: rgba(0, 0, 0, 0.6);
    /* Secondary text color */
}

li {
    margin-bottom: 8px;
    font-weight: 400;
    /* Regular weight for list items */
}

/* =========== Layout Structure =========== */
.container {
    max-width: 60%;
    margin: 0 auto;
    padding: 24px;
    padding-top: 48px;
}

/* =========== Header Components =========== */
.tag {
    height: fit-content;
    margin-bottom: 16px;
    text-align: center;
}

.tag h5 {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background-color: #C53624;
    color: #ffffff;
    border-radius: 4px;
    margin: 1rem auto;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.heading {
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.2;
}

.subheading {
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========== Image Galleries =========== */
.images-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.images-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.research-img {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.research-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.filler {
    display: flex;
    justify-content: center;
    background-color: #C53624;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    align-items: center;
}

.filler h5 {
    color: #ffffff;
    margin: 0;
    padding: 16px;
}

/* =========== Section Styles =========== */
.picker-packer {
    width: 100%;
}

.p-p-section {
    background-color: #C53624;
    padding: 40px 24px;
    margin: 40px 0;
}

.p-p-section p,
.p-p-section h2 {
    max-width: 60%;
    color: #ffffff;
}

.p-p-section h2 {
    font-weight: 500;
    margin-bottom: 16px;
}

.p-p-section p {
    font-weight: 400;
}

.process-flows {
    margin: 40px 0;
}

.flow-section img {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.flow-section h2 {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    margin-top: 40px;
}

.flow-section h5 {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    margin-top: 24px;
}

/* =========== Gallery Styles =========== */
.gallery {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 32px 0;
}

.image-container {
    position: absolute;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.image-container:hover {
    transform: translateY(-8px);
    z-index: 10;
}

.image-container:nth-child(1) {
    top: 0;
    left: 0;
    z-index: 3;
}

.image-container:nth-child(2) {
    left: 40px;
    z-index: 2;
}

.image-container:nth-child(3) {
    left: 80px;
    z-index: 1;
}

.image-container:nth-child(4) {
    left: 120px;
    z-index: 0;
}

.thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* =========== Process Blocks =========== */
.process-blocks-container {
    width: 100%;
    margin: 48px 0;
}

.process-block-row {
    display: flex;
    margin-bottom: 32px;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-block-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.process-number {
    width: 80px;
    background-color: #C53624;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    padding: 1.5rem 0;
}

.process-number span {
    transform: rotate(-90deg);
    display: block;
    font-size: 24px;
    letter-spacing: 1px;
}

.process-content {
    flex: 1;
    padding: 0;
}

.process-header {
    padding: 16px 24px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eaeaea;
}

.process-header h3 {
    margin: 0;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.87);
    font-weight: 500;
}

.process-columns {
    display: flex;
    flex-wrap: wrap;
}

.pain-points-column,
.solution-column {
    flex: 1;
    min-width: 280px;
    padding: 24px;
}

.pain-points-column {
    background-color: #fff;
    border-right: 1px solid #eaeaea;
}

.solution-column {
    background-color: #fafafa;
}

.process-columns h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.87);
    font-weight: 500;
    position: relative;
    padding-bottom: 8px;
}

.process-columns h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #C53624;
}

.process-columns ul {
    margin: 0;
    padding-left: 20px;
}

.process-columns li {
    margin-bottom: 8px;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.6);
    position: relative;
}

.pain-points-column li::marker {
    color: #C53624;
}

.solution-column li::marker {
    color: #2970FF;
}

.process-columns p {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.6);
}

/* =========== Management Modules Cards Styling =========== */
.management-modules {
    padding: 48px 0;
    width: 100%;
}

.management-modules h2 {
    text-align: left;
    margin-bottom: 32px;
    font-size: 32px;
    color: rgba(0, 0, 0, 0.87);
    font-weight: 500;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 100%;
}

.module-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 24px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #C53624;
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: #C53624;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon i {
    color: white;
    font-size: 20px;
}

.module-card h3 {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.87);
    margin-bottom: 12px;
    font-weight: 500;
}

.module-card p {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.5;
    flex-grow: 1;
}

/* =========== CTA Section =========== */
.case-cta {
    background: #2970FF;
    padding: 48px 32px;
    text-align: center;
    margin: 32px 0;
    border-radius: 4px;
}

.cta-message {
    max-width: 600px;
    margin: 0 auto;
}

.cta-message h3 {
    color: white;
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 500;
}

.cta-message p {
    color: white;
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2970FF;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* =========== Achievement Section =========== */
.achievement-section {
    padding: 64px 0;
    width: 100%;
    margin: 48px 0;
}

.achievement-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.achievement-header {
    margin-bottom: 40px;
}

.achievement-header h2 {
    font-size: 32px;
    color: rgba(0, 0, 0, 0.87);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    font-weight: 500;
}

.achievement-header h2:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background-color: #C53624;
}

.achievement-subheading {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 16px;
    font-weight: 400;
}

.achievement-card {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.achievement-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #C53624, #ff7d6b);
}

.achievement-icon {
    width: 72px;
    height: 72px;
    background-color: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #C53624;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(197, 54, 36, 0.1);
}

.achievement-metric {
    text-align: center;
}

.metric-number {
    font-size: 64px;
    font-weight: 500;
    color: #C53624;
    line-height: 1;
    margin-bottom: 16px;
    position: relative;
}

.metric-number:after {
    content: "↑";
    font-size: 32px;
    position: absolute;
    top: 8px;
    margin-left: 8px;
}

.metric-label {
    display: flex;
    flex-direction: column;
}

.primary-label {
    font-size: 24px;
    color: rgba(0, 0, 0, 0.87);
    margin-bottom: 8px;
    font-weight: 500;
}

.secondary-label {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
    font-weight: 400;
}

/* =========== Team Section =========== */
.team-background {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.team-appreciation h2 {
    font-size: 32px;
    text-align: center;
    color: rgba(0, 0, 0, 0.87);
    margin-bottom: 40px;
    font-weight: 500;
}

.team-grid {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin: 0 auto;
    max-width: 90%;
}

.team-card {
    background: white;
    border-radius: 4px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    flex: 1;
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-card.design {
    background: linear-gradient(135deg, #fff 0%, #fff5f4 100%);
    border: 1px solid rgba(197, 54, 36, 0.1);
}

.team-card.research {
    background: linear-gradient(135deg, #fff 0%, #f4f8ff 100%);
    border: 1px solid rgba(41, 112, 255, 0.1);
}

.team-card.management {
    background: linear-gradient(135deg, #fff 0%, #f4fff5 100%);
    border: 1px solid rgba(74, 222, 128, 0.1);
}

.team-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: rgba(0, 0, 0, 0.87);
}

.team-card p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.6);
}

/* =========== Utilities =========== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #2970FF;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1a4fc6;
    transform: translateY(-3px);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    background: #2970FF;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover {
    background: #1a4fc6;
}

/* =========== Media Queries =========== */
@media (max-width: 1200px) {
    .container {
        max-width: 90%;
    }

    .team-grid {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-columns {
        flex-direction: column;
    }

    .pain-points-column {
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 95%;
        padding: 16px;
    }

    .heading {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .subheading {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .images-gallery,
    .research-img {
        grid-template-columns: 1fr;
    }

    .p-p-section {
        padding: 24px 16px;
    }

    .p-p-section p,
    .p-p-section h2 {
        max-width: 90%;
    }

    .case-cta {
        padding: 32px 16px;
        margin: 24px 0;
    }

    .team-grid {
        flex-direction: column;
    }

    .team-card {
        padding: 24px;
        margin-bottom: 16px;
    }

    .team-appreciation h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .cards-container {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 16px;
    }

    .module-card {
        margin-bottom: 0;
    }

    .management-modules h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .gallery {
        height: 320px;
    }

    .image-container {
        width: 85%;
    }

    .image-container:nth-child(2) {
        top: 30px;
        left: 30px;
    }

    .image-container:nth-child(3) {
        top: 60px;
        left: 60px;
    }

    .process-block-row {
        flex-direction: column;
    }

    .process-number {
        width: 100%;
        padding: 12px 0;
    }

    .process-number span {
        transform: none;
    }

    .process-header h3 {
        font-size: 18px;
    }

    .process-columns h4 {
        font-size: 16px;
    }

    .achievement-section {
        padding: 40px 0;
        margin: 24px 0;
    }

    .achievement-header h2 {
        font-size: 24px;
    }

    .achievement-card {
        padding: 24px;
    }

    .metric-number {
        font-size: 48px;
    }

    .primary-label {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .gallery {
        height: 280px;
    }

    .image-container {
        width: 90%;
    }

    .image-container:nth-child(2) {
        top: 20px;
        left: 20px;
    }

    .image-container:nth-child(3) {
        top: 40px;
        left: 40px;
    }
}

/* Add these styles to your CSS file */

/* Scroll Progress Container */
.scroll-progress-container {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background-color: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    z-index: 1000;
    width: 320px;
    max-width: 80vw;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.scroll-progress-container.fade-out {
    opacity: 0.2;
    transform: translateY(10px);
}

.scroll-progress-container.collapsed .scroll-progress-menu {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.scroll-progress-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
    cursor: pointer;
}

.index-title {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.index-title i {
    margin-left: 6px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.progress-circle {
    position: relative;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-progress {
    width: 3rem;
    height: 3rem;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke: #C53624;
    /* Match with your Lotte Mart red color */
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.progress-percentage {
    position: absolute;
    font-size: 10px;
    font-weight: 500;
}

/* Scroll Progress Menu */
.scroll-progress-menu {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.2s ease;
    padding: 0;
}

.scroll-progress-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scroll-progress-menu li {
    margin: 0;
    padding: 0;
}

.scroll-progress-menu a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.scroll-progress-menu a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.scroll-progress-menu a.active {
    color: #ffffff;
    background-color: rgba(197, 54, 36, 0.2);
    /* Slightly colored background */
    border-left: 3px solid #C53624;
    /* Match with your Lotte Mart red color */
    padding-left: 17px;
    /* Compensate for the border */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scroll-progress-container {
    position: fixed;
    top: 25px; /* Increased space from the top */
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    border-radius: 12px;
    z-index: 1001;
    margin-top: 0; /* Reset any margins */
  }
  
  .scroll-progress-container.fade-out {
    opacity: 0.6;
    transform: translateX(-50%);
  }
  
  .scroll-progress-header {
    padding: 12px 16px;
  }
  
  .index-title {
    font-size: 16px;
  }
  
  .progress-circle {
    width: 28px;
    height: 28px;
  }
  
  .circular-progress {
    width: 28px;
    height: 28px;
  }
  
  .progress-percentage {
    font-size: 9px;
  }
  
  .scroll-progress-menu a {
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .scroll-progress-container {
    top: 20px; /* Adjusted for smaller screens but still with space */
    width: 95%;
    max-width: 320px;
    border-radius: 10px;
  }
  
  .scroll-progress-header {
    padding: 10px 14px;
  }
  
  .index-title {
    font-size: 15px;
  }
}