/* ========================================
   Reset and Base Styles
   ======================================== */

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0f1a;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}

/* ========================================
   Wave Background
   ======================================== */

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ========================================
   Main Content Layout
   ======================================== */

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

/* ========================================
   Logo
   ======================================== */

.logo-container {
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-in;
}

.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* ========================================
   Terminal-style Message with Typing Effect
   ======================================== */

.terminal-line {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    max-width: 90vw;
    padding: 0 1rem;
    min-height: 4rem;
}

.prompt {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 500;
    color: #22C6D5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    margin-right: 1rem;
    flex-shrink: 0;
    padding-left: 100px;
}

.message {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Blinking cursor effect */
.message::after {
    content: '|';
    display: inline-block;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    color: #22C6D5;
    font-weight: 400;
}

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

/* ========================================
   Footer
   ======================================== */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 1.5rem 2rem;
    text-align: center;
    background: linear-gradient(to top, rgba(10, 15, 26, 0.8), transparent);
}

.footer p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.footer a {
    color: color-mix(in srgb, #0A6A78 70%, white);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer a:hover {
    color: color-mix(in srgb, #0A6A78 55%, white);
    text-decoration: underline;
}

.brand-text {
    color: rgba(255, 255, 255, 0.96);
    font-weight: 500;
}

.separator {
    margin: 0 0.75rem;
    opacity: 0.5;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .content {
        padding: 1.5rem;
    }
    
    .logo {
        width: 64px;
        height: 64px;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    .terminal-line {
        min-height: 3rem;
        max-width: 95vw;
    }
    
    .prompt {
        font-size: clamp(1.5rem, 5vw, 2rem);
        padding-left: 50px;
        margin-right: 0.75rem;
    }
    
    .message {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .footer {
        padding: 1rem 1rem;
    }
    
    .footer p {
        font-size: 0.875rem;
        line-height: 1.8;
    }
    
    .separator {
        display: block;
        margin: 0.25rem 0;
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .terminal-line {
        max-width: 98vw;
    }
    
    .prompt {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        padding-left: 25px;
        margin-right: 0.5rem;
    }
    
    .message {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }
    
    .footer p {
        font-size: 0.8125rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible {
    outline: 2px solid #0A6A78;
    outline-offset: 4px;
    border-radius: 2px;
}

