* {
  box-sizing: border-box;
}

:root {
  --page-bg-start: #0f1723;
  --page-bg-mid: #121e2f;
  --page-bg-end: #162437;
  --panel-bg: #1e232a;
  --surface-bg: #232930;
  --surface-alt: #2a2f36;
  --border-color: #3a4048;
  --text-primary: #f3f4f6;
  --text-secondary: #c5c9d0;
  --text-muted: #9aa3b1;
  --text-soft: #aeb6c1;
  --accent: #6fd48e;
  --accent-hover: #93e8ad;
  --bullet-size: 0.6rem;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html {
  background:
    radial-gradient(circle at 12% 18%, rgba(73, 114, 167, 0.28), transparent 42%),
    radial-gradient(circle at 86% 84%, rgba(26, 142, 125, 0.22), transparent 40%),
    linear-gradient(135deg, var(--page-bg-start) 0%, var(--page-bg-mid) 46%, var(--page-bg-end) 100%);
  background-color: var(--page-bg-start);
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-primary);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.page {
  width: 900px;
  height: 620px;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  overflow: hidden;
}

.name {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tagline {
  margin: 0.2rem 0 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--border-color);
}

.tab {
  flex: 0 0 140px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  border-right: 0;
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  font-family: inherit;
  position: relative;
  margin-bottom: -1px;
  text-align: center;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  background: var(--surface-bg);
  color: var(--text-primary);
  border-bottom: 0;
  font-weight: 700;
}

.tab:last-child {
  border-right: 1px solid var(--border-color);
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--surface-bg);
}

.tab-panels {
  flex: 1;
  min-height: 0;
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-top: 0;
  padding: 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.section {
  margin: 0;
}

.section p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}

.section p:last-child {
  margin-bottom: 0;
}

.about-contacts {
  margin-bottom: 1.25rem;
}

.timeline-item,
.projects-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.timeline-item:last-child,
.projects-list li:last-child {
  margin-bottom: 0;
}

.timeline-item::before,
.projects-list li::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.35rem;
  width: var(--bullet-size);
  height: var(--bullet-size);
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.experience-title,
.experience-company,
.experience-dates {
  margin: 0;
  line-height: 1.2;
}

.experience-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.experience-company {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

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

.projects-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.section a {
  color: var(--accent);
  text-decoration: underline;
}

.section a:hover {
  color: var(--accent-hover);
}

@media (max-width: 760px) {
  .page {
    width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    padding: 1rem;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tab {
    flex: initial;
    width: 100%;
    border-right: 1px solid var(--border-color);
    padding: 0.55rem 0.35rem;
    font-size: 0.9rem;
  }

  .tab-panels {
    flex: 1;
  }

  .name {
    font-size: 1.6rem;
  }
}
