body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 95vh;
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    box-sizing: border-box;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    color: #ffffff;
    margin-bottom: 0.2em;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 200, 200, 0.25);
}

header p {
    font-size: 1.1em;
    color: #b0b0b0;
    margin-bottom: 40px;
}

/* Анимация появления */
.animate-on-load {
    opacity: 0;
}

.fade-in-down {
    animation: fadeInDown 1.8s ease-in-out forwards;
}

.fade-in-up {
    animation: fadeInUp 1.8s ease-in-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Часы */
.clock-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    flex-grow: 1;
    min-height: 300px; /* Увеличено для больших часов */
}

.clock {
    width: 280px; /* Часы больше */
    height: 280px; /* Часы больше */
    border-radius: 50%;
    background-color: #1a1a1a;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 180, 180, 0.15),
                inset 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Статичная темная подложка для границы часов */
.clock::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    /* Толщина базовой границы может быть чуть больше для больших часов, или такой же */
    border: 5px solid #222;
    z-index: 0;
}

/* Анимированная "змейка" по контуру часов */
.clock::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;

    padding: 1.5px; /* Толщина "змейки" */
    background: conic-gradient(from 0deg, #00b0b0 0%, #00b0b0 30%, transparent 30.1%, transparent 100%);
    /* Длина видимого сегмента линии 30% */

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    animation: spinSnake 5s linear infinite; /* Скорость вращения */
    z-index: 1;
}

@keyframes spinSnake {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.clock-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: 50% 100%;
    border-radius: 1px;
    background-color: #00b0b0;
    box-shadow: 0 0 3px #00b0b0, 0 0 5px #00b0b0;
    animation: blinkNeon 2.5s infinite ease-in-out;
}

@keyframes blinkNeon {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 3px #00b0b0, 0 0 5px #00b0b0;
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 5px #00c8c8, 0 0 8px #00c8c8, 0 0 12px #00c8c8;
    }
}

.hour-hand {
    width: 1px;
    height: 70px; /* Длина для часов 280px */
    background-color: #009090;
}

.minute-hand {
    width: 1px;
    height: 100px; /* Длина для часов 280px */
}

/* Кнопка */
.enter-button {
    display: inline-block;
    padding: 15px 35px;
    margin-top: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    color: #ffffff;
    background-color: transparent;
    border: 2px solid #00b0b0;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 1px;
}

.enter-button:hover {
    background-color: #00b0b0;
    color: #0a0a0a;
    box-shadow: 0 0 10px #00b0b0, 0 0 18px #00b0b0;
}

/* Футер */
footer {
    margin-top: auto;
    padding-top: 30px;
}

.motivation-text {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

footer nav a {
    color: #008080;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer nav a:hover {
    color: #00a0a0;
    text-shadow: 0 0 6px #00a0a0;
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    header p {
        font-size: 1em;
    }
    .clock-container {
        min-height: 240px; /* Для мобильных часов */
    }
    .clock {
        width: 220px; /* Часы больше на мобильных */
        height: 220px; /* Часы больше на мобильных */
    }
    .hour-hand {
        height: 55px; /* Длина для часов 220px */
        width: 1px;
    }
    .minute-hand {
        height: 80px; /* Длина для часов 220px */
        width: 1px;
    }

    .enter-button {
        font-size: 1em;
        padding: 12px 30px;
    }
    footer nav ul {
        flex-direction: column;
        gap: 15px;
    }
}
