/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat Medium", sans-serif;
}

/* ROOT */
:root {
  --bg: #EFF2EA;
  --text: #222;
  --muted: #666;

  --nav-offset: -70px;
  --filter-offset: -90px;
  --grid-offset: -100px;
  --section-offset: -80px;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* GLOBAL */
a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.container-cover {
  max-width: 1320px;
  margin: auto;
  padding: 0 20px;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 15px 20px;
  font-size: 15px;
  color: var(--muted);
}

.contact-info {
  display: flex;
  gap: 20px;
}

.contact-info span::after {
  content: "|";
  margin-left: 20px;
}

.contact-info span:last-child::after {
  content: "";
}

/* COVER */
.cover {
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* PROFILE */
.profile {
  display: flex;
  align-items: center;
  position: relative;
  padding: 70px 0;
}

.avatar {
  position: absolute;
  top: -60px;
  left: 30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg);
}

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

.info {
  margin-left: 190px;
}

.info h2 {
  font-size: 25px;
  transform: translateY(-60px);
}

/* NAV */
.nav {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid #ccc;
  padding: 15px 20px;
  transform: translateY(var(--nav-offset));
}

.nav a {
  color: var(--muted);
  font-weight: bold;
}

.nav .active {
  color: #000;
  border-bottom: 2px solid #000;
}

/* FILTER */
.filter {
  margin: 30px auto;
  transform: translateY(var(--filter-offset));
}

.filter select {
  padding: 5px;
  background: var(--bg);
  border: 1px solid var(--bg);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  transform: translateY(var(--grid-offset));
}

.card {
  border: 1px solid #EFF2EA;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  background: #EFF2EA;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ABOUT */
.about-section {
  padding: 40px 20px;
  transform: translateY(var(--section-offset));
  max-width: 800px;
  margin: auto;
}

.about-section p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.about-section p:nth-child(2) {
  font-size: 20px;
  font-weight: bold;
}

/* DETAIL */
.detail-view {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  position: relative;
  padding-bottom: 130px;
}

.detail-image {
  max-width: 85vw;
  max-height: calc(85vh - 80px);
  object-fit: contain;
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

/* CLOSE */
.close-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 28px;
  z-index: 999;
}

/* ARROWS */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  cursor: pointer;
  z-index: 999;
}

.nav-left { left: 30px; }
.nav-right { right: 30px; }

/* THUMBNAIL */
.thumbnail-container {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 999;
  overflow-x: auto;
  max-width: 90vw;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: 0.3s;
}

.thumbnail.active {
  opacity: 1;
  border: 2px solid #000;
}

.thumbnail:hover {
  opacity: 1;
}