/* ════════════════════════════════════════
   Nexify Marketing — Stylesheet
════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: #0E0E0E; color: #F5F0EB; overflow-x: hidden; }

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── Blobs ── */
.blob { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }

/* ── Marquee ── */
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Floating label form ── */
.field-wrap { position: relative; }
.field-wrap input, .field-wrap textarea, .field-wrap select {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(245,240,235,0.15);
  border-radius: 10px; padding: 22px 18px 8px; font-family: inherit; font-size: 15px; color: #F5F0EB;
  outline: none; transition: border-color .25s, background .25s; resize: none;
}
.field-wrap input:focus, .field-wrap textarea:focus, .field-wrap select:focus {
  border-color: #D91A6B; background: rgba(217,26,107,0.05);
}
.field-wrap label {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: rgba(245,240,235,0.45); pointer-events: none;
  transition: top .2s, font-size .2s, color .2s;
}
.field-wrap textarea ~ label { top: 18px; transform: none; }
.field-wrap input:focus ~ label, .field-wrap input:not(:placeholder-shown) ~ label,
.field-wrap textarea:focus ~ label, .field-wrap textarea:not(:placeholder-shown) ~ label {
  top: 8px; transform: none; font-size: 11px; color: #D91A6B;
}
.field-wrap input.error, .field-wrap textarea.error { border-color: #ef4444; }
.error-msg { font-size: 12px; color: #ef4444; margin-top: 4px; display: none; }
.error-msg.show { display: block; }

/* ── Nav underline ── */
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 0; height: 2px; background: #D91A6B; border-radius: 2px; transition: width .25s;
}
.nav-link:hover::after { width: 100%; }

/* ── Card hover lift ── */
.card-lift { transition: transform .3s ease, box-shadow .3s ease; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(217,26,107,0.18); }

/* ── Badge pulse ── */
@keyframes badge-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(217,26,107,0.5)} 50%{box-shadow:0 0 0 8px rgba(217,26,107,0)} }
.badge-pulse { animation: badge-pulse 2.4s infinite; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0E0E0E; }
::-webkit-scrollbar-thumb { background: #D91A6B; border-radius: 3px; }

/* ── Reveal states ── */
.reveal       { opacity: 0; transform: translateY(40px); }
.reveal-left  { opacity: 0; transform: translateX(-50px); }
.reveal-right { opacity: 0; transform: translateX(50px); }
.reveal-scale { opacity: 0; transform: scale(0.93); }

/* ── Mobile menu ── */
#mobile-menu { transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s; }
#mobile-menu.open   { transform: translateY(0);    opacity: 1; pointer-events: all; }
#mobile-menu.closed { transform: translateY(-12px); opacity: 0; pointer-events: none; }

/* ── Team cards ── */
.team-card {
  position: relative;
  background: rgba(245,240,235,0.04);
  border: 0.5px solid rgba(245,240,235,0.08);
  border-radius: 20px;
  padding: 1.75rem 1rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), background 0.35s, border-color 0.35s, box-shadow 0.45s;
  overflow: hidden;
}
.team-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(135deg, rgba(217,26,107,0.12) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.team-card:hover { transform: translateY(-10px) scale(1.03); background: rgba(245,240,235,0.07); border-color: rgba(217,26,107,0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(217,26,107,0.12); }
.team-card:hover::before { opacity: 1; }

.avatar-wrap { position: relative; width: 110px; height: 110px; margin: 0 auto 1.1rem; }
.avatar-ring {
  width: 110px; height: 110px; border-radius: 50%; padding: 3px;
  background: conic-gradient(#D91A6B, #ff6ea0, #D91A6B);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s;
}
.team-card:hover .avatar-ring { transform: rotate(180deg) scale(1.08); box-shadow: 0 0 25px rgba(217,26,107,0.5); }
.avatar-inner {
  width: 100%; height: 100%; border-radius: 50%; background: #2a1a2e; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.team-card:hover .avatar-inner { transform: rotate(-180deg); }
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.avatar-badge {
  position: absolute; bottom: 2px; right: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; border: 2px solid #1a0f1e;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s;
}
.team-card:hover .avatar-badge { transform: scale(1.25) rotate(20deg); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }

.member-name { font-size: 13px; font-weight: 700; color: #F5F0EB; margin-bottom: 4px; transition: color 0.3s; }
.team-card:hover .member-name { color: #fff; }
.member-role { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.member-desc {
  font-size: 11px; color: rgba(245,240,235,0.5); line-height: 1.6;
  max-height: 0; overflow: hidden; opacity: 0; transform: translateY(8px);
  transition: max-height 0.5s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.team-card:hover .member-desc { max-height: 80px; opacity: 1; transform: translateY(0); }

.shimmer {
  position: absolute; top: -100%; left: -60%;
  width: 40%; height: 300%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-15deg); pointer-events: none; transition: left 0s;
}
.team-card:hover .shimmer { left: 150%; transition: left 0.7s ease; }

/* ── Team responsive grid ── */
.team-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.5rem; max-width: 1100px; margin: 3rem auto 0; }
@media(max-width:900px){ .team-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:600px){ .team-grid { grid-template-columns: repeat(2,1fr); } }

/* ── Service number ── */
.service-num {
  font-size: 4rem; font-weight: 800; line-height: 1;
  color: rgba(217,26,107,0.12); position: absolute; top: -10px; right: 20px;
  transition: color 0.3s; pointer-events: none; user-select: none;
}
.service-card:hover .service-num { color: rgba(217,26,107,0.25); }

/* ── Project card image zoom ── */
.project-card { overflow: hidden; }
.project-card img { transition: transform 0.5s ease; }
.project-card:hover img { transform: scale(1.06); }

/* ── Video ── */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 16px; }
.video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Star ── */
.star-svg { width: 16px; height: 16px; fill: #D91A6B; flex-shrink: 0; }
