/* ============================================
   DESIGN TOKENS — Matches index.html / styles.css
   ============================================ */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;

  --accent: #1a3a5c;
  --accent-light: #2a5a8c;
  --accent-subtle: rgba(26, 58, 92, 0.06);
  --accent-border: rgba(26, 58, 92, 0.12);
  --gold: #b08840;
  --gold-subtle: rgba(176, 136, 64, 0.08);

  --text-primary: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #8b8da3;

  --border-color: #e8e8ed;
  --border-hover: #ccc;

  --font-display: "Outfit", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;

  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 480px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ============================================
   ID CARD
   ============================================ */
.id-card {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.id-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

/* Large avatar — hero-sized */
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}

.id-card:hover .avatar {
  border-color: var(--accent-border);
}

.identity {
  min-width: 0;
}

.identity h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

/* ============================================
   SECTION DIVIDER — matches index.html hr style
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  border: none;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 0.15s;
  animation-fill-mode: both;
}

/* ============================================
   LINKS
   ============================================ */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-fill-mode: both;
}

.link-item:nth-child(1) {
  animation-delay: 0.06s;
}
.link-item:nth-child(2) {
  animation-delay: 0.1s;
}
.link-item:nth-child(3) {
  animation-delay: 0.14s;
}
.link-item:nth-child(4) {
  animation-delay: 0.18s;
}
.link-item:nth-child(5) {
  animation-delay: 0.22s;
}
.link-item:nth-child(6) {
  animation-delay: 0.26s;
}
.link-item:nth-child(7) {
  animation-delay: 0.3s;
}

.link-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

/* Primary CTA (Book a Meeting) — matches btn-primary from styles.css */
.link-item.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.link-item.primary .link-desc {
  color: rgba(255, 255, 255, 0.7);
}

.link-item.primary .link-arrow {
  color: rgba(255, 255, 255, 0.5);
}

.link-item.primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.15);
  transform: translateY(-1px);
}

/* Icon */
.link-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-subtle);
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1rem;
}

.link-item.primary .link-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.link-icon svg {
  width: 20px;
  height: 20px;
}

/* Logo images in icon */
.shahar-maoz-logo,
.solcme-logo {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

/* Text */
.link-text {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.link-item.primary .link-title {
  color: #fff;
}

.link-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 1px;
}

/* Arrow */
.link-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.link-item:hover .link-arrow {
  transform: translateX(3px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 0.4s;
  animation-fill-mode: both;
}

.footer a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
}

.dot {
  opacity: 0.4;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 520px) {
  .container {
    padding: 40px 16px 32px;
  }

  .id-card {
    padding: 28px 22px 22px;
  }

  .card-header {
    gap: 14px;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }

  .identity h1 {
    font-size: 1.4rem;
  }

  .role {
    font-size: 0.82rem;
  }

  .link-item {
    padding: 14px 16px;
  }

  .link-icon {
    width: 38px;
    height: 38px;
  }

  .link-icon svg {
    width: 18px;
    height: 18px;
  }
}
