/* ============================================
   BAMBOO DIGITAL LANDING PAGE
   Design: Old Teal/Blue gradients & alternating sections
   Font: Nunito
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

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

:root {
  /* Reverted to old TEAL Palette */
  --teal-900: #004d40;
  --teal-800: #00695c;
  --teal-700: #00796b;
  --teal-600: #00897b;
  --teal-500: #009688;
  --teal-400: #26a69a;
  --teal-300: #4db6ac;
  --teal-200: #80cbc4;
  --teal-100: #b2dfdb;
  --teal-50:  #e0f2f1;

  --light-bg: #f2fafa;

  /* Accent - Cyan mixed from old context */
  --accent: #00e5cc; 
  --accent-light: #64ffda;
  --accent-glow: rgba(0, 229, 204, 0.3);

  /* Neutrals */
  --white: #ffffff;
  --gray-200: #e0eeed;
  --gray-400: #7a9694;
  --gray-500: #546e6a;
  --gray-600: #37474f;
  --gray-800: #1a2327;
  --gray-900: #0d1517;
  --dark: #0a1214;

  /* Typography */
  --font-display: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Spacing & Utilities */
  --section-py: clamp(80px, 10vw, 120px);
  --container-px: clamp(20px, 5vw, 60px);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.text-accent { color: var(--accent); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(0, 77, 64, 0.95); /* Matched to dark teal */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-links { display: flex; gap: 32px; }
.nav-links a { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; font-weight: 600; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: none; 
}

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-btn span { width: 28px; height: 3px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* ============================================
   OLD BLUE/TEAL GRADIENT HERO
   ============================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.hero-bg-old {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('images/hero_bg.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Base fallback if image not present */
.hero-bg-old::before {
    content: ""; margin: 0; padding: 0;
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0947ba 0%, #1781c7 40%, #20b8b2 100%);
    z-index: -1;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-container { position: relative; z-index: 1; padding-top: 100px; padding-bottom: 80px; text-align: center; }

.hero-pill {
  display: inline-block; border: 1px solid rgba(255,255,255,0.4); border-radius: 50px; 
  padding: 8px 30px; font-size: 0.95rem; font-weight: 700; letter-spacing: 4px; color: #fff;
  margin-bottom: 20px;
}

.hero-title-2 { 
  font-family: var(--font-display); 
  font-size: clamp(4rem, 12vw, 8.5rem); 
  font-weight: 900; line-height: 0.85; margin-bottom: 24px; letter-spacing: -2px;
}
.hero-title-white { color: #ffffff; }
.hero-title-accent { color: var(--accent); }

.hero-subtitle { 
  font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: 6px; font-weight: 500; color: #fff; margin-bottom: 30px; 
}

.hero-desc { 
  font-size: clamp(1.1rem, 2vw, 1.4rem); color: rgba(255, 255, 255, 0.9); font-weight: 500;
  max-width: 800px; margin: 0 auto 50px; line-height: 1.8; 
}

.hero-actions { display: flex; justify-content: center; gap: 15px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 40px; border-radius: 50px; font-family: var(--font-body); font-size: 1.1rem; font-weight: 800; cursor: pointer; border: none; transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn-white { background: #fff; color: #0947ba; }
.btn-white:hover { background: #e0e0e0; transform: translateY(-3px); }

.btn-outline { border: 2px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-3px); }

.btn-block { width: 100%; }
.btn-submit { background: var(--accent); color: var(--teal-900); }
.btn-submit:hover { background: var(--accent-light); transform: translateY(-3px); box-shadow: 0 12px 35px var(--accent-glow); }

/* ============================================
   SECTIONS & ALTERNATING COLORS
   ============================================ */
.section { padding: var(--section-py) 0; position: relative; }

.section--white { background: var(--white); color: var(--gray-800); }
.section--light { background: var(--light-bg); color: var(--gray-800); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section--dark { background: var(--gray-900); color: var(--white); }
.section--cta { background: linear-gradient(135deg, #0947ba 0%, #20b8b2 100%); color: var(--white); } 

.section-tag { display: block; font-size: 1rem; font-weight: 700; color: var(--teal-600); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; text-align: center; }
.section-tag--dark { color: var(--teal-600); }

.section-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 40px; text-align: center; }
.section-title--dark { color: var(--gray-900); }

/* --- ABOUT --- */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; font-size: 1.2rem; line-height: 1.8; font-weight: 500;}
.about-content--dark { color: var(--gray-600); }
.about-content--dark strong { color: var(--gray-900); font-weight: 700;}

/* --- CLIENTS (Replaced Marquee with clean section) --- */
.clients-section { padding-top: 20px; }
.clients-heading { font-family: var(--font-display); text-align: center; font-size: 1.8rem; font-weight: 800; color: var(--gray-900); margin-bottom: 20px; }

/* --- SERVICES --- */
.card-grid { display: grid; gap: 24px; margin-top: 48px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 40px 24px; transition: all 0.4s; position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: var(--teal-300); }
.card--featured { background: var(--teal-50); border-color: var(--teal-300); }

.card-icon { font-size: 3rem; display: block; margin-bottom: 20px; text-align: center; }
.card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--teal-900); text-align: center; margin-bottom: 24px; }

.service-list .svc-item { margin-bottom: 24px; text-align: center; }
.svc-item h4 { font-size: 1.1rem; color: var(--gray-900); font-weight: 700; margin-bottom: 4px; }
.svc-item p { font-size: 1rem; color: var(--gray-600); }
.services-note { margin-top: 40px; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; font-size: 1.1rem; font-weight: 700; color: var(--gray-800); }

/* --- CASE STUDIES WITH IMAGES --- */
.case-studies { display: flex; flex-direction: column; gap: 40px; }
.cs-card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: stretch; transition: all 0.3s;
}
.cs-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(0, 229, 204, 0.4); }

.cs-image-col { width: 45%; flex-shrink: 0; background: #111; }
.cs-image-col img { width: 100%; height: 100%; object-fit: cover; }
.cs-info-col { width: 55%; padding: 50px 40px; }

.cs-badge { display: inline-block; background: rgba(0, 229, 204, 0.15); color: var(--accent); padding: 6px 18px; border-radius: 50px; font-size: 0.9rem; font-weight: 800; margin-bottom: 20px; }
.cs-info-col h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 16px; color: var(--white); }
.cs-info-col p { color: rgba(255,255,255,0.8); font-size: 1.1rem; line-height: 1.6; }

.cs-stat { margin-bottom: 20px; display: flex; flex-direction: column;}
.cs-val { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; line-height: 1.2; }
.cs-lbl { font-size: 0.95rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; font-weight: 700;}

.cs-stats { margin-top: 30px; }
.cs-stats--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;}

.cs-details { margin-top: 30px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.cs-item { margin-bottom: 20px; }
.cs-item strong { color: var(--white); font-size: 1.1rem; display: block; margin-bottom: 8px;}
.cs-item ul { list-style: disc; padding-left: 20px; color: rgba(255,255,255,0.8); font-size: 1.05rem;}

/* --- WORKFLOW --- */
.workflow-total { text-align: center; font-size: 1.2rem; margin-bottom: 50px; }
.workflow-total strong { color: var(--teal-600); font-weight: 800;}
.steps-list { display: flex; flex-direction: column; gap: 30px; max-width: 800px; margin: 0 auto; }
.step-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 30px; display: flex; gap: 30px; color: var(--gray-900); align-items: flex-start;
}
.step-num {
  width: 60px; height: 60px; border-radius: 50%; background: var(--teal-600); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; flex-shrink: 0;
}
.step-content h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--teal-900); margin-bottom: 16px; }
.step-content ul { list-style: disc; padding-left: 20px; font-size: 1.1rem; color: var(--gray-800); line-height: 1.6;}
.step-content li.highlight { color: #d32f2f; font-weight: 700; margin-top: 12px; list-style: none; padding-left: 0;}

/* --- CTA FORM --- */
.cta-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cta-title { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.cta-text p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.85); font-weight: 500;}
.contact-info-list { border-left: 4px solid var(--accent); padding-left: 20px; }

.cta-form { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-lg); padding: 40px; backdrop-filter: blur(10px); }
.form-group { margin-bottom: 20px; }
.cta-form input, .cta-form select { width: 100%; padding: 16px 20px; background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-sm); color: var(--white); font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; outline: none; transition: border 0.3s;}
.cta-form input::placeholder { color: rgba(255, 255, 255, 0.6); font-weight: 500;}
.cta-form input:focus, .cta-form select:focus { border-color: var(--accent); }
.cta-form select { appearance: none; cursor: pointer; color: rgba(255,255,255,0.9); }
.cta-form select option { background: var(--gray-800); color: var(--white); }

/* --- FOOTER --- */
.footer { background: var(--dark); padding: 80px 0 0; color: rgba(255, 255, 255, 0.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-col h4 { font-family: var(--font-display); font-weight: 800; color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col a { display: block; font-size: 1.05rem; padding: 8px 0; transition: color 0.3s; font-weight: 600;}
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 60px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: 1rem; font-weight: 500;}

/* --- MODAL --- */
.modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); padding: 50px; text-align: center; max-width: 450px; transform: scale(0.9); transition: transform 0.3s; }
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-icon { font-size: 4rem; display: block; margin-bottom: 20px; }
.modal-box h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--teal-900); margin-bottom: 16px; }
.modal-box p { color: var(--gray-600); margin-bottom: 30px; font-size: 1.1rem;}
.btn-primary#modalClose {background: var(--teal-600); color: var(--white);}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .card-grid--3 { grid-template-columns: 1fr 1fr; }
  .cs-card { flex-direction: column; }
  .cs-image-col, .cs-info-col { width: 100%; }
  .cs-image-col { height: 300px; }
  .cta-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; inset: 0; background: rgba(0, 77, 64, 0.98); flex-direction: column; align-items: center; justify-content: center; gap: 24px; z-index: 999; }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1.5rem; color: var(--white); }
  .mobile-menu-btn { display: flex; z-index: 1000; }
  .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); }
  
  .hero-title-2 { font-size: 4rem; }
  .hero-desc { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; gap: 16px;}
  .btn-outline { margin-left: 0 !important; }
  
  .card-grid--3, .footer-grid { grid-template-columns: 1fr; }
  .cs-stats--grid { grid-template-columns: 1fr; }
  .services-note { flex-direction: column; align-items: center; gap: 10px; }
}

/* ============================================
   MARQUEE (INDIVIDUAL LOGOS)
   ============================================ */
.marquee-wrapper { width: 100%; overflow: hidden; position: relative; margin: 30px 0; }
.marquee { display: flex; width: 100%; }
.marquee-content {
  display: flex; align-items: flex-end; /* CĂN DƯỚI ĐỀU */
  flex-shrink: 0; min-width: 100%; justify-content: space-around;
  animation: scrollMarquee 25s linear infinite; gap: 40px; padding: 0 20px;
}
.marquee--reverse .marquee-content { animation: scrollMarqueeRev 30s linear infinite; }

@keyframes scrollMarquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes scrollMarqueeRev { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.client-logo {
  height: auto; max-height: 55px; max-width: 160px;
  object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.1);
  opacity: 0.9; margin-bottom: 5px;
}

