/* ---- Martin Kotraš – personal page ---- */

:root {
  --bg: #121010;
  --bg-card: #1c1816;
  --bg-card-hover: #241e1a;
  --text: #ede8e4;
  --text-muted: #9a8e83;
  --accent: #CD6F00;
  --accent-light: #e08010;
  --accent-glow: rgba(205, 111, 0, 0.12);
  --accent-bg: #FDA;
  --chip-bg: #1c1816;
  --chip-border: #2e2520;
  --radius: 12px;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
}

/* ---- Language toggle ---- */

.lang-toggle {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 4px;
  background: rgba(18, 16, 16, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--chip-border);
  border-radius: 8px;
  padding: 4px;
}
.lang-toggle a {
  display: block;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  border-radius: 5px;
  transition: all 0.2s ease;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}
.lang-toggle a.active {
  background: var(--accent-glow);
  color: var(--accent-bg);
}
.lang-toggle a:hover:not(.active) {
  color: var(--text);
}

/* ---- Hero banner ---- */

.hero-banner {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 41%;
  filter: brightness(0.4) saturate(1.1) sepia(0.15);
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg), rgba(18, 16, 16, 0));
}

/* ---- Profile ---- */

.profile-section {
  max-width: 720px;
  margin: -80px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.profile-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 32px rgba(0,0,0,0.5);
  flex-shrink: 0;
  object-fit: cover;
}

.profile-info h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.profile-info .nickname {
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.profile-info .tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---- Intro ---- */

.intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 48px;
  max-width: 620px;
}
.intro strong {
  color: var(--text);
  font-weight: 500;
}

/* ---- Sections ---- */

.section {
  margin-bottom: 48px;
}
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

/* ---- Tech chips ---- */

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.chip {
  display: inline-block;
  padding: 6px 14px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: default;
}
.chip:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.chip.highlight {
  border-color: var(--accent);
  color: var(--accent-bg);
  background: var(--accent-glow);
}
.chip-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  margin-top: 12px;
  margin-bottom: 6px;
}

/* ---- Project cards ---- */

.project-cards {
  display: grid;
  gap: 12px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--chip-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(205, 111, 0, 0.08);
}
.project-card .card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.project-card .card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.project-card .card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.project-card .card-tag {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: 0.7rem;
  color: var(--accent-bg);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Interests ---- */

.interests {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 620px;
}

/* ---- Social links ---- */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--chip-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.social-link:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  flex-shrink: 0;
  transition: fill 0.2s ease;
}
.social-link:hover svg {
  fill: var(--accent-light);
}

/* ---- Footer ---- */

.footer {
  margin-top: 80px;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--chip-border);
}
.footer-credit {
  margin-top: 6px;
  font-size: 0.72rem;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .hero-banner { height: 200px; }
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .avatar { width: 110px; height: 110px; }
  .profile-section { margin-top: -60px; }
  .profile-info h1 { font-size: 1.6rem; }
}

/* ---- Animations ---- */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
