/* ===== VANTMARK NETWORK — GLOBAL STYLES ===== */
/* Used alongside Tailwind CSS CDN */

/* ===== CSS Custom Properties (tokens from React styles.css) ===== */
:root {
  --radius: 1rem;
  --sky: #38BDF8;
  --sky-soft: #7DD3FC;
  --lime: #CBE637;
  --ink: #061634;
  --peach: #FDBA74;
  --muted: #F2F4F8;
}

/* ===== Base Layer ===== */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  color: var(--ink);
  background: white;
}
h1, h2, h3 { letter-spacing: -0.03em; font-weight: 800; }
img { max-width: 100%; }

/* Interactive elements */
button, [role="button"], a[href], summary, label[for], select,
[type="submit"], [type="button"], [type="reset"] {
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease,
    opacity .2s ease, transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
button:disabled, [type="submit"]:disabled, [aria-disabled="true"] { cursor: not-allowed; }
:where(button, a[href], [role="button"]):active:not(:disabled) { transform: translateY(1px); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Button Utilities (matching React @utility) ===== */
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  border-radius: 9999px;
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, filter .2s;
  border: none;
}
.btn-lime-hover:hover { filter: brightness(0.95); transform: translateY(-1px); }

.btn-outline-white {
  border: 1px solid rgba(255,255,255,0.9);
  color: white;
  border-radius: 9999px;
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  background: transparent;
  text-decoration: none;
}

.btn-outline-ink {
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: 9999px;
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  text-decoration: none;
}

/* ===== Marquee Animation ===== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 40s linear infinite; }
.marquee-track-slow { animation: marquee 60s linear infinite; }

/* ===== Modal Styles ===== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.active { display: flex; }

.modal-card {
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.5rem;
  border: 0;
  background: white;
  padding: 2rem;
  width: 100%;
  max-width: 32rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
.modal-close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  background: var(--muted);
  font-size: 1.25rem;
  color: var(--ink);
  cursor: pointer;
}
.form-error {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #dc2626;
  min-height: 0;
}
.form-error:empty { display: none; }

/* Inline submit result (set by main.js) */
.form-status:empty { display: none; }
.form-status {
  margin-top: 1rem;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  position: relative;
}
.form-status::before {
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  font-weight: 700;
}
.form-status.is-success { background: #ecfdf3; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.is-success::before { content: '✓'; }
.form-status.is-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-status.is-error::before { content: '!'; }
.form-status.is-success, .form-status.is-error { animation: toast-in 0.3s ease; }

/* ===== Mobile Submenu ===== */
.mobile-submenu { display: none; }
.mobile-submenu.open { display: block; }

/* ===== Portfolio Filter ===== */
.portfolio-item.hidden-item { display: none; }

/* ===== Toast ===== */
.toast-notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

