/* ================================================
   EILAM GROSS — PERSONAL WEBSITE
   Multilingual: Hebrew (RTL, default) / English (LTR)
   ================================================ */

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

:root {
  /* Colors */
  --hero-bg:      #05060f;
  --dark-bg:      #0d1117;
  --dark-bg2:     #111827;
  --muted-bg:     #c4c6c9;
  --white:        #cccccc;
  --accent:       #5a9fd4;      /* soft electric blue */
  --accent-glow:  rgba(77,166,255,.18);
  --gold:         #f5c518;
  --text-dark:    #1a1f2e;
  --text-mid:     #4b5563;
  --text-light:   #e2e8f0;
  --text-muted:   #94a3b8;
  --border:       #e2e8f0;
  --border-dark:  rgba(255,255,255,.10);
  --tl-line:      #d1d5db;
  --tl-dot:       #5a9fd4;

  /* Typography */
  --font-he:      'Heebo', sans-serif;
  --font-en:      'Raleway', sans-serif;

  /* Spacing */
  --section-py:   6rem;
  --container:    1180px;
  --radius:       12px;
  --radius-lg:    20px;

  /* Transitions */
  --ease:         cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-he);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Hebrew default, English override */
html[dir="ltr"] body { font-family: var(--font-en); }

/* ---------- LANGUAGE VISIBILITY ---------- */
body.lang-he .lang-en { display: none !important; }
body.lang-en .lang-he { display: none !important; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: all .25s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--accent);
  color: #1a1f2e;
}
.btn-primary:hover {
  background: #2b8eff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77,166,255,.35);
}
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- SECTION SHARED ---------- */
section { padding: var(--section-py) 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.section-eyebrow.light { color: var(--accent); }

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 660px;
  margin: 0 auto;
}

/* Dark sections override text */
.section-dark .section-header h2,
.section-dark .section-subtitle { color: var(--text-light); }
.section-dark .section-subtitle { color: var(--text-muted); }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
#navbar.scrolled {
  background: rgba(5,6,15,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  padding: .6rem 0;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: .2rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: .4rem .9rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
  border-radius: 6px;
  padding: .35rem .75rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.lang-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('hero-bg.png') center center / cover no-repeat;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,6,15,.2);
  z-index: 1;
}
#hero .hero-content, #hero .hero-scroll-hint {
  position: relative;
  z-index: 2;
}

#particleCanvas {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ---------- PORTAL OVERLAY ---------- */
#portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #05060f url('portal-bg.png') center center / cover no-repeat;
  transition: opacity .9s ease;
}
#portal-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.portal-ui {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.portal-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 2.2rem;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50px;
  color: rgba(255,255,255,.85);
  font-family: var(--font-he);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(6px);
  opacity: .82;
  cursor: pointer;
  transition: all .3s var(--ease);
  animation: portalBtnPulse 2.5s ease-in-out infinite;
  white-space: nowrap;
}
.portal-lang-btn:hover {
  background: rgba(77,166,255,.2);
  border-color: rgba(77,166,255,.7);
  box-shadow: 0 0 24px rgba(77,166,255,.35);
  opacity: 1;
  transform: scale(1.05);
  animation: none;
}
.portal-btn-arrow {
  font-size: 1.2rem;
}
@keyframes portalBtnPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,255,255,.15); }
  50%       { box-shadow: 0 0 28px rgba(255,255,255,.4);  }
}
@media (max-width: 640px) {
  .portal-ui {
    top: 24%;
    gap: .6rem;
  }
  .portal-lang-btn {
    padding: .5rem 1.2rem;
    font-size: .78rem;
    gap: .35rem;
    border-width: 1.5px;
  }
  .portal-btn-arrow {
    font-size: .9rem;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  max-width: 820px;
  margin-top: 4vh;
}

.hero-tag {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding: .35rem 1rem;
  border: 1px solid rgba(77,166,255,.3);
  border-radius: 50px;
  background: rgba(77,166,255,.08);
}

.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.hero-content h2 {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-gold-line {
  color: var(--gold) !important;
  font-weight: 600 !important;
  text-shadow: 0 0 20px rgba(245,197,24,.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 17rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- ABOUT ---------- */
#about {
  background: var(--white);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 48%;
  gap: 0;
  align-items: stretch;
  min-height: 520px;
  margin-right: calc(-1 * (100vw - var(--container)) / 2);
}
html[dir="rtl"] .about-grid {
  direction: rtl;
  margin-right: 0;
  margin-left: calc(-1 * (100vw - var(--container)) / 2);
}

.about-text-col {
  padding-right: 3rem;
}
html[dir="rtl"] .about-text-col {
  padding-right: 0;
  padding-left: 3rem;
}

.about-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.photo-frame {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  flex-shrink: 0;
  flex: 1;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(77,166,255,.5);
  letter-spacing: -.05em;
  background: linear-gradient(135deg, #0d1117, #1a2332);
}

.about-links-col {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: 100%;
}
.pill-link {
  display: block;
  text-align: center;
  padding: .5rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  transition: all .2s;
}
.pill-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.about-text-col h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}

.about-text-col p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: .9rem;
  line-height: 1.8;
}
.about-text-col p strong { color: var(--text-dark); }

.stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-desc {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- RESEARCH (dark) ---------- */
.section-dark {
  background: var(--dark-bg);
  color: var(--text-light);
}

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

.research-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.research-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77,166,255,.4);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.research-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(77,166,255,.1), rgba(77,166,255,.03));
  border-color: rgba(77,166,255,.3);
  position: relative;
}

.rcard-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}
.research-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}
.research-card p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.research-card p a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(77,166,255,.35);
  transition: color .2s, border-color .2s;
}
.research-card p a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.rcard-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;  /* overridden for RTL */
  background: var(--gold);
  color: #1a1200;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 50px;
}
html[dir="rtl"] .rcard-badge { left: auto; right: 1.5rem; }
html[dir="ltr"] .rcard-badge { right: auto; left: 1.5rem; }

.rcard-video {
  margin-top: 1.25rem;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.rcard-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

/* ---------- LECTURES ---------- */
#lectures { background: var(--white); }

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

.lecture-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all .25s var(--ease);
  background: var(--white);
  position: relative;
}
.lecture-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(77,166,255,.12);
  transform: translateY(-3px);
}

.lecture-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #f0f7ff, #e8f2ff);
  border-color: var(--accent);
}

.lecture-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--gold);
  color: #1a1200;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .2rem .7rem;
  border-radius: 50px;
}
html[dir="rtl"] .lecture-badge { left: auto; right: 1.2rem; }
html[dir="ltr"] .lecture-badge { right: auto; left: 1.2rem; }

.lecture-emoji {
  font-size: 2.4rem;
  line-height: 1;
}

.lecture-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}
.lecture-featured h3 { font-size: 1.3rem; }

.lecture-card p {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.75;
  flex: 1;
}

.lectures-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.lectures-cta-bar p {
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- CV (muted) ---------- */
.section-muted { background: var(--muted-bg); }

.cv-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.cv-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  color: var(--text-dark);
}

.timeline { position: relative; padding-inline-start: 1.8rem; }
.timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: var(--tl-line);
  border-radius: 2px;
}

.tl-item {
  position: relative;
  display: flex;
  gap: 1.2rem;
  padding-bottom: 1.8rem;
}
.tl-item::before {
  content: '';
  position: absolute;
  inset-inline-start: -1.8rem;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--tl-dot);
  border-radius: 50%;
  border: 2px solid var(--muted-bg);
  margin-inline-start: -4px;
}
.tl-highlight::before { background: var(--gold); }

.tl-year {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  padding-top: .1rem;
  min-width: 52px;
  letter-spacing: .03em;
}
.tl-item.tl-highlight .tl-year { color: #b58a00; }

.tl-body strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .15rem;
  line-height: 1.4;
}
.tl-place {
  font-size: .85rem;
  color: var(--text-mid);
}

.cv-footer-note {
  margin-top: 2.5rem;
  text-align: center;
}

/* ---------- CONTACT (dark) ---------- */
.contact-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1 1 220px;
  max-width: 280px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all .25s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.contact-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(77,166,255,.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.cc-icon { font-size: 2rem; }
.cc-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cc-value {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  word-break: break-all;
}

/* ---------- FOOTER ---------- */
footer {
  background: #060810;
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-affil {
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-copy {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  margin-top: .5rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about-grid { display: flex; flex-direction: column; margin-right: 0 !important; margin-left: 0 !important; }
  .about-text-col { padding-right: 0 !important; padding-left: 0 !important; order: 2; }
  .about-image-col { order: 1; flex-direction: column; align-items: center; width: 100%; margin: 0; }
  .photo-frame { width: 100%; min-height: unset; height: 0; padding-bottom: 56.25%; position: relative; flex: none; border-radius: 0; box-shadow: none; }
  .photo-frame img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
  .about-links-col { flex-direction: row; }
  .research-grid { grid-template-columns: 1fr; }
  .research-featured { grid-column: span 1; }
  .lectures-grid { grid-template-columns: 1fr; }
  .lecture-featured { grid-column: span 1; }
  .cv-columns { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  :root { --section-py: 4rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(5,6,15,.97);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem 1.5rem;
    gap: .2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .hamburger { display: flex; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .stat-row { justify-content: center; }
  .lectures-cta-bar { flex-direction: column; text-align: center; }
  .about-links-col { width: 100%; }

  /* particle canvas is always enabled (set globally) */
}

/* ---------- RTL SPECIFICS ---------- */
html[dir="rtl"] .timeline { text-align: right; }
html[dir="rtl"] .tl-item { flex-direction: row-reverse; }

/* Ensure hero text is centered regardless of direction */
.hero-content { direction: ltr; text-align: center; }
html[dir="rtl"] .hero-content { direction: rtl; }

/* ---------- HERO ACCENT OVERRIDE (lighter blue on dark bg) ---------- */
#hero .hero-subtitle-name,
#hero .section-eyebrow,
#hero .btn-outline {
  color: #a8d4ff;
}
#hero .btn-outline {
  border-color: #a8d4ff;
}
#hero .btn-primary {
  background: #a8d4ff;
}

/* ---------- NAV BOOK BUTTON ---------- */
.nav-book-btn {
  display: inline-flex;
  align-items: center;
  padding: .38rem 1rem;
  background: var(--accent);
  color: #1a1f2e;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
  letter-spacing: .02em;
}
.nav-book-btn:hover {
  background: #2b8eff;
  transform: translateY(-1px);
}

/* ---------- HERO SUBTITLE NAME ---------- */
.hero-subtitle-name {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .75rem;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  flex-wrap: wrap;
}
.hero-weizmann-logo {
  height: 4.5rem;
  width: auto;
  filter: invert(1) sepia(1) saturate(3) hue-rotate(185deg) brightness(1.1);
  opacity: .9;
}

/* ---------- HERO PHONE ---------- */
.hero-phone {
  margin-top: 1.4rem;
  font-size: .9rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .05em;
  text-shadow: 0 0 12px rgba(245,197,24,.4);
}
.hero-phone a { color: inherit; }

/* ---------- LOGOS BAR ---------- */
.logos-bar {
  padding: 2rem 0;
  background: var(--muted-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-bar .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.logos-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.logos-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.logo-pill {
  padding: .35rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: .04em;
  background: var(--white);
  transition: border-color .2s, color .2s;
}
.logo-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- AI research card ---------- */
.research-featured-ai {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(77,166,255,.07), rgba(77,166,255,.03));
  border-color: rgba(77,166,255,.25);
}

/* ---------- FOR COMPANIES ---------- */
.section-companies {
  background: var(--dark-bg2);
  color: var(--text-light);
  padding: var(--section-py) 0;
}
.section-companies .section-header h2,
.section-companies .section-subtitle { color: var(--text-light); }
.section-companies .section-subtitle { color: var(--text-muted); }

.companies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.companies-feature {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .25s var(--ease), border-color .25s;
}
.companies-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(77,166,255,.4);
}
.cf-icon {
  font-size: 2rem;
  margin-bottom: .9rem;
  display: block;
}
.companies-feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .6rem;
}
.companies-feature p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.companies-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOR EDUCATION ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.edu-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: all .25s var(--ease);
}
.edu-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(77,166,255,.12);
  transform: translateY(-3px);
}
.edu-card-featured {
  background: linear-gradient(135deg, #f0f7ff, #e8f2ff);
  border-color: var(--accent);
}
.edu-icon {
  font-size: 2rem;
  line-height: 1;
}
.edu-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}
.edu-card p {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.75;
  flex: 1;
}
.edu-cta-btn { margin-top: .5rem; align-self: flex-start; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .25s, transform .25s;
}
.testimonial-card:hover {
  border-color: rgba(77,166,255,.4);
  transform: translateY(-3px);
}
.tcard-quote {
  font-size: 3rem;
  color: var(--accent);
  line-height: .8;
  font-family: Georgia, serif;
  opacity: .7;
}
.testimonial-card p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.tcard-author {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-light);
  opacity: .7;
}

/* ---------- MEDIA & PUBLICATIONS ---------- */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.video-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.media-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.media-link-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .25s var(--ease);
}
.media-link-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(77,166,255,.1);
  transform: translateX(-3px);
}
html[dir="ltr"] .media-link-card:hover { transform: translateX(3px); }
.mlc-icon { font-size: 1.5rem; flex-shrink: 0; }
.media-link-card strong {
  display: block;
  font-size: .95rem;
  color: var(--text-dark);
  margin-bottom: .2rem;
}
.media-link-card p {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ---------- FOOTER LINKS ---------- */
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}
.footer-links a {
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

/* ---------- CV DARK OVERRIDE ---------- */
#cv.section-dark .cv-col-title { color: var(--text-light); }
#cv.section-dark .tl-body strong { color: var(--text-light); }
#cv.section-dark .tl-place { color: var(--text-muted); }
#cv.section-dark .timeline::before { background: var(--border-dark); }
#cv.section-dark .tl-item::before { border-color: var(--dark-bg); }

/* ---------- RESPONSIVE (new sections) ---------- */
@media (max-width: 900px) {
  .companies-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .research-featured-ai { grid-column: span 1; }
  .nav-book-btn { display: none; }
}
@media (max-width: 640px) {
  .logos-bar .container { flex-direction: column; gap: 1rem; }
  .companies-cta { flex-direction: column; align-items: center; }
}
