:root {
  /* Colors */
  --bg: #ffffff;
  --text: #171717;
  --text-muted: #737373;
  --text-accent: #0969da;
  --border: #e5e5e5;

  /* Typography */
  --font-sans: "Inter var", "Inter", system-ui, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --container-width: 600px;
  --nav-height: 60px;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --text-muted: #737373;
  --text-accent: #58a6ff;
  --border: #262626;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background 0.2s, color 0.2s;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.2s;
}

[data-theme="dark"] .nav {
  background: rgba(10, 10, 10, 0.8);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.nav-controls {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: 0.375rem;
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--text);
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: 0.375rem;
  transition: color 0.2s;
}

.mobile-menu-toggle:hover {
  color: var(--text);
}

.nav-mobile-spacer {
  display: none;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: 0.375rem;
  transition: color 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
}

/* Main Content */
.main {
  margin-top: var(--nav-height);
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-6);
  min-height: calc(100vh - var(--nav-height) - 200px);
}

.page-header {
  padding: var(--space-12) 0 var(--space-8) 0;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.content {
  padding-bottom: var(--space-12);
}

/* Contact Content Styling */
.contact-content {
  animation: fadeIn 0.8s ease-out;
}

.intro {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-12);
  text-align: center;
}

/* Simple Contact Info */
.contact-info {
  text-align: center;
  margin-bottom: var(--space-12);
}

.contact-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--text);
}

.contact-info p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.contact-info a {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Social Links - Matching Home Page Style */
.contact-social-section {
  text-align: center;
  margin: var(--space-12) 0;
}

.contact-social-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.social-link:hover {
  background: var(--text-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
}

.social-link i {
  font-size: 1.125rem;
}

/* Simple Status */
.status-section {
  text-align: center;
  margin: var(--space-12) 0;
}

.status-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text);
}

.status-section p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block !important;
  }

  .nav-container {
    justify-content: flex-end;
  }

  .nav-mobile-spacer {
    display: block;
    flex: 1;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-2);
    display: none;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(10, 10, 10, 0.95);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-link {
    padding: var(--space-3) var(--space-6);
    margin: 0 var(--space-6);
    text-align: center;
    border-radius: 0.5rem;
  }

  .nav-controls {
    position: static;
    gap: var(--space-2);
  }

  .nav-mobile-spacer {
    display: block;
    width: 60px;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .intro {
    font-size: 1.125rem;
  }

  .social-links {
    gap: var(--space-3);
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link i {
    font-size: 1rem;
  }

  .contact-info h2 {
    font-size: 1.5rem;
  }

  .contact-info p {
    font-size: 1rem;
  }

  .status-section h2 {
    font-size: 1.25rem;
  }

  .status-section p {
    font-size: 1rem;
  }
}

/* Contact Form (if you want to add one later) */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-6);
  margin-top: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--text-accent);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  background: var(--text-accent);
  color: white;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

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

.content h1,
.content h2,
.content h3 {
  margin: var(--space-6) 0 var(--space-4) 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.content h1:first-child,
.content h2:first-child,
.content h3:first-child {
  margin-top: 0;
}

.content p {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  line-height: 1.7;
}

.content ul,
.content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.content li {
  margin-bottom: var(--space-2);
  color: var(--text-muted);
}

.content a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content blockquote {
  border-left: 3px solid var(--text-accent);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--text-muted);
}

.content code {
  background: var(--border);
  padding: var(--space-1) var(--space-2);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: "SF Mono", Consolas, monospace;
}

.content pre {
  background: var(--border);
  padding: var(--space-4);
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: var(--space-6) 0;
}

.content pre code {
  background: none;
  padding: 0;
}

/* Loading */
.loading {
  display: flex;
  justify-content: center;
  padding: var(--space-8);
  color: var(--text-muted);
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer a {
  color: var(--text-accent);
  text-decoration: none;
}
