* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    overflow: hidden;
    position: relative;
}

.container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
    color: white;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    background-image: url('assets/mendeleev.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo::before {
    content: "ЛОГО";
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo.loading::before {
    opacity: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hexagons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.hexagon {
    position: absolute;
    width: 100px;
    height: 55px;
    background: linear-gradient(45deg, #ff6b35, #4ecdc4);
    margin: 27px 0;
    opacity: 0.4;
    animation: float 15s infinite ease-in-out;
}

.hexagon:before,
.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
}

.hexagon:before {
    bottom: 100%;
    border-bottom: 27px solid #ff6b35;
}

.hexagon:after {
    top: 100%;
    border-top: 27px solid #4ecdc4;
}

.hexagon:nth-child(1) { left: 10%; animation-delay: 0s; }
.hexagon:nth-child(2) { left: 30%; top: 20%; animation-delay: 2s; }
.hexagon:nth-child(3) { left: 50%; top: 10%; animation-delay: 4s; }
.hexagon:nth-child(4) { left: 70%; top: 30%; animation-delay: 6s; }
.hexagon:nth-child(5) { left: 90%; top: 20%; animation-delay: 8s; }
.hexagon:nth-child(6) { left: 20%; top: 60%; animation-delay: 10s; }
.hexagon:nth-child(7) { left: 40%; top: 70%; animation-delay: 12s; }
.hexagon:nth-child(8) { left: 60%; top: 80%; animation-delay: 14s; }
.hexagon:nth-child(9) { left: 80%; top: 60%; animation-delay: 16s; }

.atoms {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.atom {
    position: absolute;
    width: 40px;
    height: 40px;
    animation: bounce 6s infinite ease-in-out;
}

.atom-core {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 30px;
    height: 30px;
    animation: rotate 4s infinite linear;
}

.orbit-2 {
    width: 40px;
    height: 20px;
    animation: rotateReverse 3s infinite linear;
}

.orbit-3 {
    width: 20px;
    height: 40px;
    animation: rotate 5s infinite linear;
}

.electron {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(100, 200, 255, 0.8);
}

.atom:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}
.atom:nth-child(2) {
    top: 20%;
    right: 5%;
    animation-delay: 1s;
}
.atom:nth-child(3) {
    bottom: 30%;
    left: 8%;
    animation-delay: 2s;
}
.atom:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}
.atom:nth-child(5) {
    top: 40%;
    left: 15%;
    animation-delay: 4s;
}
.atom:nth-child(6) {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes bounce {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
    25% {
        transform: translate(15px, -10px);
        opacity: 1;
    }
    50% {
        transform: translate(-10px, 8px);
        opacity: 0.8;
    }
    75% {
        transform: translate(8px, 12px);
        opacity: 1;
    }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateReverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

@media (max-width: 1024px) {
    h1 { font-size: 2rem; }
    p { font-size: 1.1rem; }
    .hexagon { transform: scale(0.8); }
    .atom { transform: scale(0.9); }
    .logo { width: 110px; height: 110px; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    p { font-size: 1rem; }
    .logo {
        width: 100px;
        height: 100px;
    }
    .hexagon { transform: scale(0.6); }
    .atom { transform: scale(0.8); }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    p { font-size: 0.9rem; }
    .logo {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    .hexagon { transform: scale(0.5); }
    .atom { transform: scale(0.6); }
    .atom-core { width: 6px; height: 6px; }
    .electron { width: 3px; height: 3px; }
}
