/* ====================================
   R&N Analytics - Landing Page Styles
   ==================================== */

/* CSS Variables */
:root {
    --color-primary: #137374;
    --color-dark-blue: #0a355b;
    --color-dark: #032137;
    --color-gray: #434343;
    --color-white: #fff;
    --color-cream: #fff7e9;
    --color-yellow: #fed992;
    --color-yellow-border: #fdbf49;
    --color-green: #98d29b;
    --color-teal: #78c6c4;
    --color-teal-bg: rgba(120, 198, 196, 0.2);
    --color-green-bg: rgba(152, 210, 155, 0.2);
    --color-yellow-bg: rgba(254, 217, 146, 0.2);
    
    --font-primary: 'Nunito', sans-serif;
    --font-heading: 'Figtree', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Landing Page Container */
.landing-page {
    width: 100%;
    margin: 0;
    position: relative;
}

/* ====================================
   Header Menu
   ==================================== */
.header-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px clamp(20px, 5vw, 100px);
    z-index: 100;
    background-color: #EFF8F6;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-menu.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header-menu.visible {
    transform: translateY(0);
    opacity: 1;
}

.logo {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 30px;
    color: var(--color-dark-blue);
    line-height: 45px;
    display: inline-flex;
    gap: 6px;
}

.logo img {
    height: 120px !important;
    width: auto;
}

/* Logo Animation */
.logo-rn {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background-color: transparent;
    color: var(--color-dark-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: rnHighlight 2s ease-in-out infinite;
}

.logo-analytics {
    display: inline-block;
    padding: 2px 0;
    color: var(--color-dark-blue);
    transition: color 0.3s ease;
    animation: analyticsHighlight 2s ease-in-out infinite;
}

@keyframes rnHighlight {
    0%, 100% {
        background-color: transparent;
        color: var(--color-dark-blue);
    }
    25%, 50% {
        background-color: var(--color-dark-blue);
        color: var(--color-white);
    }
}

@keyframes analyticsHighlight {
    0%, 50% {
        opacity: 0.6;
    }
    75%, 100% {
        opacity: 1;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
}

.mobile-nav-only {
    display: none !important;
}

.nav-links a {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-dark);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* ====================================
   Buttons
   ==================================== */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
    border-radius: 25px;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 16px 50px;
    box-shadow: 0 10px 20px -5px rgba(19, 115, 116, 0.4);
}

.btn-primary:hover {
    background-color: #0f6060;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -5px rgba(19, 115, 116, 0.5);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 18px 50px;
}

.btn-secondary:hover {
    background-color: #0f6060;
}

/* ====================================
   Section Labels
   ==================================== */
.section-label {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 18px;
    color: var(--color-primary);
    line-height: 35px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 5px;
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(160px, 18vh, 200px) 20px 10px; /* Increased top padding for visibility */
    background-color: #EFF8F6;
    overflow: visible; /* Allow decorations to overlap sections */
}

/* Wave Separator */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,192L80,197.3C160,203,320,213,480,208C640,203,800,181,960,170.7C1120,160,1280,160,1360,160L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 56px; /* Compact size */
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* Teal Dash above Title */
.hero-title::before {
    content: "";
    display: block;
    width: 60px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 4px;
    margin: 0 auto 30px;
}

.hero-description {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 20px; /* Compact size */
    line-height: 1.6;
    color: var(--color-gray);
    max-width: 700px;
    margin-bottom: 50px;
    z-index: 2;
}

/* Hero Decorations */
.hero-deco-left {
    position: absolute;
    left: 10%;
    bottom: -30px; /* Overlap the wave/section boundary */
    width: 65px;
    height: 65px;
    background-image: url('../assets/icons/Star 7.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(15deg);
    z-index: 10; /* Ensure it's on top of wave */
}

.hero-deco-right {
    position: absolute;
    right: 10%;
    top: 50%;
    width: 60px;
    height: 60px;
    background-image: url('../assets/icons/Group 17.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    z-index: 2;
}


/* ====================================
   Social Proof Banner
   ==================================== */
.social-proof {
    padding: 60px clamp(20px, 5vw, 100px);
    text-align: center;
}

.social-proof-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 40px;
    line-height: 50px;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.logo-scroll-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scroll 30s linear infinite;
}
/* Pause animation on hover */
.logo-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.9;
    flex-shrink: 0;
}

/* ====================================
   Problem Section
   ==================================== */
.problem-section {
    padding: 80px clamp(20px, 5vw, 100px);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: 5%; /* Fluid positioning */
    right: 15%; /* Fluid positioning */
    width: 60px;
    height: 60px;
    background-image: url('../assets/icons/Star 26.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    transform: none;
}

.problem-container {
    display: flex;
    align-items: center;
    position: relative;
}

.problem-main {
    flex: 1;
    background: var(--color-cream);
    border: 1px solid var(--color-yellow); /* Keep or remove based on exact design, looks borderless or subtle in some designs, keeping per code */
    border-radius: 30px;
    padding: 60px 80px 60px 60px;
}

.problem-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 48px; /* Compact */
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.problem-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 48px; /* Compact */
    line-height: 1.2;
    color: var(--color-primary);
}

.problem-details {
    flex: 0 0 420px;
    background: var(--color-white);
    border: 1px solid var(--color-yellow);
    border-radius: 30px;
    padding: 40px;
    margin-left: -60px; /* Slight overlap */
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.problem-details p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px; /* Compact */
    line-height: 1.6;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.problem-details p:last-child {
    margin-bottom: 0;
}

/* ====================================
   Value Section
   ==================================== */
.value-section {
    background: var(--color-teal-bg);
    padding: 80px clamp(20px, 5vw, 100px);
}

.value-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 45px;
    line-height: 55px;
    color: var(--color-dark);
    margin-bottom: 50px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.value-card {
    background: var(--color-white);
    border: 1px solid var(--color-teal);
    border-radius: 20px;
    padding: 25px;
    min-height: 289px;
}

.value-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 20px;
}

.icon-chart {
    width: 26px;
    height: 20px;
    background: linear-gradient(to top, var(--color-teal) 60%, transparent 60%),
                linear-gradient(to top, var(--color-yellow-border) 75%, transparent 75%) 9px 0,
                linear-gradient(to top, var(--color-green) 100%, transparent 100%) 18px 0;
    background-size: 8px 100%;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    border-radius: 2px 2px 0 0;
}

.value-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25px;
    line-height: 35px;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.value-card p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: var(--color-gray);
}

/* ====================================
   Differentiation Section
   ==================================== */
.differentiation-section {
    padding: 100px clamp(20px, 5vw, 100px);
}

.diff-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.diff-left {
    flex: 1;
    max-width: 500px;
    position: sticky;
    top: 120px; /* Sticky effect for the left content */
}

.diff-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start; /* Prevents cards from stretching to full width */
}

.diff-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 50px;
    line-height: 65px;
    color: var(--color-dark);
    margin-bottom: 50px;
}

.btn-culture-cta {
    background-color: var(--color-primary); /* Teal #137374 */
    color: white;
    width: 488px;
    max-width: 100%;
    height: 87px;
    border-radius: 25px;
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, background-color 0.2s;
}

.btn-culture-cta:hover {
    transform: translateY(-2px);
    background-color: #106061; /* Slightly darker teal */
}

.diff-card {
    border-radius: 20px;
    padding: 20px;
    width: 100%; /* Default fallback */
}

/* Green Card Style */
.diff-card-green {
    background: #e9f5e9; /* Light green bg */
    border: 1px solid var(--color-green);
    width: 665px;
    min-height: 120px;
    max-width: 100%; /* Prevent overflow on resize */
}

/* Yellow Card Style */
.diff-card-yellow {
    background: #fff9ed; /* Light yellow bg */
    border: 1px solid var(--color-yellow-border);
    width: 572px;
    min-height: 120px;
    max-width: 100%;
}

.diff-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    line-height: 30px;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.diff-card p {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-gray);
}

/* ====================================
   Who We Work With Section
   ==================================== */
.work-with-section {
    margin: 0 100px 60px;
    background: var(--color-teal-bg);
    border: 1px solid var(--color-teal);
    border-radius: 70px;
    padding: 60px 30px;
    text-align: center;
    position: relative;
    z-index: 1; /* Establish stacking context */
}

.work-with-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px;
    line-height: 42px;
    color: var(--color-dark);
    max-width: 894px;
    margin: 0 auto;
}

.work-with-star {
    position: absolute;
    right: 10%; /* Fluid positioning */
    bottom: 5%;
    width: 60px;
    height: 60px;
    background-image: url('../assets/icons/Star 27.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
}

/* Who We Work With - Containers */
.work-with-container {
    position: relative;
    background: white;
    border: 1px solid rgba(120, 198, 196, 0.5);
    border-radius: 100px;
    padding: 15px 10px;
    margin: 40px auto;
    max-width: 1000px;
}

.work-with-container:first-of-type {
    margin-top: 20px;
}

.work-with-category-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #E6F3F2; /* Matches section bg approximately */
    border: 1px solid rgba(120, 198, 196, 0.5);
    border-radius: 20px;
    padding: 6px 20px; /* Slightly tighter */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px; /* Slightly smaller font */
    letter-spacing: 1px;
    color: var(--color-dark);
    text-transform: uppercase;
    z-index: 2;
    white-space: nowrap;
}

/* Grid Layout */
.work-with-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping to keep in one horizontal line */
    gap: 5px; /* Tighter gap */
    width: 100%;
}

.work-with-grid-regions {
    justify-content: center;
    gap: 60px; /* Reduced gap between regions */
}

/* Grid Items */
.work-with-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Reduced gap between icon and text */
    flex: 0 1 auto;
    width: auto; /* Remove fixed width to accommodate PNGs with text */
    max-width: 130px; /* Reduced max-width to fit all in one line */
}

.work-with-icon {
    width: auto; /* Allow natural width */
    height: 85px; /* Increased height */
    object-fit: contain;
    max-width: 100%;
}

.work-with-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-dark);
    margin: 0;
    text-align: center;
}

/* Specific styling for Regions (SVGs) */
.work-with-grid-regions .work-with-item {
    width: 120px;
}

.work-with-grid-regions .work-with-icon {
    height: 55px; /* Increased from 60px */
    width: 55px; /* Increased from 60px */
    background-color: #0A355B;
    border-radius: 50%;
    padding: 14px; /* Increased padding */
}

/* ====================================
   Testimonials Section
   ==================================== */
.testimonials-section {
    padding: 10px clamp(20px, 5vw, 100px);
    position: relative;
}

.testimonials-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 45px;
    line-height: 60px;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    row-gap: 0;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--color-green-bg);
    border: 1px solid var(--color-green);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
}



.testimonial-card:nth-child(3) {
    margin-top: 80px; /* Move 2nd testimonial visually below the first one */
}

.testimonial-card:nth-child(4) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 500px;
    margin-top: 30px; /* Pull bottom card up to close vertical space */
}

.testimonial-logo {
    height: 32px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-gray);
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid #e0e0e0;
}

.author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: var(--color-dark);
}

.author-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-dark);
}

/* Decorative Icons */
.testimonials-decoration {
    position: absolute;
    left: 20%;
    top: 70%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 1;
    pointer-events: none;
}

.testimonials-decoration img {
    width: 100%;
    height: auto;
}

.testimonials-deco-x {
    position: absolute;
    bottom: -70px; 
    left: 5%;
    width: 60px;
    height: 60px;
    background-image: url('../assets/icons/Star 7.svg');
    background-size: contain;
    background-repeat: no-repeat;
    /* transform: rotate(45deg); */
    z-index: 1;
}

.testimonials-deco-dash {
    position: absolute;
    right: 12%;
    top: 60%; /* Slightly lower */
    width: 50px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 4px;
    z-index: 1;
}

/* ====================================
   FAQ Section
   ==================================== */
.faq-section {
    padding: 100px clamp(20px, 5vw, 100px);
    display: flex; /* Changed to row for 2-column layout */
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    max-width: 1200px; /* Constrain width */
    margin: 0 auto;
    position: relative;
}

.faq-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 80px; /* Larger title size per image */
    line-height: 1.1;
    color: var(--color-dark);
    flex: 0 0 450px; /* Fixed width for title column */
}

.faq-list {
    flex: 1; /* Take remaining space */
    max-width: 600px;
}

.faq-item {
    background: var(--color-cream);
    border: 1px solid var(--color-yellow-border); /* Slightly darker border */
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item summary {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    color: var(--color-dark);
    padding: 25px 60px 25px 30px; /* Increased padding */
    cursor: pointer;
    list-style: none;
    position: relative;
    white-space: normal; /* Allow text wrapping */
}

/* Custom Icon Circle */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-yellow-border); /* Match border color */
    color: var(--color-yellow-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-gray);
    padding: 0 30px 25px;
}

.faq-item ul {
    list-style: none;
    padding: 0 30px 25px;
    margin-top: -15px; /* Reduce gap after preceding paragraph */
}

.faq-item li {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-gray);
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.faq-item li::before {
    content: ''; 
    position: absolute;
    left: 5px;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: var(--color-gray);
    border-radius: 50%;
}

/* ====================================
   Final CTA Section
   ==================================== */
.final-cta-section {
    padding: 60px clamp(20px, 5vw, 100px);
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 100px;
    line-height: 90px;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.cta-description {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25px;
    line-height: 60px;
    color: var(--color-dark);
    margin-bottom: 30px;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background-color: var(--color-dark-blue);
    padding: 30px 50px 20px;
    position: relative;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.footer-logo-section {
    flex-shrink: 0;
}

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

.footer-links-container {
    display: flex;
    gap: 25px;
    flex: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 90px;
}

.footer-header {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-white);
    transition: opacity 0.3s;
}

.footer-header:hover {
    opacity: 0.8;
}

.footer-detail {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.4;
}

.contact-value {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.4;
    text-decoration: none;
}
a.contact-value:hover {
    text-decoration: underline;
}

.linkedin-link {
    display: inline-block;
}

.linkedin-link img {
    width: 20px;
    height: 20px;
}

.copyright {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 12px;
    color: var(--color-white);
    text-align: right;
    margin-top: 20px;
}

/* ====================================
   Geometric Shapes (Background)
   ==================================== */
.geometric-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ====================================
   Responsive Design
   ==================================== */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-blue);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Tablet & Smaller Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    .header-menu { padding: 10px 40px; }
    .logo img {
        height: 50px !important;
    }
    .nav-links { gap: 30px; }
    .hero { padding: 100px 40px 40px; }
    .hero-title { font-size: 45px; }
    
    .problem-section, .value-section, .differentiation-section, .testimonials-section, .faq-section, .final-cta-section {
        padding: 60px 40px;
    }
    
    .problem-container { align-items: flex-start; }
    .problem-details { margin-left: -40px; padding: 30px; }
    
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    
    .diff-container { gap: 40px; }
    .diff-left { position: static; max-width: 400px; }
    .diff-right { flex: 1.5; }
    .diff-card-green, .diff-card-yellow { width: 100%; }
}

/* Base Mobile / Tablet (max-width: 768px) */
@media (max-width: 768px) {
    /* Header & Nav */
    .header-menu { padding: 10px 10px; }
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #EFF8F6;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1000;
    }
    .nav-links.active { display: flex; }
    .nav-links.active .mobile-nav-only { display: block !important; }
    .nav-links a { font-size: 24px; }

    .mobile-nav-logo {
        width: 60px;
        height: auto;
        margin-bottom: 0;
    }

    .nav-links.active .mobile-nav-btn {
        background-color: var(--color-primary) !important;
        color: #fff !important;
        width: 250px !important;
        height: 60px !important;
        font-size: 20px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
        border-radius: 25px;
    }

    /* Sections General */
    .problem-section, .value-section, .differentiation-section, .testimonials-section {
        padding: 40px 20px;
    }
    .hero-deco-right {
        position: absolute;
        right: 10%;
        top: 38%;
        width: 40px;
        height: 40px;
        background-image: url('../assets/icons/Group 17.svg');
        background-size: contain;
        background-repeat: no-repeat;
        transform: translateY(-50%);
        z-index: 2;
    }

    .hero-deco-left {
        position: absolute;
        left: 10%;
        bottom: -10px; /* Overlap the wave/section boundary */
        width: 40px;
        height: 40px;
        background-image: url('../assets/icons/Star 7.svg');
        background-size: contain;
        background-repeat: no-repeat;
        transform: rotate(15deg);
        z-index: 10; /* Ensure it's on top of wave */
}

    /* Hero */
    .hero-title { font-size: 30px; }
    .hero-description { font-size: 18px; }

    /* Problem Section */
    .problem-container { flex-direction: column; }
    .problem-details {
        margin-left: 0;
        margin-top: -30px;
        width: 90%;
        align-self: center;
    }

    /* Differentiation */
    .diff-container { flex-direction: column; }
    .diff-left { max-width: 100%; text-align: center; }
    .btn-culture-cta { margin: 0 auto; }

    /* Testimonials */
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card:nth-child(3) { margin-top: 0; }
    .testimonial-card:nth-child(4) { margin-top: 0; }
}

/* Mobile Strict Implementation (max-width: 480px) per Figma */
@media (max-width: 480px) {
    /* Global Section Settings */
    .hero, .social-proof, .problem-section, .value-section, .differentiation-section, .testimonials-section, .faq-section, .final-cta-section {
        padding: 40px 20px;
    }

    /* 1. Hero Section */
    .hero {
        padding-top: 90px;
        padding-bottom: 110px;
        text-align: center;
        justify-content: flex-start;
    }
    .hero-title {
        font-size: 40px; /* Figma: 40px */
        line-height: 50px;
        padding-top: 10px;
    }
    .hero-title::before { margin: 0 auto 20px; } /* Center dash */
    .hero-description {
        font-size: 20px; /* Figma: 20px */
        line-height: 30px;
        margin-bottom: 30px;
    }
    .hero .btn {
        width: 330px;
        max-width: 100%;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        position: relative;
        z-index: 10;
    }

    /* 2. Social Proof */
    .social-proof-title {
        font-size: 25px;
        line-height: 35px;
        margin-bottom: 20px;
    }
    .logo-track { gap: 30px; }
    .client-logo { height: 35px; }

    /* 3. The Problem */
    .problem-section { 
        padding-top: 20px; 
    }

    /* Reposition the desktop star for mobile */
    .problem-section::before {
        top: 40px;
        right: 40px;
        width: 55px;
        height: 55px;
        z-index: 5;
    }
    
    /* Reset Container Styles */
    .problem-container { 
        display: flex;
        flex-direction: column; 
        align-items: center; /* Center the overlay */
        background-color: transparent;
        border: none;
        padding: 0;
    }
    
    /* Cream Card (Top Background) */
    .problem-main {
        background-color: var(--color-cream);
        border: 1px solid var(--color-yellow-border);
        border-radius: 30px;
        padding: 40px 20px 80px; /* Extra bottom padding to allow for overlap */
        text-align: left;
        width: 100%;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }

    .section-label { 
        font-size: 13px; 
        margin-bottom: 15px; 
        font-weight: 800;
        color: var(--color-primary); 
    }
    
    .problem-title, .problem-subtitle {
        font-size: 26px;
        line-height: 34px;
        margin-bottom: 5px;
    }
    
    /* White Card (Overlay Drop) */
    .problem-details {
        margin: -60px auto 0; /* Pull up to create overlap effect */
        padding: 30px 20px;
        width: 90%; /* Slightly narrower for overlay effect */
        border-radius: 20px;
        border: 1px solid var(--color-yellow-border);
        background: white;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Restore shadow for depth */
        position: relative;
        z-index: 2;
        flex: auto; /* Reset flex-basis to allow auto height */
    }
    .problem-details p { 
        font-size: 15px; 
        line-height: 25px;
        margin-bottom: 25px;
    }

    /* 4. Our Value */
    .value-title {
        font-size: 25px; /* Figma estimate */
        line-height: 35px;
        text-align: center;
    }
    
    /* New: Center the OUR VALUE label */
    .value-section .section-label {
        text-align: center;
        display: block;
        margin-bottom: 20px;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* New: Value Card layout (Icon + Title on same line) */
    .value-card { 
        min-height: auto; 
        padding: 20px; 
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 15px;
        text-align: left;
    }

    .value-icon, .icon-chart {
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .value-card h4 {
        margin-bottom: 0;
        flex: 1;
        font-size: 20px;
        line-height: 28px;
    }

    .value-card p {
        width: 100%;
        margin-top: 10px;
        font-size: 16px;
    }
    
    .value-section .btn {
        width: 100%; /* Match culture button */
        height: 70px;
        display: flex; /* Center alignment */
        align-items: center; justify-content: center;
        margin: 20px 0 0; /* Remove auto horizontal margin since width is 100% */
        font-size: 24px; /* Reduced to ensure one line */
        white-space: nowrap; /* Force one line */
    }

    /* 5. Differentiation */
    .diff-container {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Reduced gap from 80px/40px inherited */
    }

    .diff-left { 
        text-align: left;
        display: contents; /* Allows children to be reordered in the flex container */
    }
    
    .diff-title {
        font-size: 25px;
        line-height: 35px;
        order: 1; /* Title comes first */
        margin-bottom: 10px; /* Reduced margin */
        margin-top: -5px; /* Pull tighter to label */
    }

    .section-label {
        order: 0;
        margin-bottom: 0px;
    }

    .diff-right {
        order: 2; /* Cards come second */
        margin-bottom: 20px;
    }
    
    .btn-culture-cta {
        width: 100%;
        height: 70px;
        font-size: 24px;
        white-space: nowrap;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 3; /* Button comes last */
    }
    
    .diff-card {
        padding: 25px 20px;
    }
    .diff-card h4 { font-size: 18px; }
    .diff-card p { font-size: 15px; }

    /* 6. Who We Work With (Combined Implementation) */
    .work-with-section {
        background: var(--color-teal-bg);
        border: 1px solid var(--color-teal);
        border-radius: 20px;
        /* padding: 40px 20px; */
        margin: 20px 0;
        position: relative;
    }
    .work-with-title {
        font-size: 25px;
        line-height: 35px;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    /* Industries Container */
    .work-with-container {
        margin-top: 40px !important; /* Ensure spacing for pill */
    }
    .work-with-container:nth-of-type(1) {
        max-width: 356px;
        width: 100%;
        border-radius: 25px;
        padding: 45px 10px 20px;
        margin: 40px auto 30px; /* Added top margin */
        background: white;
        border: 1px solid rgba(120, 198, 196, 0.5);
    }
    .work-with-container:nth-of-type(1) .work-with-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 5px; row-gap: 20px;
        justify-items: center;
    }
    /* Regions Container */
    .work-with-container:nth-of-type(2) {
        max-width: 235px;
        width: 100%;
        border-radius: 25px;
        padding: 45px 10px 20px;
        margin: 40px auto 10px; /* Added top margin */
        background: white;
        border: 1px solid rgba(120, 198, 196, 0.5);
    }
    .work-with-container:nth-of-type(2) .work-with-grid-regions {
        display: flex; justify-content: center; gap: 30px;
    }
    /* Shared Items */
    .work-with-category-label {
        font-size: 11px;
        padding: 6px 20px;
        width: auto;
        min-width: 100px;
        background-color: #e4f4f3;
        border: 1px solid #78c6c4;
        border-radius: 20px;
        top: 0;
        letter-spacing: 0.5px;
        font-weight: 800;
        color: #434343;
    }
    .work-with-item { max-width: none; width: auto; }
    .work-with-icon { height: 40px; width: auto; max-width: 100%; }
    .work-with-grid-regions .work-with-icon { height: 40px; width: 40px; padding: 8px; }
    .work-with-label { font-size: 12px; font-weight: 700; margin-top: 8px; }
    
    .work-with-star {
        right: 10px;
        bottom: 10px;
        width: 40px;
        height: 40px;
    }
    .work-with-item { max-width: none; width: auto; }
    .work-with-icon { height: 40px; width: auto; max-width: 100%; }
    .work-with-grid-regions .work-with-icon { height: 40px; width: 40px; padding: 8px; }
    .work-with-label { font-size: 12px; font-weight: 700; margin-top: 8px; }

    /* 7. Testimonials */
    .testimonials-title { font-size: 25px; line-height: 35px; }
    .testimonials-grid { gap: 20px; }
    .testimonial-card { padding: 25px; }
    .testimonial-text { font-size: 15px; }

    /* 8. FAQ */
    .faq-section {
        display: block;
    }
    
    .faq-title {
        font-size: 25px;
        line-height: 35px;
        text-align: center; /* Center to match layout */
        margin-bottom: 20px;
    }

    .faq-item {
        background-color: var(--color-cream); /* Use cream background as requested */
        border: 1px solid var(--color-yellow-border);
        border-radius: 20px;
        margin-bottom: 15px;
    }

    .faq-item summary {
        font-size: 16px; /* Slightly smaller for mobile density */
        padding: 20px 50px 20px 20px;
        font-weight: 700;
        color: var(--color-dark);
    }

    .faq-item summary::after {
        right: 20px;
        width: 24px;
        height: 24px;
        font-size: 18px;
        border-color: var(--color-yellow-border); /* Explicitly lighter border */
        color: var(--color-yellow-border);
    }
    
    .faq-item p, .faq-item ul {
        font-size: 15px;
        line-height: 24px;
    }

    /* 9. Final CTA */
    .cta-title { font-size: 50px; line-height: 60px; }
    .cta-description { font-size: 18px; line-height: 28px; }
    .final-cta-section .btn {
        width: 330px;
        max-width: 100%;
        height: 70px;
        font-size: 30px;
        display: flex; align-items: center; justify-content: center;
        margin: 0 auto;
    }

    /* 10. Footer */
    .footer { padding: 20px 20px; }

    .footer-logo-section {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .footer-links-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    .footer-column { align-items: center; min-width: auto; }
    .footer-detail { align-items: center; }
    .copyright { text-align: center; }

    /* 11. Mobile Specific Overrides */
    
    /* Hide arrows in CTA buttons */
    .btn img, .btn-culture-cta img {
        display: none !important;
    }

    /* Position the decorative star near CTA */
    .deco-star-30 {
        left: auto;
        right: 20px;
        width: 40px; 
        height: 40px;
        margin-top: -30px; /* Pull into the gap between FAQ and CTA */
    }

    .hero-deco-right {
        position: absolute;
        right: 10%;
        top: 38%;
        width: 10px;
        height: 10px;
        background-image: url('../assets/icons/Group 17.svg');
        display: none !important;
        background-size: contain;
        background-repeat: no-repeat;
        transform: translateY(-50%);
        z-index: 2;
    }

    .hero-deco-left {
        position: absolute;
        left: 10%;
        bottom: -10px; /* Overlap the wave/section boundary */
        width: 40px;
        height: 40px;
        background-image: url('../assets/icons/Star 7.svg');
        background-size: contain;
        background-repeat: no-repeat;
        transform: rotate(15deg);
        z-index: 10; /* Ensure it's on top of wave */
    }
    .testimonials-deco-x {
        position: absolute;
        bottom: -30px; 
        right: 5%;
        width: 40px;
        height: 40px;
        background-image: url('../assets/icons/Star 7.svg');
        background-size: contain;
        background-repeat: no-repeat;
        /* transform: rotate(45deg); */
        z-index: 1;
    }

    .testimonials-deco-dash {
        position: absolute;
        left: 10%;
        top: -58%;
        width: 60px;
        height: 8px;
        background-color: var(--color-primary);
        border-radius: 4px;
        z-index: 1;
    }

    .testimonials-decoration {
        position: absolute;
        left: 20%;
        top: 70%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        z-index: 1;
        pointer-events: none;
    }

    .testimonials-decoration img {
        width: 70px;
        height: 70px;
        display: none !important;
    }

}



/* ====================================
   Decorative Elements
   ==================================== */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.deco-group-17 {
    position: absolute;
    left: 1290px;
    top: 373px;
    width: 59px;
    height: 59px;
    background-image: url('../assets/icons/Group 17.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.deco-star-7 {
    position: absolute;
    left: 152px;
    top: 750px;
    width: 110px;
    height: 110px;
    background-image: url('../assets/icons/Star 7.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.deco-star-29 {
    position: absolute;
    left: 1300px;
    top: 2300px;
    width: 50px;
    height: 52px;
    background-image: url('../assets/icons/Star 29.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.deco-star-28 {
    position: absolute;
    left: 200px;
    top: 5250px;
    width: 50px;
    height: 52px;
    background-image: url('../assets/icons/Star 28.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.deco-star-30 {
    position: absolute;
    left: 35%; /* Centered horizontally */
    margin-top: -30px;
    width: 60px;
    height: 60px;
    background-image: url('../assets/icons/Star 26.svg'); /* Green Star */
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1; /* Bring forward if needed */
}

/* Mobile adjustments removed */
