/* ==========================================================================
   Hemanth Sagar Reddy — Personal Landing Page
   Clean, modern, minimal work-in-progress styling
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Color Palette (Light Theme Default) */
  --bg-color: #fafafa;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-subtle: #e2e8f0;
  --badge-bg: #f1f5f9;
  --badge-text: #0f172a;
  --status-dot: #10b981;
  --status-dot-glow: rgba(16, 185, 129, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #090d16;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: #1e293b;
    --badge-bg: #131c2e;
    --badge-text: #f1f5f9;
    --status-dot: #10b981;
    --status-dot-glow: rgba(16, 185, 129, 0.35);
  }
}

/* CSS Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Page Layout */
.page-wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Main Card / Container */
.card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Header / Name */
.card-header {
  margin-bottom: 2rem;
}

.name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Body / Core Message */
.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Status Indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background-color: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--badge-text);
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-dot);
  box-shadow: 0 0 0 0 var(--status-dot-glow);
  animation: pulse 2.4s infinite;
}

/* Headline & Subheadline */
.headline {
  font-size: clamp(1.625rem, 4.5vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  max-width: 22ch;
}

.subheadline {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* Focus Line / Disciplines */
.focus-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 380px;
}

.separator {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Footer */
.card-footer {
  margin-top: 3rem;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--status-dot-glow);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .page-wrapper {
    animation: none;
  }
  .status-dot {
    animation: none;
  }
}

/* Mobile fine-tuning */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }
  .card-header {
    margin-bottom: 1.5rem;
  }
  .status-indicator {
    margin-bottom: 1.25rem;
  }
  .focus-line {
    gap: 0.375rem;
    font-size: 0.75rem;
  }
  .card-footer {
    margin-top: 2.25rem;
  }
}
