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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #333;
  color: #fff;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

nav ul li a:hover {
  color: #c79c5e;
}

.hero {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}

.hero h1 {
  font-size: 3em;
}

.hero p {
  font-size: 1.2em;
  margin-top: 10px;
}

.content {
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  margin: 20px auto;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.content p {
  font-size: 1.2em;
  color: #555;
}

.content li {
  margin-left: 40px;
}

.content-inner {
  display: grid;
  grid-template-columns: 500px 300px;
  gap: 10px;
  align-items: center;
}

.btn {
  background: #333;
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 5px;
}

.btn:hover {
  background: #c79c5e;
}

.tiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.tile {
  background: #111;
  color: #eee;
  padding: 12px 15px;
  border-radius: 6px;
  cursor: pointer;
  border-left: 3px solid #444;
  font-family: monospace;
  transition: all 0.25s ease;
}

.tile:hover {
  background: #1a1a1a;
  border-left: 3px solid #c79c5e;
}

.tile.active {
  background: #181818;
  border-left: 3px solid #c79c5e;
}

.tile p {
  margin-top: 8px;
  font-size: 0.85em;
  color: #aaa;
}

.languages {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.languages img {
  width: 100px;
  height: 100px;
  padding: 10px;
  transition: transform 0.2s ease;
}

.languages img:hover {
  transform: scale(1.1);
}

.lang-chips {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chip {
  background: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  font-size: 0.9em;
}

.chip small {
  color: #c79c5e;
}

.projects-container {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  margin-top: 20px;
}

/* base card */
.project-card {
  width: 180px;
  height: 110px;
  background: #fafafa;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;

  /* stacking */
  margin-left: -40px;

  /* 3D look */
  transform: rotateY(-25deg) scale(0.95);
  transform-origin: center;
  transition: all 0.35s ease;

  z-index: 1;
}

.project-card:first-child {
  margin-left: 0;
}

.project-content {
  padding: 12px;
}

.project-content h4 {
  font-size: 0.95em;
}

.project-desc {
  opacity: 0;
  font-size: 0.8em;
  margin-top: 5px;
  transition: opacity 0.2s ease;
}

.project-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #c79c5e;
  transition: width 0.3s ease;
}

.project-card:hover {
  transform: rotateY(0deg) scale(1.35);
  height: 190px;
  z-index: 20;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.projects-container:hover .project-card:not(:hover) {
  transform: rotateY(-30deg) scale(0.85);
  opacity: 0.5;
}

.project-card:hover .project-desc {
  opacity: 1;
}

.project-card:hover .project-line {
  width: 100%;
}
