/* Smooth gradient background */
body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #ff477e, #4d5bff);
    background-size: 300% 300%;
    animation: gradientMove 8s infinite;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}
/* Footer styling */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1rem;
}
/* Gradient animation */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Centralized container */
.container {
    text-align: center;
    margin: 2rem;
    overflow: hidden;
}

/* Terminal effect */
.terminal {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 15px #f0f, 0 0 30px #f0f;
    overflow: hidden;
    white-space: nowrap;
    margin: auto;
    position: relative;
    overflow: visible;

}

.terminal:hover .glitch span {
    animation: glitchLetter .75s infinite;
}
/* Glitch container */
.glitch {
    display: inline-block;
    position: relative;
    height: 1em; /* Height to fit the tallest letter */
    text-align: center; /* Center letters horizontally */
    width:100%;
    overflow: visible;
}
/* Apply the effect to each letter */
.glitch span {
    position: absolute;
    display: inline-block;
    animation: glitchLetter 2s infinite, randomCase 1.5s infinite alternate, randomFont 1s infinite alternate;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    transition: transform 0.1s ease, font-family 0.1s ease;
}
/* Random glitch animation for letters */
@keyframes glitchLetter {
    0% { transform: translate(0, 0); opacity: 1; }
    10% { transform: translate(-2px, -3px) skewX(-5deg); opacity: 0.8; }
    20% { transform: translate(3px, 2px) skewX(5deg); opacity: 0.9; }
    30% { transform: translate(-1px, 3px) skewX(-3deg); opacity: 0.7; }
    40% { transform: translate(2px, -2px) skewX(2deg); opacity: 1; }
    50% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(0, 0); opacity: 1; }
}

/* Assign random delays to each letter */
.glitch span:nth-child(1) { animation-delay: 0s; }
.glitch span:nth-child(2) { animation-delay: 0.2s; }
.glitch span:nth-child(3) { animation-delay: 0.4s; }
.glitch span:nth-child(4) { animation-delay: 0.6s; }
.glitch span:nth-child(5) { animation-delay: 0.8s; }
.glitch span:nth-child(6) { animation-delay: 1s; }
.glitch span:nth-child(7) { animation-delay: 1.2s; }
.glitch span:nth-child(8) { animation-delay: 1.4s; }
.glitch span:nth-child(9) { animation-delay: 1.6s; }
.glitch span:nth-child(10) { animation-delay: 1.8s; }
.glitch span:nth-child(11) { animation-delay: 2s; }
.glitch span:nth-child(12) { animation-delay: 2.2s; }
.glitch span:nth-child(13) { animation-delay: 2.4s; }
.glitch span:nth-child(14) { animation-delay: 2.6s; }

/* Position each letter in its exact spot */
.glitch span:nth-child(1) { left: 0%; }
.glitch span:nth-child(2) { left: 11.92%; }
.glitch span:nth-child(3) { left: 18.85%; }
.glitch span:nth-child(4) { left: 25.77%; }
.glitch span:nth-child(5) { left: 32.69%; }
.glitch span:nth-child(6) { left: 39.61%; }
.glitch span:nth-child(7) { left: 46.54%; }
.glitch span:nth-child(8) { left: 53.46%; }
.glitch span:nth-child(9) { left: 60.38%; }
.glitch span:nth-child(10) { left: 67.31%; }
.glitch span:nth-child(11) { left: 74.23%; }
.glitch span:nth-child(12) { left: 81.15%; }
.glitch span:nth-child(13) { left: 88.08%; }
.glitch span:nth-child(14) { left: 95%; }

.glitch span:nth-child(1) { left: 0%; }
.glitch span:nth-child(2) { left: 7.31%; }
.glitch span:nth-child(3) { left: 14.61%; }
.glitch span:nth-child(4) { left: 21.92%; }
.glitch span:nth-child(5) { left: 29.23%; }
.glitch span:nth-child(6) { left: 36.54%; }
.glitch span:nth-child(7) { left: 43.85%; }
.glitch span:nth-child(8) { left: 451.15%; }
.glitch span:nth-child(9) { left: 58.46%; }
.glitch span:nth-child(10) { left: 65.77%; }
.glitch span:nth-child(11) { left: 73.08%; }
.glitch span:nth-child(12) { left: 80.38%; }
.glitch span:nth-child(13) { left: 87.69%; }
.glitch span:nth-child(14) { left: 95%; }

/* Assign random delays to each letter */
.terminal:hover .glitch span:nth-child(1) { animation-delay: 0s; }
.terminal:hover .glitch span:nth-child(2) { animation-delay: 0.2s; }
.terminal:hover .glitch span:nth-child(3) { animation-delay: 0.4s; }
.terminal:hover .glitch span:nth-child(4) { animation-delay: 0.6s; }
.terminal:hover .glitch span:nth-child(5) { animation-delay: 0.8s; }
.terminal:hover .glitch span:nth-child(6) { animation-delay: 1s; }
.terminal:hover .glitch span:nth-child(7) { animation-delay: 1.2s; }
.terminal:hover .glitch span:nth-child(8) { animation-delay: 1.4s; }
.terminal:hover .glitch span:nth-child(9) { animation-delay: 1.6s; }
.terminal:hover .glitch span:nth-child(10) { animation-delay: 1.8s; }
.terminal:hover .glitch span:nth-child(11) { animation-delay: 2s; }
.terminal:hover .glitch span:nth-child(12) { animation-delay: 2.2s; }
.terminal:hover .glitch span:nth-child(13) { animation-delay: 2.4s; }
.terminal:hover .glitch span:nth-child(14) { animation-delay: 2.6s; }
/* Subtext styling */
.subtext {
    margin-top: 1rem;
}

.coming-soon {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 3px #fff, 0 0 8px #f0f;
    animation: fadeIn 4s 4s ease-out forwards;
    opacity: 0;
}

/* Fade-in for the subtext */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.glitch {
    font-size: 5rem;
    color: white;
    position: relative;
    animation: glitch 1.5s infinite;
    text-shadow: 2px 0 rgba(255, 255, 255, 0.4), -2px 0 rgba(255, 255, 255, 0.4);  
}
@media (max-width: 1200px) {
    .glitch {
        font-size: 2rem;
    }
  }
.glitchcolors {
    animation: glitchColors 1.5s infinite;
    text-shadow: 2px 0 rgba(255, 255, 255, 0.4), -2px 0 rgba(255, 255, 255, 0.4);  
}  
/* Beating heart effect */
@keyframes beat {
    from { transform: scale(0.75); }
    to { transform: scale(1.5) }
}
.heart {
    display: inline-block;
    animation: beat 1s steps(5) infinite alternate;
}

@keyframes randomFont {
    0% { font-family: 'Courier New', Courier, monospace; }
    50% { font-family: 'Arial', sans-serif; }
    100% { font-family: 'Courier New', Courier, monospace; }
}

/* Random effect for each letter without offset */
@keyframes randomCase {
    0%, 100% {
        transform: scale(1);
        text-transform: uppercase;
    }
    50% {
        transform: scale(1.3);
        text-transform: lowercase;
    }
}
  
@keyframes glitch {
    0% {
        text-shadow: 2px 0 rgba(255, 255, 255, 0.4), -2px 0 rgba(255, 255, 255, 0.4);
        transform: translate(0);
    }
    20% {
        text-shadow: -2px 0 rgba(255, 0, 0, 0.8), 2px 0 rgba(0, 255, 0, 0.8);
        transform: translate(-1px, 1px);
    }
    40% {
        text-shadow: 2px 0 rgba(0, 0, 255, 0.6), -2px 0 rgba(0, 255, 255, 0.6);
        transform: translate(1px, -1px);
    }
    60% {
        text-shadow: -2px 0 rgba(255, 0, 255, 0.6), 2px 0 rgba(255, 255, 0, 0.6);
        transform: translate(-1px, 1px);
    }
    100% {
        text-shadow: 2px 0 rgba(255, 255, 255, 0.4), -2px 0 rgba(255, 255, 255, 0.4);
        transform: translate(0);
    }  
}
  
@keyframes glitchColors {
    0% {
        text-shadow: 2px 0 rgba(255, 255, 255, 0.4), -2px 0 rgba(255, 255, 255, 0.4);
    }
    20% {
        text-shadow: -2px 0 rgba(255, 0, 0, 0.8), 2px 0 rgba(0, 255, 0, 0.8);
    }
    40% {
        text-shadow: 2px 0 rgba(0, 0, 255, 0.6), -2px 0 rgba(0, 255, 255, 0.6);
    }
    60% {
        text-shadow: -2px 0 rgba(255, 0, 255, 0.6), 2px 0 rgba(255, 255, 0, 0.6);
    }
    100% {
        text-shadow: 2px 0 rgba(255, 255, 255, 0.4), -2px 0 rgba(255, 255, 255, 0.4);
    }
}