/* CSS Variables for GitHub-inspired theme — Healy Computer Systems */
:root {
  /* GitHub Colors */
  --github-dark: #0d1117;
  --github-gray: #161b22;
  --github-border: #30363d;
  --github-text: #c9d1d9;
  --github-blue: #58a6ff;
  --github-green: #3fb950;

  /* Healy Computer Systems Brand Colors */
  --healy-primary: #0ea5e9;    /* Sky blue */
  --healy-secondary: #6366f1;  /* Indigo */
  --healy-accent: #3fb950;     /* Green */

  /* Additional Colors */
  --white: #ffffff;
  --red-500: #ef4444;
  --yellow-500: #eab308;

  /* Typography */
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Inconsolata, monospace;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-inter);
  background-color: var(--github-dark);
  color: var(--github-text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Utility Classes */
.font-inter { font-family: var(--font-inter); }
.font-mono  { font-family: var(--font-mono); }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-github-dark   { background-color: var(--github-dark); }
.bg-github-gray   { background-color: var(--github-gray); }
.text-github-text { color: var(--github-text); }
.text-white       { color: var(--white); }
.border-github-border { border-color: var(--github-border); }

/* Color utilities for Healy brand */
.text-healy-primary   { color: var(--healy-primary); }
.text-healy-secondary { color: var(--healy-secondary); }
.text-healy-accent    { color: var(--healy-accent); }

.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-4xl {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-3xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-xs {
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

/* Grid System */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Flexbox */
@media (max-width: 767.98px) {
  .hidden,
  [class~="hidden"] {
    display: none !important;
  }
}
.hidden        { display: none; }
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-row      { flex-direction: row; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1 1 0%; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.inline-flex   { display: inline-flex; }

/* Positioning */
.relative  { position: relative; }
.absolute  { position: absolute; }
.fixed     { position: fixed; }
.inset-0   { top: 0; right: 0; bottom: 0; left: 0; }
.top-0     { top: 0; }
.bottom-8  { bottom: 2rem; }
.left-1\/2 { left: 50%; }
.transform { transform: var(--tw-transform); }
.-translate-x-1\/2 { --tw-translate-x: -50%; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Sizing */
.w-full { width: 100%; }
.w-6    { width: 1.5rem; }
.w-5    { width: 1.25rem; }
.w-4    { width: 1rem; }
.h-16   { height: 4rem; }
.h-6    { height: 1.5rem; }
.h-5    { height: 1.25rem; }
.h-4    { height: 1rem; }
.h-px   { height: 1px; }
.min-h-screen { min-height: 100vh; }

/* Padding and Margin */
.px-4  { padding-left: 1rem; padding-right: 1rem; }
.px-2  { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-2  { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-8   { padding: 2rem; }
.pt-2  { padding-top: 0.5rem; }
.pt-4  { padding-top: 1rem; }
.pt-8  { padding-top: 2rem; }
.pt-24 { padding-top: 6rem; }
.pb-2  { padding-bottom: 0.5rem; }
.pb-3  { padding-bottom: 0.75rem; }
.pb-12 { padding-bottom: 3rem; }
.ml-2  { margin-left: 0.5rem; }
.ml-10 { margin-left: 2.5rem; }
.mr-2  { margin-right: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }
.text-6xl  { font-size: 3.75rem;  line-height: 1; }
.text-7xl  { font-size: 4.5rem;   line-height: 1; }

/* Fluid typography */
.fluid-text-h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem); line-height: 1.1; }
.fluid-text-h2 { font-size: clamp(1.875rem, 3.5vw + 0.75rem, 2.5rem); line-height: 1.2; }
.fluid-text-h3 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem); line-height: 1.3; }

.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }

.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-center      { text-align: center; }
.text-transparent { color: transparent; }

/* Background and Gradients */
.bg-clip-text    { background-clip: text; }
.bg-gradient-to-r  { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.from-healy-primary   { --tw-gradient-from: var(--healy-primary);   --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(14,165,233,0)); }
.from-healy-secondary { --tw-gradient-from: var(--healy-secondary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(99,102,241,0)); }
.from-healy-accent    { --tw-gradient-from: var(--healy-accent);    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(63,185,80,0)); }
.from-github-dark     { --tw-gradient-from: var(--github-dark);     --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(13,17,23,0)); }

.to-healy-primary   { --tw-gradient-to: var(--healy-primary); }
.to-healy-secondary { --tw-gradient-to: var(--healy-secondary); }
.to-healy-accent    { --tw-gradient-to: var(--healy-accent); }
.to-github-dark     { --tw-gradient-to: var(--github-dark); }
.via-github-gray    { --tw-gradient-stops: var(--tw-gradient-from), var(--github-gray), var(--tw-gradient-to, rgba(22,27,34,0)); }

/* Borders */
.border   { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.rounded-full { border-radius: 9999px; }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-md   { border-radius: var(--radius-md); }

/* Effects */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.overflow-hidden  { overflow: hidden; }
.flex-shrink-0    { flex-shrink: 0; }

/* Animations */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-20px); }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-float    { animation: float 6s ease-in-out infinite; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.animate-fade-in  { animation: fadeIn 0.8s ease-out; }

/* ============================================================
   Navigation
   ============================================================ */
nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 100vw;
  overflow: visible;
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
}

nav .flex { min-width: 0; }

nav .logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav > .max-w-7xl {
  overflow: visible;
}

@media (max-width: 767.98px) {
  nav {
    overflow-x: hidden;
  }
  nav > .max-w-7xl {
    overflow-x: hidden;
  }
}

nav .h-16 { min-width: 0; }

@media (max-width: 767.98px) {
  nav .md\:block,
  nav .md\:flex { display: none !important; }
}

nav .flex-shrink-0 { flex-shrink: 1; min-width: 0; }
nav .logo-link     { min-width: 0; }

@media (max-width: 767.98px) {
  nav .logo-text { max-width: calc(100vw - 7rem); }
}

@media (max-width: 767.98px) {
  nav [class*="md:block"],
  nav [class*="md:flex"] {
    display: none !important;
  }
  nav .ml-10 { margin-left: 0 !important; }
  nav .mobile-menu-button { display: inline-flex !important; }
}

/* Tablet guard */
@media (max-width: 959.98px) {
  nav .md\:block,
  nav .md\:flex {
    display: none !important;
  }
  nav > .max-w-7xl > .flex .mobile-menu-button {
    display: inline-flex !important;
  }
}

.nav-link {
  color: var(--github-text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
  display: block;
  color: var(--github-text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-weight: 500;
}

.mobile-nav-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button {
  color: var(--github-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-button:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu {
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.mobile-menu.hidden {
  display: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--healy-primary), var(--healy-secondary));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.btn-primary-large {
  background: linear-gradient(135deg, var(--healy-primary), var(--healy-secondary));
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .btn-primary-large,
  .btn-secondary-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
}

.btn-primary-large:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--github-text);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--github-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-secondary:hover {
  color: var(--white);
  border-color: var(--github-text);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.btn-secondary-large {
  background: transparent;
  color: var(--github-text);
  padding: 1rem 2rem;
  border: 1px solid var(--github-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-secondary-large:hover {
  color: var(--white);
  border-color: var(--github-text);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ============================================================
   Hero Section
   ============================================================ */
section.min-h-screen {
  min-height: calc(100vh - 5rem - constant(safe-area-inset-top));
  min-height: calc(100vh - 5rem - env(safe-area-inset-top));
  padding-top: calc(5rem + constant(safe-area-inset-top));
  padding-top: calc(5rem + env(safe-area-inset-top));
  padding-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  section.min-h-screen {
    min-height: auto;
    padding-top: calc(5rem + constant(safe-area-inset-top));
    padding-top: calc(5rem + env(safe-area-inset-top));
    padding-bottom: calc(3rem + constant(safe-area-inset-bottom));
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  }

  section.min-h-screen .bottom-8 {
    bottom: calc(2rem + constant(safe-area-inset-bottom));
    bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  section.min-h-screen .fluid-text-h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.2;
  }

  section.min-h-screen .text-xl {
    font-size: 1rem;
    line-height: 1.5;
  }

  section.min-h-screen .space-y-8 > * + * {
    margin-top: 1.5rem;
  }
}

.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--healy-primary);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.floating-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: -2s;
}

.floating-particles::after {
  top: 60%;
  right: 30%;
  animation-delay: -4s;
  background: var(--healy-secondary);
}

@media (max-width: 767.98px) {
  .floating-particles::before,
  .floating-particles::after {
    display: none;
  }
}

/* ============================================================
   Coming Soon Pill Badge
   ============================================================ */
.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(99,102,241,0.15));
  border: 1px solid rgba(14,165,233,0.4);
  color: var(--healy-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   Feature Cards
   ============================================================ */
.feature-card {
  background: var(--github-gray);
  border: 1px solid var(--github-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--healy-primary), var(--healy-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
}

@media (max-width: 767.98px) {
  .feature-card {
    padding: 1.25rem;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer-link {
  color: var(--github-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
}

footer ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

footer .grid {
  align-items: flex-start;
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.anchor-offset {
  scroll-margin-top: 5rem;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

section.pt-24,
section.py-20 {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================================
   Logo Styles
   ============================================================ */
.logo-link {
  text-decoration: none !important;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link:hover   { text-decoration: none !important; }
.logo-link:visited { text-decoration: none !important; }

.logo-link:focus {
  text-decoration: none !important;
  outline: 2px solid var(--healy-primary);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.logo-container {
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.logo-svg:hover {
  filter: drop-shadow(0 6px 12px rgba(14, 165, 233, 0.3));
}

.logo-container-small {
  width: 2rem;
  height: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.logo-container-small:hover {
  transform: scale(1.05);
}

.logo-svg-small {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.logo-svg-small:hover {
  filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.3));
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.logo-text:hover {
  transform: translateX(2px);
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); }
  50%       { filter: drop-shadow(0 6px 12px rgba(14, 165, 233, 0.4)); }
}

.logo-svg:hover {
  animation: logoGlow 2s ease-in-out infinite;
}

/* ============================================================
   Responsive Media
   ============================================================ */
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.scroll-touch    { -webkit-overflow-scrolling: touch; }

/* ============================================================
   Responsive Design
   ============================================================ */
@media (min-width: 640px) {
  .sm\:px-6      { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex-row  { flex-direction: row; }
  .sm\:py-20     { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:block       { display: block; }
  .md\:hidden      { display: none; }
  .md\:flex        { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-5xl    { font-size: 3rem; line-height: 1; }
  .md\:text-6xl    { font-size: 3.75rem; line-height: 1; }
  .md\:text-2xl    { font-size: 1.5rem; line-height: 2rem; }
  .md\:flex-row    { flex-direction: row; }
  .md\:mt-0        { margin-top: 0; }
}

@media (min-width: 1024px) {
  .lg\:px-8        { padding-left: 2rem; padding-right: 2rem; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-7xl    { font-size: 4.5rem; line-height: 1; }
}

/* ============================================================
   Interactive Elements
   ============================================================ */
.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* ============================================================
   Focus States for Accessibility
   ============================================================ */
.btn-primary:focus,
.btn-primary-large:focus,
.btn-secondary:focus,
.btn-secondary-large:focus,
.nav-link:focus,
.mobile-nav-link:focus,
.footer-link:focus,
.mobile-menu-button:focus {
  outline: 2px solid var(--healy-primary);
  outline-offset: 2px;
}

/* ============================================================
   Mobile nav enforcement guard
   ============================================================ */
@media (max-width: 767.98px) {
  .hidden.md\:block,
  .hidden.md\:flex {
    display: none !important;
  }
  nav .mobile-menu-button { display: inline-flex !important; }
  nav .ml-10 { margin-left: 0 !important; }
  nav .logo-text {
    max-width: calc(100vw - 6.5rem) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
}

.mobile-menu.hidden {
  display: none !important;
}

@media (max-width: 959.98px) {
  .mobile-menu.hidden {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Ultra-narrow: hide " Computer Systems" word */
@media (max-width: 400px) {
  nav .logo-text span:nth-child(2) { display: none; }
}

/* Mobile header width guards */
nav .items-center > * { min-width: 0; }

@media (max-width: 767.98px) {
  nav .h-16 { min-width: 0; }
  nav .logo-link { min-width: 0; gap: 0.5rem; }
  nav .logo-text {
    max-width: calc(100vw - 6.5rem);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  .fixed { position: static; }
  .bg-github-dark,
  .bg-github-gray { background: white !important; }
  .text-github-text,
  .text-white { color: black !important; }
  .border-github-border { border-color: #ccc !important; }
}

/* ============================================================
   High Contrast & Reduced Motion
   ============================================================ */
@media (prefers-contrast: high) {
  :root {
    --github-text: #ffffff;
    --github-border: #ffffff;
  }
}

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

/* ============================================================
   Custom Scrollbar
   ============================================================ */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--github-dark); }
::-webkit-scrollbar-thumb { background: var(--github-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--github-text); }

/* ============================================================
   Selection
   ============================================================ */
::selection      { background: var(--healy-primary); color: var(--white); }
::-moz-selection { background: var(--healy-primary); color: var(--white); }