.cover-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #010816;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.animation-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring {
    position: absolute;
    width: 600px;
    height: 600px;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top: 4px solid #00a6ff;
    animation: ringRotate 2s linear infinite, ringScale 1s ease-out;
    box-shadow: 0 0 30px rgba(0, 166, 255, 0.3);
}

.ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-bottom: 4px solid #00a6ff;
    border-radius: 50%;
    animation: ringRotate 3s linear infinite reverse;
}

.rismic-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.rismic-word {
    display: flex;
    gap: 10px;
}

.tech-word {
    display: flex;
    gap: 5px;
}

.rismic-word span {
    color: #fff;
    font-size: 72px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(50px);
    text-shadow: 0 0 20px rgba(0, 166, 255, 0.7);
    animation: letterAnimationIn 0.5s ease-in-out forwards,
               letterAnimationOut 0.5s ease-in-out forwards;
    animation-delay: var(--delay-in), var(--delay-out);
    font-family: 'Arial', sans-serif;
    letter-spacing: 2px;
    display: inline-block;
}

.tech-word span {
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(50px);
    text-shadow: 0 0 20px rgba(0, 166, 255, 0.7);
    animation: letterAnimationIn 0.5s ease-in-out forwards,
               letterAnimationOut 0.5s ease-in-out forwards;
    animation-delay: var(--delay-in), var(--delay-out);
    font-family: 'Arial', sans-serif;
    letter-spacing: 2px;
    display: inline-block;
}

/* RISMIC Animation Delays */
.rismic-word span:nth-child(1) { --delay-in: 0.2s; --delay-out: 2s; }
.rismic-word span:nth-child(2) { --delay-in: 0.2s; --delay-out: 2s; }
.rismic-word span:nth-child(3) { --delay-in: 0.2s; --delay-out: 2s; }
.rismic-word span:nth-child(4) { --delay-in: 0.2s; --delay-out: 2s; }
.rismic-word span:nth-child(5) { --delay-in: 0.2s; --delay-out: 2s; }
.rismic-word span:nth-child(6) { --delay-in: 0.2s; --delay-out: 2s; }

/* TECHNOLOGY Animation Delays */
.tech-word span:nth-child(1) { --delay-in: 0.2s; --delay-out: 2s; }
.tech-word span:nth-child(2) { --delay-in: 0.2s; --delay-out: 2s; }
.tech-word span:nth-child(3) { --delay-in: 0.2s; --delay-out: 2s; }
.tech-word span:nth-child(4) { --delay-in: 0.2s; --delay-out: 2s; }
.tech-word span:nth-child(5) { --delay-in: 0.2s; --delay-out: 2s; }
.tech-word span:nth-child(6) { --delay-in: 0.2s; --delay-out: 2s; }
.tech-word span:nth-child(7) { --delay-in: 0.2s; --delay-out: 2s; }
.tech-word span:nth-child(8) { --delay-in: 0.2s; --delay-out: 2s; }
.tech-word span:nth-child(9) { --delay-in: 0.2s; --delay-out: 2s; }
.tech-word span:nth-child(10) { --delay-in: 0.2s; --delay-out: 2s; }

@keyframes letterAnimationIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.5) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes letterAnimationOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.5) rotate(-10deg);
    }
}

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

@keyframes ringScale {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .ring {
        width: 500px;
        height: 500px;
    }

    .rismic-word span {
        font-size: 60px;
    }

    .tech-word span {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .ring {
        width: 400px;
        height: 400px;
    }

    .rismic-word span {
        font-size: 50px;
        letter-spacing: 1px;
    }

    .tech-word span {
        font-size: 34px;
        letter-spacing: 1px;
    }

    .rismic-animation {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .ring {
        width: 300px;
        height: 300px;
        border-width: 3px;
    }

    .ring::before {
        border-width: 3px;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
    }

    .rismic-word span {
        font-size: 40px;
        gap: 8px;
    }

    .tech-word span {
        font-size: 28px;
        gap: 4px;
    }

    .rismic-animation {
        gap: 12px;
    }

    .rismic-word {
        gap: 8px;
    }

    .tech-word {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .ring {
        width: 250px;
        height: 250px;
        border-width: 2px;
    }

    .ring::before {
        border-width: 2px;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
    }

    .rismic-word span {
        font-size: 32px;
        gap: 6px;
    }

    .tech-word span {
        font-size: 22px;
        gap: 3px;
    }

    .rismic-animation {
        gap: 10px;
    }

    .rismic-word {
        gap: 6px;
    }

    .tech-word {
        gap: 3px;
    }
}

@media (max-width: 360px) {
    .ring {
        width: 200px;
        height: 200px;
    }

    .rismic-word span {
        font-size: 28px;
        gap: 4px;
    }

    .tech-word span {
        font-size: 18px;
        gap: 2px;
    }

    .rismic-animation {
        gap: 8px;
    }
}

/* Portrait and Landscape Orientations */
@media (orientation: landscape) and (max-height: 600px) {
    .ring {
        width: 200px;
        height: 200px;
    }

    .rismic-word span {
        font-size: 32px;
    }

    .tech-word span {
        font-size: 24px;
    }

    .rismic-animation {
        gap: 10px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ring {
        border-width: 3px;
    }

    .ring::before {
        border-width: 3px;
    }
}

/* Reduce Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .ring {
        animation: ringScale 1s ease-out;
    }

    .ring::before {
        animation: none;
    }

    .rismic-word span,
    .tech-word span {
        animation: letterAnimationIn 0.8s ease-in-out forwards;
    }

    @keyframes letterAnimationIn {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
