/* ============================================
   Dr. Max Eljarrat H. — One-Page Website
   Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors — Light Blue Theme */
  --canvas: #ffffff;
  --accent-dark: #152a36;
  --accent-mid: #1a5b8b;
  --accent-gold: #6aafc9;
  --accent-gold-light: #7ebfd6;
  --accent-gold-dark: #4a96b0;
  --light-surface: #f2f6f8;
  --text-dark: #2c2c2c;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1140px;
  --container-padding: 0 40px;

  /* Transitions */
  --transition-fast: 300ms ease-out;
  --transition-base: 500ms ease-out;
  --transition-slow: 800ms ease-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--canvas);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Section Title Shared --- */
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 40px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
  margin: 16px auto 0;
  transition: width var(--transition-slow);
}

.section-title.visible::after {
  width: 120px;
}

/* --- Gold Divider --- */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 40px;
  margin: 0 auto;
  max-width: 600px;
}

.gold-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.gold-divider .ornament {
  color: var(--accent-gold);
  font-size: 18px;
  line-height: 1;
}

/* ============================================
   1. NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-fast);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  padding: 14px 0;
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gold);
  transition: width var(--transition-fast);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--accent-dark);
  z-index: 999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-overlay.active {
  display: flex;
  opacity: 1;
}

.mobile-overlay .nav-links {
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.mobile-overlay .nav-links a {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
}

.mobile-overlay .nav-links a:hover {
  color: var(--accent-gold);
}

/* ============================================
   2. HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--canvas);
  overflow: hidden;
  padding-top: 80px;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 62px;
  line-height: 1.1;
  color: var(--accent-dark);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.8s ease-out 0.3s forwards;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.8s ease-out 0.5s forwards;
}

.hero-specialty {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.8s ease-out 0.6s forwards;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.9s forwards;
}

.hero-tagline .line {
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
}

.hero-tagline .text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent-gold);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all var(--transition-fast);
  background: transparent;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1.1s forwards;
}

.hero-cta:hover {
  background: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106, 175, 201, 0.25);
}

.hero-cta .arrow {
  font-size: 18px;
  transition: transform var(--transition-fast);
}

.hero-cta:hover .arrow {
  transform: translateY(3px);
}

.hero-image {
  flex-shrink: 0;
  width: 266px;
  opacity: 0;
  transform: scale(0.9) translateX(40px);
  animation: scaleInRight 1s ease-out 0.5s forwards;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  filter: drop-shadow(0 20px 40px rgba(21, 42, 54, 0.08));
}

.hero-bottom-divider {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1.3s forwards;
}

/* ============================================
   3. ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-padding);
  background: var(--light-surface);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.about-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 80px;
}

.about-image {
  flex-shrink: 0;
  width: 420px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  animation: breatheIn 1.2s ease-out 0.3s forwards;
}

@keyframes breatheIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  60% {
    opacity: 1;
    transform: scale(1.03);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.about-image img {
  width: 100%;
  display: block;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--accent-dark);
  margin: 32px 0 16px;
}

.about-text h3:first-child {
  margin-top: 0;
}

.activities-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.activities-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.activities-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--canvas);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  opacity: 0;
  transform: translateY(30px);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.stat-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 42px;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ============================================
   4. CAREER TIMELINE
   ============================================ */
.timeline-section {
  padding: var(--section-padding);
  background: var(--canvas);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertical gold line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-gold) 5%, var(--accent-gold) 95%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0) !important;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 40px);
  transform: translateX(-30px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
  transform: translateX(30px);
}

/* Gold dot */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 14px;
  height: 14px;
  background: var(--accent-gold);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--canvas), 0 0 0 5px rgba(106, 175, 201, 0.3);
  transition: box-shadow var(--transition-fast);
}

.timeline-item.visible .timeline-dot {
  box-shadow: 0 0 0 4px var(--canvas), 0 0 0 6px rgba(106, 175, 201, 0.4), 0 0 20px rgba(106, 175, 201, 0.2);
}

.timeline-card {
  background: var(--canvas);
  padding: 28px;
  border-radius: 10px;
  border-left: 3px solid var(--accent-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.timeline-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-card .location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent-mid);
  margin-top: 10px;
  font-weight: 500;
}

.timeline-card .location svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   5. PUBLICATIONS & BOOKS
   ============================================ */
.publications {
  padding: var(--section-padding);
  background: var(--light-surface);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.book-card {
  background: var(--canvas);
  border-radius: 12px;
  padding: 32px 24px;
  border-top: 4px solid var(--accent-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
}

.book-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.book-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.book-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  flex: 1;
}

.book-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.book-status.published {
  background: rgba(106, 175, 201, 0.15);
  color: var(--accent-gold-dark);
}

.book-status.preparation {
  background: rgba(106, 175, 201, 0.08);
  color: var(--text-muted);
}

/* Podcast */
.podcast-section {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--canvas);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(106, 175, 201, 0.2);
  margin-bottom: 48px;
}

.podcast-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(106, 175, 201, 0.3);
}

.podcast-info h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.podcast-info p {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.podcast-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--accent-gold);
  color: #fff;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.podcast-badge:hover {
  background: var(--accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(106, 175, 201, 0.3);
}

/* Media row */
.media-row {
  text-align: center;
}

.media-row h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.media-logos {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.media-logos span {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-light);
  transition: color var(--transition-fast);
  cursor: default;
  letter-spacing: 1px;
}

.media-logos span:hover {
  color: var(--accent-gold);
}

/* ============================================
   6. INTEGRATIVE MEDICINE
   ============================================ */
.integrative {
  padding: var(--section-padding);
  background: var(--canvas);
  position: relative;
}

.integrative::before {
  content: '';
  position: absolute;
  left: 0;
  top: 60px;
  bottom: 60px;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--accent-mid) 20%, var(--accent-mid) 80%, transparent);
  border-radius: 2px;
}

.integrative-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.integrative-text {
  flex: 1;
}

.integrative-text p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.pull-quote {
  border-left: 3px solid var(--accent-gold);
  padding-left: 28px;
  margin: 40px 0;
}

.pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.6;
  color: var(--accent-mid);
}

.integrative-image {
  flex-shrink: 0;
  width: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(21, 42, 54, 0.06);
  position: sticky;
  top: 120px;
}

.integrative-image img {
  width: 100%;
  display: block;
}

/* Seminario banner */
.seminario-banner {
  background: var(--canvas);
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  padding: 28px 36px;
  text-align: center;
  margin-bottom: 60px;
}

.seminario-banner .label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.seminario-banner h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--text-dark);
}

/* Therapy icons grid */
.therapy-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.therapy-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--canvas);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.therapy-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(106, 175, 201, 0.12);
  border-color: var(--accent-gold);
}

.therapy-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.therapy-card span {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

/* ============================================
   7. ACADEMIC HIGHLIGHTS
   ============================================ */
.academic {
  padding: var(--section-padding);
  background: var(--light-surface);
}

.academic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.academic-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--canvas);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border-bottom: 3px solid transparent;
}

.academic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  border-bottom-color: var(--accent-gold);
}

.academic-card .icon {
  width: 52px;
  height: 52px;
  background: rgba(106, 175, 201, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
  color: var(--accent-gold);
}

.academic-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.academic-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   8. CONTACT / FOOTER
   ============================================ */
.footer {
  padding: 80px 0 40px;
  background: var(--accent-dark);
  color: #fff;
  text-align: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.footer-title {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.footer-specialty {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-contact-item:hover {
  color: var(--accent-gold);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
}

.footer-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: color 0.3s, border-color 0.3s, transform 0.2s;
}

.footer-social a:hover {
  color: #6aafc9;
  border-color: #6aafc9;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-divider {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto 24px;
}

.footer-made-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 12px;
}

.footer-made-by a {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.footer-made-by a:hover {
  opacity: 0.8;
}

.koogler-logo {
  height: 1em;
  font-size: 14px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.footer-made-by a:hover .koogler-logo {
  opacity: 0.9;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent-gold);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(106, 175, 201, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(106, 175, 201, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

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

@keyframes scaleInRight {
  from {
    opacity: 0;
    transform: scale(0.9) translateX(40px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 4px var(--canvas), 0 0 0 6px rgba(106, 175, 201, 0.3);
  }

  50% {
    box-shadow: 0 0 0 4px var(--canvas), 0 0 0 8px rgba(106, 175, 201, 0.5), 0 0 24px rgba(106, 175, 201, 0.2);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-name,
  .hero-subtitle,
  .hero-specialty,
  .hero-tagline,
  .hero-cta,
  .hero-image,
  .hero-bottom-divider {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 28px;
  }

  .hero-name {
    font-size: 48px;
  }

  .hero-image {
    width: 300px;
  }

  .about-image {
    width: 280px;
  }

  .timeline-item:nth-child(odd) {
    padding-right: calc(50% + 28px);
  }

  .timeline-item:nth-child(even) {
    padding-left: calc(50% + 28px);
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .academic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .integrative-image {
    width: 280px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 20px;
  }

  .nav-links-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section-title {
    font-size: 30px;
    margin-bottom: 40px;
  }

  /* Hero mobile */
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-image {
    width: 200px;
  }

  .hero-name {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-tagline {
    justify-content: center;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  /* About mobile */
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-image {
    width: 260px;
    transform: rotate(0deg);
  }

  .about-text {
    text-align: center;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 32px;
  }

  /* Timeline mobile */
  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 52px;
    padding-right: 0;
    justify-content: flex-start;
    transform: translateX(-20px);
  }

  .timeline-dot {
    left: 20px;
  }

  /* Publications mobile */
  .books-grid {
    grid-template-columns: 1fr;
  }

  .podcast-section {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }

  /* Integrative mobile */
  .integrative::before {
    display: none;
  }

  .integrative-content {
    flex-direction: column;
  }

  .integrative-image {
    width: 100%;
    position: relative;
    top: auto;
  }

  .therapy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Academic mobile */
  .academic-grid {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer-name {
    font-size: 24px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-name {
    font-size: 30px;
  }

  .hero-image {
    width: 160px;
  }

  .stat-number {
    font-size: 28px;
  }

  .media-logos {
    gap: 20px;
  }
}

/* ══════════════════════════════════════════════════
   Accessibility Widget
   ══════════════════════════════════════════════════ */

.a11y-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.a11y-trigger:hover {
  transform: scale(1.1);
  background: var(--accent-mid);
}

.a11y-panel {
  position: fixed;
  bottom: 82px;
  left: 24px;
  z-index: 9998;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 20px;
  display: none;
  animation: a11ySlideUp 0.25s ease-out;
}

.a11y-panel.open {
  display: block;
}

@keyframes a11ySlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.a11y-panel h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--accent-dark);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 8px;
}

.a11y-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-dark);
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: start;
}

.a11y-option:hover {
  background: rgba(106, 175, 201, 0.1);
}

.a11y-option.active {
  background: rgba(106, 175, 201, 0.15);
  font-weight: 600;
  color: var(--accent-gold);
}

.a11y-option .a11y-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.a11y-font-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}

.a11y-font-controls span {
  font-size: 0.88rem;
  color: var(--text-dark);
  flex: 1;
}

.a11y-font-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.a11y-font-btn:hover {
  background: rgba(106, 175, 201, 0.1);
  border-color: var(--accent-gold);
}

.a11y-reset {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  color: #888;
  transition: background 0.15s;
}

.a11y-reset:hover {
  background: #f5f5f5;
}

body.a11y-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.a11y-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.a11y-contrast a {
  color: #ffff00 !important;
}

body.a11y-contrast .a11y-panel {
  background: #222 !important;
}

body.a11y-grayscale {
  filter: grayscale(100%);
}

body.a11y-underline a {
  text-decoration: underline !important;
}

body.a11y-readable * {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* ══════════════════════════════════════════════════
   Privacy Popup
   ══════════════════════════════════════════════════ */

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  background: rgba(26, 82, 118, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.privacy-popup.show {
  display: flex;
}

.privacy-popup p {
  margin: 0;
  max-width: 700px;
}

.privacy-dismiss {
  background: #fff;
  color: var(--accent-dark);
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.privacy-dismiss:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .privacy-popup {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
  }
}