/* ========================================
   Manufacturing Optimization - Global Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
    /* Colors */
    --primary-blue: #008acf;
    --accent-cyan: #00d4ff;
    --bg-white: #ffffff;
    --text-dark: #111418;
    --text-gray: #333;
    --transition: all 0.3s ease;

    /* --- TYPOGRAPHY SCALES (EQUALIZED) --- */
    /* All Main Titles */
    --size-title: 3.5rem;       
    /* All Subtitles / Child Titles */
    --size-child-title: 1.75rem; 
    /* All Content / Descriptions / Buttons */
    --size-content: 1.125rem;    
}

/* Responsive Typography Scaling */
@media (max-width: 1200px) {
    :root {
        --size-title: 3rem;
        --size-child-title: 1.6rem;
        --size-content: 1.1rem;
    }
}
@media (max-width: 1024px) {
    :root {
        --size-title: 2.75rem;
        --size-child-title: 1.5rem;
        --size-content: 1.05rem;
    }
}
@media (max-width: 768px) {
    :root {
        --size-title: 2.25rem;
        --size-child-title: 1.35rem;
        --size-content: 1rem;
    }
}
@media (max-width: 480px) {
    :root {
        --size-title: 1.85rem;
        --size-child-title: 1.2rem;
        --size-content: 0.95rem;
    }
}

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

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fff;
}

.page-container {
    max-width: 100%;
    margin: 0 auto;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gradientSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-66.666%); }
}

.animate-on-scroll { opacity: 0; }
.fade-in { animation: fadeIn 1s ease-out forwards; }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.fade-in-up-delay-1 { animation: fadeInUp 0.8s ease-out 0.2s forwards; }
.fade-in-up-delay-2 { animation: fadeInUp 0.8s ease-out 0.4s forwards; }
.fade-in-up-delay-3 { animation: fadeInUp 0.8s ease-out 0.6s forwards; }

/* ========================================
   SHARED SECTION STYLES
   ======================================== */
.section {
    padding: 48px 0;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 70px;
}

.section-title {
    font-size: var(--size-title);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
    color: #008acf;
    letter-spacing: -0.033em;
}

.section-subtitle {
    font-size: var(--size-child-title);
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.section-description {
    font-size: var(--size-content);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-gray);
}

/* Gradient text for specific sections */
.outcomes-section .section-title,
.why-choose-section .section-title {
    background: linear-gradient(90deg, #2BACE2 0%, #243377 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ========================================
   HERO SECTION 
   ======================================== */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1%;
    background: var(--bg-white);
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual iframe {
    width: 600px;
    height: 600px;
    border: none;
    filter: drop-shadow(0 20px 40px rgba(0, 102, 204, 0.15));
    transition: transform 0.3s ease;
}

.hero-visual:hover iframe {
    transform: scale(1.05);
}

.hero-title {
    font-size: var(--size-title);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.hero-title span {
    background: linear-gradient(90deg, #2BACE2 0%, #243377 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description,
.hero-additional-text {
    font-size: var(--size-content);
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}





/* ========================================
   OUTCOMES SECTION
   ======================================== */
.outcomes-section {
    background: var(--bg-white);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.outcome-card {
    background: var(--bg-white);
    border: 1px solid #dbe0e6;
    border-radius: 12px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 200px;
}

.outcome-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(19, 127, 236, 0.15);
}

.outcome-icon {
    width: 56px;
    height: 56px;
    background: rgba(19, 127, 236, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #137fec;
}

.outcome-icon .material-symbols-outlined {
    font-size: 36px;
}

.outcome-text {
    font-size: var(--size-content);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 500;
}

/* ========================================
   APPROACH SECTION
   ======================================== */
.approach-section {
    background: linear-gradient(135deg, #008acf 0%, #008acf 100%);
    padding: 80px 5%;
    width: 100%;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

.approach-container {
    max-width: 1400px;
    margin: 0 auto;
}

.approach-section .section-title {
    color: #ffffff;
}

.approach-section .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
}

.approach-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.timeline-left,
.timeline-right {
    position: relative;
    padding-left: 100px;
}



.approach-step {
    position: relative;
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.approach-step.last-step {
    margin-bottom: 0;
}

.step-marker {
    position: absolute;
    left: -100px;
    top: 0;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #137fec;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    flex-shrink: 0;
}

.step-marker .material-symbols-outlined {
    font-size: 36px;
}

.approach-step:hover .step-marker {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.6);
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-content-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.approach-step:hover .step-content-box {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.step-title {
    font-size: var(--size-child-title);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.step-description {
    font-size: var(--size-content);
    color: var(--text-dark);
    line-height: 1.7;
}

/* ========================================
   RESPONSIVE DESIGN (Only Layout Adjustments Needed)
/* ========================================
   RESPONSIVE MEDIA QUERIES 
   ======================================== */

/* Large Tablets & Small Desktops (1024px - 1200px) */
@media (max-width: 1200px) {
    .hero-content { grid-template-columns: 1fr 1fr; gap: 50px; }
    .hero-visual iframe { width: 100%; max-width: 500px; height: 500px; }
    .outcomes-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-timeline { gap: 60px; }
    .timeline-left, .timeline-right { padding-left: 90px; }
    .step-marker { left: -90px; width: 75px; height: 75px; }
    .step-marker .material-symbols-outlined { font-size: 34px; }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    /* 1. Change Hero to a Flex Column */
    .hero-content { 
        display: flex; 
        flex-direction: column; 
        gap: 25px; 
        text-align: center; 
        align-items: center;
    }
    
    /* 2. UNBOX the text container so children can be ordered freely */
    .hero-text {
        display: contents;
    }

    /* 3. Force the visual order */
    .hero-title { order: 1; margin-bottom: 0; }
    .hero-visual { order: 2; margin: 10px 0; }
    .hero-description { order: 3; }
    .hero-additional-text { order: 4; }
    .hero-cta, .bw-pg-btns-row { order: 5; margin: 10px auto 0; }

    .hero-visual iframe { width: 100%; max-width: 450px; height: 450px; }
  
    .approach-section { margin: 0; padding: 70px 6%; }
    .approach-timeline { grid-template-columns: 1fr; gap: 0; max-width: 800px; margin: 0 auto; }
    .timeline-left, .timeline-right { padding-left: 120px; }
    .timeline-left::before, .timeline-right::before { left: 47px; width: 4px; background: rgba(255, 255, 255, 0.5); }
    .timeline-left .approach-step.last-step { margin-bottom: 80px; }
    .timeline-right .approach-step:first-child { margin-top: 0; }
    .step-marker { left: -120px; width: 95px; height: 95px; box-shadow: 0 10px 30px rgba(255, 255, 255, 0.5); }
    .step-marker .material-symbols-outlined { font-size: 44px; }
    .step-content-box { padding: 35px 30px; }
    .approach-step { margin-bottom: 80px; }
    .step-content { padding-top: 15px; }
}

/* Mobile Devices (up to 768px) */
@media (max-width: 768px) {
    .hero-section { padding: 50px 5% 30px; min-height: auto; }
    .hero-title { letter-spacing: -1px; }
    .hero-visual iframe { width: 100%; max-width: 350px; height: 350px; }
    
    .outcomes-grid, .benefits-grid { grid-template-columns: 1fr; gap: 20px; }
    .outcome-card, .benefit-card { padding: 32px 26px; }
    
    .approach-section { margin: 0; padding: 50px 5%; }
    .approach-section .section-header { margin-bottom: 50px; }
    .approach-timeline { max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; }
    .timeline-left, .timeline-right { padding-left: 0; display: flex; flex-direction: column; }
    .timeline-left::before, .timeline-right::before { display: none; }
    .step-marker { position: relative; left: 0; margin: 0 auto 26px; width: 80px; height: 80px; box-shadow: 0 8px 24px rgba(255, 255, 255, 0.6); }
    .step-marker .material-symbols-outlined { font-size: 40px; }
    .approach-step { flex-direction: column; align-items: center; text-align: center; margin-bottom: 55px; gap: 0; }
    .approach-step.last-step { margin-bottom: 0; }
    .step-content { width: 100%; padding-top: 0; }
    .step-content-box { padding: 28px 24px; }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .hero-section { padding: 40px 5% 25px; }
    .hero-visual iframe { max-width: 300px; height: 300px; }
    .outcome-card, .benefit-card { padding: 28px 22px; }
    .outcome-icon { width: 50px; height: 50px; }
    .outcome-icon .material-symbols-outlined { font-size: 32px; }
    
    .approach-section { padding: 40px 5%; }
    .approach-section .section-header { margin-bottom: 40px; }
    .step-marker { width: 70px; height: 70px; margin-bottom: 22px; }
    .step-marker .material-symbols-outlined { font-size: 34px; }
    .approach-step { margin-bottom: 48px; }
    .step-content-box { padding: 24px 20px; }
}