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


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


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


* {
   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 5%;
}


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


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


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


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


.section-description {
   font-size: 1.125rem;
   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: 48px 5%;
   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: 3rem;
   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: 1.15rem;
   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(4, 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: 1.125rem;
   color: var(--text-dark);
   line-height: 1.7;
   font-weight: 500;
}


/* APPROACH SECTION */
.approach-section {
   background: linear-gradient(135deg, #008acf 0%, #008acf 100%);
   padding: 48px 5%;
   padding-bottom: 48px;
   margin-top: 48px;
   margin-bottom: 48px;
   width: 100%;
   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: 1.5rem;
   font-weight: 700;
   color: #ffffff;
   margin-bottom: 12px;
   line-height: 1.3;
}


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


/* ========================================
  WHY CHOOSE US SECTION
  ======================================== */
.why-choose-section {
   background: var(--bg-white);
}


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


.benefit-card {
   background: var(--bg-white);
   padding: 48px 32px;
   border-radius: 12px;
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   transition: var(--transition);
   gap: 24px;
   min-height: 240px;
   flex-wrap: wrap;
}


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


.benefit-icon-circle {
   width: 88px;
   height: 88px;
   background: var(--bg-white);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #137fec;
   box-shadow: 0 4px 12px rgba(19, 127, 236, 0.15);
   transition: var(--transition);
}


.benefit-icon-circle .material-symbols-outlined {
   font-size: 44px;
}


.benefit-card:hover .benefit-icon-circle {
   transform: scale(1.1);
}


.benefit-description {
   font-size: 1.125rem;
   color: var(--text-dark);
   line-height: 1.7;
   font-weight: 500;
}


/* ========================================
  RESPONSIVE DESIGN
  ======================================== */
/* ========================================
  RESPONSIVE MEDIA QUERIES
  ======================================== */


/* Large Tablets & Small Desktops (1024px - 1200px) */
@media (max-width: 1200px) {
   .hero-content {
       grid-template-columns: 1fr 1fr;
       gap: 30px;
   }


   .hero-visual iframe {
       width: 100%;
       max-width: 500px;
       height: 500px;
   }


   .outcomes-grid,
   .benefits-grid {
       grid-template-columns: repeat(2, 2fr);
   }


   .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;
   }
}














/* ==============================================================
  Digital Infrastructure Optimization - Specific Styles
  ============================================================== */


/* --- "What We Do" Grid (4 Cards) --- */
.dna-grid-4 {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 30px;
   margin-top: 40px;
}


/* --- "Why Choose Bitsware" Grid --- */
.why-bitsware-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 25px;
   max-width: 1000px;
   margin: 40px auto 0 auto;
   text-align: left;
}


.why-feature-card {
   background: #ffffff;
   padding: 30px;
   border-radius: 12px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
   display: flex;
   gap: 15px;
   align-items: flex-start;
   transition: transform 0.3s ease;
   border: 1px solid transparent;
}


.why-feature-card:hover {
   transform: translateY(-5px);
   border-color: #eef2f6;
   box-shadow: 0 15px 35px rgba(42, 60, 144, 0.08);
}


.why-feature-icon {
   color: #2A3C90;
   /* Bitsware Navy */
   background: #eef2f6;
   padding: 12px;
   border-radius: 8px;
   display: flex;
   align-items: center;
   justify-content: center;
}


.why-feature-text {
   font-size: 1.05rem;
   color: #334155;
   line-height: 1.5;
   margin: 0;
   font-weight: 500;
}


/* ==============================================================
  Responsive Media Queries
  ============================================================== */


/* Tablet Landscape & Small Laptops (Max Width: 1024px) */
@media (max-width: 1024px) {
   .dna-grid-4 {
       grid-template-columns: repeat(2, 1fr);
       /* 2 columns for tablet */
       gap: 20px;
   }
}


/* Tablets Portrait & Large Mobile (Max Width: 768px) */
@media (max-width: 768px) {
   .hero-title {
       font-size: 2.75rem;
   }


   .why-bitsware-grid {
       grid-template-columns: 1fr;
       /* Stack into 1 single column */
       gap: 20px;
       order: 1;
   }


   .why-feature-card {
       padding: 20px;
       /* Optional: Change flex-direction to 'column' here if you want
          the icon to sit above the text on mobile */
   }
}


/* Mobile Phones (Max Width: 576px) */


@media (max-width: 576px) {
   .hero-title {
       font-size: 2.75rem;
   }


   .dna-grid-4 {
       grid-template-columns: 1fr;
       /* Stack into 1 single column */
   }


   .why-feature-text {
       font-size: 0.95rem;
       /* Slightly smaller text for better mobile reading */
   }
}


