/* Gateway Page Styles - Catppuccin Edition (v1.0.24) */
/* Last Updated: 2025-11-07 */
/* Author: Epic62790 */

/* Catppuccin Mocha Colors */
:root {
    --primary-color: #f5c2e7;
    --accent-color: #cba6f7;
    --text-primary: #cdd6f4;
    --text-secondary: #bac2de;
    --base: #1e1e2e;
    --mantle: #181825;
    --surface0: #313244;
}

/* Pulse-glow Animation */
@keyframes pulse-glow {
    0% { 
        box-shadow: 0 0 20px rgba(245, 194, 231, 0.5),
                    0 4px 30px rgba(245, 194, 231, 0.4);
    }
    50% { 
        box-shadow: 0 0 40px rgba(245, 194, 231, 0.7),
                    0 4px 40px rgba(245, 194, 231, 0.6);
    }
    100% { 
        box-shadow: 0 0 20px rgba(245, 194, 231, 0.5),
                    0 4px 30px rgba(245, 194, 231, 0.4);
    }
}

/* Body styles to center the header */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    overflow-x: hidden;
    background-color: var(--base);
    background-image: 
        linear-gradient(rgba(30, 30, 46, 0.85), rgba(30, 30, 46, 0.85)),
        repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0px, rgba(0,0,0,.05) 1px, transparent 1px, transparent 10px),
        url('vista_bg.png');
    background-size: cover, auto, cover;
    background-position: center center;
    background-attachment: fixed;
}

/* Gateway Header Style */
.gateway-header {
    background: rgba(24, 24, 37, 0.98);
    padding: 2.5rem 2rem;
    border-radius: 30px;
    border: 3px solid var(--primary-color);
    animation: pulse-glow 3s infinite;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 800px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* Staggered Fade-in Text Styling */
.typewriter-text {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(245, 194, 231, 0.6),
                 2px 2px 5px rgba(203, 166, 247, 0.4);
    white-space: nowrap;
}

/* Define the fade-in animation for each character */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to the spans created by JS */
.typewriter-text span {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

#enter-button {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--base);
    text-decoration: none;
    padding: 0.75rem 2.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(245, 194, 231, 0.5);
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease-out, 
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                all 0.3s ease;
}

#enter-button.visible {
    opacity: 1;
    transform: translateY(0);
}

#enter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(245, 194, 231, 0.8);
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-color: var(--accent-color);
}

.home-footer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease-out, 
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.home-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-footer a:hover {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .typewriter-text {
        font-size: 1.8rem;
        white-space: normal;
    }

    #enter-button {
        font-size: 1.1rem;
        padding: 0.6rem 2rem;
    }

    .gateway-header {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .typewriter-text {
        font-size: 1.5rem;
    }

    #enter-button {
        font-size: 1rem;
        padding: 0.6rem 1.8rem;
    }

    .gateway-header {
        padding: 1.5rem 1rem;
    }
}