/* =========================================
   BYALL AUTOMATION — HOME PAGE
   home.css
   ========================================= */

/* HERO */

.hero-bg{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background:
    linear-gradient(105deg, rgba(2,11,26,.98) 0%, rgba(10,22,40,.93) 40%, rgba(13,27,62,.82) 70%, rgba(13,27,62,.72) 100%),
    url('https://byallautomation.com/wp-content/uploads/2026/04/ba-hero-1.webp') center/cover no-repeat;
  isolation:isolate;
}

.hero-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:150px 24px 60px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.hero-title{
  max-width:940px;
  margin:0 auto 32px;
  font-size:clamp(42px, 8vw, 110px);
  font-weight:800;
  line-height:1;
  text-align:center;
}

.hero-desc{
  max-width:740px;
  margin:0 auto 36px;
  font-size:18px;
  line-height:1.8;
  color:rgba(255,255,255,.95);
}

.hero-tags{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:40px;
}

.hero-buttons{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:48px;
}

/* =========================================
   STATS BOX
   ========================================= */

.stats-box {
  display: inline-flex;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  margin: 0 auto;
  box-shadow: 0 0 0 1px rgba(12,163,227,.08) inset,
              var(--shadow-md);
  animation: fadeSlideUp 0.9s 0.42s var(--ease-out) both;
}

.stat-item {
  padding: 24px 40px;
  min-width: 185px;
  border-right: 1px solid rgba(255,255,255,.09);
  text-align: center;
  transition: background var(--t-mid) var(--ease-out);
}

.stat-item:last-child { border-right: none; }

.stat-item:hover {
  background: rgba(255,255,255,.04);
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-item:nth-child(odd)  .stat-num { color: var(--gold); }
.stat-item:nth-child(even) .stat-num { color: var(--blue); }

.stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-top: 8px;
  font-weight: 600;
}

.hero-bottom-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
  text-align: center;
}

.hero-bottom-note::before,
.hero-bottom-note::after {
  content: '';
  width: 40px;
  height: 1.5px;
  display: block;
}

.hero-bottom-note::before { background: var(--gold); }
.hero-bottom-note::after  { background: var(--blue); }

/* =========================================
   HERO BOTTOM STRIP
   ========================================= */

.bottom-strip {
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-subtle);
}

.bottom-strip-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.strip-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

.strip-item i { color: var(--blue); }

/* =========================================
   HERO KICKER
   ========================================= */

.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin-bottom: 30px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  animation: fadeSlideDown 0.8s var(--ease-out) both;
}

.hero-kicker i { color: var(--gold); }

/* =========================================
   HERO TITLE
   ========================================= */

.hero-title {
  display: block;
  width: 100%;
  max-width: 940px;
  margin: 0 auto 32px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 8vw, 110px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.5px;
  text-transform: none;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  animation: fadeSlideUp 0.9s 0.1s var(--ease-out) both;
}

.gradient {
  display: inline;
  background: linear-gradient(105deg, #ffffff 0%, #7dd4f8 40%, #1a9fe0 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #1a9fe0;
}

.white {
  display: inline;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.gold {
  display: inline;
  color: #f5c518 !important;
  -webkit-text-fill-color: #f5c518;
  text-shadow: 0 4px 28px rgba(0,0,0,.5);
}

/* =========================================
   HERO DESC
   ========================================= */

.hero-desc {
  width: 100%;
  max-width: 740px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.80;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
  animation: fadeSlideUp 0.9s 0.2s var(--ease-out) both;
}

/* =========================================
   HERO TAGS
   ========================================= */

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  animation: fadeSlideUp 0.9s 0.28s var(--ease-out) both;
}

.hero-tags span {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.065);
  border: 1px solid var(--border-mid);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  letter-spacing: 0.3px;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-mid) var(--ease-spring);
}

.hero-tags span:hover {
  background: rgba(12,163,227,.12);
  border-color: rgba(12,163,227,.30);
  transform: translateY(-2px);
}
/* =========================================
   SEE ALL PROJECTS BUTTON FIX
   ========================================= */

.project-slider + .center-action {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 52px auto 0 !important;
  transform: none !important;
}

.project-slider + .center-action .btn-primary {
  margin: 0 auto !important;
}

.partner-card img { max-height: 32px; max-width: 84px; }

  .project-card { flex: 0 0 270px; }

  .project-content  { padding: 22px; }
  .project-title    { font-size: 16px; }
  .project-text     { font-size: 12.5px; }
  /* Sliders */
  .partner-card     { flex: 0 0 98px; height: 62px; padding: 8px; }
  .partner-card img { max-height: 28px; max-width: 74px; }
  .project-card     { flex: 0 0 252px; }



/* =========================================
   INFO CARDS
   ========================================= */

.info-card {
  background: #ffffff;
  padding: 34px;
  border-radius: var(--r-xl);
  box-shadow: 0 2px 12px rgba(15,23,42,.06), 0 8px 32px rgba(15,23,42,.05);
  border: 1px solid rgba(12,163,227,.14);
  transition: transform var(--t-mid) var(--ease-spring),
              box-shadow var(--t-mid) var(--ease-out),
              border-color var(--t-mid);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease-out);
}

.info-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 52px rgba(15,23,42,.13), var(--shadow-blue);
  border-color: rgba(12,163,227,.28);
}

.info-card:hover::before { opacity: 1; }

.info-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(12,163,227,.12), rgba(12,163,227,.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--blue);
  margin-bottom: 22px;
  border: 1px solid rgba(12,163,227,.18);
  transition: transform var(--t-mid) var(--ease-spring);
}

.info-card:hover .info-icon { transform: scale(1.1) rotate(3deg); }

.info-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.info-card p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-soft);
}


/* =========================================
   SERVICE CARDS
   ========================================= */

.service-card {
  background: #ffffff;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,23,42,.06);
  border: 1px solid rgba(12,163,227,.14);
  transition: transform var(--t-mid) var(--ease-spring),
              box-shadow var(--t-mid) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(15,23,42,.14), var(--shadow-blue);
}

.service-image {
  height: 235px;
  overflow: hidden;
  background: #e5e7eb;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover .service-image img { transform: scale(1.06); }

.service-content { padding: 36px; }

.service-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-dark);
  letter-spacing: -0.4px;
}

.service-content p {
  color: var(--text-soft);
  line-height: 1.72;
  margin-bottom: 22px;
  font-size: 15px;
}

.text-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--blue);
  transition: color var(--t-fast), gap var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.text-link:hover { color: var(--gold); }

/* =========================================
   PARTNER SLIDER
   ========================================= */

.partners-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.partners-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: partnerScroll 38s linear infinite;
}

.partners-track:hover { animation-play-state: paused; }

@keyframes partnerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-card {
  flex: 0 0 190px;
  height: 110px;
  background: #ffffff;
  border-radius: var(--r-md);
  border: 1px solid rgba(12,163,227,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform var(--t-mid) var(--ease-spring),
              box-shadow var(--t-mid) var(--ease-out);
  overflow: hidden;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}

.partner-card img {
  max-height: 68px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  transition: filter var(--t-mid);
}

/* =========================================
   PROJECT SLIDER
   ========================================= */

.project-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.project-track {
  width: max-content;
  display: flex;
  gap: 26px;
  animation: projectScroll 58s linear infinite;
}

.project-track:hover { animation-play-state: paused; }

@keyframes projectScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.project-card {
  flex: 0 0 325px;
  background: #ffffff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  border: 1px solid rgba(15,23,42,.07);
  transition: transform var(--t-mid) var(--ease-spring),
              box-shadow var(--t-mid) var(--ease-out);
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 48px rgba(15,23,42,.14);
}

.project-image {
  height: 185px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover .project-image img { transform: scale(1.05); }

.project-content { padding: 28px; }

.project-tag {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue);
  margin-bottom: 10px;
}

.project-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111827;
  line-height: 1.32;
  letter-spacing: -0.2px;
}

.project-text {
  color: #6b7280;
  font-size: 13.5px;
  line-height: 1.62;
}

.center-action {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 52px;
}

.center-action .btn-primary { display: inline-flex; }
/* =========================================
   BLUE SECTION
   ========================================= */

.blue-section {
  padding: 96px 24px;
  background: linear-gradient(140deg, #0369a1, var(--blue) 52%, #0e8dc7);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blue-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.12), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(232,173,23,.15), transparent 40%);
  pointer-events: none;
}

.blue-section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  position: relative;
}

.blue-section p {
  font-size: 19px;
  line-height: 1.72;
  max-width: 820px;
  margin: 0 auto 44px;
  color: rgba(255,255,255,.86);
  font-weight: 300;
  position: relative;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.location-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  padding: 34px;
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--t-mid), transform var(--t-mid) var(--ease-spring);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.location-card:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-5px);
}

.location-card i {
  font-size: 38px;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.location-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

/* =========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================= */

@media (max-width: 768px) {

  /* ── Hero ── */
 .hero-bg    { min-height: 100vh; }

  .hero-content {
    padding: 110px 18px 48px;
    gap: 0;
  }

  .hero-kicker {
    font-size: 9px;
    letter-spacing: 0.8px;
    padding: 7px 13px;
    margin-bottom: 18px;
    gap: 7px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 9vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.70;
    max-width: 100%;
    margin-bottom: 22px;
    color: rgba(255,255,255,.88);
  }

  .hero-tags {
    gap: 7px;
    margin-bottom: 24px;
  }

  .hero-tags span {
    font-size: 10px;
    padding: 7px 12px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    width: 100%;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 100%;
    padding: 15px 18px;
    font-size: 11px;
    letter-spacing: 0.8px;
    border-radius: 12px;
    justify-content: center;
  }
}
  /* ── Stats ── */
  .stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 16px;
  }

  .stat-item {
    min-width: auto;
    padding: 16px 10px;
    border-right: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(255,255,255,.09);
  }

  .stat-item:nth-child(even)     { border-right: none; }
  .stat-item:nth-last-child(-n+2){ border-bottom: none; }

  .stat-num   { font-size: 28px; letter-spacing: -0.5px; }
  .stat-label { font-size: 9.5px; letter-spacing: 0.8px; }

  .hero-bottom-note { display: none; }

  /* ── Bottom strip ── */
  .bottom-strip-inner {
    padding: 10px 14px;
    gap: 8px 12px;
  }

  .strip-item {
    font-size: 9px;
    letter-spacing: .6px;
    white-space: normal;
    gap: 6px;
  }
/* HERO TEXT CLEAN BREAK FIX */

@media (max-width:768px){

  .hero-title{
    font-size:24px;
    line-height:1.14;
    letter-spacing:-0.4px;
    max-width:360px;
    margin-left:auto;
    margin-right:auto;

    word-break:normal;
    overflow-wrap:normal;
    hyphens:none;
    text-wrap:balance;
  }

  .hero-title .gradient,
  .hero-title .white,
  .hero-title .gold{
    display:inline;
  }
}

@media (max-width:480px){

  .hero-title{
    font-size:24px;
    max-width:330px;
  }
}

