* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f1115;
  color: #f2f2f2;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -3;
  opacity: 0;
  transform: scale(1.05) translateX(0);
  transition: opacity 2s ease-in-out, transform 12s linear;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.7)),
    rgba(10, 10, 10, 0.35);
  z-index: -2;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(15, 17, 21, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: #d7d7d7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #6ab0ff;
}

.content {
  position: relative;
  z-index: 1;
  padding: 40px 20px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  color: #d0d0d0;
}

.button {
  display: inline-block;
  width: fit-content;
  margin-top: 20px;
  padding: 12px 18px;
  background: #1f6feb;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.button:hover {
  background: #388bfd;
}

.panel {
  margin-top: 30px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(18, 20, 25, 0.78);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

code {
  color: #8cc2ff;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links li {
    margin: 6px 10px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

.gallery-page {
  background: #0f1115;
  color: #f2f2f2;
  min-height: 100vh;
}

.gallery-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.gallery-item {
  display: block;
  text-decoration: none;
  color: #f2f2f2;
  background: rgba(18, 20, 25, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #111;
}

.gallery-caption {
  display: block;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}
