body {
  margin: 0;
  font-family: Arial;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* ================= HEADER ================= */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 90px;

  display: flex;
  z-index: 1000;
}

.left-bar {
  background-color: rgb(199, 154, 4);
  color: black;

  width: 300px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  text-align: center;
  line-height: 1.1;

  font-size: 28px;
  font-weight: 700;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 1px;
}

.right-bar {
  background-color: rgb(36, 36, 44);
  flex: 1;

  display: flex;
  justify-content: flex-end;

  padding: 10px 20px;
}

.menu {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 10px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.menu a:hover {
  color: rgba(228, 175, 3, 0.918);
}

/* ================= VIDEO ================= */

.video-container {
  margin-top: 90px;
  position: relative;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* текст поверх видео */
.video-text {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.7);
}

.video-text .line {
  font-size: 44px;
  font-weight: bold;
  line-height: 1.2;
}

.video-text .arrow {
  margin-top: 20px;
  font-size: 50px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* ================= SERVICES ================= */

.services-section {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 80px;
}

.services-title {
  font-size: 60px;
  font-weight: bold;
  letter-spacing: 3px;
  color: rgb(36, 36, 44);
}

.services-line {
  width: 120px;
  height: 6px;
  background-color: rgba(228, 175, 3, 0.918);
  margin: 15px auto 0 auto;
  border-radius: 3px;
}

.services-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

#pakalpojumi {
  scroll-margin-top: 200px;
}

.card {
  text-align: center;
  width: 300px;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.card p {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 500;
  color: rgb(36, 36, 44);
}
#par-mums {
  scroll-margin-top: 100px;
}

#projekti {
  scroll-margin-top: 100px;
}
/* ================= ABOUT ================= */

.about-section {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* выравниваем всё вправо */

  gap: 60px;
  padding-right: 100px; /* немного отступа справа */
  padding-left: 0;      /* убираем отступ слева */
  max-width: 1400px;
  margin: 100px 0 100px auto; /* прижимаем блок к правой стороне страницы */
}

.about-left {
  flex: 1;
  max-width: 500px;
}

.about-left h2 {
  font-size: 40px;
  margin: 0;
  color: rgb(36, 36, 44);
}

.about-line {
  width: 100px;
  height: 5px;
  background-color: rgba(228, 175, 3, 0.918);
  margin: 10px 0 20px 0;
}

.about-left p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  max-width: 400px;
}

.about-right {
  flex: 1;
  max-width: 1400px;
  height: 500px;
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 100%;
  background-image: url('about.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ================= TABLET ================= */

@media (max-width: 1200px) {

  .about-section {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 60px 20px;
    gap: 30px;
    padding: 0 20px;
  }

  .about-left {
    text-align: center;
  }

  .about-line {
    margin: 10px auto 20px auto;
  }

  .about-right {
    width: 100%;
    height: 300px;
    margin-left: 0;
  }

  .about-image {
    background-attachment: scroll;
  }
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .about-right {
    display: none;
  }

  .about-section {
    justify-content: center;
    text-align: center;
    margin: 40px 10px;
  }
}
.projects-section {
  text-align: center;
  margin: 100px 80px;
}

/* заголовок */
.projects-title h2 {
  font-size: 60px;
  font-weight: bold;
  color: rgb(36, 36, 44);
  margin: 0;
}

/* жёлтая линия */
.projects-line {
  width: 120px;
  height: 6px;
  background-color: rgba(228, 175, 3, 0.918);
  margin: 15px auto 40px auto;
  border-radius: 3px;
}

/* сетка 2x2 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* карточка */
.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;

  border-radius: 10px;
  transition: 0.3s;
}

/* hover эффект */
.project-card img:hover {
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-title h2 {
    font-size: 40px;
  }
}

/* ===== hover увеличение ===== */
.project-card img {
  width: 100%;
  height: 600px;
  object-fit: cover;

  border-radius: 10px;
  transition: 0.3s ease;
  cursor: pointer;
}

.project-card img:hover {
  transform: scale(1.05);
}

/* ===== затемнение фона ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* ===== изображение ===== */
.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

/* ===== стрелки ===== */
.lightbox .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.lightbox .prev {
  left: 40px;
}

.lightbox .next {
  right: 40px;
}

/* закрытие */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;

  font-size: 40px;
  color: white;
  cursor: pointer;
}


#kontakti {
  scroll-margin-top: 200px;
}

/* ================= CONTACTS ================= */

.contacts-section {
  margin: 100px 0;
}

/* 🔥 заголовок по центру */
.contacts-title {
  text-align: center;
  margin-bottom: 40px;
}

.contacts-title h2 {
  font-size: 60px;
  font-weight: bold;
  margin: 0;
}

.contacts-line {
  width: 120px;
  height: 6px;
  background-color: rgba(228, 175, 3, 0.918);
  margin: 15px auto 0 auto;
  border-radius: 3px;
}

/* 🔥 2 колонки: форма слева, инфо справа */
.contacts-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;

  gap: 80px;
}

/* левая часть */
.contacts-left {
  flex: 1;
}

/* правая часть */
.contacts-right {
  flex: 1;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* форма */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form textarea {
  height: 140px;
  resize: none;
}

.contact-form button {
  background-color: rgba(228, 175, 3, 0.918);
  color: black;
  border: none;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
}

/* адаптив */
@media (max-width: 768px) {
  .contacts-content {
    flex-direction: column;
    padding: 0 20px;
    gap: 30px;
  }

  .contacts-title h2 {
    font-size: 40px;
  }
}


body {
  padding-bottom: 100px;
}