*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #1e2a35;
  --orange:  #e07b2a;
  --text:    #1a1a1a;
  --muted:   #6b7280;
  --border:  #dde2e8;
  --bg:      #ffffff;
  --bg-alt:  #f7f8fa;
  --orange-lt: #fdf0e6;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }

/* ---- Navbar ---- */
.site-nav {
  background: var(--dark);
  border-bottom: 2px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.nav-links {
  display: flex;
  gap: 0;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 0;
  letter-spacing: -0.3px;
}

.nav-brand:hover { color: var(--orange); }

.site-nav a.nav-link {
  display: block;
  padding: 14px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  color: #a0b4c0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link.active {
  color: #ffffff;
  border-bottom-color: var(--orange);
}

.lang-flags {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  padding: 14px 0;
  flex-shrink: 0;
}

.lang-flag {
  text-decoration: none;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.15s;
  display: inline-block;
}

.lang-flag img {
  width: 24px;
  height: 16px;
  display: block;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 2px;
}

.lang-flag:hover { opacity: 0.8; }
.lang-flag.active { opacity: 1; cursor: default; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #a0b4c0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 14px 0;
}

/* ---- Hero (Home) ---- */
.hero {
  background: var(--dark);
  padding: 56px 0 48px;
}

.hero .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--orange);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-name {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.hero-role {
  font-size: 1rem;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 0.03em;
}

.hero-tagline {
  margin-top: 12px;
  font-size: 1rem;
  color: #a0b4c0;
  max-width: 540px;
}

/* ---- Page Header (non-Home pages) ---- */
.page-header {
  background: var(--dark);
  padding: 40px 0;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.page-header p {
  color: #a0b4c0;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ---- Headings ---- */
h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--bg);
}

.timeline-date {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.timeline-item h3 { margin-bottom: 4px; }

.timeline-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline-item img {
  margin-top: 12px;
  max-width: 360px;
  width: 100%;
  height: auto;
  border-left: 3px solid var(--orange);
}

/* ---- Project Cards ---- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  padding: 20px 22px;
}

.project-card h3 { margin-bottom: 4px; }

.project-card h3 a {
  color: inherit;
  text-decoration: none;
}

.project-card h3 a:hover { color: var(--orange); }

.project-meta {
  font-size: 0.76rem;
  color: var(--orange);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.project-card .project-links {
  margin-top: 10px;
}

.project-card .project-links a {
  font-size: 0.82rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
}

.project-card .project-links a:hover { color: var(--orange); }

.project-cover {
  width: 100%;
  height: auto;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ---- Awards ---- */
.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.awards-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.award-badge {
  background: var(--dark);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.award-text strong {
  font-size: 0.95rem;
  display: block;
  color: var(--text);
}

.award-text span {
  font-size: 0.85rem;
  color: var(--muted);
}

.stipendium-box {
  background: var(--orange-lt);
  border-left: 3px solid var(--orange);
  padding: 18px 22px;
  margin-top: 28px;
}

.stipendium-box p {
  font-size: 0.93rem;
  color: var(--text);
  margin: 0;
}

.stipendium-box strong { color: var(--dark); }

.award-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: auto;
  padding-top: 12px;
  border-left: 3px solid var(--orange);
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.award-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.award-card .award-badge {
  align-self: flex-start;
}

.award-card strong {
  color: var(--dark);
  font-size: 1rem;
}

.award-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .awards-grid { grid-template-columns: 1fr; }
}

/* ---- Engagement ---- */
.engagement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 700px) {
  .engagement-grid { grid-template-columns: 1fr; }
}

.engagement-item {
  display: flex;
  flex-direction: column;
}

.engagement-item h3 { margin-bottom: 6px; }

.engagement-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

.engagement-item img {
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  object-position: left;
  border-left: 3px solid var(--orange);
}

/* ---- Contact ---- */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.contact-links a {
  font-size: 0.93rem;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-links a:hover { color: var(--orange); }

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  min-width: 70px;
}

/* ---- Footer ---- */
footer {
  background: var(--dark);
  padding: 20px 0;
  margin-top: 48px;
}

footer p {
  font-size: 0.8rem;
  color: #7a9aaa;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-name { font-size: 1.8rem; }
  .hero-tagline { max-width: 100%; }

  .hamburger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark);
    border-bottom: 2px solid var(--orange);
  }
  .nav-links.open { display: flex; }
  .site-nav .container {
    flex-wrap: wrap;
  }
  .site-nav a.nav-link {
    padding: 12px 24px;
    font-size: 0.78rem;
  }

  .page-header h1 { font-size: 1.4rem; }
  .projects-grid { grid-template-columns: 1fr !important; }
  .timeline { padding-left: 24px; }
}
