/* ===== Grown Man Systems — Custom Styles ===== */

html { scroll-padding-top: 84px; }

body { background-color: #08060f; }

/* ---------- Animated background ---------- */
.bg-grid {
  background-image:
    linear-gradient(to right, #ffffff 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff 1px, transparent 1px);
  background-size: 56px 56px;
}

.blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}
.blob--purple {
  top: -12%;
  left: -10%;
  background: radial-gradient(circle, #673de6 0%, transparent 70%);
  animation: drift 22s ease-in-out infinite;
}
.blob--pink {
  bottom: -18%;
  right: -12%;
  background: radial-gradient(circle, #fc5185 0%, transparent 70%);
  animation: drift 28s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(8%, 12%) scale(1.12); }
  66%      { transform: translate(-6%, -8%) scale(0.94); }
}

/* ---------- Typography helpers ---------- */
.gradient-text {
  background: linear-gradient(110deg, #8c85ff 0%, #673de6 45%, #fc5185 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c85ff;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.12;
}

/* ---------- Navbar ---------- */
#navbar.scrolled {
  background: rgba(13, 10, 28, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #cbd5e1;
  border-radius: 0.6rem;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.3rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #673de6, #fc5185);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.mobile-link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s;
}
.mobile-link:hover, .mobile-link.active {
  background: rgba(103, 61, 230, 0.15);
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(110deg, #673de6, #5025d1 55%, #fc5185);
  background-size: 180% 100%;
  background-position: 0% 0%;
  box-shadow: 0 8px 24px -8px rgba(103, 61, 230, 0.7);
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(252, 81, 133, 0.65);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(140, 133, 255, 0.6);
  transform: translateY(-2px);
}

/* ---------- Floating cards (hero) ---------- */
.float-card { animation: float 6s ease-in-out infinite; }
.float-card-slow { animation: float 8s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ---------- About feature pills ---------- */
.feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.25s ease;
}
.feature-pill:hover {
  border-color: rgba(140, 133, 255, 0.4);
  background: rgba(103, 61, 230, 0.08);
  transform: translateY(-3px);
}

/* ---------- What We Build cards ---------- */
.tilt-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.tilt-card:hover {
  transform: translateY(-8px);
  border-color: rgba(140, 133, 255, 0.45);
  box-shadow: 0 24px 50px -20px rgba(103, 61, 230, 0.55);
}

/* ---------- Service cards ---------- */
.service-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(140, 133, 255, 0.45);
  background: rgba(103, 61, 230, 0.06);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(103,61,230,0.25), rgba(252,81,133,0.25));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.check {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #673de6, #fc5185);
}

/* ---------- Product cards ---------- */
.product-card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(252, 81, 133, 0.45);
  box-shadow: 0 20px 44px -22px rgba(252, 81, 133, 0.55);
}
.product-img {
  height: 11rem;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img { transform: scale(1.08); }
.product-body { padding: 1.25rem; }

/* ---------- Testimonials ---------- */
.slide { min-width: 100%; padding: 0 0.5rem; }
.testimonial {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  text-align: center;
}
.testimonial .stars { color: #ffcd35; letter-spacing: 0.15em; font-size: 1.1rem; }
.testimonial .quote {
  margin-top: 1.1rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #e2e8f0;
  font-weight: 300;
}
.testimonial .author {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.testimonial .author img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(140, 133, 255, 0.5);
}
.testimonial .author .name { font-weight: 600; color: #fff; }
.testimonial .author .loc { font-size: 0.82rem; color: #94a3b8; }

.slider-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
}
.slider-btn:hover { background: rgba(103, 61, 230, 0.3); border-color: rgba(140,133,255,0.6); }

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.dot.active {
  width: 1.6rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #673de6, #fc5185);
}

/* ---------- Contact ---------- */
.contact-row { display: flex; align-items: center; gap: 1rem; }
.contact-ic {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(103, 61, 230, 0.12);
}
a.contact-row { transition: transform 0.2s ease; }
a.contact-row:hover { transform: translateX(4px); }

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
}
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.form-input::placeholder { color: #64748b; }
.form-input:focus {
  outline: none;
  border-color: #8c85ff;
  background: rgba(103, 61, 230, 0.08);
  box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.18);
}
.form-input.invalid {
  border-color: #fc5185;
  box-shadow: 0 0 0 3px rgba(252, 81, 133, 0.18);
}

/* ---------- Footer ---------- */
.footer-head {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-link { color: #94a3b8; transition: color 0.2s; }
.footer-link:hover { color: #8c85ff; }
.social {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s ease;
}
.social:hover {
  color: #fff;
  background: linear-gradient(135deg, #673de6, #fc5185);
  transform: translateY(-3px);
}

/* ---------- Back to top visible ---------- */
#to-top.show { transform: translateY(0); opacity: 1; }

/* ---------- Emoji rendering ---------- */
.emoji { display: inline-block; vertical-align: middle; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob, .float-card, .float-card-slow { animation: none; }
  html { scroll-behavior: auto; }
}
