/* ===================================================================
   DESIGN SYSTEM — Security Researcher Portfolio
   Inspired by 0x5t.raptx.org
   =================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0e0e16;
  --bg-card: #111119;
  --bg-card-hover: #17172299;
  --bg-header: #12121abb;
  --bg-input: #0d0d14;
  --bg-tldr: #14141e;

  /* Accent Colors */
  --accent-gold: #c8a45a;
  --accent-gold-dim: #9a7d3d;
  --accent-green: #4ade80;
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;

  /* Text */
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #65657a;
  --text-gold: #c8a45a;

  /* Borders & Glows */
  --border-card: #1e1e2e;
  --border-card-hover: #2a2a3e;
  --glow-blue: rgba(59, 130, 246, 0.08);
  --glow-purple: rgba(168, 85, 247, 0.06);
  --glow-gold: rgba(200, 164, 90, 0.1);

  /* Spacing */
  --max-width: 960px;
  --nav-height: 56px;

  /* Fonts */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Subtle background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #dbb96a;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #2a2a3e;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a4e;
}

/* ===================================================================
   NAVIGATION
   =================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-gold);
  letter-spacing: -0.02em;
  transition: text-shadow var(--transition-normal);
}

.nav-brand:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 20px var(--glow-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-card);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ===================================================================
   LAYOUT
   =================================================================== */
.main {
  flex: 1;
  position: relative;
  z-index: 1;
}

.page-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

/* ===================================================================
   SECTION CARDS — Main content containers
   =================================================================== */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.section-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 4px 30px var(--glow-blue), 0 0 60px var(--glow-purple);
}

.section-header {
  padding: 0.875rem 1.25rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
  border-bottom: 1px solid var(--border-card);
  letter-spacing: 0.02em;
}

.section-body {
  padding: 1.25rem;
}

/* ===================================================================
   HOMEPAGE — About Card
   =================================================================== */
.about-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.125rem;
}

.about-title {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.about-headline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.about-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 60px;
}

.about-value {
  color: var(--text-secondary);
}

.about-value.status-online {
  color: var(--accent-green);
  font-weight: 600;
}

.about-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-card-hover);
  color: var(--text-primary);
}

.btn-gold {
  border-color: var(--accent-gold-dim);
  color: var(--accent-gold);
}

.btn-gold:hover {
  background: rgba(200, 164, 90, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ===================================================================
   STATS TABLE
   =================================================================== */
.stats-table {
  display: flex;
  flex-direction: column;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-card);
}

.stats-row:last-child {
  border-bottom: none;
}

.stats-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.stats-count {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* ===================================================================
   CATEGORIES
   =================================================================== */
.category-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  transition: background var(--transition-fast);
  text-decoration: none;
  border-bottom: 1px solid var(--border-card);
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.category-icon {
  font-size: 1.25rem;
  width: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.category-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.125rem;
}

.category-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================================================================
   RECENT ACTIVITY
   =================================================================== */
.activity-item {
  display: block;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--border-card);
  transition: background var(--transition-fast);
  text-decoration: none;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.activity-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.activity-sep {
  opacity: 0.5;
}

.activity-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   QUICK LINKS GRID
   =================================================================== */
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-card);
  border-right: 1px solid var(--border-card);
}

.quick-link:nth-child(even) {
  border-right: none;
}

.quick-link:nth-last-child(-n+2) {
  border-bottom: none;
}

.quick-link:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.02);
}

.quick-link-icon {
  font-size: 1rem;
}

/* ===================================================================
   SOCIAL LINKS
   =================================================================== */
.social-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-card);
  border-right: 1px solid var(--border-card);
}

.social-link:nth-child(even) {
  border-right: none;
}

.social-link:last-child,
.social-link:nth-last-child(1) {
  border-bottom: none;
}

.social-link:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

.social-link:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.02);
}

/* ===================================================================
   SEARCH BAR
   =================================================================== */
.search-container {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-card);
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent-gold-dim);
  box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.08);
}

/* ===================================================================
   CONTENT CARDS — Posts & Achievements listing
   =================================================================== */
.cards-container {
  padding: 0;
}

.card-link {
  text-decoration: none;
  display: block;
}

.card {
  border-bottom: 1px solid var(--border-card);
  transition: background var(--transition-fast);
  overflow: hidden;
}

.card:hover {
  background: rgba(255, 255, 255, 0.015);
}

.card-image {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.02);
}

.card-body {
  padding: 1.125rem 1.25rem;
}

.card-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-gold);
  margin-bottom: 0.375rem;
  transition: color var(--transition-fast);
}

.card:hover .card-title {
  color: #dbb96a;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.card-meta>*::before {
  content: '·';
  margin-right: 0.5rem;
  opacity: 0.4;
}

.card-meta>*:first-child::before {
  display: none;
}

.card-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.625rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* ===================================================================
   TAGS & BADGES
   =================================================================== */
.tag {
  display: inline-block;
  padding: 0.175rem 0.625rem;
  font-size: 0.725rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.175rem 0.625rem;
  font-size: 0.725rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.badge-easy {
  color: var(--accent-green);
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.badge-medium {
  color: var(--accent-orange);
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.badge-hard {
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.badge-insane {
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
}

.badge-cvss {
  font-weight: 700;
}

.badge-high {
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}

.badge-low {
  color: var(--accent-green);
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

/* ===================================================================
   POST DETAIL PAGE
   =================================================================== */
.detail-header {
  padding: 2rem 1.25rem 1.5rem;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  transition: color var(--transition-fast);
}

.detail-back:hover {
  color: var(--accent-gold);
}

.detail-title {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--accent-gold);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.detail-meta-icon {
  font-size: 0.9rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

/* TL;DR Box */
.tldr-box {
  margin: 0 1.25rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-tldr);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-md);
}

.tldr-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 0.375rem;
}

.tldr-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   MARKDOWN CONTENT RENDERING
   =================================================================== */
.md-content {
  padding: 0 1.25rem 2rem;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.md-content h1,
.md-content h2,
.md-content h3,
.md-content h4,
.md-content h5,
.md-content h6 {
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.md-content h1 {
  font-size: 1.5rem;
}

.md-content h2 {
  font-size: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-card);
}

.md-content h3 {
  font-size: 1.1rem;
}

.md-content h4 {
  font-size: 1rem;
}

.md-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.md-content ul,
.md-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.md-content li {
  margin-bottom: 0.375rem;
}

.md-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.md-content em {
  color: var(--text-secondary);
  font-style: italic;
}

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

.md-content a:hover {
  color: #dbb96a;
}

.md-content blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--accent-gold-dim);
  background: rgba(200, 164, 90, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.md-content blockquote p {
  margin-bottom: 0;
}

.md-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.175rem 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #e0a8d0;
}

.md-content pre {
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
}

.md-content pre code {
  display: block;
  padding: 1.25rem;
  background: #0c0c14;
  border: none;
  border-radius: 0;
  color: var(--text-primary);
  font-size: 0.825rem;
  line-height: 1.65;
  overflow-x: auto;
}

.md-content img {
  display: block;
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.md-content hr {
  border: none;
  height: 1px;
  background: var(--border-card);
  margin: 2rem 0;
}

.md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.md-content th,
.md-content td {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-card);
  text-align: left;
}

.md-content th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--text-primary);
}

.md-content td {
  color: var(--text-secondary);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  border-top: 1px solid var(--border-card);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===================================================================
   GOLD UTILITY
   =================================================================== */
.gold {
  color: var(--accent-gold);
}

/* ===================================================================
   VIEW ALL LINKS
   =================================================================== */
.view-all-links {
  padding: 1rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border-card);
}

.view-all-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.view-all-links a:hover {
  color: var(--accent-gold);
}

.view-all-links .sep {
  margin: 0 0.75rem;
  color: var(--text-muted);
  opacity: 0.4;
}

/* ===================================================================
   EMPTY STATE
   =================================================================== */
.empty-state {
  padding: 3rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===================================================================
   HIGHLIGHT.JS THEME — Dark
   =================================================================== */
.hljs {
  color: #abb2bf;
}

.hljs-comment,
.hljs-quote {
  color: #5c6370;
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag {
  color: #c678dd;
}

.hljs-string,
.hljs-addition {
  color: #98c379;
}

.hljs-number,
.hljs-literal {
  color: #d19a66;
}

.hljs-built_in {
  color: #e5c07b;
}

.hljs-type,
.hljs-class .hljs-title {
  color: #e5c07b;
}

.hljs-attr,
.hljs-variable,
.hljs-template-variable {
  color: #d19a66;
}

.hljs-name,
.hljs-selector-id,
.hljs-selector-class {
  color: #e06c75;
}

.hljs-regexp,
.hljs-link {
  color: #56b6c2;
}

.hljs-meta {
  color: #61aeee;
}

.hljs-deletion {
  color: #e06c75;
}

.hljs-symbol,
.hljs-bullet {
  color: #61aeee;
}

.hljs-function .hljs-title {
  color: #61aeee;
}

.hljs-section {
  color: #e06c75;
  font-weight: bold;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-card);
    padding: 0.5rem;
    gap: 0.125rem;
  }

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

  .nav-toggle {
    display: block;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .page-section {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-links,
  .social-links-grid {
    grid-template-columns: 1fr;
  }

  .quick-link,
  .social-link {
    border-right: none !important;
  }

  .detail-title {
    font-size: 1.35rem;
  }

  .detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
}

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-card);
    padding: 0.875rem;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .about-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-card {
  animation: fadeInUp 0.4s ease forwards;
}

.section-card:nth-child(2) {
  animation-delay: 0.05s;
}

.section-card:nth-child(3) {
  animation-delay: 0.1s;
}

.section-card:nth-child(4) {
  animation-delay: 0.15s;
}

.section-card:nth-child(5) {
  animation-delay: 0.2s;
}

.section-card:nth-child(6) {
  animation-delay: 0.25s;
}

/* Card hover glow effect */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.04), transparent 40%);
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card {
  position: relative;
}