/* ════════════════════════════════════════════════════════════
   McBeard Developer Theme — Custom Styles
   ════════════════════════════════════════════════════════════ */

:root {
  --mcb-bg: #0a0a0f;
  --mcb-surface: #151520;
  --mcb-surface2: #1e1e2e;
  --mcb-accent: #6366f1;
  --mcb-accent2: #818cf8;
  --mcb-green: #22c55e;
  --mcb-orange: #f97316;
  --mcb-red: #ef4444;
  --mcb-cyan: #38bdf8;
  --mcb-text: #f1f5f9;
  --mcb-text2: #94a3b8;
  --mcb-text3: #64748b;
  --mcb-radius: 16px;
  --mcb-radius-sm: 10px;
}

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

body {
  background: var(--mcb-bg);
  color: var(--mcb-text);
  -webkit-font-smoothing: antialiased;
}

/* ── Sticky Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0 2rem;
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  background: rgba(10, 10, 15, 0.95);
}
.site-header .wp-block-group {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 68px;
}
.site-header .wp-block-site-title {
  margin: 0;
}
.site-header .wp-block-site-title a {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #6366f1, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-header .wp-block-navigation a {
  color: var(--mcb-text2);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.site-header .wp-block-navigation a:hover {
  color: var(--mcb-text);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Section ── */
.hero-section {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  margin-bottom: 2rem;
}
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--mcb-green);
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse 2s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.hero-title {
  position: relative;
  z-index: 1;
}

/* ── Stats Bar ── */
.stats-bar {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stat-item { text-align: center; min-width: 120px; }
.stat-number { margin-bottom: 0 !important; line-height: 1 !important; }
.stat-label { margin-top: 0.25rem !important; }

/* ── Section Headings ── */
.section-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-label-accent {
  background: rgba(99,102,241,0.12);
  color: var(--mcb-accent2);
}
.section-label-green {
  background: rgba(34,197,94,0.12);
  color: var(--mcb-green);
}
.section-label-orange {
  background: rgba(249,115,22,0.12);
  color: var(--mcb-orange);
}

/* ── Project Cards ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--mcb-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--mcb-radius);
  padding: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--mcb-radius);
  background: linear-gradient(135deg, rgba(99,102,241,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.15);
}
.project-card:hover::before { opacity: 1; }

.project-type-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.type-mobile { background: rgba(99,102,241,0.15); color: #818cf8; }
.type-ai     { background: rgba(34,197,94,0.15); color: #22c55e; }
.type-web    { background: rgba(249,115,22,0.15); color: #f97316; }
.type-vision { background: rgba(168,85,247,0.15); color: #a855f7; }

.tech-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  color: var(--mcb-text2);
}

/* ── Skills Grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.skill-card {
  background: var(--mcb-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.skill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.25);
}
.skill-icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* ── Support / Coffee CTA ── */
.coffee-cta {
  border-radius: var(--mcb-radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.coffee-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.support-buttons .wp-block-button__link {
  background: var(--mcb-surface2) !important;
  border: 1.5px solid rgba(255,255,255,0.08) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 80px;
  transition: all 0.25s;
}
.support-buttons .wp-block-button__link:hover {
  border-color: #ffdd00 !important;
  background: rgba(255,221,0,0.08) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,221,0,0.1);
}
.btn-custom-amount .wp-block-button__link {
  border-color: rgba(99,102,241,0.25) !important;
  background: rgba(99,102,241,0.06) !important;
  font-size: 0.95rem !important;
}
.btn-custom-amount .wp-block-button__link:hover {
  border-color: #6366f1 !important;
  background: rgba(99,102,241,0.15) !important;
}

/* ── Buttons ── */
.btn-primary .wp-block-button__link {
  background: var(--mcb-accent) !important;
  color: #fff !important;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary .wp-block-button__link:hover {
  background: #4f46e5 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}
.btn-secondary .wp-block-button__link {
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,0.12) !important;
  color: var(--mcb-text) !important;
  transition: all 0.2s;
}
.btn-secondary .wp-block-button__link:hover {
  border-color: var(--mcb-accent) !important;
  background: rgba(99,102,241,0.06) !important;
}

/* ── Contact Cards ── */
.contact-link-card {
  min-width: 140px;
  transition: transform 0.2s, border-color 0.2s;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}
.contact-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.25);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.04);
}
.site-footer a {
  color: var(--mcb-text2) !important;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--mcb-accent2) !important;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Bio Card ── */
.bio-card {
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .project-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section { min-height: 80vh; padding: 3rem 1rem; }
  .site-header { padding: 0 1rem; }
  .stat-item { min-width: 80px; }
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
}
