/* ==========================================================================
   NIKOLAS LEONIDIS PORTFOLIO — MAIN DESIGN SYSTEM & STYLESHEET
   Stack: HTML5, Vanilla CSS3, Vanilla JS, PHP 8.1+
   ========================================================================== */

/* 1. Design Tokens & Root Variables */
:root {
  --bg: #FFFDF7;
  --surface: #FFFFFF;
  --surface-soft: #FFF8D8;
  --primary: #F4D35E;
  --primary-soft: #FFF4B8;
  --primary-dark: #8C6500;
  --text: #20201D;
  --text-muted: #69675F;
  --border: #E8E1C8;
  --success: #18794E;
  --success-bg: #E6F4ED;
  --error: #B42318;
  --error-bg: #FEE4E2;
  
  --shadow-sm: 0 4px 12px rgba(47, 42, 20, 0.04);
  --shadow: 0 12px 40px rgba(47, 42, 20, 0.08);
  --shadow-hover: 0 20px 48px rgba(47, 42, 20, 0.12);
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1240px;
  --header-height: 84px;

  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-body);
  font-size: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Text Selection */
::selection {
  background-color: var(--primary-soft);
  color: var(--text);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 68ch;
}

p.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text);
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Text Highlight Accent */
.highlight-yellow {
  background: linear-gradient(180deg, transparent 60%, var(--primary-soft) 60%);
  padding: 0 4px;
  border-radius: 4px;
}

/* 4. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.1;
}

.logo-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Desktop Nav Links */
.desktop-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 5. Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(244, 211, 94, 0.4);
}

.btn-primary:hover {
  background-color: #f0c942;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 211, 94, 0.5);
}

.btn-secondary {
  background-color: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--primary-soft);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--text);
  background-color: var(--surface);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 100px;
  background-color: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success);
  border-color: rgba(24, 121, 78, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(24, 121, 78, 0.2);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(24, 121, 78, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(24, 121, 78, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(24, 121, 78, 0); }
}

/* 6. Section Layouts & Components */
section {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

/* Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #D6CCA4;
}

/* Hero Layout */
.hero-section {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-visual {
  position: relative;
  min-width: 0;
  width: 100%;
}

.hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.hero-badge-wrapper {
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-description {
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-skills-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  width: 100%;
}

.skill-tag {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background-color: var(--surface-soft);
  color: var(--text);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Hero Interactive Tech Card (No profile photo) */
.hero-interactive-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  transform-style: preserve-3d;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-stat-item {
  background-color: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-card-footer {
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

/* Decorative Yellow Accent Blob */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(140px, 30vw, 220px);
  height: clamp(140px, 30vw, 220px);
  background-color: var(--primary-soft);
  border-radius: 50%;
  z-index: -1;
  filter: blur(28px);
  pointer-events: none;
}



/* Credibility Bar */
.credibility-strip {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cred-icon {
  width: 44px;
  height: 44px;
  background-color: var(--surface-soft);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.cred-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.cred-text p {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Portfolio Cards Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #D6CCA4;
}

.project-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--surface-soft);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

.project-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.project-summary {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.project-link-btn:hover {
  color: var(--text);
}

/* Category Filter Controls */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
}

/* Timeline Component */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary-dark);
}

.timeline-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-role {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-bullets li {
  margin-bottom: 0.4rem;
}

/* 5-Step Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.process-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #D6CCA4;
}

.process-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.process-icon-box {
  width: 52px;
  height: 52px;
  background-color: var(--surface-soft);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.process-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}


/* Forms & Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: var(--error);
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

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

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-dark);
}

/* Honeypot hidden input */
.website_hp_field {
  display: none !important;
  visibility: hidden !important;
}

/* Alert Boxes */
.alert {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: var(--success-bg);
  color: var(--success);
  border-color: rgba(24, 121, 78, 0.3);
}

.alert-error {
  background-color: var(--error-bg);
  color: var(--error);
  border-color: rgba(180, 35, 24, 0.3);
}

/* 7. Footer Styles */
.site-footer {
  background-color: #FAF6E8;
  border-top: 1px solid var(--border);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand .footer-logo {
  margin-bottom: 1.25rem;
}

.footer-bio {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-contact-list li {
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.footer-contact-list strong {
  color: var(--text);
}

.footer-socials {
  margin-top: 1.5rem;
}

.social-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.social-link:hover {
  background-color: var(--primary-soft);
  border-color: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-dark);
  cursor: pointer;
}

.back-to-top:hover {
  color: var(--text);
}

/* 8. Reveal Animations (IntersectionObserver) */
.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .status-dot {
    animation: none !important;
  }
  .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
  }
}
