.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 6, 6, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-sticky {
  position: sticky;
  z-index: 40;
  background: rgba(6, 6, 6, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
}

.brand-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-item {
  position: relative;
}

.nav-link-main {
  display: inline-flex;
  align-items: center;
}

.nav-link-main::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown a {
  display: block;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--soft);
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-item-dropdown:hover .nav-link-main::after,
.nav-item-dropdown:focus-within .nav-link-main::after {
  opacity: 1;
  transform: rotate(225deg) translateY(1px);
}

.nav a:hover,
.lang-toggle:hover,
.button.secondary:hover,
.chip:hover,
.back-link:hover {
  color: var(--text);
  border-color: #4b4b52;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-inline {
  display: none;
  position: relative;
}

.mobile-menu-brand summary {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  font-size: 0.84rem;
  line-height: 1;
  color: var(--muted);
}

.mobile-menu-brand summary::after {
  display: none;
}

.mobile-menu-brand[open] summary {
  color: var(--text);
}

.mobile-menu-brand .mobile-menu-panel {
  left: 0;
  right: auto;
}

.mobile-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.mobile-menu[open] summary::after {
  transform: rotate(225deg) translateY(1px);
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(86vw, 300px);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  z-index: 60;
}

.mobile-menu-panel a {
  display: block;
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--soft);
}

.mobile-menu-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.back-link::before {
  content: "\2190";
  display: inline-block;
  line-height: 1;
}

.lang-toggle {
  position: relative;
  width: 94px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font: inherit;
  color: var(--soft);
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 3px;
}

.lang-toggle .lang-label {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.lang-toggle .lang-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 38px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease;
}

.lang-toggle.lang-en .lang-knob {
  transform: translateX(48px);
}

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

.button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: 0.2s ease;
}

.button.primary {
  background: #f2f2ef;
  color: #101010;
  border-color: #f2f2ef;
  font-weight: 600;
}

.button.primary:hover {
  transform: translateY(-1px);
}

.button.secondary,
.chip {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.03);
}

.cta-small {
  margin-top: 14px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

#about .button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: #f6f7f8;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-weight: 600;
  padding: 14px 22px;
}

#about .button.secondary:hover,
#about .button.secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.12));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

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

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

.card,
.contact-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
}

.card {
  padding: 22px;
}

.education-short-card {
  padding: 16px 18px;
}

.education-short-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--soft);
}

.education-short-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--soft);
}

.education-short-list li + li {
  margin-top: 4px;
}

.card-tag {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
}

.card h3 {
  margin: 14px 0 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.card p,
.list-box p {
  color: var(--muted);
  margin: 14px 0 0;
}

.list-box {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.experience-list {
  display: grid;
  gap: 14px;
}

#experience .experience-list {
  display: flex;
  flex-direction: column-reverse;
}

.experience-item {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.experience-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.experience-top h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.experience-top span {
  color: var(--muted);
  font-size: 0.92rem;
}

.experience-item p {
  margin: 12px 0 0;
  color: var(--soft);
}

.experience-points {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--soft);
}

.experience-points li + li {
  margin-top: 8px;
}

.experience-more {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  font-size: 0.82rem;
  text-decoration: none;
}

.experience-more:hover {
  color: var(--text);
  border-color: #4b4b52;
}

.contact-showcase {
  margin-top: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.contact-intro {
  margin: 0;
  text-align: center;
  color: #e8edf6;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  line-height: 1.35;
  font-weight: 550;
}

.contact-cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.contact-card {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 24px;
  min-height: 340px;
  padding: 34px 30px 30px;
  text-align: center;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  background: linear-gradient(170deg, #16181d 0%, #121419 100%);
  transform: translateY(-5px);
  border-color: rgba(79, 158, 247, 0.75);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(79, 158, 247, 0.35);
}

.contact-card:focus-visible {
  outline: none;
}

.contact-card-icon {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #5d7df2 0%, #4f72e5 100%);
  color: #f7f9ff;
  box-shadow: 0 14px 30px rgba(79, 114, 229, 0.34);
}

.contact-card-icon svg {
  width: 48px;
  height: 48px;
}

.contact-card h3 {
  margin: 24px 0 0;
  color: #f1f5ff;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.01em;
}

.contact-card p {
  margin: 14px 0 0;
  color: #acb4c6;
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 34ch;
}

.contact-card-action {
  margin-top: auto;
  padding-top: 28px;
  color: #5e8fff;
  font-weight: 650;
  font-size: 1.01rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-card-action::after {
  content: "\2197";
  margin-left: 8px;
}

.contact-card:hover .contact-card-action,
.contact-card:focus-visible .contact-card-action {
  color: #88adff;
  transform: translateX(2px);
}