:root {
    --primary-blue: #243F5D;
    --secondary-green: #626F66;
    --bg-cream: #F7F6F2;
    --bg-light: #FBF6EE;
    --accent-beige: #E8DFD9;
    --text-dark: #243F5D;
    --text-gray: #727272;
    --form-bg: rgba(81, 107, 136, 0.61);
    --input-bg: #E2E2E2;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Futura PT', sans-serif;
    background-color: var(--bg-cream);
    color: var(--primary-blue);
}

/* Navigation */
nav {
    background-color: var(--bg-cream);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo svg {
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 6rem;
    list-style: none;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 450;
    text-transform: capitalize;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active {
    font-weight: 700;
}

.cta-button {
    background-color: var(--secondary-green);
    color: var(--bg-cream) !important;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 700 !important;
    transition: transform 0.3s, box-shadow 0.3s;
    position: absolute;
    right: 5%;
    text-decoration: unset;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 100;
    padding: 8px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 5%;
    min-height: calc(100vh - 120px);
    align-items: center;
    position: relative;
    background-image: url('/images/home_hero.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    opacity: 0.6;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 9.5rem);
    font-weight: 600;
    line-height: 1;
    text-transform: capitalize;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 2rem);
    line-height: 1.4;
    color: rgba(36, 63, 93, 0.75);
    max-width: 800px;
}

/* Stats Section */
.stats {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: right;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 6.25rem);
    font-weight: 300;
    line-height: 1.17;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(1rem, 1.5vw, 1.375rem);
    font-weight: 400;
    color: var(--primary-blue);
    opacity: 0.8;
}

.services-section {
    background-color: var(--primary-blue);
    color: var(--bg-cream);
    position: relative;
    overflow: hidden;
    padding: 6rem 5% 200px;
}

.services-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.intro-decorative-line-top,
.intro-decorative-line-bottom {
    position: absolute;
    width: 2px;
    background: var(--bg-cream);
    left: 75%;
}

.intro-decorative-line-top {
    height: clamp(150px, 20vw, 193px);
    top: clamp(-96px, -10vw, -131px);
}

.intro-decorative-line-bottom {
    height: clamp(165px, 11.5vw, 222px);
    bottom: clamp(-200px, -8vw, -222px);
}

.services-intro {
    padding: 3rem 2.5rem;
    border: 2px solid rgba(247, 246, 242, 0.5);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    top: 18%;
}

.services-intro::before,
.services-intro::after {
    content: "";
    position: absolute;
    left: 75%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--bg-cream);
    opacity: 0.7;
}

.services-intro::before {
    top: -225px;
    height: 225px;
}

.services-intro::after {
    bottom: -205px;
    height: 205px;
}

.intro-label {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.intro-text {
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.54;
    color: var(--bg-cream);
    font-weight: 450;
}

.services-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.services-title {
    font-size: clamp(3.5rem, 5.5vw, 7.5rem);
    font-weight: 450;
    line-height: 1.17;
    text-transform: capitalize;
    color: var(--bg-cream);
}

.services-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 50px;
}

.service-card {
    background: transparent;
    border: 2px solid rgba(247, 246, 242, 0.5);
    border-radius: 12px;
    padding: 2rem 3rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(247, 246, 242, 0.05);
    border-color: rgba(247, 246, 242, 0.8);
    transform: translateX(10px);
}

.service-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 450;
    margin-bottom: 0.75rem;
    color: var(--bg-cream);
    text-transform: capitalize;
    line-height: 1.17;
}

.service-description {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    line-height: 1.54;
    color: var(--bg-cream);
    font-weight: 450;
}

.svg-element {
    height: 50%;
    opacity: 1;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(10%, -10%);
    z-index: 1;
}

.key-services-section {
    padding: 60px 20px;
    overflow: hidden;
    position: relative;
}

.key-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/images/key-services-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.key-services-container {
    max-width: 1600px;
    margin: 0 auto;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.left-content {
    max-width: 600px;
}

.main-heading {
    font-size: clamp(13px, 25px, 50px);
    font-weight: 450;
    line-height: 1.1;
    color: var(--primary-blue);
    margin-bottom: 24px;
    text-transform: capitalize;
}

.description {
    font-size: clamp(9px, 17px, 22px);
    font-weight: 450;
    line-height: 2;
    color: var(--primary-blue);
    text-transform: capitalize;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    width: 100%;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 30px;
    will-change: transform;
}

.key-service-card {
    flex: 0 0 calc(50% - 15px);
    background: rgba(232, 223, 217, 0.5);
    border: 2px solid var(--secondary-green);
    border-radius: 12px;
    padding: 40px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    min-width: 350px;
    cursor: pointer;
}

.hover-text {
    display: none;
}

.key-service-card.active {
    flex: 0 0 calc(75% - 15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.key-service-card.active .hover-text {
    display: inline;
}

.key-service-card.active .learn-more {
    display: none;
}

.key-service-card.alt-border {
    border-color: var(--text-gray);
}

.card-icon {
    height: 50px;
    margin-bottom: 25px;
}

/* Business Consultancy Icon - Bar Chart */
.icon-chart {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 51px;
}

.icon-chart .bar {
    width: 8px;
    background: var(--secondary-green);
    border-radius: 2px;
}

.icon-chart .bar:nth-child(1) { height: 22px; }
.icon-chart .bar:nth-child(2) { height: 42px; }
.icon-chart .bar:nth-child(3) { height: 30px; }
.icon-chart .bar:nth-child(4) { height: 42px; }
.icon-chart .bar:nth-child(5) { height: 51px; }

/* Operations Management Icon - Gear */
.icon-gear {
    width: 51px;
    height: 51px;
    position: relative;
}

.icon-gear svg {
    width: 100%;
    height: 100%;
}

/* HR Icon - People */
.icon-people {
    width: 51px;
    height: 51px;
}

.icon-people svg {
    width: 100%;
    height: 100%;
}

/* Project Management Icon */
.icon-project {
    width: 67px;
    height: 51px;
    position: relative;
}

.icon-project .box,
.icon-project .rect,
.icon-project .long-rect,
.icon-project .circle {
    background: var(--secondary-green);
    position: absolute;
}

.icon-project .box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    transform: rotate(-45deg);
}

.icon-project .rect {
    width: 12px;
    height: 12px;
    top: 20px;
}

.icon-project .long-rect {
    width: 25px;
    height: 13px;
    top: 20px;
    left: 42px;
}

.icon-project .circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    top: 37px;
    left: 20px;
}

/* Automation Icon */
.icon-automation {
    width: 51px;
    height: 51px;
    position: relative;
}

.icon-automation svg {
    width: 100%;
    height: 100%;
}

.card-content h3 {
    font-size: 32px;
    font-weight: 450;
    line-height: 1.17;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-transform: capitalize;
}

.card-content p {
    font-size: 24px;
    font-weight: 450;
    line-height: 1.25;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    font-size: 24px;
    font-weight: 450;
    color: var(--primary-blue);
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.learn-more:hover .underline {
    width: 80px;
}

.underline {
    width: 35px;
    height: 4px;
    background: var(--primary-blue);
    margin-left: 12px;
    transition: width 0.3s ease;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 50%;
    margin: 30px auto 0;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-blue);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    transform: scale(1.1);
}

.carousel-btn:hover:not(:disabled) svg {
    stroke: var(--white);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: var(--white);
    transform: scale(1);
}

.carousel-btn:disabled:hover svg {
    stroke: var(--primary-blue);
}

.carousel-btn svg {
    stroke: var(--primary-blue);
    transition: stroke 0.3s ease;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 6px;
}

/* Auto-play indicator */
.auto-play-toggle {
    margin-top: 20px;
    text-align: center;
}

.auto-play-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.auto-play-btn:hover,
.auto-play-btn.playing {
    background: var(--primary-blue);
    color: var(--white);
}

.testimonials-grid-container.home .bordered-testimonial-box {
    height: auto;
    min-height: auto;
    border: 2px solid var(--secondary-green);
    background-color: #E8DFD980;
    font-weight: 400;
    font-size: 30px;
    color: var(--secondary-green);
    padding: 20px;
    text-align: center;
}

.fms-discovery-wrapper {
    position: relative;
    width: 100%;
    max-height: 458px;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    overflow: hidden;
}

/* Decorative Background Elements */
.fms-bg-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.fms-decoration-left {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 400px;
}

.fms-decoration-right {
    position: absolute;
    top: 0;
    right: 0;
    max-width: 400px;
}

/* Content Container */
.fms-content-grid {
    position: relative;
    max-width: 920px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 1;
}

/* Phone Image Section */
.fms-phone-showcase {
    position: relative;
    width: 100%;
    max-width: 359px;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.fms-phone-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Text Content Section */
.fms-text-content {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.fms-heading-primary {
    font-weight: 450;
    font-size: clamp(48px, 7vw, 75px);
    line-height: 1.09;
    text-transform: capitalize;
    color: var(--bg-cream);
    margin-bottom: 5%;
}

.fms-subtitle-text {
    font-weight: 450;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.09;
    text-transform: capitalize;
    color: var(--bg-cream);
    opacity: 0.9;
}

/* CTA Button */
.fms-cta-wrapper {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
}

.fms-learn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 255px;
    height: 70px;
    border: 2px solid var(--accent-beige);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fms-btn-text {
    font-weight: 450;
    font-size: 28px;
    line-height: 1.09;
    text-align: center;
    text-transform: capitalize;
    color: var(--accent-beige);
    transition: all 0.3s ease;
}

.fms-learn-btn:hover {
    background: var(--accent-beige);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 223, 217, 0.3);
}

.fms-learn-btn:hover .fms-btn-text {
    color: var(--primary-blue);
}

.fms-learn-btn:active {
    transform: translateY(0);
}

.fms-industries-wrapper {
    padding: 40px 20px;
    overflow: hidden;
    position: relative;
    background-image: url("/images/Layer_3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fms-industries-container {
    max-width: 1600px;
    margin: 0 auto;
}

.fms-industries-container h3 {
    font-weight: 450;
    font-size: clamp(48px, 7vw, 75px);
    line-height: 1;
}

.fms-industries-container p {
    font-weight: 450;
    font-size: 20px;
    color: #243F5D;
    margin-top: 10px;
    margin-bottom: 40px;
}

.mre-footer-main {
    position: relative;
    width: 100%;
    background: var(--white);
    z-index: 5;
}

/* CTA Section */
.mre-cta-grid-wrapper {
    position: relative;
    width: 100%;
    background: var(--bg-cream);
    padding: 60px 20px;
}

.mre-cta-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    height: 100%;
}

/* Vertical Dividers */
.mre-divider-vertical {
    position: absolute;
    width: 1px;
    background: rgba(0, 0, 0, 0.2);
    top: -60px;
    bottom: 0;
    height: 314px;
}

.mre-divider-left { left: 25%; }
.mre-divider-center { left: 50%; }
.mre-divider-right { left: 75%; }

/* Individual CTA Columns */
.mre-cta-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 30px;
    position: relative;
}

.mre-cta-heading {
    font-weight: 450;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.09;
    text-transform: capitalize;
    color: var(--primary-blue);
    margin-bottom: 0;
}

.mre-cta-content {
    font-weight: 450;
    font-size: clamp(16px, 1.8vw, 17px);
    line-height: 2.27;
    color: var(--primary-blue);
}

.mre-cta-link {
    text-decoration: underline;
    color: var(--primary-blue);
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.mre-cta-link:hover {
    opacity: 0.7;
}

.mre-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Logo Section */
.mre-logo-wrapper {
    position: absolute;
    left: 130px;
    top: 232px;
    width: 151px;
    height: 88px;
}

.mre-logo-svg {
    width: 100%;
    height: 100%;
}

/* Copyright Bar */
.mre-copyright-bar {
    width: 100%;
    height: 86px;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 6;
}

.mre-copyright-text {
    font-weight: 450;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 2.27;
    text-transform: capitalize;
    color: var(--bg-cream);
    text-align: center;
}

.mre-cta-logo {
    margin: 0 auto;
    top: 30%;
}

.footer-logo {
    margin: 0 auto;
}

.story-hero-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eef3 0%, #f5f7f9 100%);
}

.story-decorative-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    pointer-events: none;
}

.story-decorative-pattern {
    position: absolute;
    width: 1728px;
    height: 621px;
    left: 50%;
    top: 167px;
    transform: translateX(-50%);
}

.story-pattern-svg {
    width: 100%;
    height: 100%;
    transform: rotate(90deg);
}

.story-hero-container {
    position: relative;
    margin: 0 auto;
    padding: 120px 144px;
    z-index: 10;
    background-image: url('/images/Layer_4.png');
    background-size: cover;
    background-position: center;
}

.story-content-wrapper {
    max-width: 881px;
}

.story-tagline {
    font-weight: 450;
    font-size: 32px;
    line-height: 41px;
    color: var(--primary-blue);
    margin-bottom: 12px;
    animation: story-fade-in-up 0.8s ease-out;
}

.story-main-heading {
    font-weight: 600;
    font-size: 150px;
    line-height: 100%;
    text-transform: capitalize;
    color: var(--primary-blue);
    margin-bottom: 30px;
    animation: story-fade-in-up 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.story-purpose-text {
    max-width: 611px;
    font-weight: 450;
    font-size: 32px;
    line-height: 41px;
    color: rgba(36, 63, 93, 0.75);
    animation: story-fade-in-up 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

@keyframes story-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-backdrop-container {
    position: relative;
    overflow: hidden;
    background: var(--primary-blue);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 2;
}

.info-card-wrapper,
.mission-card-wrapper,
.vision-card-wrapper,
.values-card-wrapper {
    width: 100%;
    max-width: 75%;
    margin-left: 5%;
}

.mission-card-wrapper,
.vision-card-wrapper,
.values-card-wrapper {
    margin-left: 20%;
}

.bordered-info-box {
    background: rgba(36, 63, 93, 0.3);
    border: 2px solid var(--bg-cream);
    border-radius: 12px;
    padding: 40px 60px;
    opacity: 0.95;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.main-info-box {
    position: relative;
    padding: 60px;
}

.main-info-box::before,
.main-info-box::after {
    content: "";
    position: absolute;
    left: 13%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--bg-cream);
    opacity: 0.7;
}

.main-info-box::before {
    top: -85px;
    height: 85px;
}

.main-info-box::after {
    bottom: -800px;
    height: 800px;
}

.bordered-info-box:hover {
    background: rgba(247, 246, 242, 0.05);
    border-color: rgba(247, 246, 242, 0.8);
    transform: translateX(10px);
}

.company-text-content {
    font-style: normal;
    font-weight: 450;
    font-size: 28px;
    line-height: 154%;
    text-align: center;
    color: var(--bg-cream);
    margin: 0;
}

.mre-team-section-wrapper {
    padding: 80px 20px 100px;
    display: flex;
    flex-direction: column;
    background-image: url("/images/Layer_5.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mre-team-heading-container {
    margin-bottom: 50px;
}

.primary-heading-text {
    font-style: normal;
    font-weight: 450;
    font-size: 100px;
    line-height: 109%;
    text-transform: capitalize;
    color: var(--primary-blue);
    margin: 0;
}

.services-overview-label {
    font-size: 18px;
    color: var(--secondary-green);
    margin-bottom: 15px;
    display: block;
    font-weight: 400;
}

.content-card-group-wrapper {
    width: 90%;
    display: block;
    margin: 0 auto;
}

.beige-bordered-card-container {
    background: rgba(232, 223, 217, 0.5);
    border: 2px solid var(--secondary-green);
    border-radius: 12px;
    padding: 60px 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
}

.beige-bordered-card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(98, 111, 102, 0.2);
    background: rgba(232, 223, 217, 0.7);
}

.beige-bordered-card-container::before,
.beige-bordered-card-container::after {
    content: "";
    position: absolute;
    left: 75%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--secondary-green);
    opacity: 0.7;
    z-index: 1;
}

.beige-bordered-card-container::before {
    top: -350px;
    height: 350px;
}

.beige-bordered-card-container::after {
    bottom: -151px;
    height: 151px;
}

.descriptive-paragraph-text {
    font-style: normal;
    font-weight: 450;
    font-size: 32px;
    line-height: 154%;
    text-align: center;
    color: var(--primary-blue);
    margin: 0;
}

.testimonials-section-backdrop {
    background: var(--primary-blue);
    padding: 80px 20px;
    min-height: 458px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.testimonials-decoration {
    position: absolute;
    bottom: -25%;
    left: 0;
}

.testimonials-grid-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-card-group {
    position: relative;
}

.bordered-testimonial-box {
    background: rgba(36, 63, 93, 0.3);
    border: 2px solid var(--bg-cream);
    border-radius: 12px;
    padding: 60px 50px;
    opacity: 0.95;
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.bordered-testimonial-box:hover {
    opacity: 1;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.testimonial-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.quote-text-block {
    flex: 1;
}

.italic-quote-text {
    font-weight: 450;
    font-size: 24px;
    line-height: 154%;
    color: var(--bg-cream);
    margin: 0;
}

.client-attribution-text {
    font-style: italic;
    font-weight: 450;
    font-size: 24px;
    line-height: 154%;
    text-align: right;
    color: var(--bg-cream);
    margin: 0;
    padding-top: 20px;
}

.our-story-key-services {
    z-index: 5;
    background-image: url("/images/Layer_7.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.our-story-key-services::before {
    display: none;
}

.life-mre-section-backdrop {
    background: var(--primary-blue);
    padding: 80px 20px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-title-header {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 32px;
    font-weight: 450;
    color: var(--bg-cream);
    z-index: 10;
    text-transform: capitalize;
}

.polaroid-gallery-container {
    width: 100%;
    max-width: 1728px;
    margin: 0 auto;
    position: relative;
    min-height: 800px;
    padding-top: 60px;
}

.polaroid-cluster-group {
    position: absolute;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.polaroid-cluster-left {
    left: 40px;
    top: 0;
    transform: rotate(-8deg);
    animation: floatLeft 6s ease-in-out infinite;
}

.polaroid-cluster-right {
    right: 40px;
    bottom: 0;
    transform: rotate(5deg);
    animation: floatRight 7s ease-in-out infinite;
}

@keyframes floatLeft {
    0%, 100% {
        transform: rotate(-8deg) translateY(0);
    }
    50% {
        transform: rotate(-8deg) translateY(-20px);
    }
}

@keyframes floatRight {
    0%, 100% {
        transform: rotate(5deg) translateY(0);
    }
    50% {
        transform: rotate(5deg) translateY(-15px);
    }
}

.polaroid-photo-card {
    background: var(--white);
    padding: 15px 15px 50px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 220px;
    position: relative;
    z-index: 5;
}

.polaroid-photo-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.polaroid-photo-card:nth-child(1) { transform: rotate(-12deg); }
.polaroid-photo-card:nth-child(2) { transform: rotate(8deg); }
.polaroid-photo-card:nth-child(3) { transform: rotate(-5deg); }
.polaroid-photo-card:nth-child(4) { transform: rotate(15deg); }
.polaroid-photo-card:nth-child(5) { transform: rotate(-8deg); }
.polaroid-photo-card:nth-child(6) { transform: rotate(6deg); }

.polaroid-image-wrapper {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

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

/* Decorative wave pattern */
.decorative-wave-pattern {
    position: absolute;
    right: 0;
    top: 0;
    width: 200px;
    height: 400px;
    opacity: 0.1;
    pointer-events: none;
}

.wave-line {
    stroke: var(--bg-cream);
    stroke-width: 2;
    fill: none;
}

.growth-section {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
    background-image: url("/images/Layer_7.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.growth-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.growth-content {
    position: sticky;
    top: 120px;
}

.growth-title {
    font-size: 100px;
    font-weight: 450;
    line-height: 1;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-transform: capitalize;
}

.growth-description {
    font-size: 1.2rem;
    font-weight: 450;
    line-height: 1.5;
    color: var(--primary-blue);
}

.application-form-wrapper {
    background: rgba(232, 223, 217, 0.72);
    border: 2px solid rgba(98, 111, 102, 0.34);
    border-radius: 12px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-light);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: box-shadow 0.3s;
}

.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
    color: var(--text-gray);
    font-weight: 300;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-green);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
}

.file-upload-label {
    background: var(--secondary-green);
    color: var(--white);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 400;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.file-upload-label:hover {
    background: #576960;
}

.file-upload-text {
    color: var(--text-gray);
    font-weight: 300;
    font-size: 1.1rem;
    padding: 0 1rem;
}

.file-input-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.submit-button {
    width: 100%;
    background: var(--secondary-green);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-wrapper {
    background: var(--primary-blue);
    position: relative;
    padding: 4rem 2rem 6rem;
}

.contact-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 5rem;
    align-items: start;
}

/* Left Side - Contact Info */
.contact-info-panel {
    padding: 2rem 0;
}

.contact-info-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.99;
    color: var(--bg-cream);
}

.contact-info-text strong {
    margin-top: 1rem;
}

.contact-phone-line,
.contact-email,
.contact-hours,
.contact-address {
    display: block;
}

.contact-email {
    color: var(--bg-cream);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-email:hover {
    opacity: 0.7;
}

.contact-hours {
    margin-top: 2rem;
}

.contact-address {
    margin-top: 2rem;
}

/* Right Side - Contact Form */
.contact-form-wrapper {
    background: var(--form-bg);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.contact-form-wrapper::before,
.contact-form-wrapper::after {
    content: "";
    position: absolute;
    left: 70%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--bg-cream);
    opacity: 0.7;
}

.contact-form-wrapper::before {
    top: -70px;
    height: 70px;
}

.contact-form-wrapper::after {
    bottom: -95px;
    height: 95px;
}

.contact-form-group {
    margin-bottom: 1.2rem;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--input-bg);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    color: #333;
    transition: box-shadow 0.3s;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: #666;
    font-weight: 400;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(98, 111, 102, 0.3);
}

.contact-form-textarea {
    min-height: 156px;
    resize: vertical;
}

.contact-submit-button {
    width: 100%;
    background: var(--secondary-green);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: capitalize;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    margin-left: auto;
}

.contact-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-submit-button:active {
    transform: translateY(0);
}

/* Vertical Divider */
.vertical-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(247, 246, 242, 0.2);
    display: none;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Stagger animations for children elements */
.fade-in-section.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible.stagger-children > * {
    opacity: 1;
    transform: translateY(0);
}

/* Different delays for staggered children */
.fade-in-section.visible.stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in-section.visible.stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
.fade-in-section.visible.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.fade-in-section.visible.stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
.fade-in-section.visible.stagger-children > *:nth-child(5) { transition-delay: 0.5s; }

/* Specific animations for different sections */
.hero.visible .hero-content > *,
.services-section.visible .services-content > *,
.key-services-section.visible .left-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero.visible .hero-title { transition-delay: 0.2s; }
.hero.visible .hero-description { transition-delay: 0.4s; }
.hero.visible .stats { transition-delay: 0.6s; }

.services-section.visible .services-title { transition-delay: 0.2s; }
.services-section.visible .services-cards { transition-delay: 0.4s; }

.key-services-section.visible .main-heading { transition-delay: 0.2s; }
.key-services-section.visible .description { transition-delay: 0.4s; }

/* When section becomes visible, animate children */
.hero.visible .hero-content > *,
.services-section.visible .services-content > *,
.key-services-section.visible .left-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* Animations for hero backdrop cards */
.hero-backdrop-container.visible .bordered-info-box {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-backdrop-container.visible .main-info-box { transition-delay: 0.2s; }
.hero-backdrop-container.visible .mission-card-wrapper .bordered-info-box { transition-delay: 0.4s; }
.hero-backdrop-container.visible .vision-card-wrapper .bordered-info-box { transition-delay: 0.6s; }
.hero-backdrop-container.visible .values-card-wrapper .bordered-info-box { transition-delay: 0.8s; }

.hero-backdrop-container.visible .bordered-info-box {
    opacity: 1;
    transform: translateY(0);
}

/* Animations for team section */
.mre-team-section-wrapper.visible .primary-heading-text,
.mre-team-section-wrapper.visible .descriptive-paragraph-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.mre-team-section-wrapper.visible .primary-heading-text {
    transition-delay: 0.2s;
}

.mre-team-section-wrapper.visible .descriptive-paragraph-text {
    transition-delay: 0.4s;
}

.mre-team-section-wrapper.visible .primary-heading-text,
.mre-team-section-wrapper.visible .descriptive-paragraph-text {
    opacity: 1;
    transform: translateY(0);
}

/* Animations for testimonials */
.testimonials-section-backdrop.visible .testimonial-card-group {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.testimonials-section-backdrop.visible .testimonial-card-group:nth-child(1) { transition-delay: 0.2s; }
.testimonials-section-backdrop.visible .testimonial-card-group:nth-child(2) { transition-delay: 0.4s; }
.testimonials-section-backdrop.visible .testimonial-card-group:nth-child(3) { transition-delay: 0.6s; }

.testimonials-section-backdrop.visible .testimonial-card-group {
    opacity: 1;
    transform: translateY(0);
}

/* Animations for key services section */
.our-story-key-services.visible .main-heading {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.2s;
}

.our-story-key-services.visible .key-service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.our-story-key-services.visible .key-service-card:nth-child(1) { transition-delay: 0.3s; }
.our-story-key-services.visible .key-service-card:nth-child(2) { transition-delay: 0.4s; }
.our-story-key-services.visible .key-service-card:nth-child(3) { transition-delay: 0.5s; }
.our-story-key-services.visible .key-service-card:nth-child(4) { transition-delay: 0.6s; }
.our-story-key-services.visible .key-service-card:nth-child(5) { transition-delay: 0.7s; }

.our-story-key-services.visible .main-heading,
.our-story-key-services.visible .key-service-card {
    opacity: 1;
    transform: translateY(0);
}

/* Animations for growth section */
.growth-section.visible .growth-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.growth-section.visible .growth-title {
    transition-delay: 0.2s;
}

.growth-section.visible .growth-description {
    transition-delay: 0.4s;
}

.growth-section.visible .application-form-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.6s;
}

.growth-section.visible .growth-content > *,
.growth-section.visible .application-form-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Form elements animation */
.growth-section.visible .form-group {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.growth-section.visible .form-group:nth-child(1) { transition-delay: 0.7s; }
.growth-section.visible .form-group:nth-child(2) { transition-delay: 0.75s; }
.growth-section.visible .form-group:nth-child(3) { transition-delay: 0.8s; }
.growth-section.visible .form-group:nth-child(4) { transition-delay: 0.85s; }
.growth-section.visible .form-group:nth-child(5) { transition-delay: 0.9s; }
.growth-section.visible .form-group:nth-child(6) { transition-delay: 0.95s; }

.growth-section.visible .form-group {
    opacity: 1;
    transform: translateY(0);
}

.growth-section.visible .submit-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    transition-delay: 1s;
}

.growth-section.visible .submit-button {
    opacity: 1;
    transform: translateY(0);
}

/* Animations for contact section */
.contact-wrapper.visible .contact-info-panel {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s;
}

.contact-wrapper.visible .contact-form-wrapper {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.4s;
}

.contact-wrapper.visible .contact-info-panel,
.contact-wrapper.visible .contact-form-wrapper {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for contact info items */
.contact-wrapper.visible .contact-info-text > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.contact-wrapper.visible .contact-phone-line:nth-child(1) { transition-delay: 0.6s; }
.contact-wrapper.visible .contact-phone-line:nth-child(2) { transition-delay: 0.7s; }
.contact-wrapper.visible .contact-email { transition-delay: 0.8s; }
.contact-wrapper.visible .contact-hours { transition-delay: 0.9s; }
.contact-wrapper.visible .contact-address { transition-delay: 1s; }

.contact-wrapper.visible .contact-info-text > * {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for form elements */
.contact-wrapper.visible .contact-form-group {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.contact-wrapper.visible .contact-form-group:nth-child(1) { transition-delay: 0.6s; }
.contact-wrapper.visible .contact-form-group:nth-child(2) { transition-delay: 0.7s; }
.contact-wrapper.visible .contact-form-group:nth-child(3) { transition-delay: 0.8s; }

.contact-wrapper.visible .contact-form-group {
    opacity: 1;
    transform: translateY(0);
}

.contact-wrapper.visible .contact-submit-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: 0.9s;
}

.contact-wrapper.visible .contact-submit-button {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Input focus animations */
.contact-form-input:focus,
.contact-form-textarea:focus {
    transform: translateY(-2px);
    transition: transform 0.3s ease-out;
}

/* Button hover animation */
.contact-submit-button:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease-out;
}

/* Media Queries */
@media screen and (max-width: 1600px) {
    .primary-heading-text {
        font-size: 85px;
    }

    .descriptive-paragraph-text {
        font-size: 28px;
    }

    .beige-bordered-card-container {
        padding: 50px 40px;
    }
}

@media screen and (max-width: 1440px) {
    .company-text-content {
        font-size: 26px;
    }

    .bordered-info-box {
        padding: 35px 50px;
    }

    .main-info-box {
        padding: 50px;
    }

    .primary-heading-text {
        font-size: 75px;
    }

    .descriptive-paragraph-text {
        font-size: 26px;
    }

    .testimonials-grid-container {
        max-width: 95%;
        gap: 35px;
    }

    .bordered-testimonial-box {
        padding: 50px 40px;
        min-height: 350px;
    }

    .italic-quote-text,
    .client-attribution-text {
        font-size: 22px;
    }

    .polaroid-photo-card {
        width: 200px;
    }

    .growth-title {
        font-size: 80px;
    }
}

@media (max-width: 1200px) {
    .hero {
        gap: 3rem;
        padding: 3rem 4%;
    }

    .services-container {
        gap: 3rem;
    }

    .primary-heading-text {
        font-size: 65px;
    }

    .descriptive-paragraph-text {
        font-size: 24px;
        line-height: 145%;
    }

    .beige-bordered-card-container {
        padding: 45px 35px;
    }

    .services-overview-label {
        font-size: 16px;
    }

    .testimonials-grid-container {
        gap: 30px;
    }

    .bordered-testimonial-box {
        padding: 45px 35px;
        min-height: 320px;
    }

    .italic-quote-text,
    .client-attribution-text {
        font-size: 20px;
        line-height: 145%;
    }

    .section-title-header {
        font-size: 28px;
        left: 30px;
        top: 30px;
    }

    .polaroid-photo-card {
        width: 180px;
    }

    .polaroid-image-wrapper {
        height: 200px;
    }

    .polaroid-cluster-left,
    .polaroid-cluster-right {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        transform: none;
        animation: none;
        margin: 40px auto;
        max-width: 800px;
    }

    .polaroid-gallery-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }

    .contact-container {
        grid-template-columns: 400px 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 4fr 8fr;
    }

    .carousel-dots {
        grid-column: 2;
    }
}

@media (min-width: 1025px) and (max-width: 1231px) {
    .mre-divider-vertical {
        top: -61px;
        height: 434px;
    }
}

@media (max-width: 1024px) {
    .mre-logo-wrapper {
        position: static;
        margin: 0 auto 40px;
        display: block;
    }

    .mre-cta-grid-wrapper {
        padding: 0 20px 40px;
    }

    .mre-cta-container {
        grid-template-columns: 1fr;
    }

    .mre-divider-vertical {
        display: none;
    }

    .mre-cta-column {
        padding: 0 20px 50px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        gap: 20px;
    }

    .mre-cta-column:last-child {
        border-bottom: none;
        padding-bottom: 10px;
    }

    .mre-cta-logo {
        margin: 0;
        top: 0;
        padding-top: 40px;
    }

    .story-hero-container {
        padding: 100px 80px;
    }

    .story-tagline {
        font-size: 28px;
        line-height: 36px;
    }

    .story-main-heading {
        font-size: 120px;
    }

    .story-purpose-text {
        font-size: 28px;
        line-height: 36px;
    }

    .story-decorative-pattern {
        width: 1400px;
        height: 500px;
    }

    .hero-backdrop-container {
        padding: 60px 20px;
        gap: 30px;
    }

    .company-text-content {
        font-size: 22px;
        line-height: 145%;
    }

    .bordered-info-box {
        padding: 30px 40px;
    }

    .main-info-box {
        padding: 40px;
    }

    .mre-team-section-wrapper {
        padding: 50px 25px 75px;
    }

    .mre-team-heading-container {
        margin-bottom: 40px;
    }

    .primary-heading-text {
        font-size: 55px;
    }

    .descriptive-paragraph-text {
        font-size: 22px;
    }

    .beige-bordered-card-container {
        padding: 40px 30px;
    }

    .testimonials-section-backdrop {
        padding: 60px 20px;
    }

    .testimonials-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .bordered-testimonial-box {
        padding: 40px 30px;
        min-height: 300px;
    }

    .italic-quote-text,
    .client-attribution-text {
        font-size: 19px;
    }

    .testimonials-decoration {
        bottom: -20%;
    }

    .life-mre-section-backdrop {
        padding: 60px 20px;
    }

    .section-title-header {
        font-size: 26px;
        position: relative;
        left: 0;
        top: 0;
        text-align: center;
        width: 100%;
        margin-bottom: 40px;
    }

    .polaroid-photo-card {
        width: 160px;
    }

    .polaroid-image-wrapper {
        height: 180px;
    }

    .growth-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .growth-content {
        position: static;
    }

    .growth-title {
        font-size: 70px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-panel {
        max-width: 600px;
    }

    .vertical-divider {
        display: block;
        left: 0;
        right: 0;
        top: auto;
        bottom: auto;
        width: 100%;
        height: 1px;
        position: relative;
        margin: 2rem 0;
    }

    .contact-form-wrapper::before, .contact-form-wrapper::after {
        display: none;
    }
}

@media (min-width: 1024px) {
    .key-services-section {
        padding: 100px 60px;
    }

    .fms-industries-wrapper {
        padding: 80px 60px;
    }

    .main-heading {
        font-size: 100px;
    }
}

@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-cream);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 120px 2rem 2rem;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.65, 0, 0.35, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(36, 63, 93, 0.1);
        width: 100%;
    }

    /* Hide the standalone CTA button on mobile */
    .cta-button {
        display: none;
    }

    /* Show CTA button inside mobile menu */
    .mobile-cta-button {
        display: block !important;
        margin-top: 2rem;
        text-align: center;
        border: none;
        padding: 1rem 2rem;
        right: 25%;
        width: 50% !important;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(36, 63, 93, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 98;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 3rem 5%;
    }

    .stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 2rem;
    }

    .stat-item {
        text-align: center;
        flex: 1 1 40%;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-intro {
        min-height: auto;
    }

    .services-intro::before, .services-intro::after {
        display: none;
    }

    .services-title {
        margin-top: 5%;
    }

    .intro-decorative-line-top,
    .intro-decorative-line-bottom {
        display: none;
    }

    .fingerprint-decoration {
        width: 200px;
        height: 350px;
        opacity: 0.15;
    }

    .fms-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .fms-phone-showcase {
        order: -1;
        max-width: 280px;
        height: 335px;
    }

    .fms-text-content {
        align-items: center;
    }

    .fms-cta-wrapper {
        justify-content: center;
    }

    .fms-discovery-wrapper {
        padding-bottom: 180px;
    }
}

@media (min-width: 969px) {
    .mobile-cta-button {
        display: none !important;
    }

    .cta-button {
        display: block;
    }
}

@media (max-width: 768px) {
    .mre-cta-grid-wrapper {
        min-height: auto;
        padding: 0 20px 40px;
    }

    .mre-cta-column {
        padding: 0 20px 50px;
        gap: 20px;
    }

    .mre-logo-wrapper {
        width: 120px;
        height: 70px;
        margin-bottom: 30px;
    }

    .mre-copyright-bar {
        height: auto;
        min-height: 60px;
    }

    .mre-cta-logo {
        padding-top: 40px;
    }

    .mre-cta-column:last-child {
        padding-bottom: 10px;
    }

    .story-hero-container {
        padding: 80px 40px;
    }

    .story-tagline {
        font-size: 24px;
        line-height: 32px;
    }

    .story-main-heading {
        font-size: 80px;
    }

    .story-purpose-text {
        font-size: 24px;
        line-height: 32px;
    }

    .story-decorative-pattern {
        width: 1000px;
        height: 400px;
        top: 100px;
    }

    .hero-backdrop-container {
        padding: 40px 15px;
        gap: 25px;
    }

    .company-text-content {
        font-size: 18px;
        line-height: 140%;
    }

    .bordered-info-box {
        padding: 25px 30px;
        border-radius: 10px;
    }

    .main-info-box {
        padding: 30px;
    }

    .mre-team-section-wrapper {
        padding: 40px 20px 60px;
    }

    .mre-team-heading-container {
        margin-bottom: 30px;
    }

    .primary-heading-text {
        font-size: 45px;
        line-height: 115%;
    }

    .descriptive-paragraph-text {
        font-size: 20px;
        line-height: 140%;
    }

    .beige-bordered-card-container {
        padding: 35px 25px;
        border-radius: 10px;
    }

    .services-overview-label {
        font-size: 15px;
    }

    .testimonials-section-backdrop {
        padding: 50px 15px;
    }

    .testimonials-grid-container {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 600px;
    }

    .bordered-testimonial-box {
        padding: 35px 30px;
        min-height: 280px;
    }

    .italic-quote-text,
    .client-attribution-text {
        font-size: 18px;
        line-height: 140%;
    }

    .testimonial-content-wrapper {
        gap: 25px;
    }

    .testimonials-decoration {
        bottom: -15%;
    }

    .life-mre-section-backdrop {
        padding: 50px 15px;
    }

    .section-title-header {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .polaroid-cluster-group {
        gap: 15px;
        max-width: 100%;
    }

    .polaroid-photo-card {
        width: 140px;
    }

    .polaroid-image-wrapper {
        height: 160px;
    }

    .polaroid-photo-card:nth-child(n) {
        transform: rotate(0deg) !important;
    }

    .decorative-wave-pattern {
        display: none;
    }

    .application-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .file-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .file-upload-label {
        text-align: center;
    }

    .growth-title {
        font-size: 60px;
    }

    .contact-wrapper {
        padding: 3rem 1.5rem 4.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .contact-info-text {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .key-services-section {
        padding: 80px 40px;
    }

    .fms-industries-wrapper {
        padding: 60px 40px;
    }

    .left-content {
        max-width: unset;
    }

    .main-heading {
        font-size: 50px;
    }

    .description {
        font-size: 25px;
        line-height: 1.5;
    }
}

@media (max-width: 640px) {
    nav {
        padding: 1.5rem 5%;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .header-logo {
        padding-left: 15%;
    }

    .hero {
        padding: 2rem 5%;
        gap: 3rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .carousel-controls {
        width: 80%;
    }

    .stats {
        gap: 2rem;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .services-section {
        padding: 4rem 5%;
    }

    .service-card {
        padding: 1.5rem 2rem;
    }

    .fingerprint-decoration {
        width: 150px;
        height: 300px;
        opacity: 0.08;
    }

    .fms-discovery-wrapper {
        min-height: auto;
        padding: 60px 20px;
    }

    .fms-phone-showcase {
        max-width: 240px;
        height: 287px;
    }

    .fms-text-content {
        gap: 24px;
    }

    .fms-learn-btn {
        width: 200px;
        height: 56px;
    }

    .fms-btn-text {
        font-size: 22px;
    }

    .primary-heading-text {
        font-size: 38px;
    }

    .descriptive-paragraph-text {
        font-size: 18px;
    }

    .beige-bordered-card-container {
        padding: 30px 20px;
    }

    .bordered-testimonial-box {
        padding: 30px 25px;
        min-height: auto;
    }

    .italic-quote-text,
    .client-attribution-text {
        font-size: 17px;
    }

    .polaroid-cluster-group {
        gap: 12px;
    }

    .polaroid-photo-card {
        width: 130px;
        padding: 12px 12px 40px 12px;
    }

    .polaroid-image-wrapper {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .fms-phone-showcase {
        max-width: 200px;
        height: 239px;
    }

    .fms-heading-primary {
        font-size: 40px;
    }

    .fms-subtitle-text {
        font-size: 16px;
    }

    .fms-discovery-wrapper {
        padding-bottom: 80px;
    }

    .mre-cta-heading {
        font-size: 28px;
    }

    .mre-cta-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .mre-copyright-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .mre-logo-wrapper {
        width: 100px;
        height: 58px;
    }

    .story-hero-container {
        padding: 60px 24px;
    }

    .story-tagline {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 8px;
    }

    .left-content {
        max-width: unset;
    }

    .main-heading {
        font-size: 40px;
    }

    .description {
        font-size: 20px;
        line-height: 1.5;
    }

    .story-main-heading {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .story-purpose-text {
        font-size: 18px;
        line-height: 28px;
    }

    .story-decorative-pattern {
        width: 600px;
        height: 300px;
        top: 80px;
    }

    .hero-backdrop-container {
        padding: 30px 10px;
        gap: 20px;
    }

    .company-text-content {
        font-size: 14px;
        line-height: 135%;
    }

    .bordered-info-box {
        padding: 20px 20px;
        border-radius: 8px;
        border-width: 2px;
    }

    .main-info-box {
        padding: 20px;
    }

    .mre-team-section-wrapper {
        padding: 30px 15px 45px;
    }

    .mre-team-heading-container {
        margin-bottom: 25px;
    }

    .primary-heading-text {
        font-size: 32px;
        line-height: 120%;
    }

    .descriptive-paragraph-text {
        font-size: 16px;
        line-height: 135%;
    }

    .beige-bordered-card-container {
        padding: 25px 20px;
        border-radius: 8px;
        border-width: 2px;
    }

    .services-overview-label {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .testimonials-section-backdrop {
        padding: 40px 15px;
    }

    .bordered-testimonial-box {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .italic-quote-text,
    .client-attribution-text {
        font-size: 16px;
        line-height: 135%;
    }

    .testimonial-content-wrapper {
        gap: 20px;
    }

    .client-attribution-text {
        padding-top: 15px;
    }

    .testimonials-decoration {
        bottom: -20%;
    }

    .life-mre-section-backdrop {
        padding: 40px 10px;
    }

    .section-title-header {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .polaroid-cluster-group {
        gap: 10px;
        justify-content: center;
    }

    .polaroid-photo-card {
        width: 110px;
        padding: 10px 10px 35px 10px;
    }

    .polaroid-image-wrapper {
        height: 130px;
    }

    .growth-title {
        font-size: 50px;
    }

    .contact-wrapper {
        padding: 2rem 1rem 3rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .contact-info-text {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .contact-form-input,
    .contact-form-textarea {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .story-hero-container {
        padding: 50px 20px;
    }

    .story-main-heading {
        font-size: 40px;
    }

    .story-tagline,
    .story-purpose-text {
        font-size: 16px;
        line-height: 24px;
    }

    .left-content {
        max-width: unset;
    }

    .main-heading {
        font-size: 30px;
    }

    .description {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media screen and (max-width: 360px) {
    .company-text-content {
        font-size: 12px;
    }

    .bordered-info-box {
        padding: 15px 15px;
    }

    .main-info-box {
        padding: 15px;
    }

    .primary-heading-text {
        font-size: 28px;
    }

    .descriptive-paragraph-text {
        font-size: 14px;
    }

    .beige-bordered-card-container {
        padding: 20px 15px;
    }

    .testimonials-section-backdrop {
        padding: 30px 10px;
    }

    .bordered-testimonial-box {
        padding: 20px 15px;
        border-radius: 8px;
        border-width: 1.5px;
    }

    .italic-quote-text,
    .client-attribution-text {
        font-size: 14px;
    }

    .polaroid-photo-card {
        width: 100px;
    }

    .polaroid-image-wrapper {
        height: 120px;
    }

    .section-title-header {
        font-size: 20px;
    }
}

.story-pattern-element {
    fill: rgba(98, 111, 102, 0.1);
}

.mre-logo-block {
    fill: var(--primary-blue);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}
