:root {
  --primary: #0f62fe;
  --primary-dark: #0043ce;
  --primary-soft: #d0e2ff;
  --accent: #ff7d00;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-alt: #e8eef8;
  --text: #162033;
  --text-muted: #5b6475;
  --border: #d7deea;
  --shadow-sm: 0 10px 24px rgba(15, 34, 60, 0.06);
  --shadow-md: 0 18px 44px rgba(15, 34, 60, 0.12);
  --radius: 18px;
  --transition: 180ms ease;
  --sidebar-width: 292px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(15, 98, 254, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.app-shell {
  min-height: 100vh;
}

.hamburger {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--text);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  display: block;
  position: relative;
  content: "";
}

.hamburger span::before {
  position: absolute;
  top: -6px;
}

.hamburger span::after {
  position: absolute;
  top: 6px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 18, 32, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 25;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  background: linear-gradient(180deg, #162033 0%, #0e1625 100%);
  color: #ffffff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 30;
  transition: transform var(--transition);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.language-switcher {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.lang-button {
  border: 0;
  background: transparent;
  color: #a9b8d0;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-button.active {
  background: #ffffff;
  color: var(--text);
}

.sidebar-profile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 20px;
  text-align: center;
}

.sidebar-profile img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.16);
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-profile h1 {
  margin: 0;
  font-size: 1.25rem;
}

.sidebar-profile p {
  margin: 6px 0 0;
  color: #a9b8d0;
  font-size: 0.92rem;
}

.sidebar-glance {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
}

.sidebar-glance h3 {
  margin: 0 0 10px;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  color: #d8e5f7;
}

.sidebar-glance ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.sidebar-glance li {
  display: grid;
  gap: 2px;
}

.sidebar-glance li span {
  font-size: 0.76rem;
  color: #9eb0ca;
}

.sidebar-glance li strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: #f2f7ff;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  border: 0;
  background: transparent;
  color: #bfd0ea;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(15, 98, 254, 0.26);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-link svg,
.icon-inline svg,
.card-title svg,
.quick-link-icon svg,
.contact-icon svg,
.social-link svg,
.cert-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: transform var(--transition), background var(--transition);
}

.social-link:hover {
  background: rgba(15, 98, 254, 0.35);
  transform: translateY(-2px);
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 34px 34px 48px;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fade-up 220ms ease;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.page-header {
  margin-bottom: 28px;
}

.page-header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.page-header p,
.breadcrumb,
.body-copy,
.card-copy,
.project-card p,
.timeline-item p,
.contact-card p,
.info-list span:last-child,
.testimonial-card p,
.cert-info p {
  color: var(--text-muted);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-panel,
.card,
.project-card,
.testimonial-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  border-radius: 28px;
}

.hero-panel {
  padding: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 125, 0, 0.14), transparent 26%),
    linear-gradient(135deg, #0f62fe 0%, #2f73ff 58%, #5c40cc 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel h2 {
  margin: 0 0 10px;
  font-size: 2.6rem;
  position: relative;
  z-index: 1;
}

.hero-panel .subtitle,
.hero-panel .bio,
.hero-panel .stat-label {
  position: relative;
  z-index: 1;
}

.hero-panel .subtitle {
  font-size: 1.12rem;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-panel .bio {
  max-width: 60ch;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-aside {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-image {
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface-alt);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-meta {
  display: grid;
  gap: 12px;
}

.hero-meta-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-alt);
}

.hero-meta-item strong {
  display: block;
  margin-bottom: 6px;
}

.quick-links,
.grid-2,
.grid-3,
.info-grid,
.facts-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

.quick-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.quick-link,
.project-card {
  text-decoration: none;
  color: inherit;
}

.quick-link {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.quick-link:hover,
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quick-link-icon,
.contact-icon,
.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.quick-link-icon,
.contact-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.quick-link h3,
.card-title,
.project-card h3,
.timeline-item h3,
.exp-header h3,
.cert-info h4,
.testimonial-card h4,
.contact-card h4 {
  margin: 0;
}

.quick-link p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

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

.skills-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 20px;
  margin-top: 20px;
}

.skills-bottom-row .languages-compact {
  padding: 18px;
}

.skills-bottom-row .languages-compact .card-title {
  margin-bottom: 10px;
  font-size: 1rem;
}

.skills-bottom-row .languages-compact .lang-row {
  padding: 8px 0;
}

.skills-bottom-row .languages-compact .lang-row span {
  font-size: 0.92rem;
}

.skills-bottom-row .languages-compact .lang-dot {
  width: 9px;
  height: 9px;
}

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

.card {
  padding: 24px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.06rem;
}

.card-title svg {
  color: var(--primary);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item,
.exp-card,
.contact-card,
.cert-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-alt);
}

.timeline-item .date,
.exp-date,
.project-tech span,
.skill-percent {
  color: var(--primary-dark);
  font-weight: 600;
}

.timeline-item .company,
.exp-company {
  margin: 6px 0;
  font-weight: 600;
}

.skill-group {
  display: grid;
  gap: 14px;
}

.skill-bar-group {
  display: grid;
  gap: 8px;
}

#page-skills .skill-bar-group + .skill-bar-group {
  margin-top: 12px;
}

.skill-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.skill-bar {
  height: 9px;
  background: #d8e1f1;
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #66a3ff);
  transition: width 600ms ease;
}
.skill-plain-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.skill-plain-item {
  color: var(--text);
}
.skill-tags,
.project-tech,
.exp-tags,
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#page-home .skill-tags {
  margin-top: 20px;
}

.skill-tag,
.project-tech span,
.exp-tags span,
.tool-tags span,
.info-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.84rem;
}

.info-grid {
  grid-template-columns: 0.92fr 1.08fr;
  margin-bottom: 24px;
}

.profile-card {
  text-align: center;
}

.profile-card img {
  width: 150px;
  height: 150px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-alt);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.body-copy {
  line-height: 1.75;
  margin: 0 0 14px;
}

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

.fact-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-alt);
}

.fact-card strong {
  display: block;
  margin-bottom: 6px;
}

.exp-list,
.cert-list,
.testimonial-list,
.contact-list {
  display: grid;
  gap: 18px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.exp-description {
  margin: 0 0 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

.exp-highlights {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.65;
}

.project-card {
  overflow: hidden;
}

.project-image {
  background: var(--surface-alt);
  aspect-ratio: 16 / 10;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-body {
  padding: 22px;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.lang-row:last-child {
  border-bottom: 0;
}

.lang-level {
  display: flex;
  gap: 5px;
}

.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8d4e8;
}

.lang-dot.filled {
  background: var(--primary);
}

.cert-item,
.contact-card {
  display: flex;
  gap: 14px;
}

.cert-icon {
  background: linear-gradient(135deg, var(--accent), #ff9f40);
  color: #ffffff;
  flex-shrink: 0;
}

.testimonial-card {
  padding: 22px;
}

.testimonial-card p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

.form-group {
  display: grid;
  gap: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  color: var(--text);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(15, 98, 254, 0.18);
  border-color: var(--primary);
}

.btn-primary {
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  padding: 13px 18px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #13213a;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-left: 4px solid #24a148;
}

.toast.error {
  border-left: 4px solid #da1e28;
}

@media (max-width: 1200px) {
  .hero,
  .contact-grid,
  .info-grid,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 900px) {
  .hamburger {
    display: inline-flex;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 80px 18px 32px;
  }

  .hero,
  .grid-2,
  .grid-3,
  .skills-bottom-row,
  .info-grid,
  .contact-grid,
  .form-grid.two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-panel,
  .hero-aside,
  .card,
  .project-card-body,
  .testimonial-card {
    padding: 20px;
  }

  .hero-panel h2,
  .page-header h2 {
    font-size: 1.8rem;
  }

  .hero-stats,
  .quick-links,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .exp-header,
  .info-list li {
    flex-direction: column;
  }
}
