html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at center, #242a19 0%, #0e100a 100%);
  background-color: #0e100a;
  color: #e8e8df;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  padding-top: 56px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(14, 16, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(163, 168, 81, 0.3);
  z-index: 100;
  box-sizing: border-box;
  animation: topbarSlideIn 0.5s ease;
}

@keyframes topbarSlideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.topbar-title {
  color: #a3a851;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.25rem;
  white-space: nowrap;
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
}

.topbar-links a {
  position: relative;
  color: #e8e8df;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 0.3rem 0;
  transition: color 0.25s ease, transform 0.15s ease;
}

.topbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #a3a851;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.topbar-links a:hover {
  color: #a3a851;
}

.topbar-links a:hover::after {
  transform: scaleX(1);
}

.topbar-links a:active {
  transform: scale(0.94);
}

section {
  scroll-margin-top: 70px;
}

.photo-frame {
  padding: 20px;
  position: relative;
}

.big-photo {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
  border: 4px solid #a3a851;
  box-sizing: border-box;
  border-radius: 4px;
}

.photo-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 1.5rem 1.5rem 1.2rem;
  background: linear-gradient(to top, rgba(14, 16, 10, 0.9) 0%, rgba(14, 16, 10, 0.55) 60%, rgba(14, 16, 10, 0) 100%);
  border-radius: 0 0 4px 4px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

h1 {
  color: #a3a851;
  font-size: 2rem;
  margin: 0.5rem 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  color: #a3a851;
  margin-top: 0;
}

.photo-overlay h1,
.photo-overlay .role {
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.photo-overlay h1 {
  margin-bottom: 0.3rem;
}

.role {
  color: #a3a851;
  margin: 0 0 0.5rem;
}

section {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(163, 168, 81, 0.3);
}

.hobby {
  border: 1px solid rgba(163, 168, 81, 0.3);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.hobby:hover {
  border-color: rgba(163, 168, 81, 0.7);
}

.hobby:active {
  transform: scale(0.99);
}

.hobby-title {
  font-weight: 600;
  margin: 0;
  color: #e8e8df;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hobby-arrow {
  display: inline-block;
  color: #a3a851;
  transition: transform 0.3s ease;
}

.hobby.open .hobby-arrow {
  transform: rotate(90deg);
}

.hobby-text-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.hobby.open .hobby-text-wrap {
  max-height: 200px;
  opacity: 1;
}

.hobby-text {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: #b7b7ac;
}

.project {
  margin-bottom: 3rem;
}

.project img {
  width: 100%;
  max-width: 300px;
  display: block;
  border: 2px solid #a3a851;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.project h3 {
  margin: 0.3rem 0;
  color: #a3a851;
}

.tag {
  font-size: 0.8rem;
  color: #a3a851;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
}

label {
  font-size: 0.85rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  color: #b7b7ac;
}

input, textarea {
  padding: 0.5rem;
  border: 1px solid #a3a851;
  background: rgba(255, 255, 255, 0.05);
  color: #e8e8df;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

button {
  margin-top: 1rem;
  padding: 0.7rem;
  background: #a3a851;
  color: #0e100a;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

#formMsg {
  color: #a3a851;
  font-size: 0.9rem;
}

footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #7a7a70;
}

#imageBox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  text-align: center;
}

#imageBox img {
  max-width: 90%;
  max-height: 90%;
  margin-top: 5vh;
}
