/* == Bāzes iestatījumi == */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #000;
  color: #fff;
  transition: background-color 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* == Navigācijas josla == */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar a {
  font-size: 1.1rem;
  margin-right: 1rem;
  transition: opacity 0.3s ease;
}

.navbar a:hover {
  opacity: 0.7;
}

.navbar button {
  background: #ffd966;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.navbar button:hover {
  transform: scale(1.05);
  background: #f7c800;
}

/* == Header == */
.header-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.background-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(1.2);
}

.header-text {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  padding: 1rem;
}

.header-text h1 {
  font-size: 3.5rem;
}

.header-text p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* == Galerija == */
.content {
  padding: 4rem 2rem;
  text-align: center;
}

.content h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #ffd966;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.gallery img {
  width: 220px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* == Footer == */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background-color: #111;
  color: #aaa;
  margin-top: 4rem;
}

/* == Tumšais režīms == */
body.dark-mode {
  background-color: #fff;
  color: #111;
}

body.dark-mode .navbar {
  background-color: #ddd;
}

body.dark-mode .navbar button {
  background: #333;
  color: #fff;
}

body.dark-mode .content h2 {
  color: #333;
}

body.dark-mode .footer {
  background-color: #eee;
  color: #666;
}

body.dark-mode .gallery img {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* == Responsivitāte == */
@media (max-width: 768px) {
  .header-text h1 {
    font-size: 2.2rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  .gallery img {
    width: 90%;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    margin: 0.5rem 0;
  }
}
