* { box-sizing: border-box; }

.noise {
  background-image: radial-gradient(circle at 1px 1px, rgba(37,99,235,.10) 1px, transparent 0);
  background-size: 30px 30px;
}

.loader-line {
  animation: loadLine 1.1s ease-in-out infinite;
}
@keyframes loadLine {
  from { transform: translateX(-120%); }
  to { transform: translateX(230%); }
}

.nav-scrolled {
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(226,232,240,.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(15,23,42,.08);
}

.nav-link {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  color: #475569;
  transition: .25s ease;
}
.nav-link:hover {
  background: #eff6ff;
  color: #2563eb;
}

.mobile-link {
  border-radius: 16px;
  padding: 13px 14px;
  background: #f8fafc;
  font-weight: 800;
  color: #334155;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  font-size: .9rem;
  font-weight: 900;
  transition: .28s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  box-shadow: 0 18px 55px rgba(37,99,235,.22);
}

.secondary-btn {
  border: 1px solid #dbe5f0;
  background: white;
  color: #0f172a;
  box-shadow: 0 12px 35px rgba(15,23,42,.07);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbeafe;
  background: white;
  color: #2563eb;
  border-radius: 999px;
  padding: .48rem .78rem;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.mini-card {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px;
  font-size: 1.35rem;
}

.mini-card b {
  display: block;
  margin-top: .25rem;
  font-size: .82rem;
  color: #0f172a;
}

.stat-card {
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,.86);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 18px 55px rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
}

.stat-card b {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
  color: #0f172a;
}
.stat-card span {
  margin-top: .45rem;
  display: block;
  color: #64748b;
  font-size: .85rem;
  font-weight: 800;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-title {
  max-width: 780px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
  color: #0f172a;
}

.section-subtitle {
  max-width: 620px;
  color: #64748b;
  line-height: 1.8;
  font-size: 1.05rem;
}

.service-card,
.project-card,
.why-card,
.process-card,
.panel-card {
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,.92);
  border-radius: 30px;
  box-shadow: 0 22px 70px rgba(15,23,42,.10);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.service-card:hover,
.project-card:hover,
.why-card:hover,
.process-card:hover,
.panel-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 28px 85px rgba(37,99,235,.13);
}

.service-card {
  overflow: hidden;
}

.service-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.service-body {
  padding: 24px;
}

.service-card h3,
.process-card h3 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.service-card p,
.process-card p,
.project-card p {
  margin-top: .7rem;
  color: #64748b;
  line-height: 1.7;
  font-size: .94rem;
}

.service-card ul {
  display: grid;
  gap: .45rem;
  margin-top: 1rem;
  font-size: .84rem;
  color: #334155;
  font-weight: 750;
}
.service-card li::before {
  content: "✓";
  color: #2563eb;
  margin-right: .5rem;
  font-weight: 950;
}

.panel-card {
  padding: 28px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 18px;
  padding: .85rem 1rem;
}
.info-row span {
  color: #64748b;
  font-size: .77rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.info-row b {
  text-align: right;
  font-size: .92rem;
}

.stack-group {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 22px;
  padding: 1rem;
}
.stack-group b {
  display: block;
  margin-bottom: .8rem;
  font-size: .98rem;
}
.stack-group div {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.stack-group span,
.project-tag {
  border: 1px solid #dbeafe;
  background: white;
  color: #1e3a8a;
  border-radius: 999px;
  padding: .45rem .62rem;
  font-size: .75rem;
  font-weight: 850;
}

.filter-btn {
  border: 1px solid #dbe5f0;
  background: white;
  border-radius: 999px;
  padding: .72rem 1rem;
  font-weight: 900;
  color: #475569;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
  transition: .25s ease;
}
.filter-btn.active,
.filter-btn:hover {
  border-color: #93c5fd;
  background: #2563eb;
  color: white;
}

.project-card {
  overflow: hidden;
  min-height: 370px;
  display: flex;
  flex-direction: column;
}
.project-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}
.project-body {
  padding: 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}
.project-card h3 {
  margin-top: 1rem;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.why-card {
  min-height: 110px;
  display: flex;
  align-items: center;
  padding: 22px;
  font-weight: 950;
}

.process-card {
  padding: 22px;
}
.process-card span {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: #2563eb;
  font-weight: 950;
  border-bottom: 1px solid #93c5fd;
}

.input-field {
  width: 100%;
  outline: none;
  border: 1px solid #dbe5f0;
  background: white;
  color: #0f172a;
  border-radius: 18px;
  padding: .95rem 1rem;
  transition: .25s ease;
}
.input-field:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96,165,250,.12);
}

.faq-item {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(15,23,42,.06);
}
.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  font-size: 1rem;
  text-align: left;
  font-weight: 950;
}
.faq-item p {
  display: none;
  padding: 0 1.35rem 1.25rem;
  color: #64748b;
  line-height: 1.7;
}
.faq-item.open p {
  display: block;
}
.faq-item.open button span {
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .section-head {
    display: block;
  }
  .section-subtitle {
    margin-top: 1rem;
  }
}


/* === Menu-only update: floating rounded navbar like provided sample === */
.navbar {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 48px));
  height: 72px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 16px 0 13px;
  transition: 0.35s ease;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}

.brand-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 12px;
  color: #2563eb;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.11), rgba(255,255,255,0.9));
  box-shadow: inset 0 0 18px rgba(37, 99, 235, 0.05);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  line-height: 1.05;
  font-weight: 800;
  color: #0f172a;
}

.brand small {
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0 32px;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: 12px;
  color: #475569;
  font-weight: 700;
  transition: 0.2s ease;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: #2563eb;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: #2563eb;
}

.nav-links a:hover::after {
  right: 0;
}

.navbar .btn-small {
  padding: 10px 16px;
  font-size: 12px;
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(37,99,235,.16);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 6px auto;
  border-radius: 999px;
  background: #0f172a;
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .navbar {
    top: 10px;
    width: calc(100% - 22px);
    height: 66px;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(18px);
  }

  .nav-links.open {
    display: flex;
    animation: menuDrop .25s ease both;
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: #eff6ff;
    color: #2563eb;
  }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }
}


/* === Premium 3D Look Update === */
:root {
  --depth-shadow: 0 28px 80px rgba(15, 23, 42, 0.16), 0 8px 18px rgba(37, 99, 235, 0.08);
  --depth-shadow-strong: 0 34px 95px rgba(15, 23, 42, 0.22), 0 18px 40px rgba(37, 99, 235, 0.16);
  --edge-light: rgba(255,255,255,0.92);
  --edge-blue: rgba(37, 99, 235, 0.22);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(37,99,235,0.13), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(14,165,233,0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4f8ff 42%, #eaf4ff 100%) !important;
}

/* floating 3D navbar */
.navbar {
  height: 74px !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(242,248,255,0.82)) !important;
  border: 1px solid rgba(255,255,255,0.88) !important;
  box-shadow:
    0 22px 55px rgba(15,23,42,0.12),
    0 4px 0 rgba(255,255,255,0.88) inset,
    0 -1px 0 rgba(37,99,235,0.08) inset !important;
  transform: translateX(-50%) translateZ(0);
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 16px;
  border: 1px solid rgba(37,99,235,0.08);
  pointer-events: none;
}

.brand-icon {
  position: relative;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.95), transparent 24%),
    linear-gradient(145deg, #3b82f6, #0ea5e9) !important;
  color: white !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  box-shadow:
    0 14px 26px rgba(37,99,235,0.30),
    inset 0 2px 4px rgba(255,255,255,0.35),
    inset 0 -8px 18px rgba(15,23,42,0.13) !important;
}

.nav-links {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(239,246,255,0.62));
  border: 1px solid rgba(226,232,240,0.78);
  border-radius: 999px;
  padding: 6px 10px;
  gap: 8px !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.78),
    0 10px 22px rgba(15,23,42,0.06);
}

.nav-links a {
  padding: 9px 13px !important;
  border-radius: 999px;
}

.nav-links a:hover {
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
  color: white !important;
  box-shadow: 0 10px 24px rgba(37,99,235,0.25);
  transform: translateY(-1px);
}

.nav-links a::after {
  display: none !important;
}

.navbar .btn-small,
.primary-btn {
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.45), transparent 22%),
    linear-gradient(145deg, #2563eb, #0ea5e9) !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  box-shadow:
    0 16px 35px rgba(37,99,235,0.28),
    inset 0 2px 4px rgba(255,255,255,0.32),
    inset 0 -8px 18px rgba(15,23,42,0.13) !important;
}

.secondary-btn {
  background:
    linear-gradient(145deg, #ffffff, #f1f7ff) !important;
  border: 1px solid rgba(226,232,240,0.95) !important;
  box-shadow:
    0 14px 30px rgba(15,23,42,0.08),
    inset 0 2px 0 rgba(255,255,255,0.95),
    inset 0 -8px 18px rgba(37,99,235,0.04) !important;
}

/* 3D global card surfaces */
.stat-card,
.service-card,
.project-card,
.process-card,
.panel-card,
.faq-item,
#contact > div,
section .rounded-\[2\.4rem\],
section .bg-white {
  transform-style: preserve-3d;
}

.stat-card,
.service-card,
.project-card,
.process-card,
.panel-card,
.faq-item {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92)) !important;
  border: 1px solid rgba(255,255,255,0.9) !important;
  box-shadow: var(--depth-shadow) !important;
  overflow: hidden;
}

.stat-card::before,
.service-card::before,
.project-card::before,
.process-card::before,
.panel-card::before,
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(37,99,235,0.10), transparent 30%);
  pointer-events: none;
  z-index: 1;
}

.stat-card > *,
.service-card > *,
.project-card > *,
.process-card > *,
.panel-card > *,
.faq-item > * {
  position: relative;
  z-index: 2;
}

.stat-card::after,
.service-card::after,
.project-card::after,
.process-card::after,
.panel-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -16px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15,23,42,0.14);
  filter: blur(16px);
  z-index: 0;
}

.stat-card:hover,
.service-card:hover,
.project-card:hover,
.process-card:hover,
.panel-card:hover,
.faq-item:hover {
  transform: translateY(-9px) rotateX(1.5deg);
  box-shadow: var(--depth-shadow-strong) !important;
}

/* hero image 3D framed look */
.hero .relative.overflow-hidden.rounded-\[2\.4rem\],
.hero .relative.overflow-hidden.rounded-\[2\.4rem\].bg-white {
  border-radius: 2.3rem !important;
  background:
    linear-gradient(145deg, #ffffff, #eaf4ff) !important;
  box-shadow:
    0 34px 95px rgba(15,23,42,0.18),
    0 18px 42px rgba(37,99,235,0.14),
    inset 0 2px 0 rgba(255,255,255,0.95) !important;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero img {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.55),
    0 18px 55px rgba(15,23,42,0.12);
  transform: translateZ(22px);
}

.hero .absolute.bottom-8 {
  transform: translateZ(55px);
  background: rgba(255,255,255,0.90) !important;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow:
    0 22px 52px rgba(15,23,42,0.18),
    inset 0 2px 0 rgba(255,255,255,0.9) !important;
}

.mini-card {
  background:
    linear-gradient(145deg, #ffffff, #edf6ff) !important;
  border: 1px solid rgba(226,232,240,0.9) !important;
  box-shadow:
    0 10px 24px rgba(15,23,42,0.08),
    inset 0 2px 0 rgba(255,255,255,0.95);
  transition: 0.25s ease;
}

.mini-card:hover {
  transform: translateY(-4px) translateZ(20px);
  box-shadow: 0 16px 35px rgba(37,99,235,0.16);
}

/* 3D image cards */
.service-card img,
.project-card img,
.panel-card img {
  border-bottom: 1px solid rgba(226,232,240,0.9);
  filter: saturate(1.06) contrast(1.02);
}

.service-card:hover img,
.project-card:hover img {
  transform: scale(1.035);
}

.service-card img,
.project-card img {
  transition: 0.45s ease;
}

/* floating depth labels */
.badge,
.filter-btn,
.stack-group span,
.project-tag {
  background:
    linear-gradient(145deg, #ffffff, #f1f7ff) !important;
  border: 1px solid rgba(219,234,254,0.95) !important;
  box-shadow:
    0 9px 22px rgba(15,23,42,0.06),
    inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

.filter-btn.active,
.filter-btn:hover {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 26%),
    linear-gradient(145deg, #2563eb, #0ea5e9) !important;
  color: #fff !important;
  box-shadow:
    0 15px 34px rgba(37,99,235,0.25),
    inset 0 2px 4px rgba(255,255,255,0.28) !important;
}

/* service body spacing in 3d style */
.service-body {
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(239,246,255,0.42));
}

.service-card h3,
.project-card h3,
.process-card h3,
.panel-card h3 {
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

/* 3D form */
#leadForm,
#contact form,
form.rounded-\[2rem\] {
  background:
    linear-gradient(145deg, #ffffff, #eff6ff) !important;
  border: 1px solid rgba(255,255,255,0.94) !important;
  box-shadow:
    0 28px 80px rgba(15,23,42,0.14),
    inset 0 2px 0 rgba(255,255,255,0.95),
    inset 0 -12px 28px rgba(37,99,235,0.04) !important;
}

.input-field {
  background:
    linear-gradient(145deg, #ffffff, #f8fbff) !important;
  box-shadow:
    inset 0 2px 6px rgba(15,23,42,0.04),
    0 8px 18px rgba(15,23,42,0.04);
}

/* CTA 3D slab */
section .bg-brand {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.32), transparent 24%),
    linear-gradient(135deg, #2563eb, #0ea5e9 55%, #06b6d4) !important;
  box-shadow:
    0 34px 95px rgba(37,99,235,0.26),
    inset 0 2px 0 rgba(255,255,255,0.28),
    inset 0 -16px 36px rgba(15,23,42,0.13) !important;
}

/* mobile menu 3d */
@media (max-width: 1000px) {
  .nav-links {
    background:
      linear-gradient(145deg, rgba(255,255,255,0.98), rgba(239,246,255,0.94)) !important;
    box-shadow:
      0 26px 70px rgba(15,23,42,0.16),
      inset 0 2px 0 rgba(255,255,255,0.95) !important;
  }

  .nav-links a {
    background:
      linear-gradient(145deg, #ffffff, #f1f7ff) !important;
    box-shadow:
      0 8px 18px rgba(15,23,42,0.05),
      inset 0 1px 0 rgba(255,255,255,0.92);
  }
}

/* stronger page section depth */
section {
  position: relative;
}

.section-title,
.section-head {
  position: relative;
  z-index: 2;
}

/* Smooth 3D hover target class */
.tilt-card,
.project-card,
.service-card,
.panel-card,
.stat-card,
.process-card {
  will-change: transform;
}


/* === Sample feedback / reviews section === */
.review-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.92);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92));
  border-radius: 30px;
  padding: 28px;
  box-shadow:
    0 28px 80px rgba(15,23,42,0.14),
    inset 0 2px 0 rgba(255,255,255,0.95),
    inset 0 -12px 28px rgba(37,99,235,0.04);
  transition: 0.28s ease;
  min-height: 290px;
}

.review-card::before {
  content: "”";
  position: absolute;
  right: 24px;
  top: -22px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 130px;
  font-weight: 800;
  line-height: 1;
  color: rgba(37,99,235,0.08);
}

.review-card:hover {
  transform: translateY(-9px) rotateX(1.5deg);
  box-shadow:
    0 34px 95px rgba(15,23,42,0.20),
    0 18px 40px rgba(37,99,235,0.14);
}

.review-stars {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-bottom: 18px;
  color: #2563eb;
  letter-spacing: 3px;
  font-size: 15px;
  font-weight: 900;
}

.review-card p {
  position: relative;
  z-index: 2;
  color: #475569;
  line-height: 1.8;
  font-size: 15px;
}

.review-user {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.review-user span {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.42), transparent 25%),
    linear-gradient(145deg, #2563eb, #0ea5e9);
  box-shadow:
    0 14px 28px rgba(37,99,235,0.24),
    inset 0 2px 4px rgba(255,255,255,0.28);
}

.review-user b,
.review-user small {
  display: block;
}

.review-user b {
  color: #0f172a;
  font-size: 14px;
}

.review-user small {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}


/* === Mobile compact responsive improvement === */
html, body {
  overflow-x: hidden;
}

img { max-width: 100%; }

@media (max-width: 991px) {
  body {
    font-size: 14px;
  }

  section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  #home > section:first-of-type {
    padding-top: 96px !important;
    padding-bottom: 42px !important;
  }

  .navbar {
    top: 8px !important;
    width: calc(100% - 16px) !important;
    height: 60px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
  }

  .brand-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  .brand strong {
    font-size: 13px !important;
  }

  .brand small {
    display: none !important;
  }

  .nav-links {
    top: 68px !important;
    gap: 6px !important;
    padding: 12px !important;
  }

  .nav-links a {
    font-size: 12px !important;
    padding: 11px 12px !important;
  }

  .menu-toggle {
    width: 38px !important;
    height: 38px !important;
  }

  h1 {
    font-size: clamp(2.2rem, 8vw, 3.4rem) !important;
    line-height: 0.98 !important;
  }

  .section-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
    line-height: 1.02 !important;
  }

  .section-subtitle,
  .service-card p,
  .project-card p,
  .process-card p,
  .review-card p {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
  }

  .badge {
    font-size: 0.68rem !important;
    padding: 0.4rem 0.62rem !important;
  }

  .primary-btn,
  .secondary-btn,
  .whatsapp-btn,
  .navbar .btn-small {
    font-size: 0.82rem !important;
    padding: 0.78rem 1rem !important;
    min-height: 44px;
  }

  .stat-card,
  .service-card,
  .project-card,
  .process-card,
  .panel-card,
  .review-card,
  .faq-item {
    border-radius: 20px !important;
  }

  .stat-card,
  .process-card,
  .panel-card,
  .review-card {
    padding: 16px !important;
  }

  .service-body,
  .project-body {
    padding: 16px !important;
  }

  .service-card img,
  .project-card img,
  .panel-card img {
    height: 150px !important;
  }

  .mini-card {
    padding: 10px !important;
    border-radius: 14px !important;
    font-size: 1.1rem !important;
  }

  .mini-card b {
    font-size: 0.74rem !important;
  }

  .info-row {
    padding: 0.7rem 0.8rem !important;
    border-radius: 14px !important;
  }

  .info-row span {
    font-size: 0.66rem !important;
  }

  .info-row b {
    font-size: 0.8rem !important;
  }

  .stack-group {
    padding: 0.8rem !important;
    border-radius: 16px !important;
  }

  .stack-group span,
  .project-tag {
    font-size: 0.68rem !important;
    padding: 0.36rem 0.5rem !important;
  }

  .filter-btn {
    padding: 0.58rem 0.85rem !important;
    font-size: 0.74rem !important;
  }

  .review-user span {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .review-user b { font-size: 13px !important; }
  .review-user small { font-size: 11px !important; }

  #portfolio #filters {
    gap: 8px !important;
  }

  #contact > div,
  section .bg-brand {
    border-radius: 22px !important;
    padding: 18px !important;
  }

  #leadForm,
  #contact form,
  form.rounded-\[2rem\] {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .input-field {
    padding: 0.8rem 0.9rem !important;
    border-radius: 14px !important;
    font-size: 0.9rem !important;
  }

  .faq-item button {
    padding: 1rem !important;
    font-size: 0.92rem !important;
  }

  .faq-item p {
    padding: 0 1rem 1rem !important;
    font-size: 0.88rem !important;
  }

  footer {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  /* Compress grids to show more useful content */
  #home .mx-auto.grid.max-w-7xl.gap-4.sm\:grid-cols-2.lg\:grid-cols-5 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  #reviews .mt-10.grid,
  #portfolio #projectsGrid,
  #services .mt-10.grid,
  #skills .mt-10.grid,
  #process .mt-10.grid {
    gap: 12px !important;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  .reveal.inline-flex.items-center.gap-3.rounded-full.border {
    gap: 8px !important;
    padding: 8px 12px !important;
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
  }

  #home .reveal.mt-8.flex.flex-wrap.gap-3,
  #contact .mt-8.flex.flex-wrap.gap-3,
  .mt-8.flex.flex-wrap.gap-3 {
    gap: 10px !important;
  }

  #home .relative.overflow-hidden.rounded-\[2\.4rem\] img {
    height: 260px !important;
  }

  #home .absolute.bottom-8.left-8.right-8 {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    border-radius: 18px !important;
    padding: 12px !important;
  }

  #home .absolute.bottom-8 .mt-4.grid.grid-cols-2.gap-3.sm\:grid-cols-4 {
    gap: 8px !important;
  }

  .stat-card b {
    font-size: 1.4rem !important;
  }

  .stat-card span {
    font-size: 0.72rem !important;
    line-height: 1.3;
  }

  .service-card h3,
  .project-card h3,
  .panel-card h3,
  .process-card h3 {
    font-size: 1.08rem !important;
  }

  .project-card {
    min-height: auto !important;
  }

  .project-body > div:last-child {
    margin-top: 14px !important;
    flex-wrap: wrap;
  }

  .project-card .text-sm.font-black,
  .project-card button {
    font-size: 0.74rem !important;
  }

  .why-card {
    min-height: 78px !important;
    padding: 14px !important;
    font-size: 0.85rem !important;
  }

  .process-card span {
    margin-bottom: 0.7rem !important;
  }

  .review-card {
    min-height: auto !important;
    padding: 16px !important;
  }

  .review-stars {
    margin-bottom: 10px !important;
    font-size: 13px !important;
  }

  .floating-whatsapp,
  a.fixed.bottom-6.right-5.z-50 {
    right: 10px !important;
    bottom: 10px !important;
    padding: 10px 12px !important;
    border-radius: 999px !important;
  }

  a.fixed.bottom-6.right-5.z-50 span.hidden.sm\:inline {
    display: none !important;
  }
}

@media (max-width: 420px) {
  section {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  #home > section:first-of-type {
    padding-top: 88px !important;
  }

  h1 {
    font-size: 1.95rem !important;
  }

  .section-title {
    font-size: 1.6rem !important;
  }

  .brand strong {
    max-width: 108px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #home .mx-auto.grid.max-w-7xl.gap-4.sm\:grid-cols-2.lg\:grid-cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card { padding: 12px !important; }
  .stat-card b { font-size: 1.25rem !important; }

  .badge { font-size: 0.62rem !important; }

  .primary-btn,
  .secondary-btn,
  .whatsapp-btn {
    width: 100%;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .info-row b {
    text-align: left !important;
  }
}


/* === Correct file edit: mobile focused + performance compact === */
html, body { overflow-x: hidden; }
body { font-family: Inter, Arial, ui-sans-serif, system-ui, sans-serif !important; }

@media (max-width: 1024px) {
  section { padding-top: 42px !important; padding-bottom: 42px !important; }
  #home > section:first-of-type { padding-top: 88px !important; padding-bottom: 34px !important; }

  .navbar {
    top: 8px !important;
    width: calc(100% - 14px) !important;
    height: 58px !important;
    padding: 0 9px !important;
    border-radius: 14px !important;
  }
  .brand-icon { width: 35px !important; height: 35px !important; border-radius: 10px !important; }
  .brand strong { font-size: 13px !important; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand small { display: none !important; }
  .menu-toggle { width: 36px !important; height: 36px !important; }
  .nav-links { top: 66px !important; padding: 10px !important; gap: 6px !important; }
  .nav-links a { font-size: 12px !important; padding: 10px 11px !important; }

  h1 { font-size: clamp(2rem, 7vw, 3.2rem) !important; line-height: 1.02 !important; letter-spacing: -0.05em !important; }
  .section-title { font-size: clamp(1.65rem, 5.8vw, 2.3rem) !important; line-height: 1.04 !important; }
  .section-subtitle { font-size: .9rem !important; line-height: 1.5 !important; }
  .badge { font-size: .62rem !important; padding: .34rem .52rem !important; }

  .primary-btn, .secondary-btn, .whatsapp-btn, .btn-small {
    font-size: .78rem !important;
    padding: .7rem .88rem !important;
    min-height: 40px !important;
  }

  .stat-card, .service-card, .project-card, .process-card, .panel-card, .faq-item {
    border-radius: 16px !important;
    box-shadow: 0 12px 32px rgba(15,23,42,.08) !important;
  }

  .service-body, .project-body, .panel-card, .stat-card {
    padding: 12px !important;
  }

  .service-card img, .project-card img, .panel-card img {
    height: 112px !important;
    object-fit: cover !important;
  }

  .service-card h3, .project-card h3, .panel-card h3 {
    font-size: 1rem !important;
    margin-top: .55rem !important;
  }

  .service-card p, .project-card p, .panel-card p {
    font-size: .78rem !important;
    line-height: 1.45 !important;
    margin-top: .35rem !important;
  }

  .service-card p, .project-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-card ul {
    margin-top: .55rem !important;
    gap: .25rem !important;
  }
  .service-card li {
    font-size: .72rem !important;
    line-height: 1.25 !important;
  }
  .service-card li:nth-child(n+4) { display: none !important; }

  .stack-group { padding: .65rem !important; border-radius: 14px !important; }
  .stack-group b { font-size: .8rem !important; margin-bottom: .45rem !important; }
  .stack-group div { gap: .3rem !important; }
  .stack-group span, .project-tag {
    font-size: .62rem !important;
    padding: .28rem .42rem !important;
  }

  .filter-btn {
    font-size: .68rem !important;
    padding: .5rem .7rem !important;
  }

  .input-field {
    font-size: .82rem !important;
    padding: .72rem .8rem !important;
    border-radius: 12px !important;
  }

  #reviews, #faq, #process, .why-card, .review-card { display: none !important; }
}

@media (max-width: 640px) {
  #home .grid { gap: 18px !important; }
  #home h1 { font-size: 2rem !important; }
  #home p.reveal { font-size: .9rem !important; line-height: 1.45 !important; margin-top: 12px !important; }
  #typedText { font-size: .9rem !important; }
  #home .reveal.mt-8.flex.flex-wrap.gap-3:last-of-type { display: none !important; }

  #home .relative.overflow-hidden.rounded-\[2\.4rem\] img { height: 210px !important; }
  #home .absolute.bottom-8.left-8.right-8 {
    left: 9px !important; right: 9px !important; bottom: 9px !important;
    padding: 10px !important; border-radius: 14px !important;
  }
  .mini-card { padding: 8px !important; border-radius: 11px !important; font-size: 1rem !important; }
  .mini-card b { font-size: .68rem !important; }

  /* Important: 2 columns on mobile for more data */
  #services .mt-10.grid,
  #portfolio #projectsGrid,
  #process .mt-10.grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 9px !important;
  }

  #skills .mt-10.grid {
    gap: 10px !important;
  }

  .service-card img, .project-card img { height: 90px !important; }
  .service-body, .project-body { padding: 9px !important; }
  .service-card h3, .project-card h3 { font-size: .86rem !important; line-height: 1.15 !important; }
  .service-card p, .project-card p { font-size: .68rem !important; line-height: 1.35 !important; }
  .service-card ul { display: none !important; }

  .project-card .text-sm.font-black, .project-card button {
    font-size: .64rem !important;
    padding: .35rem .48rem !important;
  }
  .project-tag { display: none !important; }
  .project-tag:nth-child(-n+2) { display: inline-flex !important; }

  .stat-card:nth-child(2), .stat-card:nth-child(5) { display: none !important; }
  #home .mx-auto.grid.max-w-7xl.gap-4.sm\:grid-cols-2.lg\:grid-cols-5 {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 7px !important;
  }
  .stat-card { padding: 8px 5px !important; }
  .stat-card b { font-size: 1rem !important; }
  .stat-card span { font-size: .58rem !important; line-height: 1.2 !important; }

  .info-row { padding: .55rem .65rem !important; border-radius: 12px !important; }
  .info-row span { font-size: .58rem !important; }
  .info-row b { font-size: .72rem !important; }

  #contact > div { padding: 14px !important; border-radius: 18px !important; }
  #contact .section-subtitle { display: none !important; }
  #leadForm, #contact form, form.rounded-\[2rem\] { padding: 11px !important; border-radius: 14px !important; }
}

@media (max-width: 420px) {
  section { padding-top: 32px !important; padding-bottom: 32px !important; }
  #home > section:first-of-type { padding-top: 78px !important; }
  #home h1 { font-size: 1.75rem !important; }
  .section-title { font-size: 1.45rem !important; }

  .primary-btn, .secondary-btn, .whatsapp-btn { width: 100% !important; }
  #home .reveal.mt-8.flex.flex-wrap.gap-3 { gap: 8px !important; }

  #services .mt-10.grid,
  #portfolio #projectsGrid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .service-card, .project-card { min-height: auto !important; }
  .service-card img, .project-card img { height: 78px !important; }
  .service-card h3, .project-card h3 { font-size: .78rem !important; }
  .service-card p, .project-card p { font-size: .62rem !important; }

  .project-card .mt-7 { margin-top: 8px !important; }
  .stack-group span { font-size: .58rem !important; }
}

/* Performance: reduce heavy hover/3D on small devices */
@media (max-width: 1024px) {
  .service-card:hover, .project-card:hover, .panel-card:hover, .stat-card:hover {
    transform: none !important;
  }
  * {
    animation-duration: .25s;
  }
}
