/* =========================================================
   MASTER CSS - BLONEX STUDIO ELEMENTS
   Font: Onest (Loaded via Google Fonts in header/enqueue)
   NOTE: Logical inconsistencies fixed based on user request.
========================================================= */

/* === GLOBAL RESETS (Use with caution in Elementor to avoid affecting global theme) === */
.blonex-widget-container * { /* Targeting all elements within your widget for safety */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Onest', sans-serif;
  line-height: 1.6;
}

/* === CONTAINER === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 40px;
}

/* === HERO SECTION === */
.hero-content-wrapper {
    padding: 100px 20px;
    text-align: center;
}

.hero-section-header-holder h1 {
  font-family: 'Onest', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-section-header-holder h1 .grey-heading {
  color: #3c7efc;
}

.subtitle-text-holder {
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.subtitle-text {
  font-size: 1.1rem;
  color: #000;
  line-height: 1.6;
}

/* === CLIENT SOCIAL PROOF SECTION === */
.client-proof-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.team-images-holder {
  display: flex;
  align-items: center;
}

.team-single-image-holder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: -10px;
}

.team-single-image-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.team-single-image-holder img:hover {
  transform: scale(1.1);
}

.client-text-holder {
  text-align: left;
}

.client-text-top {
  font-size: 1rem;
  font-weight: 500;
  color: #3c7efc;
}

.client-text-bottom {
  font-family: 'Onest', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
}

/* === CALL TO ACTION BUTTON === */
.hero-buttons-holder {
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  background: #3c7efc;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px; 
  font-weight: 600;
  font-family: 'Onest', sans-serif;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap; 
  box-shadow: 0 4px 15px rgba(60, 126, 252, 0.2);
}

.button:hover {
  background: #2b5edc !important;
  transform: translateY(-4px); 
  box-shadow: 0 8px 25px rgba(43, 94, 220, 0.4);
}

.button-icon-holder {
  margin-left: 12px;
  font-size: 1.2rem;
  color: #fff;
  pointer-events: none;
}

/* === SECTION HEADINGS & UTILITIES === */
.center-text {
  text-align: center;
  margin-bottom: 50px;
}

.badge {
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  margin-bottom: 10px;
  display: inline-block;
}

.title {
  font-family: 'Onest', sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.title .grey-heading {
  color: #3c7efc;
}


/* === TABS MENU (FEATURED PROJECTS) === */
.tabs-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.tab-link-tab-1 {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 500;
  background: #506fa8; 
  border: 1px solid #3c7efc;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.tab-link-tab-1:hover {
    background: #2b5edc;
    transform: translateY(-1px);
}

.active-tab {
  background: #3c7efc;
  color: #fff;
  border-color: #3c7efc;
}

/* Tabs Content */
.tabs-content .tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tabs-content .active-content {
  display: block;
}

/* === VIDEO GRIDS (Desktop/Laptop Default) === */
.promo-grid, .product-grid, .saas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-video-holder {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  background: #111;
  aspect-ratio: 16 / 9;
}

.work-video-holder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.shorts-grid .work-video-holder {
  aspect-ratio: 9 / 16;
}

/* === ANIMATIONS (FOR TABS) === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === WHY CHOOSE US SECTION === */
.why-choose-us {
  padding: 30px 20px;
  text-align: center;
}

.why-container {
  max-width: 1100px;
  margin: 0 auto;
}

.why-header .badge {
  letter-spacing: 2px;
  font-size: 13px;
  color: #000;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 500;
}

.why-header h2 {
  font-family: 'Onest', sans-serif;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
}

.why-header h2 span {
  color: #3c7efc;
}

.why-content {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.why-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px;
  flex: 1 1 350px;
  max-width: 500px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  /* backdrop-filter: blur(8px); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.logo-holder {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.logo-holder img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.logo-holder h3 {
  font-family: 'Onest', sans-serif;
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}

.check-list, .cross-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li::before {
  content: "✔";
  color: #3c7efc;
  font-weight: bold;
  margin-right: 10px;
}

.cross-list li::before {
  content: "✘";
  color: #ff4e4e;
  font-weight: bold;
  margin-right: 10px;
}

.check-list li, .cross-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.bonuses {
  margin-top: 20px;
  background: rgba(60, 126, 252, 0.05);
  padding: 15px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.bonuses p {
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}

.bonuses li::before {
  content: "✔";
  color: #3c7efc;
  margin-right: 8px;
}

.cta-holder {
  margin-top: 50px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3c7efc;
  color: #fff;
  padding: 16px 36px;
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(60, 126, 252, 0.2);
}

.cta-button:hover {
  background: #2b5edc !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(43, 94, 220, 0.4);
}

/* === TIMELINE SECTION === */
.timeline-section-title {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.timeline {
  position: relative;
  max-width: 1100px;
  margin: 80px auto 120px;
  padding: 50px 20px;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #3c7efc, transparent);
  box-shadow: 0 0 10px rgba(60, 126, 252, 0.6);
  animation: pulse-glow 4s ease-in-out infinite;
  overflow: hidden;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(60, 126, 252, 0.6); }
  50% { box-shadow: 0 0 20px rgba(60, 126, 252, 0.6); }
}

.particle {
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #3c7efc;
  border-radius: 50%;
  animation: fall 5s linear infinite;
  opacity: 0.9;
  filter: blur(1px);
}

/* Fall animation controlled by JS, but defined here */
@keyframes fall {
  0% { top: -20px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 100px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  z-index: 2;
  transition: all 0.4s ease;
}

.timeline-item:hover .timeline-content {
  box-shadow: 0 0 25px rgba(60, 126, 252, 0.6);
  transform: translateY(-3px);
}

.timeline-content h3 {
  color: #3c7efc;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content p {
  color: #000;
  line-height: 1.5;
  font-size: 0.95rem;
}

.timeline-img {
  width: 40%;
  text-align: center;
}

.timeline-img img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(60,126,252,0.2);
  transition: transform 0.4s ease;
}

.timeline-item:hover .timeline-img img {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(60,126,252,0.3);
}

.ghost-number {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  color: #d3d3d3;
  font-weight: 800;
  z-index: 0;
  pointer-events: none;
}

/* === TIMELINE REVEAL ANIMATION (Saved Info) === */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}


/* =======================================
    CORE SERVICES WIDGET STYLES (Standalone)
    ======================================= */

/* Global Resets & Base for this Widget */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Onest", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Badge & Headings (Re-defining only the necessary global elements used here) */
.badge {
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  margin-bottom: 10px;
  display: inline-block;
}

h2 {
  font-family: 'Onest', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
}

h2 span {
  color: #3c7efc;
}

/* === CORE SERVICES WRAPPER === */
.services-wrapper { 
  width: 100%;
  margin: 100px 0;
  text-align: center;
  overflow: hidden;
}

.services-header {
  margin: 0 auto 50px auto; 
  animation: fadeInDown 1s ease;
  max-width: 1100px;
  padding: 0 20px;
}

.services-title {
  font-family: 'Onest', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 15px;
  color: #000;
}

.services-row {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

/* Infinite scroll track */
.services-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-left 30s linear infinite;
  will-change: transform;
  padding: 10px 0;
}

/* Second row scrolls in opposite direction */
.move-right .services-track {
  animation: scroll-right 30s linear infinite;
}

/* Pause animation only when hovering */
.services-row:hover:not(:active) .services-track {
  animation-play-state: paused;
}

/* === SERVICE CARD === */
.service-card {
  cursor: pointer;
  user-select: none;
  width: 300px;
  height: 200px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 6px rgba(60, 126, 252, 0.6);
}

.service-image {
  width: 60px;
  height: 60px;
  background: rgba(60, 126, 252, 0.15);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.service-image img {
  width: 45px;
  height: 45px;
  opacity: 0.9;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 8px 0 4px;
  color: #3c7efc;
}

.service-description {
  font-size: 0.85rem;
  color: #000;
  line-height: 1.5;
  margin: 0;
  padding: 0 10px;
}

/* ===== Animations ===== */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive for Services Section ===== */
@media (max-width: 1024px) {
  .services-track { animation-duration: 25s; gap: 16px; }
  .service-card { width: 260px; height: 190px; }
}
@media (max-width: 768px) {
  .services-track { animation-duration: 20s; }
  .service-card { width: 220px; height: 180px; }
  .services-title { font-size: 2rem; }
}
@media (max-width: 480px) {
  .services-track { animation-duration: 15s; }
  .service-card { width: 180px; height: 160px; }
  .services-title { font-size: 1.6rem; }
}

/* ------------------------------------------- */
/* === RESPONSIVE DESIGN (GLOBAL & PROJECT GRIDS) === */
/* ------------------------------------------- */

/* Tablet (≤ 1024px) - Grid remains 2 columns for all */
@media (max-width: 1024px) {
  .promo-grid, .product-grid, .saas-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shorts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-track { animation-duration: 25s; gap: 16px; }
  .service-card { width: 260px; height: 190px; }
}

/* Small Tablet/Mobile (≤ 900px) - Timeline adjustment */
@media (max-width: 900px) {
  .timeline-item {
    flex-direction: column !important;
    text-align: center;
    margin-bottom: 60px;
    padding-left: 50px;
  }
  .timeline-content, .timeline-img {
    width: 100%;
    margin-bottom: 20px;
  }
  .timeline-item:nth-child(odd) .timeline-content {
    order: -1;
  }
  .timeline-line {
    left: 25px;
    transform: none;
  }
  .timeline-content {
    text-align: left;
  }
  .ghost-number {
    font-size: 4rem;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* 🎯 Smartphone (≤ 768px) - All grids become 1 column (FIXED) 🎯 */
@media (max-width: 768px) {
  /* Featured Projects Grid: 1 column on mobile (As requested) */
  .promo-grid, .product-grid, .saas-grid, .shorts-grid {
      /** এই পরিবর্তনটিই নিশ্চিত করছে যে ভিডিওগুলো একটার নিচে আরেকটি আসবে **/
      grid-template-columns: 1fr; 
      gap: 15px;
  }

  .hero-section-header-holder h1 { font-size: 2.2rem; }
  .subtitle-text { font-size: 1rem; }
  .client-proof-holder {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .client-text-holder { text-align: center; }

  /* Buttons become full width and centered */
  .button {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .cta-button {
    width: 100%;
    display: flex; 
    justify-content: center;
    text-align: center;
  }

  .why-content { flex-direction: column; }
  .why-header h2 { font-size: 1.6rem; }
  .title { font-size: 2rem; }
  .tab-link-tab-1 { font-size: 0.95rem; padding: 10px 18px; }
  .services-track { animation-duration: 20s; }
  .service-card { width: 220px; height: 180px; }
  .services-title { font-size: 2rem; }
}

/* Extra Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .service-card { width: 180px; height: 160px; }
  .services-title { font-size: 1.6rem; }
}

/* Timeline adjustment for very small screens */
@media (max-width: 600px) {
    .timeline-item {
        padding-left: 25px;
    }
    .timeline-line {
        left: 15px;
    }
    .ghost-number {
        font-size: 3rem;
        top: -15px;
    }
}