/* =========================
   THEME
   ========================= */
:root {
  --coral: #f26b6c;
  --teal: #5ac4be;
  --ink: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --soft: #f7f7fb;
  --border: #e5e7eb;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}
.navbar-brand {
  letter-spacing: -0.02em;
}
.nav-link {
  color: var(--ink) !important;
  font-weight: 600;
}
.nav-link.active {
  color: var(--coral) !important;
}
.navbar-logo {
  height: 50px;
}

/* =========================
   BUTTONS
   ========================= */
.btn-brand {
  border: 0;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 10px 18px rgba(242, 107, 108, 0.18);
}
.btn-outline-brand {
  border: 1px solid var(--border);
  color: var(--ink);
  background: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
}
.btn-outline-brand:hover {
  border-color: rgba(90, 196, 190, 0.55);
  box-shadow: 0 10px 18px rgba(90, 196, 190, 0.12);
}

/* =========================
   LAYOUT + TYPOGRAPHY
   ========================= */
section {
  scroll-margin-top: 90px;
}
.section {
  padding: 90px 0;
}
.section-sm {
  padding: 65px 0;
}

.eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--coral), var(--teal));
}
.h-title {
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  margin: 0.6rem 0 0.8rem;
}
.lead-muted {
  color: var(--muted);
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.75;
}

/* =========================
   HERO
   ========================= */
.hero-full {
  position: relative;
  height: 100vh;
  min-height: 620px;
  background: url("assets/hero.jpg") center / cover no-repeat;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, 0.75),
    rgba(17, 24, 39, 0.35)
  );
}
.hero-full .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-weight: 950;
  letter-spacing: -0.04em;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero-sub {
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

.hero-full.centered .row {
  text-align: center;
  justify-content: center;
}
.hero-full.centered .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

/* animations */
.hero-jump {
  animation: heroDropIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}
@keyframes heroDropIn {
  from {
    transform: translateY(-132px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.hero-fade {
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
@keyframes heroFadeUp {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================
   UTILS
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SERVICES
   ========================= */
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(242, 107, 108, 0.12);
  color: var(--coral);
  font-size: 1.25rem;
}
.service-icon.teal {
  background: rgba(90, 196, 190, 0.14);
  color: var(--teal);
}

.services-grid .service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.services-grid .service-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  opacity: 0;
  transition: opacity 0.18s ease;
  background: linear-gradient(
    90deg,
    rgba(242, 107, 108, 0.55),
    rgba(90, 196, 190, 0.55)
  );
  filter: blur(14px);
  z-index: 0;
}
.services-grid .service-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 220%;
  transform: rotate(18deg) translateX(-40%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.2s ease;
  background: linear-gradient(
    90deg,
    rgba(242, 107, 108, 0.1),
    rgba(90, 196, 190, 0.1)
  );
  z-index: 0;
}
.services-grid .service-card .inner {
  position: relative;
  z-index: 1;
}

.services-grid .service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(90, 196, 190, 0.55);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}
.services-grid .service-card:hover::before {
  opacity: 0.22;
}
.services-grid .service-card:hover::after {
  opacity: 1;
  transform: rotate(18deg) translateX(140%);
}

.services-grid .service-icon {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.services-grid .service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 20px rgba(242, 107, 108, 0.16);
}
.services-grid .service-card:hover .service-icon.teal {
  box-shadow: 0 12px 20px rgba(90, 196, 190, 0.18);
}

.services-grid .service-title {
  position: relative;
  display: inline-block;
}
.services-grid .service-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  transition: width 0.22s ease;
  opacity: 0.95;
}
.services-grid .service-card:hover .service-title::after {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .services-grid .service-card,
  .services-grid .service-card::before,
  .services-grid .service-card::after,
  .services-grid .service-icon,
  .services-grid .service-title::after {
    transition: none !important;
  }
}

/* =========================
   PORTFOLIO
   ========================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-btn {
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #fff;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}
.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.06);
  border-color: rgba(90, 196, 190, 0.55);
}
.filter-btn.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  box-shadow: 0 12px 22px rgba(242, 107, 108, 0.16);
}

.work {
  border-radius: var(--radius);
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  display: grid;
  grid-template-rows: 220px auto; /* 220px is the stable image area */
  overflow: hidden;              /* keep your rounded corners clean */
}
.work:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
}
.work img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f7f7fb;
  padding: 12px;
}
.work-meta {
  padding: 14px 14px 16px;
  min-height: 86px;              /* guarantees space for type + name */
}
.badge-type {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--muted);
}
.work-title {
  margin: 0.35rem 0 0;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* =========================
   TESTIMONIALS (scroll + arrows UNDER)
   ========================= */
.testimonials-wrap {
  background: var(--soft);
  border-top: 1px solid rgba(229, 231, 235, 0.85);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  overflow: hidden;
}
.testimonials-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* arrows row under the marquee */
.testimonials-nav {
  display: flex;
  justify-content: space-between; /* left + right */
  align-items: center;
  width: 100%;
  margin-top: 6px;
  padding: 0 4px;
}
.testimonials-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 8px 0 4px;
  scrollbar-width: none;
}

.testimonials-marquee::-webkit-scrollbar {
  display: none;
}
.testimonials-track {
  display: inline-flex;
  gap: 16px;
  padding-bottom: 2px;
}
.testimonial-card {
  width: min(360px, calc((100vw - 64px) / 3));
  max-width: 380px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-radius 0.22s ease;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 72px;
  line-height: 1;
  font-weight: 900;
  color: rgba(242, 107, 108, 0.14); /* soft coral */
  pointer-events: none;
  user-select: none;
}

.testimonial-card:hover::before {
  color: rgba(90, 196, 190, 0.18); /* soft teal on hover */
}

.testimonial-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 0.22s ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
}
.testimonial-card:hover::after {
  border-color: var(--teal);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.testimonial-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.85);
  padding: 6px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.testimonial-card:hover .testimonial-header img {
  transform: translateY(-1px);
  border-color: rgba(242, 107, 108, 0.35);
}
.client-name {
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.client-company {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: lighter;
  font-size: 10px;
  line-height: 2;
}

.testimonial-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.75;
  font-size: 11px;
  position: relative;
}
.testimonial-text::before {
  content: "“";
  position: absolute;
  left: -10px;
  top: -10px;
  font-size: 2.2rem;
  color: rgba(242, 107, 108, 0.22);
  font-weight: 900;
}
.testimonial-fallback {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  flex: 0 0 auto;
}
.t-arrow {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--ink);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}
.t-arrow:hover {
  transform: translateY(-1px);
  border-color: var(--coral);
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.1);
}
@media (max-width: 991px) {
  .testimonial-card {
    width: min(420px, calc((100vw - 48px) / 2));
  }
}
@media (max-width: 575px) {
  .testimonial-card {
    width: calc(100vw - 40px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-card,
  .testimonial-card::after,
  .testimonial-header img,
  .t-arrow {
    transition: none !important;
  }
}

@media (max-width: 575px) {
  .testimonials-shell {
    grid-template-columns: 1fr;
  }
  .t-arrow {
    display: none;
  }
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--soft);
  border-top: 1px solid rgba(229, 231, 235, 0.85);
}
.footer-box {
  border-radius: var(--radius);
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  height: 100%;
}

/* =========================
   FLOATING BUTTONS
   ========================= */
.fab-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease,
    opacity 0.16s ease;
}

.fab i {
  font-size: 1.35rem;
}

/* Hover effect (generic) */
.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.14);
}

/* Scroll-to-top hidden by default */
.fab-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.fab-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* WhatsApp specific hover */
.fab-wa:hover {
  background: linear-gradient(135deg, var(--teal), var(--coral));
  color: #fff;
  border-color: transparent;
}

/* Scroll top hover */
.fab-top:hover {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

/* Mobile tweaks */
@media (max-width: 575px) {
  .fab-stack {
    right: 14px;
    bottom: 14px;
  }
  .fab {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .fab i {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fab {
    transition: none !important;
  }
}


/* =========================
   BRANDS (logo circles)
   ========================= */
#brands .brand-circle{
  width: 100%;
  aspect-ratio: 1 / 1;           /* perfect square, turns into perfect circle */
  border-radius: 999px;          /* circle */
  display: grid;
  place-items: center;
  background: #fff;              /* white background */
  border: 1px solid rgba(229,231,235,.95);
  box-shadow: 0 10px 22px rgba(17,24,39,.05);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

#brands .brand-circle img{
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
  filter: none;
  transition: transform .16s ease;
}

#brands .brand-circle:hover{
  transform: translateY(-2px);
  border-color: rgba(90,196,190,.55);
  box-shadow: 0 16px 30px rgba(17,24,39,.10);
  background: rgba(90,196,190,.06);  /* subtle hover tint */
}

#brands .brand-circle:hover img{
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce){
  #brands .brand-circle,
  #brands .brand-circle img{
    transition: none !important;
  }
}



/* ---------- Skeleton base ---------- */
.skel {
  position: relative;
  overflow: hidden;
  background: #eee;
  border-radius: 12px;
}

.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  animation: skelShimmer 1.1s infinite;
}

@keyframes skelShimmer {
  100% { transform: translateX(100%); }
}

/* ---------- Brands skeleton ---------- */
.brand-skel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-skel {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: #eee;
}

/* ---------- Work card skeleton ---------- */
.work-skel {
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.work-skel .img {
  height: 190px;
  border-bottom: 1px solid #e7e7e7;
  border-radius: 0;
}

.work-skel .meta {
  padding: 12px 12px 14px;
}

.work-skel .line {
  height: 12px;
  border-radius: 8px;
  margin-top: 10px;
}

.work-skel .line.short { width: 36%; }
.work-skel .line.med   { width: 60%; }
.work-skel .line.long  { width: 82%; }
