* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen reader only - visually hidden but accessible to assistive technologies */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    background-color: #0a0a0a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Courier New', 'Monaco', monospace;
    position: relative;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    gap: 3rem;
}

.typed-text {
    font-size: 8rem;
    font-weight: 700;
    color: white;
    display: inline-block;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.typed-text.confetti-out {
    opacity: 0;
}

#text-content {
    display: inline-block;
}

.text-cursor {
    display: inline-block;
    color: white;
    font-weight: 100;
    animation: blink 1s step-end infinite;
    margin-left: 0.1em;
}

.confetti-particle {
    position: fixed;
    background-color: #ff6b6b;
    pointer-events: none;
    z-index: 1000;
    border-radius: 2px;
    /* Performance optimizations for mobile */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.confetti-particle:nth-child(3n) {
    background-color: #4ecdc4;
}

.confetti-particle:nth-child(3n+1) {
    background-color: #ffe66d;
}

.confetti-particle:nth-child(3n+2) {
    background-color: #ff6b6b;
}

.confetti-particle:nth-child(5n) {
    background-color: #a8e6cf;
}

.confetti-particle:nth-child(5n+1) {
    background-color: #ffd93d;
}

.confetti-particle:nth-child(5n+2) {
    background-color: #6bcf7f;
}

.confetti-particle:nth-child(5n+3) {
    background-color: #4d96ff;
}

.confetti-particle:nth-child(5n+4) {
    background-color: #ff8787;
}

.final-text {
    font-size: 8rem;
    font-weight: 700;
    color: white;
    display: inline-block;
    opacity: 0;
    position: relative;
}

.final-text.show {
    opacity: 1;
}

#final-text-content {
    display: inline-block;
}

.email-form {
    position: relative;
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    max-width: 700px;
    width: 100%;
    padding: 0 2rem;
}

.email-form.show {
    opacity: 1;
    transform: translateY(0);
}

#email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-family: 'Courier New', 'Monaco', monospace;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

#email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#email-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.15);
}

.email-form button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-family: 'Courier New', 'Monaco', monospace;
    font-weight: 700;
    background-color: #4d96ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.email-form button:hover {
    transform: translateY(-2px);
    background-color: #3d7ee6;
}

.email-form button:active {
    transform: translateY(0);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .typed-text {
        font-size: 4rem;
    }
    
    .final-text {
        font-size: 4rem;
    }
    
    .email-form {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    #email-input,
    .email-form button {
        width: 100%;
        font-size: 1rem;
    }
}

