@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --bg-behind: #181820;
  --bg-dark: #1e1e28;
  --bg-light: #24242e;
  --bg-sidebar: #20202a;
  --accent: #f9b233;
  --text: #e0e0e0;
  --muted: #aaaaaa;
  --half-muted: #696868;
  --borders: #45474d;
  --date: #6495ED;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-behind);
  color: var(--text);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.resume-layout {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-sidebar);
}

.profile {
  flex-shrink: 0;
  text-align: center;
  background-color: var(--bg-light);
  padding: 2rem 1.5rem;
}
.profile img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
.profile h1 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}
.role {
  color: var(--muted);
  font-size: 0.9rem;
}

.infobar {
  flex: 1;                
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info {
  border-bottom: 1px solid var(--borders);
}

.info ul {
  list-style: none;
  margin: 0 0 2.2rem;
  padding: 0;
}
.info li {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.info li strong {
  font-weight: 500;
  margin-right: 0.5rem; 
}
.info li span {
  color: var(--muted); 
  text-align: right; 
  flex-shrink: 0; 
}

.languages {
  margin-top: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--borders);
}

.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.lang {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 60px;
  text-align: center;
}

.lang p {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
}

.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--percent) * 360deg), #333 0deg);
}
.circle::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--bg-light);
  border-radius: 50%;
}
.circle span {
  position: relative;
  z-index: 1;
  color: var(--accent);
}
.circle[data-percent="100"] { --percent: 1; }
.circle[data-percent="80"]  { --percent: 0.8; }

.skills {
  margin-top: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--borders);
}
.skills ul {
  list-style: none;
}
.skills li {
  margin-bottom: 0.3rem;
}
span.main {
  color: var(--accent);
}
span.additional {
  color: var(--muted);
  user-select: text;
}

.download {
  display: block;
  background: var(--accent);
  color: #000;
  text-align: center;
  padding: 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin: 1rem 0;
}
.download:hover {
  background: #ffca47;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}
.social a:hover {
  background: #333542;
  transform: translateY(-2px);
}
.social img {
  width: 36px;
  height: 36px;
  filter: grayscale(100%) brightness(0.9);
  transition: all 0.3s ease;
}
.social a:hover img {
  filter: grayscale(0%) brightness(1.1);
}

/* MAIN CONTENT */
.content {
  flex: 1;
  padding: 3rem;
  overflow-y: auto;
  background-color: var(--bg-dark);
  text-align: center;
}

.intro {
  margin-bottom: 3rem;
}

.intro h2 {
  font-size: 2rem;
  font-weight: 700;
}
.intro p code {
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 2rem;
  text-align: center;
  gap: 1rem;
}
.stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
}
.stats span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* SERVICES */
.experience {
  margin-top: 2rem;
}
.experience-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}
.exp {
  text-align: left;
  background: var(--bg-light);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  transition: background 0.3s ease;
}
.exp:hover {
  background: #333542;
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.exp h3 {
  color: var(--accent);
}
.exp-dates {
  font-size: 0.9rem;
  color: var(--date);
  font-weight: 500;
}
.company {
  color: var(--text);
}
.place {
  color: var(--half-muted);
}
.exp-description {
  margin-top: 0.2rem;
  color: var(--muted);
}

/* FOOTER */
.footer {
  text-align: center;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer a {
  color: var(--accent);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  body {
    background-color: var(--bg-dark);
  }

  .resume-layout {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .sidebar {
    width: 100%;
    background: var(--bg-sidebar);
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .profile {
    background-color: var(--bg-light);
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
  }

  .profile img {
    width: 60%;
    height: auto;
    max-height: 400px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
  }

  .profile h1 {
    font-size: 1.5rem;
  }

  .role {
    font-size: 1rem;
  }

  .infobar {
    width: 100%;
    padding: 1.5rem;
  }

  .info {
    margin-top: 1rem;
  }

  .info li {
    font-size: 1rem;
  }

  .lang-list {
    justify-content: center;
  }

  .skills li {
    font-size: 1rem;
  }

  .content {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .intro h2 {
    font-size: 1.5rem;
  }

  .intro p {
    font-size: 0.95rem;
  }

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

  .exp h3 {
    font-size: 1rem;
  }

  .exp-dates {
    font-size: 0.85rem;
  }

  .footer {
    font-size: 0.75rem;
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  .intro h2 {
    font-size: 1.3rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .infobar {
    padding: 1rem;
  }

  .content {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .exp {
    padding: 0.75rem;
  }

  .download {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}
