html {
    scroll-behavior: smooth;
}

/* Обёртка для фиксированной навигации */
.navigacijas-navigacija {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
}

/* Внутренний блок, который масштабируется */
.navigacija {
    width: 100%;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform-origin: top center;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* Включаем клики только по нужным элементам */
.navigacija .wave-nav,
.navigacija .wave-container {
    pointer-events: auto;
}

/* При скролле масштабируется .navigacija внутри обёртки */
.navigacijas-navigacija.scrolled .navigacija {
    transform: scale(0.8);
    opacity: 0.8;
}

/* Дополнительные эффекты на котов и волны */
.navigacija.scrolled .kakis {
    opacity: 1;
    transform: translateY(0);
}

.wave-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.navigacija.scrolled .wave-container svg {
    transform: scaleY(0.8);
    opacity: 0.8;
}


/* Обнуляем отступы и убираем margin */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: rgba(161, 122, 188, 1);
}

@font-face {
  font-family: 'Cerova';
  src: url('fonts/Simply Charming.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
    cursor: url('kepina_parasta2.png') 0 0, auto;
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
    margin: 0;
    font-family: 'Cerova', Arial, sans-serif;
    letter-spacing: 8px;
}

a:hover {
    cursor: url("kepina_click2.png") 0 0, auto;
  }

/* Контейнер для фона */
.background-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Высота на весь экран */
}

/* Полупрозрачное фоновое изображение */
.background-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(sea.jpg);
    background-size: cover;
    background-position: center;
    opacity: 30%; /* Настройте прозрачность */
    z-index: 1; /* Позади контента */
}

.wave-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  z-index: 1;
}

.wave-svg {
  width: 100%;
  height: auto;
  display: block;
}

.wave-container svg {
  pointer-events: none;
}

.wave-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 40px;
  /* max-width: 1200px;  ← ширина контента */
  /* margin: 0 auto;     ← центрируем внутри контейнера */
  /* padding: 0 0px;    ← немного воздуха у краёв */
  flex-wrap: wrap;
  z-index: 10;
}

.wave-nav a {
  font-size: clamp(14px, 2vw, 24px);
  text-decoration: none;
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  transition: color 0.3s ease;
}

.wave-nav a:hover {
 color: #693669;
}


.kakisi {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  z-index: 5;
  pointer-events: none;
}

.kakis-kreisais,
.kakis-labais {
  position: absolute;
  top: 0;
  width: auto;
}

.kakis-kreisais {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-83%); /* Подвинем левее */
}

.kakis-labais {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(73%);  /* Подвинем правее */
}

.kakis-kreisais img,
.kakis-labais img {
  /* max-width: 70px; */
  width: 15vw;
  height: auto;
  transform: translateY(5%); /* при необходимости опусти или подними котиков */
}



/* Контент */
.content {
    position: relative;
    z-index: 3; /* Контент поверх всего */
    text-align: center;
    color: white;
    padding-top: 50px;
}

.portfolio {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(110px, 10vw, 180px); /* адаптивный размер */
  color: white;
  font-weight: bold;
  text-align: center;
  line-height: 0.8;
  z-index: 2;
  /* overflow: hidden; */
  background: linear-gradient(90deg, #fff, #ffd6f5, #ffffff);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}


.portfolio span {
  display: block;
}


.aboutme {
    width: 100%;
    min-height: 100vh;
    background-color: #edace6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box; /* ← обязательно! */
    overflow: hidden; /* ← чтобы контент не вылезал наружу */
}


.aboutme-wrapper {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.aboutme-text {
    flex: 1;
    font-size: 25px;
    color: white;
    text-align: left;
}

.aboutme-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aboutme-image img {
    max-height: clamp(600px, 85vh, 1000px);
    /* max-width: clamp(400px, 50vw, 900px); */
    height: auto;
    object-fit: contain;
}


.es {
    position: relative; /* Если не нужно абсолютное позиционирование */
    font-size: 25px;
    
    /* Выравниваем отступы */
    margin: 0; /* Сверху и снизу авто, слева 5%, справа 20% */
    
    /* Опционально: можно добавить ширину, если нужно */
    max-width: 100%; /* Чтобы текст не растягивался на всю ширину */
}

.foto-darbi {
    width: 100%;
    min-height: 100vh; /* Высота на весь экран */
    background-color: #7688c4; /* Фон фиолетовый на всю страницу */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Выравнивание содержимого по центру */
}

/* Галерея фотографий */
.darbi {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 колонки */
    gap: 45px; /* Отступы между фото */
    padding: 50px;
    justify-content: center;
    width: 80%; /* Ограничиваем ширину */
    max-width: 1200px; /* Чтобы галерея не растягивалась слишком сильно */
}

/* Фото */
.darbi img {
    width: 100%;
    height: 500px; /* Одинаковая высота */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.darbi a:hover img {
    transform: scale(1.05);
}



.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.photo-item img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.photo-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(161, 122, 188, 0.6); /* полупрозрачный фиолетовый */
    opacity: 0;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.caption {
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.photo-item:hover .overlay {
    opacity: 1;
}

/* Для фото на 4-й странице */
.photo-item2 {
    position: relative;
    overflow: hidden;
    border-radius: 20px;  /* Пример изменения радиуса */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);  /* Тень */
    transform: scale(1.05);  /* Можешь добавить эффект увеличения */
}

/* Для картинки внутри */
.photo-item2 img {
    aspect-ratio: 1/1;  /* Это будет квадратное изображение */
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Эффект при наведении */
.photo-item2:hover img {
    transform: scale(1.05);  /* Немного увеличиваем фото */
}

/* Для overlay, который появляется при наведении */
.photo-item2 .overlay {
    background-color: rgba(161, 122, 188, 0.6);  /* Полупрозрачный фиолетовый */
    opacity: 0;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

/* Подписи на фото */
.photo-item2 .caption {
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Появление overlay при наведении */
.photo-item2:hover .overlay {
    opacity: 1;
}

.kustinat {
    object-position: 100% 10%;  /* Сдвигаем изображение вправо и вверх */
}

.kustinat2 {
    object-position: 0% 10%;  /* Сдвигаем изображение вправо и вверх */
}

.cits {
    width: 100%;
    min-height: 100vh; /* Высота на весь экран */
    background-color: #cb97d7; /* Фон фиолетовый на всю страницу */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Выравнивание содержимого по центру */
}

.cits2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 колонки */
    gap: 45px; /* Отступы между фото */
    padding: 50px;
    justify-content: center;
    width: 80%; /* Ограничиваем ширину */
    max-width: 1200px; /* Чтобы галерея не растягивалась слишком сильно */
}

.exams {
    width: 100%;
    min-height: 100vh; /* Высота на весь экран */
    background-color: #5e4c7c; /* Фон фиолетовый на всю страницу */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Выравнивание содержимого по центру */
}

  .aboutme-text-wrapper {
    justify-content: center;
    padding: 0;
  }

  .aboutme-text {
    padding: 0 20px;
    font-size: 18px;
    letter-spacing: 2px;
  }

  .aboutme-image img {
    max-width: 90%;
    margin-top: 0;
  }

  /* Бургер по умолчанию скрыт */
.menu {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 11;
  cursor: pointer;
}

/* Навигация — скрыта на маленьких экранах */
@media (max-width: 768px) {
  .menu {
    display: block;
  }

  .wave-nav {
    display: none;
    position: absolute;
    top: 100px; /* Под волной */
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #B898CF;
    padding: 20px 0;
    gap: 20px;
  }

  .wave-nav.active {
    display: flex;
  }
}


  