/* ============================================================
   RECRUITMENT PORTFOLIO 2026 - SCOPED PUBLIC STYLESHEET
   Clean, Modern, Technical, Ultra-Responsive & Accessible
   ============================================================ */

:root {
  --rc-bg: #090d16;
  --rc-surface: #111827;
  --rc-surface-card: #1f2937;
  --rc-border: rgba(255, 255, 255, 0.1);
  --rc-border-glow: rgba(6, 182, 212, 0.3);
  --rc-text-main: #f9fafb;
  --rc-text-muted: #9ca3af;
  --rc-cyan: #06b6d4;
  --rc-cyan-glow: rgba(6, 182, 212, 0.4);
  --rc-indigo: #6366f1;
  --rc-accent: #a855f7;
  --rc-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rc-font-code: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Fluid Reset Scoped to #rc-app */
#rc-app {
  font-family: var(--rc-font);
  background-color: var(--rc-bg);
  color: var(--rc-text-main);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

#rc-app * {
  box-sizing: border-box;
}

/* Fluid Typography */
.rc-title-hero {
  font-size: clamp(2rem, 5vw + 1rem, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.rc-subtitle-hero {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--rc-cyan);
}

.rc-heading-section {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Touch Targets >= 44px for Mobile Ergonomics */
.rc-btn, 
.rc-nav-link,
#rc-app button, 
#rc-app a.rc-touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.rc-btn-primary {
  background: linear-gradient(135deg, var(--rc-indigo) 0%, var(--rc-cyan) 100%);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 20px var(--rc-cyan-glow);
}

.rc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6);
  color: #ffffff;
}

.rc-btn-outline {
  background: transparent;
  border: 1px solid var(--rc-border-glow);
  color: var(--rc-text-main);
  padding: 0.75rem 1.5rem;
}

.rc-btn-outline:hover {
  border-color: var(--rc-cyan);
  background: rgba(6, 182, 212, 0.1);
  color: var(--rc-cyan);
}

/* Card Components */
.rc-card {
  background-color: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.rc-card:hover {
  border-color: var(--rc-border-glow);
}

/* Case Study Badge */
.rc-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.rc-badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Modal Lightbox for Case Studies */
.rc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.rc-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.rc-modal-container {
  background: var(--rc-surface);
  border: 1px solid var(--rc-border-glow);
  border-radius: 1rem;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.rc-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-modal-close:hover {
  background: var(--rc-cyan);
  color: #000;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  #rc-app * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
