/* Общие настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    color: white;
    overflow-x: hidden;
    background-color: #111; /* Цвет подстраховки, если картинка не загрузится */
    position: relative; /* Важно для позиционирования слоев */
}

/* СЛОЙ 1: Размытый фон на весь экран */
.bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    
    background: url('../img/dark_hugin.jpg') no-repeat center center;
    background-size: cover; /* Растягиваем, чтобы не было дыр */
    filter: blur(25px) brightness(0.9); /* Сильное размытие и затемнение */
    transform: scale(1.1); /* Небольшое увеличение, чтобы убрать белые края от размытия */
}

/* СЛОЙ 2: Четкая картинка по центру */
.bg-sharp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    
    background: url('../img/dark_hugin.jpg') no-repeat center center;
    background-size: contain; /* ПОКАЗАТЬ ЦЕЛИКОМ */
}

/* СЛОЙ 3: Затемнение */
/* Мы делаем его чуть слабее, так как фон уже затемнен в bg-blur, 
   но это нужно, чтобы текст читался поверх самой картинки */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); 
    z-index: -1;
}

/* Хедер */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: #00eaff; /* Цвет, похожий на светящийся камень */
}

/* Навигация */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #ddd;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #00eaff;
}

.btn-login {
    border: 1px solid #00eaff;
    padding: 8px 20px;
    border-radius: 20px;
    color: #00eaff;
}

.btn-login:hover {
    background: #00eaff;
    color: #000;
}

/* Основной контент */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 20px;
    text-align: center;
}

.welcome-text {
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease-in-out;
}

.welcome-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
}

/* Сетка дашборда */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 500px; /* Добавлен отступ от нижнего края */
}

/* Карточки (Стекломорфизм) */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
    border-color: #00eaff;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Адаптив для мобильных */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 200px;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        align-items: center;
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Контейнер для кнопки, позиционируемый поверх изображения */
.button-container {
    position: fixed;
    z-index: 0; /* Выше фона, ниже контента */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Используем vmin для создания квадрата, который вписывается в экран, как и 'background-size: contain' для квадратного изображения */
    width: 100vmin; 
    height: 100vmin;
    pointer-events: none; /* Контейнер не должен мешать кликам по другим элементам */
}

/* Специальная кнопка */
.special-button {
    pointer-events: auto; /* Включаем клики для самой кнопки */
    position: absolute;
    left: 40.25%;
    top: 56.75%;
    width: 20%;
    height: 21%;
    
    /* Стилизация под "стекломорфизм", как у карточек */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/TYRR_button.jpg') no-repeat center center;
    background-size: cover;
    /* backdrop-filter: blur(500px);
    -webkit-backdrop-filter: blur(500px); */
	filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    
    /* Текст */
    color: white;
    text-decoration: none;
    font-size: 1.5vw; /* Масштабируемый шрифт */
    text-align: center;
    
    /* Центрирование текста */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Анимации */
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.special-button:hover {
    transform: scale(1.05); /* Небольшое увеличение при наведении */
    background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), url('../img/TYRR_button.jpg') no-repeat center center;
    background-size: cover;
	filter: blur(1px);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
    border-color: #00eaff;
}
