/* ============================================================
   artBit Solution — Homepage Sections
   New ARTBIT-inspired sections for index.php
============================================================ */

/* ── Section Numbers ── */
.section-number {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── ARTBIT Section Header ── */
.artbit-section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 48px;
}

.artbit-section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--text-dark-primary);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.artbit-section-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-dark-secondary);
  line-height: 1.7;
  max-width: 520px;
}

/* ── Focused Marquee Band ── */
.focused-marquee-section {
  background: #FFFFFF;
  padding: 32px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.focused-marquee-track {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.focused-marquee-content {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  animation: focusedMarquee 22s linear infinite;
  flex-shrink: 0;
  white-space: nowrap;
}

.focused-marquee-text {
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  color: #2563EB;
  letter-spacing: -0.03em;
  text-transform: capitalize;
}

.focused-dot {
  color: #60A5FA;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

/* ── Client Logos ── */
.clients-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.clients-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px 64px;
}

.client-logo-item {
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}

.client-logo-item:hover {
  opacity: 1;
}

/* ── ARTBIT Services List ── */
.artbit-services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}

.artbit-services-item {
  position: relative;
}

.artbit-service-card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 200px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: var(--card-bg, #F5F5F5);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.artbit-service-card:hover {
  transform: scale(1.005);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  z-index: 2;
}

.artbit-service-card:hover .artbit-service-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.artbit-service-card:hover .artbit-service-desc {
  max-height: 120px;
  opacity: 1;
}

.artbit-service-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.4s ease;
}

.artbit-service-card-inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.artbit-service-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #0F0F11;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.artbit-service-desc {
  font-size: 15px;
  color: rgba(15, 15, 17, 0.7);
  line-height: 1.65;
  max-width: 520px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.artbit-service-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.artbit-service-tags li {
  font-size: 12px;
  font-weight: 600;
  background: rgba(15, 15, 17, 0.1);
  color: rgba(15, 15, 17, 0.7);
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.artbit-service-arrow {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  width: 44px;
  height: 44px;
  background: rgba(15,15,17,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F0F11;
  opacity: 0;
  transform: translate(4px, -4px);
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
  z-index: 3;
}

/* ── Stats Strip ── */
.stats-strip-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stats-strip-item {
  background: var(--bg-white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-strip-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--text-dark-primary);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-strip-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark-secondary);
  letter-spacing: 0.02em;
}

/* ── Smart Development Dark ── */
.smart-dev-header {
  text-align: center;
  margin-bottom: 56px;
}

.smart-dev-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.smart-dev-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.smart-dev-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.smart-dev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.smart-dev-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.smart-dev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.smart-dev-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.smart-dev-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.smart-dev-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0;
}

/* ── Portfolio Grid ── */
.artbit-section-header-dark .artbit-section-title {
  color: white;
}

.artbit-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.artbit-port-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 320px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.artbit-port-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}

.artbit-port-card:hover .artbit-port-cta {
  gap: 12px;
}

.artbit-port-featured {
  grid-column: 1 / -1;
  min-height: 400px;
  flex-direction: row;
  align-items: stretch;
}

.artbit-port-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.artbit-port-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.artbit-port-glow {
  position: absolute;
  inset: 0;
}

.artbit-port-mockup {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 200px;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.artbit-port-mockup-screen {
  width: 100%;
  height: 100%;
}

.artbit-port-info {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.artbit-port-featured .artbit-port-info {
  max-width: 50%;
  margin-top: auto;
  background: none;
  justify-content: flex-end;
}

.artbit-port-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.artbit-port-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.artbit-port-result {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.artbit-port-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-top: 8px;
  transition: gap 0.3s var(--ease-spring);
}

/* ── Growth Banner ── */
.growth-banner-new {
  background: white;
  border-radius: var(--radius-lg);
  padding: 5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.04);
}

.growth-banner-text-wrap {
  flex: 1;
}

.growth-text-new {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text-dark-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pill-green-new {
  display: inline-block;
  background: #A3CBB3;
  color: #0F0F11;
  padding: 0.2rem 1.5rem;
  border-radius: 50px;
  transform: rotate(-2deg);
  display: inline-block;
}

.growth-banner-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2rem;
  flex-shrink: 0;
}

.growth-fact {
  text-align: right;
}

.growth-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark-primary);
  line-height: 1;
  letter-spacing: -0.04em;
}

.growth-fact span {
  font-size: 13px;
  color: var(--text-dark-secondary);
}

/* ── Testimonials ── */
.testimonial-quote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: normal;
  flex: 1;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-cite {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-style: normal;
}

.testimonial-cite strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-cite span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── CTA Band ── */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0, 132, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 60px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
}

.cta-band-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-band-accent {
  color: var(--accent-blue);
}

.cta-band-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Typing Line ── */
.artbit-line-typing {
  display: flex;
  align-items: center;
  gap: 2px;
}

#heroTypingText {
  transition: opacity 0.3s ease;
}

/* ============================================================
   RESPONSIVE — Homepage Sections
============================================================ */

/* ── Tablet Landscape (≤1024px) ── */
@media (max-width: 1024px) {
  .smart-dev-grid {
    grid-template-columns: 1fr 1fr;
  }
  .artbit-portfolio-grid {
    grid-template-columns: 1fr;
  }
  .artbit-port-featured {
    min-height: 320px;
  }
  .artbit-port-featured .artbit-port-info {
    max-width: 100%;
  }
  .artbit-port-mockup {
    display: none;
  }
  .stats-strip-inner {
    grid-template-columns: 1fr 1fr;
  }
  .growth-banner-new {
    flex-direction: column;
    align-items: flex-start;
  }
  .growth-banner-side {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 2rem;
  }
  .growth-fact {
    text-align: left;
  }
  .cta-band-inner {
    flex-direction: column;
    text-align: center;
    padding: 60px 40px;
  }
  .cta-band-actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .cta-band-headline {
    margin-bottom: 12px;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  /* Service cards */
  .artbit-services-list {
    gap: 3px;
  }
  .artbit-service-card {
    min-height: 160px;
  }
  .artbit-service-card-inner {
    padding: 2rem 1.5rem;
  }
  .artbit-service-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .artbit-service-desc {
    max-height: 100px;
    opacity: 0.8;
  }
  .artbit-service-arrow {
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
  }

  /* Stats */
  .stats-strip-inner {
    grid-template-columns: 1fr 1fr;
  }
  .stats-strip-section {
    padding: 40px 0;
  }
  .stats-strip-item {
    padding: 28px 20px;
  }
  .stat-strip-val {
    font-size: clamp(32px, 8vw, 48px);
  }

  /* Smart dev */
  .smart-dev-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .smart-dev-header {
    margin-bottom: 36px;
  }
  .smart-dev-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .smart-dev-sub {
    font-size: 15px;
  }
  .smart-dev-card {
    padding: 1.5rem;
  }

  /* Portfolio */
  .artbit-port-card {
    min-height: 260px;
  }
  .artbit-port-info {
    padding: 1.5rem;
  }
  .artbit-port-title {
    font-size: clamp(18px, 5vw, 24px);
  }

  /* Growth banner */
  .growth-banner-new {
    padding: 3rem 2rem;
    gap: 2rem;
  }
  .growth-text-new {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  .growth-fact strong {
    font-size: 2rem;
  }

  /* CTA band */
  .cta-band-inner {
    padding: 48px 24px;
    gap: 32px;
  }
  .cta-band-headline {
    font-size: clamp(28px, 6vw, 42px);
  }
  .cta-band-sub {
    font-size: 14px;
  }
  .cta-band-actions {
    width: 100%;
  }
  .cta-band-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Testimonials — override inline flex-basis from PHP */
  .testimonial-card {
    flex: 0 0 100% !important;
    padding: 2rem 1.5rem !important;
  }
  .testimonial-slider {
    margin: 0 -8px;
    padding: 0 8px;
  }
  .testimonial-track {
    gap: 16px;
  }

  /* Section headers */
  .artbit-section-header {
    margin-bottom: 32px;
  }
  .artbit-section-title {
    font-size: clamp(28px, 7vw, 42px);
  }
  .artbit-section-sub {
    font-size: 14px;
  }

  /* Clients */
  .clients-logos {
    gap: 24px 32px;
  }
  .clients-section {
    padding: 32px 0;
  }
  .clients-label {
    margin-bottom: 20px;
    font-size: 10px;
  }

  /* Section CTA */
  .section-cta-row {
    margin-top: 36px;
  }

  /* Focused marquee */
  .focused-marquee-section {
    padding: 20px 0;
  }
  .focused-marquee-text {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }
  .focused-marquee-content {
    gap: 32px;
    padding-right: 32px;
  }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {
  .stats-strip-inner {
    grid-template-columns: 1fr;
  }
  .stats-strip-item {
    padding: 20px 16px;
  }
  .stat-strip-val {
    font-size: clamp(28px, 10vw, 40px);
  }

  .artbit-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .artbit-port-card {
    min-height: 220px;
  }
  .artbit-port-info {
    padding: 1.25rem;
    gap: 0.5rem;
  }
  .artbit-port-title {
    font-size: 18px;
  }
  .artbit-port-result {
    font-size: 12px;
  }
  .artbit-port-cta {
    font-size: 12px;
  }

  .focused-marquee-text {
    font-size: 1.1rem;
  }

  .growth-banner-new {
    padding: 2rem 1.25rem;
  }
  .growth-text-new {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }
  .growth-fact strong {
    font-size: 1.6rem;
  }
  .growth-banner-side {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Service cards */
  .artbit-service-card-inner {
    padding: 1.5rem 1rem;
  }
  .artbit-service-title {
    font-size: clamp(1.2rem, 5.5vw, 1.6rem);
  }
  .artbit-service-tags li {
    font-size: 10px;
    padding: 3px 10px;
  }

  /* CTA */
  .cta-band-inner {
    padding: 36px 16px;
    border-radius: 16px;
  }
  .cta-band-headline {
    font-size: clamp(22px, 6vw, 32px);
  }

  /* Smart dev cards */
  .smart-dev-card {
    padding: 1.25rem;
  }
  .smart-dev-card h3 {
    font-size: 17px;
  }
  .smart-dev-card p {
    font-size: 13px;
  }
  .smart-dev-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem 1rem !important;
  }
  .testimonial-quote {
    font-size: 13.5px;
  }
  .testimonial-btn {
    width: 38px;
    height: 38px;
  }
}

/* ── Micro Mobile (≤360px) ── */
@media (max-width: 360px) {
  .artbit-section-title {
    font-size: clamp(22px, 7vw, 32px);
  }
  .focused-marquee-text {
    font-size: 1rem;
  }
  .focused-marquee-content {
    gap: 24px;
    padding-right: 24px;
  }
  .artbit-service-title {
    font-size: 1.15rem;
  }
  .growth-text-new {
    font-size: 1.2rem;
  }
  .cta-band-headline {
    font-size: 20px;
  }
  .smart-dev-title {
    font-size: clamp(22px, 6vw, 32px);
  }
  .artbit-port-card {
    min-height: 200px;
  }
}

