* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #16181d;
  --card-bg: #1e222b;
  --text: #e4e7eb;
  --text-muted: #9aa0a6;
  --accent: #e0533d;
  --line: #2d333f;
  --max-width: 760px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

h1,
h2,
h3 {
  color: var(--text);
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
}

nav a {
  margin-left: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

section {
  padding: 2.5rem 0;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #c94430;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background-color: #272d38;
  text-decoration: none;
}

.profile-box {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.profile-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-box li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.profile-box strong {
  color: var(--text);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tags span {
  font-size: 0.8rem;
  background-color: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.skill-box {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.contact-list strong {
  display: inline-block;
  width: 70px;
}

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}


@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav {
    display: flex;
    gap: 0.75rem;
  }

  nav a {
    margin-left: 0;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.btn-shine {
  position: relative;
  overflow: hidden;
  padding: 10px 35px;
  font-size: 16px;
  color: aliceblue;
  background-color: goldenrod;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-shine:hover::after {
  transform: translateX(100%);
}