body {
  margin: 0;
  background-color: #8c79f9;
  color: white;
  font-family: Arial, sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: #5841D8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffffff;
}

nav {
  display: flex;
  gap: 16px;
}

nav a {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Masonry Gallery with wrap */
.gallery {
  column-count: 4;
  column-gap: 14px;
  padding: 16px;
}

.img-wrap {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
}

.img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.img-wrap:hover img {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.img-wrap:active img {
  transform: scale(0.98);
  filter: brightness(1.1);
}

/* Responsive Masonry Columns */
@media (max-width: 1200px) {
  .gallery {
    column-count: 3;
  }
}
@media (max-width: 768px) {
  .gallery {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .gallery {
    column-count: 2;
  }
}

/* Hero Row Section */
.hero-image-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 20px;
  max-width: 400px;
  margin: 20px auto 24px;
  background: linear-gradient(135deg, #9c89f9, #6f65e1);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-img {
  max-width: 400px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.hero-text {
  flex: 1;
  color: white;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-image-row {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}
