:root {
  --accent1: #fc49c3;
  --accent2: #a407ff;
}
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #f4f6f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}
nav {
  background-size: 100% 100%;
  width: 100%;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}
nav a {
  font-weight: 700;
  text-decoration: none;
  color: #222;
  padding: 6px 10px;
  border-radius: 10px;
  animation: go 2s linear infinite;
}
@keyframes go {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.07) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
nav a.active {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff;
}
.top {
  width: auto;
  height: auto;
  padding: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.top img {
  width: 100%;
  height: 230px;
}
h1 {
  margin: 14px 0;
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  color: transparent;
  font-size: 28px;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  width: 60%;
  max-width: 1200px;
  justify-content: center;
  margin: auto;
}
.card {
  margin: 5px;
  width: 200px;
  height: 200px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(12, 20, 40, 0.06);
  transition: transform 0.18s;
}
@media (max-width: 520px) {
  .gallery {
    padding: 0;
    width: 90%;
  }
  .card {
    width: 100%;
    height: 200px;
  }
}
.card:hover {
  transform: translateY(-6px);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.like {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
}
.like span.count {
  font-size: 13px;
  color: #222;
}
#loadMore {
  padding: 12px 26px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff;
  font-weight: 700;
  margin: 24px;
  cursor: pointer;
}
footer {
  margin: 30px 0 60px;
  color: #666;
  font-size: 13px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.closeBtn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.modal-like {
  position: absolute;
  bottom: 60px;
  right: 50px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}
.ads {
  display: flex;
  width: 90%;
  height: 200px;
  margin: auto;
  border-radius: 14px;
}

.ads:hover {
  transform: scale(1.05);
}
