:root {
  --bg-primary: #303050;
  --bg-secondary: #222;
  --bg-tertiary: #444;
  --text-primary: #fff;
  --text-secondary: #000;
  --accent: #4be;
  --hover: #75f;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

.site-header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--accent);
}
.site-header .name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.site-header .email a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-header .email a:hover {
  color: var(--hover);
}

.container {
  display: grid;
  grid-template-columns: 20rem 1fr;
  min-height: calc(100vh - 5rem);
  gap: 1.5rem;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}
.sidebar {
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
  height: fit-content;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.title {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  user-select:none;
}
.sidebar-nav {
  margin-bottom: 1rem;
}
.sidebar-nav ul {
  list-style: none;
}
.app-link {
  display: block;
  padding: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  user-select:none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}
.app-link:hover {
  background-color: var(--accent);
  color: var(--text-secondary);
  transform: translateX(0.5rem);
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}
.main-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.pdf-container {
  width: 100%;
  height: 90vh;
  border: 3px solid lightblue;
}
.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.go-to-resume-link {
  display: none;
  margin-top: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.go-to-resume-link:hover {
  color: var(--accent);
}

/* ── Mobile ── */
@media (max-width: 1170px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 1rem;
    gap: 1.5rem;
  }

  .sidebar {
    order: 1;
    position: static;
  }
  .main-content {
    order: 2;
  }

  .go-to-resume-link {
    display: inline-block;
  }

  .pdf-container {
    height: 80vh;
  }
}
