/* ===========================
   PROFESSOR GAD DGANI WEBSITE
   Dark Academic Theme — Navy + Gold
   =========================== */

/* Fonts loaded via <link> in HTML for better performance */

/* ── CSS Variables ─────────────── */
:root {
  --navy:        #1a2744;
  --navy-light:  #243358;
  --navy-mid:    #1e2e52;
  --navy-dark:   #0f1829;
  --gold:        #c9a84c;
  --gold-light:  #e4c87a;
  --gold-dark:   #a8882e;
  --gold-subtle: rgba(201,168,76,0.15);
  --cream:       #f0e8d8;
  --cream-dim:   #c8bfaf;
  --text-light:  #e8e0d0;
  --text-muted:  #9a8e7a;
  --border:      rgba(201,168,76,0.25);
  --card-bg:     rgba(36,51,88,0.85);
  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.45);
  --radius:      8px;
  --radius-lg:   14px;
  --transition:  0.25s ease;
}

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

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

html[lang="he"] {
  direction: rtl;
}

body {
  background-color: var(--navy-dark);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(36,51,88,0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 50%);
}

/* ── Typography ────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--cream);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 500; }

p { margin-bottom: 1rem; color: var(--text-light); }

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold); }

strong { color: var(--cream); font-weight: 600; }

em { color: var(--gold-light); font-style: italic; }

ul, ol { padding-left: 1.5rem; }
html[lang="he"] ul,
html[lang="he"] ol { padding-left: 0; padding-right: 1.5rem; }

li { margin-bottom: 0.4rem; }

/* ── Gold Divider ──────────────── */
.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.2rem auto;
}

.gold-divider.left {
  margin-left: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

html[lang="he"] .gold-divider.left {
  margin-left: auto;
  margin-right: 0;
  background: linear-gradient(270deg, var(--gold), transparent);
}

/* ── Navigation ────────────────── */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,15,35,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.main-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold) !important;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-logo:hover { color: var(--gold-light) !important; }

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

.nav-links li { margin: 0; }

.nav-links a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream-dim);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold-light);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Page Wrapper ──────────────── */
.page-wrapper {
  padding-top: 68px;
  min-height: 100vh;
}

/* ── Hero — Homepage ───────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(36,51,88,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.profile-photo-wrap {
  margin: 0 auto 2rem;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  padding: 4px;
  background: var(--navy-light);
  box-shadow: 0 0 0 8px rgba(201,168,76,0.1), var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
}

.profile-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.6;
}

.hero-name {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.hero-institution {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Buttons ───────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy-dark);
  box-shadow: 0 2px 12px rgba(201,168,76,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 4px 20px rgba(201,168,76,0.45);
  transform: translateY(-1px);
  color: var(--navy-dark);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* ── Page Header (inner pages) ─── */
.page-header {
  background: linear-gradient(to bottom, var(--navy), var(--navy-dark));
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.page-header .page-title {
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.page-header .page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-style: italic;
}

/* ── Section ───────────────────── */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: rgba(26,39,68,0.4);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title {
  color: var(--cream);
  margin-bottom: 0.5rem;
}

/* ── Cards ─────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.83rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Grid ──────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ── Publications ──────────────── */
.pub-list { display: flex; flex-direction: column; gap: 1.2rem; }

.pub-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: all var(--transition);
}

html[lang="he"] .pub-item {
  border-left: 1px solid var(--border);
  border-right: 3px solid var(--gold);
}

.pub-item:hover {
  border-color: rgba(201,168,76,0.45);
  box-shadow: var(--shadow);
}

.pub-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.pub-authors {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.pub-journal {
  font-size: 0.88rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 0.3rem;
}

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

.pub-year {
  background: var(--gold-subtle);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pub-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream-dim);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.78rem;
}

.pub-abstract {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.6;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: none;
}

.pub-abstract.open { display: block; }

.pub-toggle {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Inter', sans-serif;
  transition: color var(--transition);
}

.pub-toggle:hover { color: var(--gold-light); }

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

html[lang="he"] .filter-label {
  margin-right: 0;
  margin-left: 0.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cream-dim);
  font-size: 0.82rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── CV ────────────────────────── */
.cv-section {
  margin-bottom: 3rem;
}

.cv-section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.cv-section-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-subtle);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.cv-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}

html[lang="he"] .cv-entry {
  grid-template-columns: 1fr 130px;
  direction: rtl;
}

.cv-year {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
  padding-top: 0.15rem;
  white-space: nowrap;
}

.cv-entry-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.cv-entry-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.cv-entry-desc {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.6;
}

/* ── Lectures ──────────────────── */
.lecture-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all var(--transition);
}

.lecture-item:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow);
}

.lecture-num {
  width: 48px;
  height: 48px;
  background: var(--gold-subtle);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 700;
}

.lecture-body { flex: 1; }

.lecture-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.lecture-meta {
  font-size: 0.83rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.lecture-desc {
  font-size: 0.92rem;
  color: var(--cream-dim);
  line-height: 1.65;
}

/* ── Gallery ───────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--navy-light);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-item:hover {
  border-color: var(--gold);
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
}

.gallery-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
  color: var(--gold);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(10,15,35,0.95), transparent);
  color: var(--cream);
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ── Contact ───────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-subtle);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.contact-value {
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream-dim);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(10,15,35,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

/* ── Research ──────────────────── */
.research-area {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.research-area:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow);
}

.research-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.research-area-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

/* ── About ─────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.about-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 3px;
  margin: 0 auto 1.25rem;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.about-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-inner svg {
  width: 60px;
  height: 60px;
  opacity: 0.5;
}

.about-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.about-role {
  font-size: 0.88rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.about-tag {
  background: var(--gold-subtle);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold);
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

/* ── Stats Row ─────────────────── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.stat-item {
  text-align: center;
  flex: 0 1 160px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Footer ────────────────────── */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

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

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

.footer-copy {
  font-size: 0.78rem;
  color: rgba(154,142,122,0.5);
}

/* ── Loader ────────────────────── */
.loader {
  display: flex;
  justify-content: center;
  padding: 3rem;
}

.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 4px;
  animation: bounce 1.2s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-12px); opacity: 1; }
}

/* ── Scroll to Top ─────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
}

html[lang="he"] .scroll-top { right: auto; left: 2rem; }

.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── Misc helpers ──────────────── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

.badge {
  display: inline-block;
  background: var(--gold-subtle);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ── Responsive ────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-sidebar-card { max-width: 360px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,15,35,0.98);
    padding: 2rem 1.5rem;
    gap: 0.25rem;
    overflow-y: auto;
    z-index: 999;
    justify-content: flex-start;
    align-items: flex-start;
    border-top: 1px solid var(--border);
  }

  html[lang="he"] .nav-links.open {
    align-items: flex-end;
  }

  .nav-links.open li { width: 100%; }

  .nav-links.open a {
    font-size: 1.1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    border-radius: 0;
    width: 100%;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  .cv-entry {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  html[lang="he"] .cv-entry {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }

  .section { padding: 3.5rem 1.25rem; }
  .stats-row { gap: 1rem; }
  .stat-item { flex: 0 1 120px; }
  .stat-number { font-size: 2.2rem; }

  .lecture-item { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 1rem; }
  .nav-logo { font-size: 0.95rem; }
  .profile-photo-wrap { width: 130px; height: 130px; }
  .about-photo { width: 110px; height: 110px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Search box ────────────────── */
.search-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  background: rgba(10,15,35,0.6);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.8rem 1rem 0.8rem 3rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

html[lang="he"] .search-input {
  padding: 0.8rem 3rem 0.8rem 1rem;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

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

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

html[lang="he"] .search-icon { left: auto; right: 1.1rem; }

.search-count {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.search-count strong { color: var(--gold); }

.pub-item.hidden { display: none; }
