/* ============================================================
   NEXZA Smart NFC Card — theme
   Tailwind (CDN) handles layout utilities; this file owns the
   brand look: navy backdrop, gradient text, glowing cards.
   ============================================================ */

:root {
  --navy-900: #050a1e;
  --navy-800: #0a1230;
  --navy-700: #101a44;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #a855f7;
  --line-green: #06c755;
  --linkedin: #0a66c2;
}

* { -webkit-tap-highlight-color: transparent; }

/* Lock the page: no scroll, no rubber-band bounce, fixed one-screen view */
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
/* position: fixed on body kills any residual iOS Safari scroll/bounce */
body {
  position: fixed;
  inset: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #e5e9f5;
  background:
    radial-gradient(1200px 700px at 50% -10%, #16215a 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 10%, #1b2a63 0%, transparent 45%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  background-attachment: fixed;
}

/* Faint geometric watermark (echoes the brand arrow motif) */
.bg-watermark::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(135deg, transparent 46%, rgba(59, 130, 246, 0.05) 47%, rgba(59, 130, 246, 0.05) 49%, transparent 50%),
    linear-gradient(135deg, transparent 56%, rgba(34, 211, 238, 0.04) 57%, rgba(34, 211, 238, 0.04) 59%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Fine film grain for premium texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell { position: relative; z-index: 1; }

/* Full-viewport height that works across browsers:
   JS sets --app-height to the real innerHeight; falls back to svh/vh. */
.screen-fit { height: 100vh; height: 100svh; height: var(--app-height, 100svh); }

/* ---- Brand wordmark ---- */
.nexza-logo { display: inline-block; object-fit: contain; }

/* ---- Employee identity ---- */
.employee-name {
  font-size: clamp(1.6rem, 7.5vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;      /* even line breaks for long names */
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.employee-position {
  text-wrap: balance;
}

/* ---- Gradient text ---- */
.grad-text {
  background: linear-gradient(90deg, var(--violet) 0%, var(--blue) 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* flowing shimmer variant — symmetric gradient loops seamlessly at 200% */
.grad-text.shimmer {
  background-image: linear-gradient(90deg, var(--violet), var(--blue), var(--cyan), var(--blue), var(--violet));
  background-size: 200% auto;
}
@media (prefers-reduced-motion: no-preference) {
  .grad-text.shimmer { animation: grad-flow 6s linear infinite; }
}
@keyframes grad-flow {
  from { background-position: 0% center; }
  to   { background-position: -200% center; }   /* one full tile = seamless loop */
}

/* ---- Employee logo, name & position: smooth blur-reveal entrance ---- */
@media (prefers-reduced-motion: no-preference) {
  .logo-in           { animation: reveal-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .employee-name     { animation: reveal-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
  .employee-position { animation: reveal-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both; }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(7px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ---- Social coins (employee page) ---- */
.social-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  color: #fff;
  background:
    radial-gradient(120% 120% at 30% 22%, #1b2c5e 0%, #0c1636 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 20px -10px rgba(0, 0, 0, 0.8);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.22s ease;
}
/* crisp cyan→violet gradient ring */
.social-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.22s ease;
}
.social-circle svg { position: relative; z-index: 1; width: 1.45rem; height: 1.45rem; }
.social-circle:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 28px -10px rgba(34, 211, 238, 0.5);
}
.social-circle:hover::before { opacity: 1; }
.social-circle:active { transform: translateY(-1px) scale(0.95); }

/* brand-tinted glyphs */
.social-circle.i-phone    { color: #4fe3d0; }
.social-circle.i-email    { color: #8fb6ff; }
.social-circle.i-line     { color: #06c755; }
.social-circle.i-facebook { color: #4c93ff; }
.social-circle.i-linkedin { color: #3aa4f0; }

/* ---- Glow cards / buttons (business page) ---- */
.glow-card {
  position: relative;
  border-radius: 1.1rem;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(56, 189, 248, 0.09), transparent 62%),
    linear-gradient(158deg, rgba(30, 46, 104, 0.85) 0%, rgba(9, 16, 44, 0.94) 100%);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 12px 32px -18px rgba(34, 211, 238, 0.5);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.22s ease;
  color: #fff;
}
/* subtle cyan→violet gradient ring (matches icons + badges) */
.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.55) 0%, rgba(168, 85, 247, 0.3) 55%, rgba(34, 211, 238, 0.12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.glow-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 22px -2px rgba(34, 211, 238, 0.3),
    0 18px 40px -18px rgba(34, 211, 238, 0.85);
}
.glow-card:hover::before { opacity: 1; }
.glow-card:active { transform: translateY(-1px) scale(0.99); }

.glow-card.feature {
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(168, 85, 247, 0.14), transparent 62%),
    linear-gradient(120deg, rgba(96, 52, 180, 0.5) 0%, rgba(22, 38, 94, 0.9) 100%);
}
.glow-card.feature::before { display: none; } /* feature uses the animated ::after ring */

/* Animated conic gradient border on the primary CTAs */
@property --ring-a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.glow-card.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ring-a), transparent 55%, var(--cyan) 75%, var(--violet) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}
@media (prefers-reduced-motion: no-preference) {
  .glow-card.feature::after { animation: ring-spin 4.5s linear infinite; }
}
@keyframes ring-spin { to { --ring-a: 360deg; } }
.glow-card.feature:hover {
  border-color: rgba(150, 115, 245, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 22px -2px rgba(124, 58, 237, 0.3),
    0 16px 38px -18px rgba(124, 58, 237, 0.85);
}

.icon-tile svg { width: 2.2rem; height: 2.2rem; }

/* ---- Service badges ---- */
.service-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 9999px;
  color: #cffafe;
  background: radial-gradient(circle at 30% 24%, #1e3c82 0%, #0b1740 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 16px -8px rgba(34, 211, 238, 0.55);
}
/* cyan→violet gradient ring (matches the employee social coins) */
.service-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.service-badge svg { position: relative; z-index: 1; width: 1.6rem; height: 1.6rem; }

/* Clickable service badge */
.service-item { transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1); }
.service-item:hover { transform: translateY(-3px); }
.service-item:hover .service-badge {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 22px -6px rgba(34, 211, 238, 0.8);
}
.service-item:hover .service-badge::before { opacity: 1; }
.service-item:hover span:last-child { color: #e0f7ff; }
.service-item:active { transform: translateY(0) scale(0.97); }

/* ---- TikTok frame ---- */
/* Fills the grid cell so its height matches the contact-tile column,
   keeping the two-column block balanced. */
.tiktok-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 0;
  box-shadow: 0 12px 34px -18px rgba(34, 211, 238, 0.55);
  background: transparent;
  width: 100%;
  aspect-ratio: 9 / 16;   /* match the video so it fills with no black bars */
  align-self: center;
}
.tiktok-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Branded TikTok tile shown when no real embed URL is set */
.tiktok-cta { color: #fff; }
.tiktok-cta svg { width: 2.6rem; height: 2.6rem; }
.tiktok-cta:hover { color: #22d3ee; }

/* Video box (self-hosted playlist): clean 9:16, fills edge-to-edge */
.tiktok-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  align-self: center;
  border-radius: 1rem;
  overflow: hidden;
  border: 0;
  box-shadow: 0 12px 34px -18px rgba(34, 211, 238, 0.55);
  background: transparent;
}
.tiktok-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fill edge-to-edge, no black bars */
  display: block;
}
.tiktok-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}
.tiktok-play svg { width: 1.6rem; height: 1.6rem; margin-left: 2px; }
.tiktok-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}
.tiktok-badge svg { width: 0.85rem; height: 0.85rem; }
.tiktok-poster video.tiktok-poster-img { background: #05070f; }

/* Playlist controls (2+ videos) */
.pl-dots {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.3rem;
  z-index: 2;
}
.pl-dot {
  width: 0.4rem;
  height: 0.4rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.25s ease, box-shadow 0.25s ease;
}
.pl-dot.on {
  width: 1.2rem;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px -1px rgba(34, 211, 238, 0.8);
}
.pl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  background: rgba(8, 14, 34, 0.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0.75;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.pl-nav:hover { background: rgba(34, 211, 238, 0.85); opacity: 1; }
.pl-nav:active { transform: translateY(-50%) scale(0.92); }
.pl-prev { left: 0.4rem; }
.pl-next { right: 0.4rem; }

/* Mute / unmute toggle for the self-hosted video */
.tiktok-mute {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.tiktok-mute:hover { background: rgba(34, 211, 238, 0.85); }
.tiktok-mute svg { width: 1.15rem; height: 1.15rem; display: block; }
.tiktok-mute .i-off { display: none; }
.tiktok-mute.sound .i-on { display: none; }
.tiktok-mute.sound .i-off { display: block; }

/* ---- Portrait (employee page) ---- */
/* No card-clipped aura/scrim here — those framed the photo on wide viewports.
   Atmosphere lives on the full-viewport .ambient layer instead. */
.portrait { position: relative; }
.portrait img {
  position: relative;
  z-index: 1;
  /* fade the hard bottom crop edge into the backdrop */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
}
/* Shadow lives on a WRAPPER, not the masked <img>: iOS Safari renders an
   element that has both mask-image and an (animated) filter as blank/white.
   Downward-only shadow (offset 14px > blur 10px) = grounding depth, no halo. */
.portrait-fig {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  filter: drop-shadow(0 14px 10px rgba(0, 0, 0, 0.5));
}

/* branded monogram fallback (no real photo yet) */
.monogram {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  width: 100%;
}
.monogram span {
  position: relative;
  display: grid;
  place-items: center;
  width: min(46vw, 14rem);
  aspect-ratio: 1;
  border-radius: 9999px;
  font-size: min(19vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #cdebff;
  background: radial-gradient(120% 120% at 32% 22%, #1b2c5e 0%, #0b1636 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px -22px rgba(34, 211, 238, 0.5);
}
.monogram span::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.7;
}

/* ---- Ambient glow (full-viewport, never a card frame) ---- */
.ambient {
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 40% at 32% 32%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(42% 44% at 72% 62%, rgba(124, 58, 237, 0.12), transparent 72%);
}
@media (prefers-reduced-motion: no-preference) {
  .ambient { animation: drift 20s ease-in-out infinite alternate; }
}
@keyframes drift {
  from { transform: translate(-2.5%, -1.5%) scale(1); }
  to   { transform: translate(2.5%, 2.5%) scale(1.08); }
}

/* ---- Brand link (replaces the boxy card) ---- */
.brand-link {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, rgba(30, 42, 90, 0.35), rgba(12, 20, 48, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.22s ease;
}
/* periodic light sweep (works in any overflow-hidden container) */
.sheen {
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .sheen { animation: sheen 5.5s ease-in-out infinite; }
}
@keyframes sheen {
  0%        { left: -60%; }
  55%, 100% { left: 140%; }
}
.brand-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.22s ease;
}
.brand-link:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 30px -16px rgba(34, 211, 238, 0.65);
}
.brand-link:hover::before { opacity: 1; }
.brand-link:active { transform: translateY(0) scale(0.99); }

/* ---- Entrance motion (respects reduced-motion) ---- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .fade-up { animation: rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .portrait-fig { animation: portrait-in 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .d1 { animation-delay: 0.06s; }
  .d2 { animation-delay: 0.12s; }
  .d3 { animation-delay: 0.18s; }
  .d4 { animation-delay: 0.24s; }
  .d5 { animation-delay: 0.30s; }
  .d6 { animation-delay: 0.36s; }
  /* social icons: same elegant blur-reveal, sequenced after the name/position */
  .stagger > * { animation: reveal-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .stagger > *:nth-child(1) { animation-delay: 0.30s; }
  .stagger > *:nth-child(2) { animation-delay: 0.37s; }
  .stagger > *:nth-child(3) { animation-delay: 0.44s; }
  .stagger > *:nth-child(4) { animation-delay: 0.51s; }
  .stagger > *:nth-child(5) { animation-delay: 0.58s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes portrait-in {
  from { opacity: 0; transform: translateY(12px) scale(1.03); filter: blur(6px) drop-shadow(0 14px 10px rgba(0, 0, 0, 0.5)); }
  to   { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 14px 10px rgba(0, 0, 0, 0.5)); }
}

/* ---- Footer ---- */
.brand-footer {
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  color: rgba(203, 213, 225, 0.5);
  text-transform: uppercase;
}
