/* ======================================================
   THE ADMIN — styles.css
   Companion to Tailwind CDN. Custom components, animations,
   and classes not easily expressed in utility classes alone.
   ====================================================== */

/* ── Fonts */
:root {
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --color-charcoal:   #18181B;
  --color-graphite:   #52525B;
  --color-platinum:    #E4E4E7;
  --color-slate:  #52525B;
  --color-surface:#FAFAFA;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* offset for sticky nav */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-surface);
  color: var(--color-slate);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════════════════ */
#site-header {
  background: transparent;
}

#site-header.scrolled {
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: #0A0A0A;
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 5;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.25s;
}

.stat-card:hover {
  border-color: rgba(228,228,231,0.35);
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-display);
  background: rgba(228,228,231,0.12);
  border: 1px solid rgba(228,228,231,0.25);
  color: #E4E4E7;
  border-radius: 99px;
  padding: 0.25rem 0.75rem;
  transition: background 0.2s, border-color 0.2s;
}

.platform-tag:hover {
  background: rgba(228,228,231,0.22);
}

/* ══════════════════════════════════════════════════════════
   TECH STACK
══════════════════════════════════════════════════════════ */
.stack-card {
  display: flex;
  flex-direction: column;
}

.stack-group-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════
   CANVAS NETWORK ANIMATION
══════════════════════════════════════════════════════════ */
#network-canvas {
  pointer-events: none;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  #network-canvas { display: none; }
}

/* ══════════════════════════════════════════════════════════
   ABOUT / IMAGE PLACEHOLDER
══════════════════════════════════════════════════════════ */
.image-placeholder {
  background: linear-gradient(135deg, #E4E4E7 0%, #D4D4D8 100%);
  position: relative;
  border: 2px dashed rgba(82,82,91,0.25);
}

/* ══════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════ */
.services-bg-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 28px 28px;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: rgba(228,228,231,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card--featured {
  border-color: rgba(228,228,231,0.30);
  background: rgba(228,228,231,0.07);
}

.service-card--featured:hover {
  border-color: rgba(228,228,231,0.55);
}

.featured-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(228,228,231,0.2);
  color: #E4E4E7;
  border: 1px solid rgba(228,228,231,0.35);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
}

.service-icon-wrap.featured {
  background: rgba(228,228,231,0.15);
  border-color: rgba(228,228,231,0.3);
  color: #E4E4E7;
}

.service-card:hover .service-icon-wrap {
  background: rgba(228,228,231,0.15);
  border-color: rgba(228,228,231,0.3);
  color: #E4E4E7;
}

.service-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.service-bullet::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(228,228,231,0.5);
  margin-top: 0.45rem;
}

.service-bullet.bright {
  color: rgba(255,255,255,0.72);
}

.service-bullet.bright::before {
  background: #E4E4E7;
}

/* ══════════════════════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════════════════════ */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2D3748;
  margin-bottom: 0.4rem;
}

.form-input {
  display: block;
  width: 100%;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: #FAFCFF;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input::placeholder {
  color: #A0AEC0;
}

.form-input:focus {
  border-color: var(--color-graphite);
  box-shadow: 0 0 0 3px rgba(82,82,91,0.12);
}

.form-input.error {
  border-color: #FC8181;
  box-shadow: 0 0 0 3px rgba(252,129,129,0.15);
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.btn-primary:hover::after {
  background: rgba(255,255,255,0.08);
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════
   FOCUS VISIBLE — accessibility
══════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--color-platinum);
  outline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero-divider { height: 48px; }
}