:root {
  --bg: #4f6932;
  --card: #3f5428;
  --muted: #cfd8c3;
  --accent: #a7c957;
  --glass: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg), #3a4f26);
  color: #f4f7ef;
  line-height: 1.5;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.container {
  max-width: 960px;
  margin: 32px auto;
  padding: 24px;
}

header {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  font-size: 24px;
  margin: 0;
}

p.lead,
.muted {
  margin: 6px 0;
  color: var(--muted);
}

nav {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-container {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 12px;
  background: var(--card);
  border-radius: 16px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  transition: background 0.3s ease, color 0.3s ease;
}

.chip a {
  color: inherit;
  text-decoration: none;
}

.chip:hover,
.chip:focus-visible,
.chip.active {
  background: var(--accent);
  color: #2f3e1f;
  outline: none;
}

main {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(0, 0, 0, 0.28)
  );
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.section-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.section-margin {
  margin-top: 16px;
}

.about p {
  color: var(--muted);
  margin-top: 10px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill {
  background: rgba(52, 71, 31, 0.85);
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(52, 71, 31, 0.85);
  color: var(--muted);
  text-decoration: none;
  margin: 6px 6px 0 0;
}

.labs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.lab {
  background: rgba(52, 71, 31, 0.85);
  padding: 12px;
  border-radius: 8px;
}

.lab a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.button {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #2f3e1f;
  text-decoration: none;
  font-weight: 600;
  margin-top: 6px;
  transition: background 0.2s;
}

.button:hover {
  background: #dce775;
}

footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-small {
  margin-top: 8px;
}

.glow {
  animation: glowEffect 1s ease-in-out 2;
}

@keyframes glowEffect {
  0% {
    box-shadow: 0 0 0 var(--accent);
  }
  50% {
    box-shadow: 0 0 15px var(--accent);
  }
  100% {
    box-shadow: 0 0 0 var(--accent);
  }
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 12px;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  h1 {
    font-size: 20px;
  }

  p.lead,
  .muted {
    font-size: 14px;
  }
}
