@charset "UTF-8";

:root {
    --bg: #0a0c10;
    --panel: #111317;
    --border: #1f242d;
    --accent-blue: #3db4f2;
    --accent-red: #f25c5c;
    --accent-yellow: #f2d35c;
    --accent-green: #58f287;
    --text: #cfd6e1;
    --muted: #8a9099;
    --radius: 6px;
    --transition: all 0.25s ease;
}

/* =============== GLOBAL RESET =============== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: "Share Tech Mono", monospace;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* =============== SCANLINE EFFECT =============== */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 2px,
        transparent 4px
    );
    opacity: 0.2;
    pointer-events: none;
    z-index: 99;
}

/* =============== Splash Screen =============== */
.splash-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, #0c0f13, #000);
    color: var(--accent-blue);
    font-family: "JetBrains Mono", "Courier New", monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-console {
    width: 90%;
    max-width: 600px;
    height: 55vh;
    min-height: 250px;
    background: rgba(10, 14, 17, 0.8);
    border: 1px solid rgba(0, 255, 180, 0.2);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 30px rgba(0, 255, 180, 0.1);
    backdrop-filter: blur(6px);
}

#log-output {
    white-space: pre-wrap;
    line-height: 1.5;
    color: var(--text);
    text-shadow: 0 0 4px rgba(0, 255, 160, 0.3);
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

#log-output::after {
    content: "_";
    animation: blink 1s step-end infinite;
}

.log-tag {
    color: var(--accent-blue);
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0,255,168,0.5);
}

@keyframes blink {
    50% { opacity: 0; }
}

.loading-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.loading-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    color: var(--text);
    letter-spacing: 0.05em;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 255, 180, 0.1);
    border: 1px solid rgba(0, 255, 180, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.loading-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,
        var(--accent-blue),
        #00d4ff,
        #1a9edb,
        var(--accent-blue)
    );
    background-size: 200% 100%;
    animation: pulseFill 2s infinite linear;
    transition: width 0.4s ease;
}

@keyframes pulseFill {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.splash-console::-webkit-scrollbar {
    width: 6px;
}
.splash-console::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffa8, #007a6d);
    border-radius: 8px;
}

/* =============== CURSOR =============== */
.cursor {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, var(--accent-blue) 30%, transparent 70%);
    box-shadow:
        0 0 20px var(--accent-blue),
        0 0 60px var(--accent-blue),
        0 0 100px var(--accent-blue);
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.15s ease-out, opacity 0.25s ease-out;
    display: none;
    animation: hue 6s linear infinite;
    mix-blend-mode: lighten;
}

.cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--accent-blue) 10%, transparent 80%);
    opacity: 0.15;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.35;
    }
}

@keyframes hue {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* =============== PARTICLES =============== */
.game-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    mix-blend-mode: lighten;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at center, var(--accent-blue) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(1.5px);
    opacity: 0.5;
    animation: floatUp 10s ease-in-out infinite, hueShift 8s linear infinite;
}

.particle:nth-child(1) {
    left: 5%;
    width: 8px;
    height: 8px;
    animation-delay: 0s;
}
.particle:nth-child(2) {
    left: 25%;
    width: 12px;
    height: 12px;
    animation-delay: 2s;
}
.particle:nth-child(3) {
    left: 50%;
    width: 6px;
    height: 6px;
    animation-delay: 4s;
}
.particle:nth-child(4) {
    left: 75%;
    width: 10px;
    height: 10px;
    animation-delay: 6s;
}
.particle:nth-child(5) {
    left: 90%;
    width: 14px;
    height: 14px;
    animation-delay: 8s;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.6);
        opacity: 0;
    }
    25% {
        transform: translateY(70vh) translateX(-10px) scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: translateY(40vh) translateX(10px) scale(1);
        opacity: 1;
    }
    75% {
        transform: translateY(10vh) translateX(-10px) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10vh) translateX(0) scale(1.4);
        opacity: 0;
    }
}

@keyframes hueShift {
    0% { filter: hue-rotate(0deg) blur(1.5px); }
    100% { filter: hue-rotate(360deg) blur(1.5px); }
}

/* =============== MASTHEAD =============== */
.masthead {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: clamp(1rem, 3vw, 3rem);
    text-align: center;
}

.masthead-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 3px;
    color: var(--accent-blue);
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(61, 180, 242, 0.8);
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.masthead-title::after {
    content: "";
}

.masthead-subtitle {
    color: var(--muted);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.6;
    margin: 1.2rem auto 2rem;
    text-align: center;
    text-shadow: 0 0 6px rgba(61, 180, 242, 0.15);
}

#dynamic-text {
    display: inline-block;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    font-family: monospace;
    white-space: nowrap;
    width: fit-content;
    border-right: 3px solid var(--accent-blue);
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

/* =============== PROGRESS BAR =============== */
.progress-container {
    margin: 1.2rem auto 2rem;
    width: 90%;
    max-width: 420px;
    text-align: center;
}

.progress-label {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    position: relative;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg,
        var(--accent-blue),
        #00d4ff,
        #1a9edb,
        var(--accent-blue)
    );
    background-size: 300% 100%;
    animation: shimmer 3s linear infinite, loadPulse 2s ease-in-out infinite alternate;
    box-shadow: 0 0 12px var(--accent-blue), 0 0 30px var(--accent-blue);
    transition: width 0.25s ease-out;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes loadPulse {
    from { filter: brightness(1); }
    to { filter: brightness(1.4); }
}

.progress-fill.complete {
    animation: completePulse 1s ease-in-out infinite alternate;
}

@keyframes completePulse {
    from { box-shadow: 0 0 20px var(--accent-blue), 0 0 60px var(--accent-blue); }
    to { box-shadow: 0 0 40px var(--accent-blue), 0 0 100px var(--accent-blue); }
}

/* =============== FORM =============== */
.newsletter-form {
    max-width: 420px;
    width: 90%;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input-group input {
    flex: 1;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

.newsletter-input-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(61, 180, 242, 0.3);
}

.newsletter-input-group button {
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    font-family: "Share Tech Mono", monospace;
    background: var(--accent-blue);
    border: 1px solid #0f6c99;
    color: #000;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-input-group button:hover {
    background: #50c5ff;
    box-shadow: 0 0 10px rgba(61, 180, 242, 0.5);
}

/* =============== SOCIAL ICONS =============== */
.social-button {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    perspective: 600px;
    padding: 0 10px;
}

.social-button .button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    width: 55px;
    background: rgba(30, 32, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    backdrop-filter: blur(6px);
    color: var(--text-muted);
    transform-style: preserve-3d;
}

.social-button .button:hover {
    width: 180px;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.social-button .icon {
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: var(--text);
}

.social-button .button span {
    opacity: 0;
    width: 0;
    margin-left: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.social-button .button:hover span {
    opacity: 1;
    width: auto;
    margin-left: 10px;
}

.social-button .button:hover .icon {
    color: #fff;
    transform: scale(1.15);
}

.social-button .button:nth-child(1):hover { box-shadow: 0 0 15px rgba(66, 103, 178, 0.4); background: linear-gradient(135deg, #2b4079, #4267B2); color: #d0ddff; }
.social-button .button:nth-child(2):hover { box-shadow: 0 0 15px rgba(114, 137, 218, 0.4); background: linear-gradient(135deg, #4c6edc, #7289da); color: #dfe4ff; }
.social-button .button:nth-child(3):hover { box-shadow: 0 0 15px rgba(225, 48, 108, 0.4); background: linear-gradient(135deg, #b32d6f, #e1306c); color: #ffe4f0; }
.social-button .button:nth-child(4):hover { box-shadow: 0 0 15px rgba(51, 51, 51, 0.4); background: linear-gradient(135deg, #222, #444); color: #ccc; }
.social-button .button:nth-child(5):hover { box-shadow: 0 0 15px rgba(225, 75, 75, 0.4); background: linear-gradient(135deg, #d63b3b, #e14b4b); color: #ffe6e6; }

/* =============== FEEDBACK / ERROR MESSAGES =============== */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #1e293b;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    text-align: center;
    max-width: 90%;
    width: fit-content;
    word-wrap: break-word;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification.success { background: #16a34a; }
.notification.error { background: #dc2626; }
.notification.info { background: #0284c7; }

/* =============== RESPONSIVE =============== */
@media (max-width: 900px) {
    .masthead {
        min-height: 70vh;
        padding: 0 1.5rem;
    }

    .masthead-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .masthead-title::after {
        content: "\A";
        white-space: pre;
    }

    .masthead-subtitle {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .social-button {
        gap: 12px;
    }

    .social-button .button {
        height: 50px;
        width: 50px;
        border-radius: 10px;
    }

    .social-button .button:hover {
        width: 150px;
    }

    .social-button .icon svg {
        width: 22px;
        height: 22px;
    }

    .social-button .button span {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .masthead-title {
        font-size: 2rem;
    }
    .newsletter-input-group {
        flex-direction: column;
    }
    .newsletter-input-group button {
        width: 100%;
    }
    .notification {
        top: 10px;
        font-size: 0.9rem;
        padding: 10px 14px;
        max-width: 95%;
        border-radius: 8px;
    }

    .social-button {
        gap: 10px;
    }

    .social-button .button {
        height: 45px;
        width: 45px;
        border-radius: 8px;
    }

    .social-button .button:hover {
        width: 130px;
    }

    .social-button .icon svg {
        width: 20px;
        height: 20px;
    }

    .social-button .button span {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .splash-console {
        height: 45vh;
        font-size: 0.8rem;
    }

    .masthead-title {
        font-size: 1.7rem;
        letter-spacing: 1px;
        border-right-width: 2px;
    }

    .newsletter-input-group input,
    .newsletter-input-group button {
        font-size: 0.85rem;
        padding: 0.8rem;
    }

    .social-button {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding-bottom: 30px;
    }

    .social-button .button {
        width: 180px;
        justify-content: flex-start;
        padding-left: 12px;
    }

    .social-button .button:hover {
        width: 190px;
        transform: scale(1.03);
    }

    .social-button .icon {
        margin-right: 10px;
    }

    .social-button .button span {
        opacity: 1;
        width: auto;
        margin-left: 5px;
        font-size: 0.85rem;
    }
}