/* ==========================================================================
   AgentNexus - Personal & Family Stylesheet (100% Independent)
   Aesthetics: Warm Sanctuary, Obsidian Sand, Amber Gold, Frosted Elegance
   ========================================================================== */

:root {
  --p-bg: #0d0a07;
  --p-card-bg: rgba(28, 22, 17, 0.7);
  --p-card-hover: rgba(38, 29, 21, 0.9);
  --p-border: rgba(245, 158, 11, 0.16);
  --p-border-glow: rgba(245, 158, 11, 0.4);
  --p-amber: #f59e0b;
  --p-amber-glow: rgba(245, 158, 11, 0.22);
  --p-rose: #fb7185;
  --p-text-main: #fef3c7;
  --p-text-muted: #d97706;
  --p-text-soft: #d1c7bd;
  --p-text-faint: #7c6f62;
  --font-serif: "Charter", "Georgia", "Songti SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Outfit", "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--p-bg);
  color: var(--p-text-soft);
  line-height: 1.65;
  padding-bottom: 96px;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(251, 113, 133, 0.05) 0%, transparent 40%),
    linear-gradient(to bottom, #0d0a07 0%, #15100a 100%);
}

.ambient-warmth {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(245, 158, 11, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
  mask-image: radial-gradient(ellipse at 50% 30%, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 25%, transparent 70%);
  z-index: 0;
}

.personal-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Header */
.personal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--p-card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  margin-bottom: 32px;
}

.personal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.personal-badge {
  font-size: 1.4rem;
  background: rgba(245, 158, 11, 0.15);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--p-border);
}

.personal-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fffbeb;
  letter-spacing: -0.01em;
}

.personal-title p {
  font-size: 0.76rem;
  color: var(--p-amber);
  letter-spacing: 0.04em;
}

/* Hero */
.personal-hero {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(28, 22, 17, 0.9) 100%);
  border: 1px solid var(--p-border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 36px;
}

.personal-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  padding: 4px 14px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--p-border);
  border-radius: 9999px;
  color: var(--p-amber);
  font-weight: 600;
  margin-bottom: 14px;
}

.personal-hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fffbeb;
  font-family: var(--font-serif);
}

.personal-hero p {
  color: var(--p-text-soft);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.7;
}

/* Sections */
.p-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--p-border);
  padding-bottom: 12px;
}

.p-section-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fffbeb;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Timeline */
.timeline-wrap {
  position: relative;
  padding-left: 28px;
  margin-bottom: 40px;
}

.timeline-wrap::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--p-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--p-bg);
  border: 3px solid var(--p-amber);
  box-shadow: 0 0 10px var(--p-amber-glow);
}

.timeline-card {
  background: var(--p-card-bg);
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 20px 24px;
  transition: all 0.25s ease;
}

.timeline-card:hover {
  background: var(--p-card-hover);
  border-color: var(--p-border-glow);
  transform: translateX(4px);
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--p-amber);
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-card h4 {
  font-size: 1.15rem;
  color: #fffbeb;
  margin-bottom: 6px;
}

.timeline-card p {
  font-size: 0.92rem;
  color: var(--p-text-soft);
  line-height: 1.6;
}

/* Essays Grid */
.essays-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.essay-card {
  background: var(--p-card-bg);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s ease;
}

.essay-card:hover {
  background: var(--p-card-hover);
  border-color: var(--p-border-glow);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px var(--p-amber-glow);
}

.essay-meta {
  font-size: 0.75rem;
  color: var(--p-text-faint);
  margin-bottom: 8px;
}

.essay-card h4 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fffbeb;
  margin-bottom: 10px;
  font-family: var(--font-serif);
}

.essay-card p {
  font-size: 0.9rem;
  color: var(--p-text-soft);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .essays-grid {
    grid-template-columns: 1fr;
  }
}
