:root {
  --main: #6700bb;
  --main2: #764ba2;
  --bg: #f7f8fa;
  --text: #232639;
  --accent: #faa774;
  --card: #fff;
  --shadow: 0 8px 32px rgba(102,126,234,0.07), 0 1.5px 6px rgba(102,126,234,0.08);
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--main), var(--main2) 100%);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
}

.page-wrap {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(135deg, var(--main) 70%, var(--main2));
  color: #fff;
  width: 280px;
  min-width: 220px;
  max-width: 325px;
  padding: 48px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 2px 0 18px rgba(118, 75, 162, 0.10);
  position: relative;
}

.avatar-wrap {
  margin-bottom: 16px;
}
.avatar {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(118, 75, 162, 0.15);
  border: 4px solid #fff;
}

.sidebar h1 {
  font-size: 2em;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
  text-align: center;
}

.sidebar h2 {
  font-size: 1.15em;
  font-weight: 400;
  margin: 0 0 18px 0;
  opacity: 0.88;
  text-align: center;
}
.profile-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.profile-links li a {
  color: #fff;
  background: rgba(255,255,255,0.13);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
  transition: background 0.18s;
}

.profile-links li a:hover {
  background: var(--main2);
}

.location {
  display: flex; align-items: center;
  gap: 6px;
  font-size: 0.97em;
  opacity: 0.85;
  margin-bottom: 12px;
}
.languages {
  margin-top: 18px;
  font-size: 0.96em;
  opacity: 0.95;
  text-align: center;
}
.languages span:not(:last-child) {
  margin-right: 8px;
}

/* ----- MAIN CONTENT ----- */
.content {
  background: var(--bg);
  flex: 1 1 0%;
  padding: 52px 50px 48px 50px;
  min-width: 0;
  box-shadow: var(--shadow);
  border-radius: 0 20px 20px 0;
}

h2 {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--main2);
  margin-top: 0;
  margin-bottom: 18px;
  letter-spacing: -0.01rem;
  position: relative;
}

h2:not(:first-child):before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--main), var(--main2) 80%);
  border-radius: 5px;
  margin-bottom: 10px;
}

.intro p {
  font-size: 1.09em;
  margin-bottom: 10px;
}

.intro .highlight {
  background: linear-gradient(90deg, #f6e5c5 0%, #d6e7fa 80%);
  border-left: 4px solid var(--main2);
  padding: 16px 20px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 1em;
}

/* ------ PROJECTS ------ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}
.project-card {
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 1.5px 12px rgba(102,126,234,0.10);
  padding: 20px 24px 18px;
  border-left: 5px solid var(--main);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, box-shadow 0.18s;
}
.project-card:hover {
  box-shadow: 0 8px 32px rgba(102,126,234,0.18), 0 0.5px 3px rgba(102,126,234,0.04);
  transform: translateY(-3px) scale(1.017);
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.project-card h3 {
  margin: 0;
  font-size: 1.09em;
  font-weight: 600;
}
.badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--main2) 60%, var(--main));
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.96em;
  font-weight: 500;
}
.project-links {
  margin-bottom: 10px;
}
.visit-link {
  text-decoration: none;
  color: var(--main2);
  font-weight: 500;
  font-size: 0.97em;
  background: #f6f8ff;
  border-radius: 8px;
  padding: 2px 12px;
  margin-right: 8px;
  transition: background 0.18s;
}
.visit-link:hover {
  background: var(--accent);
  color: #fff;
}
.tech-list {
  display: block;
  font-size: 0.99em;
  color: #7177aa;
  margin-top: 6px;
  font-style: italic;
}

/* ----- EXPERIENCE ----- */
.timeline {
  margin-top: 8px;
  margin-bottom: 22px;
  border-left: 3px solid var(--main2);
  padding-left: 13px;
}
.job {
  margin-bottom: 22px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1.5px 12px rgba(102,126,234,0.07);
  padding: 14px 22px 11px 18px;
  border-left: 4px solid var(--main);
  position: relative;
}
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.job-title {
  font-weight: 600;
  font-size: 1.07em;
  color: var(--main2);
}
.job-period {
  color: #886fff;
  font-size: 0.98em;
  font-weight: 500;
  background: #f7f7ff;
  padding: 2px 11px;
  border-radius: 10px;
}
.job-org {
  color: #6a6182;
  font-size: 0.97em;
  margin-bottom: 6px;
  margin-top: 2px;
}
.job ul {
  margin: 0 0 0 18px;
  padding: 0;
}
.job ul li {
  margin-bottom: 5px;
  color: #505770;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.5px 12px rgba(102,126,234,0.07);
  padding: 14px 14px;
  font-size: 1em;
}
.skills-list span {
  background: #f7f8fd;
  color: var(--main2);
  border-radius: 12px;
  padding: 2px 14px;
  font-weight: 500;
  font-size: 0.99em;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 20px;
}
.education-grid div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px rgba(102,126,234,0.07);
  padding: 19px 20px;
  font-size: 1em;
  color: #414158;
}

/* Responsive Design */
@media (max-width: 900px) {
  .page-wrap {
    flex-direction: column;
  }
  .sidebar {
    flex-direction: row;
    width: 100%;
    min-width: unset;
    max-width: unset;
    border-radius: 0 0 18px 18px;
    align-items: flex-start;
    gap: 24px;
    padding-top: 30px;
    padding-bottom: 24px;
  }
  .content {
    border-radius: 0 0 18px 18px;
    padding: 42px 14px 24px 14px;
  }
}
@media (max-width: 650px) {
  .education-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding-left: 4vw; padding-right: 4vw;
  }
}

/* Misc */
a {
  color: var(--main2);
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--main);
  outline: none;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--main) 0%, var(--main2) 100%);
  border-radius: 5px;
}

.sidebar h2 {
  color: #fff;
}