/* Nathan Rohm Website - Custom Dark Theme Styles */

/* CSS Custom Properties for Dark Theme */
:root {
  /* Colors - Dark Green & Light Blue Theme */
  --bg-dark: #0d1f0f;              /* Dark forest green background */
  --surface-dark: #1a2e1d;         /* Slightly lighter green for cards */
  --accent-blue: #5dade2;          /* Light sky blue primary */
  --accent-purple: #85c1e2;        /* Lighter blue for secondary accents */
  --success-green: #52c41a;        /* Bright green for success metrics */
  --text-primary: #f5f7fa;         /* Soft white for main text */
  --text-secondary: #c9d1d9;       /* Silver-gray for secondary text */
  --text-muted: #8b949e;           /* Muted silver for less important text */
  --border-light: #30363d;         /* Dark border */
  --border-accent: #444c56;        /* Silver-gray border accent */
  --hover-blue: #85c1e2;           /* Lighter blue for hover states */
  --focus-ring: #aed6f1;           /* Very light blue for focus */
  
  /* Additional Silver Accents */
  --silver-accent: #b8c4ce;        /* Silver for special elements */
  --silver-light: #d1dce5;         /* Light silver */
  --silver-dark: #7d8590;          /* Dark silver */
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-code: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Transitions */
  --transition-base: all 0.2s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

/* Ensure h3 with Bootstrap h4 class is visible */
h3.h4, .h4 {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

/* Ensure h4 with Bootstrap h5 class is visible */
h4.h5, .h5 {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

/* Center only card headings on index page */
.card h3.h4 {
  text-align: center !important;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--hover-blue);
}

/* Bootstrap Overrides */
.navbar {
  background: linear-gradient(180deg, rgba(13, 31, 15, 0.98) 0%, rgba(26, 46, 29, 0.95) 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--silver-dark);
  padding: 0.75rem 0;
  transition: var(--transition-base);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-blue) !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition-base);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--text-primary) !important;
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--accent-blue) !important;
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: var(--transition-base);
  border: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--hover-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--silver-accent);
  border: 2px solid var(--silver-accent);
}

.btn-secondary:hover {
  background-color: var(--silver-accent);
  color: var(--bg-dark);
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--success-green);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background-color: var(--surface-dark);
  border: 1px solid var(--border-accent);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--text-primary) !important;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary) !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--surface-dark) 100%);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(93, 173, 226, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(133, 193, 226, 0.1) 0%, transparent 50%);
}

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

/* Metrics Cards */
.metric-card {
  text-align: center;
  padding: 2rem;
  border: 2px solid var(--silver-dark);
  background: linear-gradient(135deg, var(--surface-dark) 0%, rgba(184, 196, 206, 0.05) 100%);
}

.metric-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.metric-description {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Section Styles */
.section {
  padding: var(--spacing-xl) 0;
}

.section-alt {
  background: linear-gradient(135deg, var(--surface-dark) 0%, rgba(26, 46, 29, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(93, 173, 226, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Form Styles */
.form-control,
.form-select {
  background-color: rgba(51, 65, 85, 0.3);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(51, 65, 85, 0.5);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px var(--focus-ring);
  color: var(--text-primary);
  outline: none;
}

.form-label {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--surface-dark) 0%, rgba(13, 31, 15, 0.98) 100%);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--silver-dark);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

/* Utility Classes */
.text-muted {
  color: var(--text-muted) !important;
}

.bg-dark {
  background-color: var(--bg-dark) !important;
}

.bg-surface {
  background-color: var(--surface-dark) !important;
}

.text-accent {
  color: var(--accent-blue) !important;
}

.text-purple {
  color: var(--accent-purple) !important;
}

.text-silver {
  color: var(--silver-accent) !important;
}

.text-success-custom {
  color: var(--success-green) !important;
}

/* Accessibility */
:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .metric-number {
    font-size: 2.5rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .navbar,
  footer,
  .no-print {
    display: none !important;
  }
}

/* reCAPTCHA Enterprise Styles */
/* Hide the floating reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Add reCAPTCHA attribution text */
#contact-form form:after {
    content: "This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.";
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    opacity: 0.7;
}