/* =====================
   GLOBAL RESET
   ===================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-image: url('http://sikulis.lv/img/bg.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  min-height: 100vh;

  display: flex;
  justify-content: center;   /* horizontāli */
  align-items: center;       /* vertikāli */
}

/* =====================
   NAVIGĀCIJA
   ===================== */

header {
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 15px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}

header nav {
  display: flex;
  gap: 30px;
}

header nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  color: white;
  letter-spacing: 0.5px;
  padding: 5px 0;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #ff8a00;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

header nav a:hover::after,
header nav a.active::after {
  width: 100%;
}

/* =====================
   CONTAINER
   ===================== */

.container {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);

  width: 100%;
  max-width: 600px;   /* ← ŠEIT ir galvenais samazinājums */
  margin: 60px auto;  /* centrē un iedod atstarpi no augšas */
}

.logo {
  width: 400px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.container div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* =====================
   POGAS
   ===================== */

.button,
.about-buttons a {
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(
    45deg,
    rgba(44,44,44,0.8),
    rgba(68,68,68,0.8),
    rgba(34,34,34,0.8)
  );
  background-size: 400% 400%;
  color: white;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  border: none;
}

.button:hover,
.about-buttons a:hover {
  background-position: right;
  transform: scale(1.05);
}

/* =====================
   PAR MANI
   ===================== */

.main-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-card {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 700px;
  width: 95%;
}

.about-logo {
  width: 180px;
  margin-bottom: 20px;
}

.about-buttons {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* =====================
   PROJEKTI
   ===================== */

.projects-section {
  padding: 60px 20px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.project-box {
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  overflow: hidden;
  width: 30%;
  color: white;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.project-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 138, 0, 0.9),
              0 0 30px rgba(229, 46, 113, 0.7);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
  display: block;
}

.image-wrapper:hover img {
  filter: brightness(60%);
}

/* =====================
   PAZUŠANAS KODS
   ===================== */

.notice.expired {
    background-color: rgba(255, 0, 0, 0.2); /* sarkans fons */
    color: #ffdddd;
    font-weight: bold;
}





/* =====================
   MOBILĀ VERSIJA
   ===================== */

@media (max-width: 1000px) {
  .project-box {
    width: 45%;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .project-box {
    width: 90%;
  }

  .button,
  .about-buttons a {
    font-size: 14px;
    padding: 12px;
  }
}



.info-box {
  position: fixed;
  bottom: 10px;
  right: 10px;   /* ← labā puse */
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 10px;
  font-size: 12px;
  border-radius: 5px;
  z-index: 10;
}