﻿/* Typewriter animation fixed styles */

/* Typewriter Loading Animation - Fixed Version */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #121921, #2d3c50);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.typewriter-loader {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.paper {
    position: relative;
    width: 90%;
    min-height: 300px;
    background: #f5f5f5;
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateX(5deg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.typewriter-content {
    font-family: 'Playfair Display', serif;
    margin: 0 auto;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    position: relative;
}

.typewriter-line {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    white-space: normal;
    letter-spacing: 0.15em;
    margin: 0 0 5px;
}

.typewriter-line:last-child {
    margin-bottom: 0;
}

.cursor {
    position: absolute;
    top: 50%;
    right: -10px;
    width: 3px;
    height: 60px;
    margin-top: -30px;
    background-color: #333;
    animation: blink 0.75s step-end infinite;
}

.ink-splash {
    position: absolute;
    background: radial-gradient(circle at center, rgba(93,126,168,0.8) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(3px);
    opacity: 0;
    animation: splash 6s infinite ease-out;
}

.splash-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 15%;
    animation-delay: 1s;
}

.splash-2 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 20%;
    animation-delay: 2.5s;
}

.splash-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 5%;
    animation-delay: 0.5s;
}

.splash-4 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    left: 30%;
    animation-delay: 3.5s;
}

.progress-bar {
    position: absolute;
    bottom: 50px;
    width: 70%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 40px;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e6a423, #5d7ea8);
    animation: progress 4s ease-in-out infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes splash {
    0% { transform: scale(0); opacity: 0; }
    10% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes progress {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}
