* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

.container {
    display: flex;
    
}

.info-block {
    background-color: #f0f0f0; /* Pelēks fons */
    background-image: linear-gradient(transparent 1px, rgba(0,0,0,0.1) 1px),
                      linear-gradient(90deg, transparent 1px, rgba(0,0,0,0.1) 1px); /* Lielo rūtiņu paterns */
    background-size: 40px 40px; /* Lielo rūtiņu izmērs */
    position: relative;
    padding: 20px;
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Abstraktais fona elements */
.abstract-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 50px rgba(0,0,0,0.1);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.info-block h1, .info-block p {
    position: relative;
    z-index: 1;
}

/* Общие настройки для интерактивного блока */
.interactive-block {
    background-color: #ffffff;
    padding: 60px;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    margin-top: 0px; /* Убираем лишние отступы сверху */
}

/* Стиль заголовка "Mani darbi" */
.work-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 180px; /* Добавляем расстояние между заголовком и работами */
}

.work-header h2 {
    font-size: 58px; /* Увеличиваем размер текста заголовка */
    font-weight: bold;
    margin-top: 40px; /* Двигаем заголовок вверх */
}

.work-map {
    display: flex;
    justify-content: center; /* Centrēšana horizontāli */
    align-items: center;
    gap: 35px;
    margin-top: 20px;
}

.folder {
    position: relative;
    width: 300px;
    height: auto;
    cursor: pointer;
}

.folder img {
    width: 100%;
    height: auto;
}

/* Vidžeta animācija */
.widget {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(20px);
    pointer-events: none;
}

.widget img {
    max-width: 100px;
    margin-bottom: 10px;
}

.widget a {
    text-decoration: none;
    color: blue;
    font-weight: bold;
}

/* Vidžets iznirst, kad lietotājs novieto kursoru */
.folder:hover .widget {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Kontaktinformācijas izkārtojums apakšā, pa kreisi */
.contacts {
    position: absolute;
    bottom: 30px;
    left: 30px;
    text-align: left; /* Izlīdzināts pa kreisi */
}

/* Stili priekš "Back" pogas apakšā, pa labi */
.back-button {
    position: absolute;
    bottom: 30px;
    right: 30px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #555;
}
/* Заголовок Mani Darbi */

.description-popup {
    opacity: 1;
    visibility: hidden;
    position: absolute;
    background-color: white;
    padding: 10px;
    border: 1px solid #ccc;
    transition: opacity 3s ease, visibility 3s ease;
}

.description-text:hover + .description-popup {
    opacity: 1;
    visibility: visible;
}
/* Создание анимации для увеличения и появления заголовка */
@keyframes scaleUp {
    0% {
        transform: scale(0.8); /* Уменьшенный размер */
        opacity: 0; /* Невидимость */
    }
    100% {
        transform: scale(1); /* Обычный размер */
        opacity: 1; /* Полная видимость */
    }
}

/* Применение анимации к заголовку */
.info-block h1 {
    opacity: 0; /* Начальная невидимость, чтобы избежать проблем */
    animation: scaleUp 3s ease-in-out forwards;
}








