﻿:root {
  --bg: #f4f1ea;
  --bg-strong: #e7ddd0;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-dark: #122033;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: rgba(18, 32, 51, 0.12);
  --primary: #0f766e;
  --primary-strong: #0b5f58;
  --accent: #d97706;
  --shadow: 0 24px 80px rgba(17, 24, 39, 0.14);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(217, 119, 6, 0.16), transparent 28%),
    linear-gradient(135deg, #f7f3ec 0%, #efe7db 48%, #f6f2eb 100%);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

p,
ul,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

a:hover,
a:focus {
  color: var(--primary);
  text-decoration: none;
}

.page-shell {
  padding: 36px;
}

.wrapper {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar-wrapper,
.hero-panel,
.section-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar-wrapper {
  position: sticky;
  top: 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #f8fafc;
  background:
    linear-gradient(180deg, rgba(10, 24, 41, 0.96) 0%, rgba(18, 50, 75, 0.96) 58%, rgba(15, 118, 110, 0.92) 100%);
  box-shadow: var(--shadow);
}

.profile-container {
  padding: 34px 30px 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.profile-frame {
  width: 128px;
  height: 128px;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12));
}

.profile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
}

.eyebrow,
.hero-kicker,
.container-block-title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.name,
.hero-title,
.section-title,
.metric-value {
  font-family: 'Space Grotesk', sans-serif;
}

.name {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.98;
  font-weight: 700;
}

.tagline {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  font-weight: 500;
}

.profile-summary {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.14);
}

.container-block {
  padding: 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.container-block-title {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.contact-list,
.badge-list,
.simple-list {
  margin: 0;
  padding: 0;
}

.contact-list li,
.simple-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-list li:last-child,
.simple-list li:last-child {
  margin-bottom: 0;
}

.contact-list .fa {
  margin-top: 4px;
  width: 16px;
  color: rgba(255, 255, 255, 0.58);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-list li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
}

.degree {
  margin-bottom: 4px;
  font-size: 1rem;
  color: #ffffff;
}

.meta,
.time,
.lang-desc {
  color: rgba(255, 255, 255, 0.64);
}

.education-container .item {
  margin-bottom: 18px;
}

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

.main-wrapper {
  padding: 8px 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 250, 245, 0.88) 100%);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: auto -80px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.18), transparent 68%);
}

.hero-kicker {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.hero-title {
  max-width: 13ch;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  color: #102033;
}

.hero-text {
  max-width: 64ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px 18px 16px;
  border: 1px solid rgba(18, 32, 51, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.metric-value {
  display: block;
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #102033;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.3rem;
  color: #102033;
}

.section-title .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #0f5e6c);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.18);
}

.section-card {
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.summary p:last-child,
.details p:last-child {
  margin-bottom: 0;
}

.timeline-item {
  position: relative;
  padding-left: 26px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.28), rgba(15, 118, 110, 0));
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 12px;
  width: 14px;
  height: 14px;
  border: 3px solid #f4f1ea;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.24);
}

.timeline-item:last-child::before {
  display: none;
}

.experiences-section .item {
  margin-bottom: 22px;
}

.upper-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.job-title {
  margin-bottom: 0;
  font-size: 1.15rem;
  color: #102033;
}

.main-wrapper .time {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary);
}

.company {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

.skillset {
  display: grid;
  gap: 18px;
}

.skillset .item {
  margin-bottom: 0;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.level-title {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #102033;
}

.skill-meta {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.level-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
}

.level-bar-inner {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #17b6a6, var(--accent));
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.18);
}

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

  .sidebar-wrapper {
    position: relative;
    top: 0;
  }
}

@media (max-width: 767px) {
  .page-shell {
    padding: 18px;
  }

  .profile-container,
  .container-block,
  .hero-panel,
  .section-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-title {
    max-width: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .upper-row,
  .skill-header {
    display: block;
  }

  .skill-meta {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .timeline-item {
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
