/* ============================================
   Smart Tribe — webV1 — Modern Landing Page
   ============================================ */

/* ---- TOKENS ---- */
:root {
  --green:        #00A746;
  --green-light:  #00d15a;
  --green-dark:   #007F36;
  --green-glow:   rgba(0, 167, 70, 0.25);

  --bg:           #0a0a0f;
  --bg-2:         #111118;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-card-h:    rgba(255,255,255,0.07);

  --border:       rgba(255,255,255,0.07);
  --border-h:     rgba(0,167,70,0.4);

  --text:         #f0f0f0;
  --text-muted:   #888;
  --text-soft:    #ccc;

  --radius:       16px;
  --radius-sm:    10px;
  --radius-pill:  999px;

  --shadow-card:  0 4px 32px rgba(0,0,0,0.35);
  --shadow-glow:  0 0 40px rgba(0,167,70,0.2);

  --font:         'Inter', system-ui, sans-serif;
  --transition:   0.3s ease;

  --header-h:     70px;
  --section-py:   100px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ---- UTILITIES ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-py) 0; }

.text-gradient {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 60%, #5fff9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   BUTTONS
======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 20px var(--green-glow);
}
.btn--primary:hover {
  background: var(--green-light);
  box-shadow: 0 6px 28px rgba(0,167,70,0.45);
  transform: translateY(-2px);
}
.btn--ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green-light);
  background: rgba(0,167,70,0.06);
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

/* ========================
   HEADER / NAV
======================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nav__logo img { height: 48px; object-fit: contain; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav__link:hover { color: var(--text); background: var(--bg-card); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--green);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 8px;
  transition: all var(--transition);
  box-shadow: 0 0 20px var(--green-glow);
}
.nav__cta:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__wa {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,167,70,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green-light);
  transition: all var(--transition);
}
.nav__wa:hover {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition);
}
.nav__overlay.active { opacity: 1; }

/* ========================
   HERO
======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Animated background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,167,70,0.12) 0%, transparent 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,167,70,0.18) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,140,186,0.12) 0%, transparent 70%);
  top: 100px; right: -100px;
  animation-delay: -3s;
}
.orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,167,70,0.1) 0%, transparent 70%);
  bottom: 0; left: 30%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 0%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 120px;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0,167,70,0.12);
  border: 1px solid rgba(0,167,70,0.25);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-light);
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 4px var(--green); }
  50% { box-shadow: 0 0 14px var(--green), 0 0 24px var(--green-glow); }
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Scroll pill */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-pill {
  width: 28px; height: 48px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-pill__dot {
  width: 4px; height: 10px;
  background: var(--green-light);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
}

/* ========================
   STATS
======================== */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.stat:last-child { border-right: none; }

.stat__number {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================
   SECTION HEADER
======================== */
.section__head {
  text-align: center;
  margin-bottom: 64px;
}

.section__badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0,167,70,0.1);
  border: 1px solid rgba(0,167,70,0.2);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ========================
   SERVICES
======================== */
.services { background: var(--bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,167,70,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0,167,70,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--green-light);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.service-card:hover .service-card__icon {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px var(--green-glow);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-card__line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transition: width 0.4s ease;
}
.service-card:hover .service-card__line { width: 100%; }

/* ========================
   PRODUCTS
======================== */
.products { background: var(--bg-2); }

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.product-card__img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.product-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.04); }

/* iframe previews for live products */
.product-card__iframe {
  position: relative;
}
.product-card__iframe iframe {
  width: 200%;
  height: 200%;
  transform: scale(0.5);
  transform-origin: top left;
  border: none;
  pointer-events: none;
}
.product-card__iframe-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.product-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.product-badge--live {
  background: rgba(0,167,70,0.9);
  color: #fff;
  box-shadow: 0 2px 10px var(--green-glow);
}
.product-badge--soon {
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.product-card__body {
  padding: 20px;
}
.product-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-card__body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.product-tags span {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-light);
  transition: all var(--transition);
}
.product-link:hover {
  color: var(--green);
  gap: 10px;
}

/* ========================
   CLIENTS (Marquee)
======================== */
.clients { background: var(--bg); overflow: hidden; }
.clients .section__head { margin-bottom: 48px; }

.marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee__track img {
  height: 52px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.6);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.marquee__track img:hover {
  filter: grayscale(0) brightness(1);
  transform: scale(1.08);
}

/* ========================
   TESTIMONIALS
======================== */
.testimonials { background: var(--bg-2); }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
}
.testi-card::after {
  content: '"';
  position: absolute;
  top: 16px; right: 20px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(0,167,70,0.08);
  font-family: Georgia, serif;
  font-weight: 900;
}
.testi-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.testi-card__stars {
  display: flex;
  gap: 3px;
  color: #FFD700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.testi-card > p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.author__info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.author__info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Last testimonial spans full row on 3-col */
.testimonials__grid .testi-card:last-child:nth-child(3n+2) {
  grid-column: span 2;
}

/* ========================
   CONTACT
======================== */
.contact { background: var(--bg); }

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__left {
  padding-top: 8px;
}
.contact__left .section__badge { margin-bottom: 16px; }

.contact__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact__left > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact__wa-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(0,167,70,0.08);
  border: 1px solid rgba(0,167,70,0.25);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact__wa-btn:hover {
  background: rgba(0,167,70,0.15);
  border-color: var(--green);
  transform: translateX(4px);
}
.contact__wa-btn > i:first-child {
  font-size: 2rem;
  color: var(--green-light);
  flex-shrink: 0;
}
.contact__wa-btn strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.contact__wa-btn span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.contact__wa-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform var(--transition);
}
.contact__wa-btn:hover .contact__wa-arrow { transform: translateX(4px); }

/* Form */
.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: rgba(0,167,70,0.05);
  box-shadow: 0 0 0 3px rgba(0,167,70,0.1);
}

.form-status {
  margin-top: 14px;
  font-size: 0.875rem;
  text-align: center;
  min-height: 20px;
}
.form-status.success { color: var(--green-light); }
.form-status.error { color: #ff6b6b; }

/* ========================
   FOOTER
======================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer__brand img { margin-bottom: 10px; }
.footer__quote {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 260px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}
.footer__nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--green-light); }

.footer__social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer__social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========================
   WHATSAPP FAB
======================== */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,167,70,0.5);
  transition: all var(--transition);
}
.wa-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,167,70,0.6);
}

.wa-fab__tooltip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(6px);
  transition: all var(--transition);
  pointer-events: none;
}
.wa-fab:hover .wa-fab__tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ========================
   PORTFOLIO CAROUSEL
======================== */
.portfolio { background: var(--bg-2); }

.portfolio__carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.portfolio__viewport {
  overflow: hidden;
  flex: 1;
  border-radius: var(--radius);
}

.portfolio__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card */
.portf-card {
  min-width: 100%;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.portf-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-glow);
}

/* Browser mock */
.portf-card__browser {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  margin-left: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Screenshot */
.portf-card__screen {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg);
}
.portf-card__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.portf-card:hover .portf-card__screen img { transform: scale(1.04); }

.portf-card__screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 900px;
  transform-origin: top left;
  pointer-events: none;
  border: none;
  background: #0a0a0f;
}

/* Body */
.portf-card__body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.portf-card__category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-light);
  font-weight: 600;
}
.portf-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.portf-card__body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Nav buttons */
.portfolio__btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.portfolio__btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--bg-card-h);
}
.portfolio__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dots */
.portfolio__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.portfolio__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
}
.portfolio__dot.active {
  background: var(--green);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* ========================
   RESPONSIVE
======================== */

/* Tablet */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid .testi-card:last-child:nth-child(3n+2) { grid-column: span 1; }
}

/* Mobile nav */
@media (max-width: 768px) {
  :root {
    --section-py: 70px;
  }

  .nav__menu {
    position: fixed;
    top: 0; right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 24px 40px;
    gap: 4px;
    z-index: 999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav__menu.open { right: 0; }

  .nav__link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }
  .nav__cta {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
    justify-content: center;
  }

  .nav__toggle { display: flex; }
  .nav__overlay { display: block; }

  .hero__content { padding-bottom: 80px; }
  .hero__title { font-size: clamp(2.2rem, 10vw, 3.5rem); }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--border); }

  .services__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }

  .portf-card__screen { height: 160px; }
  .portfolio__btn { display: none; }

  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer__quote { margin: 0 auto; }
  .footer__social { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .contact__form { padding: 24px 18px; }

  .stats__grid { grid-template-columns: 1fr 1fr; }

  .wa-fab { bottom: 20px; right: 20px; }
}
