:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-alt: #f1f1ee;
  --text: #1f1f1c;
  --muted: #5f5f58;
  --line: #d9d9d2;
  --accent: #2f4f6f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.65;
}

.custom-navbar {
  background: rgba(247, 247, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.navbar-brand {
  font-weight: 700;
  color: var(--text) !important;
  letter-spacing: -0.2px;
}

.nav-link {
  color: var(--muted) !important;
  font-weight: 500;
  margin-left: 12px;
}

.nav-link:hover {
  color: var(--text) !important;
}

.hero {
  padding-top: 140px;
  padding-bottom: 70px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-label {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 850px;
  margin-bottom: 22px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-contact a {
  color: var(--accent);
  text-decoration: none;
}

.hero-contact a:hover {
  text-decoration: underline;
}

.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.section p {
  color: var(--muted);
  margin-bottom: 14px;
}

.simple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.simple-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 8px;
}

.simple-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text);
}

.simple-card p {
  margin: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:first-child {
  padding-top: 0;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text);
}

.timeline-content p {
  margin-bottom: 10px;
}

.sub-experience {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.sub-experience:first-of-type {
  margin-top: 10px;
}

.sub-experience h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--text);
}

.sub-date {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-box-simple {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.contact-box-simple p {
  margin-bottom: 10px;
}

.contact-box-simple a {
  color: var(--accent);
  text-decoration: none;
}

.contact-box-simple a:hover {
  text-decoration: underline;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .simple-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-date {
    margin-bottom: 2px;
  }
}

.skills-groups {
  column-count: 2;
  column-gap: 18px;
}

.skill-group-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px 0;
  vertical-align: top;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.skill-group-title {
  font-size: 1.08rem;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--text);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-row {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.skill-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.skill-head h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.skill-level-text {
  font-size: 0.88rem;
  font-weight: 700;
}

.level-text-junior {
  color: #d97706;
}

.level-text-semi {
  color: #2563eb;
}

.level-text-senior {
  color: #15803d;
}

.skill-bar {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding-top: 4px;
}

.skill-bar-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #e7e5e4;
  overflow: hidden;
}

.skill-bar-track::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 999px;
}

.skill-bar::after {
  content: "";
  position: absolute;
  top: 0;
  transform: translate(-50%, 0);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* JUNIOR */
.skill-bar.level-junior .skill-bar-track::before {
  width: 16.666%;
  background: #f59e0b;
}

.skill-bar.level-junior::after {
  left: 16.666%;
  background: #f59e0b;
}

/* SEMI-SENIOR */
.skill-bar.level-semi .skill-bar-track::before {
  width: 50%;
  background: #3b82f6;
}

.skill-bar.level-semi::after {
  left: 50%;
  background: #3b82f6;
}

/* SENIOR */
.skill-bar.level-senior .skill-bar-track::before {
  width: 100%;
  background: #22c55e;
}

.skill-bar.level-senior::after {
  left: 100%;
  background: #22c55e;
}

.skill-bar-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.77rem;
  color: var(--muted);
  max-width: 340px;
}

.skill-bar-steps span {
  width: 33.333%;
}

.skill-bar-steps span:nth-child(1) {
  text-align: left;
}

.skill-bar-steps span:nth-child(2) {
  text-align: center;
}

.skill-bar-steps span:nth-child(3) {
  text-align: right;
}

@media (max-width: 991px) {
  .skills-groups {
    column-count: 1;
  }

  .skill-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .skill-bar,
  .skill-bar-steps {
    max-width: 100%;
  }
}

.profile-photo-container{
  display:flex;
  justify-content:center;
  margin-top:30px;
  margin-bottom:10px;
}

.profile-photo{
  width:160px;
  height:160px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid white;
  box-shadow:0 6px 18px rgba(0,0,0,0.15);
}
