:root {
  --primary: #6e44ff;
  --accent: #ff6e6c;
  --bg: #f9f9fb;
  --card: #fff;
  --text: #22223b;
  --header: #232946;
  --tile-shadow: 0 2px 12px rgba(110,68,255,0.08);
  --radius: 1.2em;
  --transition: 0.2s cubic-bezier(.68,-0.55,.27,1.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.navbar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 18px rgba(110,68,255,0.09);
  position: sticky; top: 0; z-index: 100;
}
.navbar-container {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; padding: 0.7em 1em;
}
.navbar-brand {
  font-weight: bold;
  font-size: 1.2em;
  letter-spacing: 1.5px;
  padding-right: 2em;
}
.navbar nav { display: flex; gap: 1.2em; }
.navbar nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.35em 1em;
  border-radius: 30px;
  transition: background .18s;
}
.navbar nav a:hover, .navbar nav a.active { background: rgba(0,0,0,0.09); }

.hero-section {
  background: linear-gradient(120deg, #fff, #f5eafe 85%);
  padding: 3.5em 0 2em 0;
  text-align: center;
  box-shadow: 0 3px 32px 0 rgba(110,68,255,0.07);
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.avatar {
  width: 96px; height: 96px;
  border-radius: 50%; border: 5px solid #fff;
  box-shadow: 0 0 0 4px var(--primary), 0 2px 12px #ff6e6c22;
  margin-bottom: 1.1em;
  object-fit: cover;
  transition: box-shadow .25s;
}
.hero-content h1 {
  font-size: 2.1em; font-weight: 700; margin: 0.1em 0 0.1em 0;
  color: var(--primary);
  letter-spacing: 1.5px;
}
.hero-content h1 span { color: var(--accent);}
.hero-content p {
  font-size: 1.1em;
  color: #333;
  margin: 0.15em 0 0.3em 0;
}

/* SECTION */
.section {
  margin: 2.5em auto 1.7em auto;
  max-width: 950px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--tile-shadow);
  padding: 2.2em 1.1em 2em 1.1em;
}

.section-alt {
  background: #f4f0fd;
}

/* SKILLS FLEX */
.skills-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  justify-content: center;
  align-items: center;
  margin-top: 1.2em;
}
.skill-tile {
  background: #f3f3fa;
  border-radius: 0.7em;
  box-shadow: 0 1px 8px #b197fc11;
  padding: 1.1em 0.55em 0.75em 0.55em;
  min-width: 80px;
  max-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .17s, box-shadow .17s, background .17s;
  cursor: pointer;
}
.skill-tile img {
  width: 38px; height: 38px; object-fit: contain; margin-bottom: 0.4em;
  filter: drop-shadow(0 1px 3px #6e44ff11);
  transition: transform .21s;
}
.skill-tile span {
  margin-top: 0.2em;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.99em;
  letter-spacing: 0.7px;
}
.skill-tile:hover {
  background: linear-gradient(120deg, #fff 60%, #f4e7ff 100%);
  transform: translateY(-8px) scale(1.07);
  box-shadow: 0 6px 18px #6e44ff26;
}
.skill-tile:hover img {
  transform: scale(1.17) rotate(-9deg);
}

/* PROJECTS MASONRY */
.projects-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 1.3em;
  margin-top: 1.7em;
}
.project-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 1em;
  box-shadow: 0 1px 8px #6e44ff11;
  padding: 1.2em 0.5em 1em 0.5em;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
  cursor: pointer;
  border: 2px solid transparent;
}
.project-mini img {
  width: 52px; height: 52px;
  margin-bottom: 0.7em;
  object-fit: cover;
  border-radius: 0.7em;
  box-shadow: 0 1px 7px #6e44ff22;
  background: #f4f0fd;
  transition: transform .20s;
}
.project-mini span {
  font-size: 1em;
  font-weight: 600;
  color: var(--primary);
}
.project-mini:hover, .project-mini:focus {
  background: #f4e7ff;
  transform: translateY(-7px) scale(1.045);
  box-shadow: 0 6px 24px #6e44ff22;
  border-color: var(--primary);
}
.project-mini:hover img, .project-mini:focus img {
  transform: scale(1.14) rotate(-8deg);
}

h2 {
  color: var(--primary);
  margin-bottom: 0.7em;
  font-size: 1.4em;
  text-align: center;
  letter-spacing: 2px;
}

/* CONTACT LIST */
.contact-list {
  display: flex;
  gap: 1.3em;
  justify-content: center;
  margin-top: 1.3em;
  flex-wrap: wrap;
}
.contact-list a {
  display: flex; align-items: center; gap: 0.55em;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5em 1.2em;
  border-radius: 2em;
  transition: background .2s, transform .2s;
  font-size: 1em;
  box-shadow: 0 2px 6px #6e44ff29;
}
.contact-list a img {
  width: 23px; height: 23px; object-fit: contain;
}
.contact-list a:hover {
  background: var(--accent);
  transform: scale(1.08);
}

footer {
  width: 100%;
  background: #232946;
  color: #fff;
  text-align: center;
  padding: 1.2em 0 1.05em 0;
  font-size: 1.05em;
  letter-spacing: 1.2px;
  margin-top: 30px;
  border-radius: 0 0 1.1em 1.1em;
}

footer .github-link {
  color: #b5b9ff;
  text-decoration: underline;
  font-weight: 500;
  margin-left: 0.7em;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .navbar-container { flex-direction: column; align-items: flex-start; gap: 0.7em;}
}
@media (max-width: 700px) {
  .hero-section { padding: 2.2em 0 1.2em 0; }
  .section { padding: 1.2em 0.5em 1.3em 0.5em; }
  .projects-masonry { gap: 0.55em; }
}
@media (max-width: 520px) {
  .avatar { width: 70px; height: 70px; }
  .hero-content h1 { font-size: 1.17em; }
  .section { margin: 1.1em 0.1em 1.1em 0.1em; }
  .skills-flex { gap: 0.6em;}
  .project-mini { padding: 1em 0.3em 0.9em 0.3em;}
  .project-mini img { width: 36px; height: 36px;}
}
