/* ============================================================
   veghmark.eu — style.css
   Colors: #e8001e (red), #111 (black), #fff (white)
   ============================================================ */

:root {
  --red: #e8001e;
  --red-dark: #c00018;
  --black: #111111;
  --black2: #1a1a1a;
  --black3: #222222;
  --white: #ffffff;
  --gray: #888888;
  --gray-light: #f5f5f5;
  --border: #e0e0e0;
  --text: #222222;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 10px;
  --transition: 0.25s ease;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: 3px solid var(--red);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: 4px;
  color: var(--white);
}
.nav-logo span { color: var(--red); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--red); }
.lang-switcher {
  display: flex;
  gap: 4px;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--black);
  z-index: 999;
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  border-bottom: 2px solid var(--red);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu .lang-switcher { margin-top: 8px; }

/* ── HERO ── */
.hero {
  margin-top: 64px;
  background: var(--black);
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: 0;
  padding: 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
/* Background diagonal accent */
.hero::after {
  content: '';
  position: absolute;
  right: 420px; top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.05);
}
.hero-content { padding: 60px 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(232,0,30,0.4);
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(72px, 9vw, 120px);
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
/* Végh — kicsi fölötte, mint korábban a .hero-surname */
.hero-surname-inline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.4;
}
.hero-role {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-left: 3px solid var(--red);
  padding-left: 12px;
  margin-bottom: 28px;
  line-height: 1.5;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  border: 2px solid var(--red);
  cursor: pointer;
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.75);
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* Hero photo */
.hero-photo {
  width: 440px;
  height: 100%;
  min-height: calc(100vh - 64px);
  position: relative;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--black) 0%, transparent 30%);
}

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 0;
  background: var(--red);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 40px;
  color: var(--white);
  line-height: 1;
  letter-spacing: 1px;
}
.stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── SECTIONS ── */
.section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-full {
  padding: 80px 48px;
  background: var(--gray-light);
}
.section-full .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-dark {
  padding: 80px 48px;
  background: var(--black);
  color: var(--white);
}
.section-dark .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--red);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 52px;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: inherit;
}
.section-subtitle {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 48px;
  max-width: 560px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.45); }

/* Top border decoration */
.section-head { margin-bottom: 48px; }
.red-line {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 20px;
}

/* ── EXPERTISE CARDS ── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.exp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.exp-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-4px); }
.exp-card:hover::before { transform: scaleX(1); }
.exp-icon { font-size: 32px; margin-bottom: 14px; }
.exp-title {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 10px;
}
.exp-text { font-size: 14px; color: var(--gray); line-height: 1.65; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), rgba(232,0,30,0.1));
}
.tl-item { display: flex; gap: 24px; margin-bottom: 36px; position: relative; }
.tl-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
  flex-shrink: 0;
  margin-left: -44px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.tl-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex: 1;
  transition: all var(--transition);
}
.tl-body:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-color: var(--red); }
.tl-year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tl-role { font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.tl-org { font-size: 13px; color: var(--red); margin-bottom: 10px; font-weight: 500; }
.tl-desc { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ── EDUCATION ── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.edu-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--red);
  transition: all var(--transition);
}
.edu-card:hover { transform: translateX(4px); }
.edu-year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.edu-degree { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.edu-school { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proj-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
}
.proj-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-4px); border-color: var(--red); }
.proj-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(232,0,30,0.3);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}
.proj-icon { font-size: 28px; margin-bottom: 12px; }
.proj-name {
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 8px;
}
.proj-desc { font-size: 13px; color: var(--gray); line-height: 1.65; }

/* ── PUBLICATIONS ── */
.pub-list { display: flex; flex-direction: column; gap: 20px; }
.pub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  transition: all var(--transition);
}
.pub-card:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.pub-year {
  font-family: var(--font-head);
  font-size: 44px;
  color: var(--red);
  line-height: 1;
  letter-spacing: -1px;
}
.pub-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.pub-title { font-weight: 700; font-size: 15px; line-height: 1.4; margin-bottom: 6px; }
.pub-journal { font-size: 13px; color: var(--red); margin-bottom: 5px; font-style: italic; }
.pub-authors { font-size: 12px; color: var(--gray); margin-bottom: 12px; }
.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: gap var(--transition);
}
.pub-link:hover { gap: 10px; }

/* ── INTERNATIONAL ── */
.intl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.intl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}
.intl-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.intl-flag { font-size: 44px; margin-bottom: 12px; }
.intl-country { font-family: var(--font-head); font-size: 24px; letter-spacing: 1px; margin-bottom: 8px; }
.intl-desc { font-size: 13px; color: var(--gray); line-height: 1.55; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 4px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-icon {
  width: 40px; height: 40px;
  background: rgba(232,0,30,0.1);
  border: 1px solid rgba(232,0,30,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-label {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.contact-value { font-size: 14px; color: var(--white); font-weight: 500; }
.contact-value a { color: var(--white); transition: color var(--transition); }
.contact-value a:hover { color: var(--red); }

/* QR panel in contact */
.qr-box {
  background: var(--black2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.qr-box-title {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 4px;
}
.qr-box-sub { font-size: 11px; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
#qrcode { display: flex; justify-content: center; margin-bottom: 14px; }
#qrcode canvas, #qrcode img { border-radius: 6px; border: 5px solid var(--black2); }
.qr-url { font-family: var(--font-mono); font-size: 12px; color: var(--red); letter-spacing: 1px; margin-bottom: 20px; }
.qr-cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.qr-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
}
.qr-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.qr-cta.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.qr-cta.ghost:hover { border-color: var(--red); color: var(--red); }

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 3px solid var(--red);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--white);
}
.footer-logo span { color: var(--red); }
.footer-text { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; padding: 32px 20px 48px; min-height: auto; }
  .hero-photo { display: none; }
  .hero-name { font-size: 72px; }

  .section { padding: 60px 20px; }
  .section-full { padding: 60px 20px; }
  .section-dark { padding: 60px 20px; }
  .section-title { font-size: 40px; }

  .expertise-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .intl-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pub-card { grid-template-columns: 1fr; }
  .pub-year { font-size: 32px; }

  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }

  footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px 20px; }
}

@media (max-width: 600px) {
  .intl-grid { grid-template-columns: 1fr; }
  .stat-item { min-width: 100%; }
  .hero-name { font-size: 60px; }
  .hero-ctas { flex-direction: column; }
  .btn-red, .btn-ghost { width: 100%; justify-content: center; }
}

/* ── FOCUS GRID ── */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.focus-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.focus-item:hover { border-color: var(--red); transform: translateX(4px); }
.focus-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ── AUTHORITY GRID ── */
.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.auth-card {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}
.auth-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-3px); }
.auth-icon { font-size: 28px; flex-shrink: 0; }
.auth-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.auth-desc { font-size: 13px; color: var(--gray); line-height: 1.6; }

@media (max-width: 900px) {
  .focus-grid { grid-template-columns: 1fr; }
  .authority-grid { grid-template-columns: 1fr; }
}
