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

body {
    background-color: #121212;
    font-family: 'Helvetica Neue', sans-serif;
    color: #fdf5e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.neon-glow {
    color: #b388ff;
    font-size: 3rem;
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
    0%, 100% { text-shadow: 0 0 8px #b388ff, 0 0 16px #b388ff; }
    50% { text-shadow: 0 0 2px #b388ff; }
}

.tagline {
    font-size: 1rem;
    color: #ccc;
    margin-top: 6px;
}

.nav-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 1.3rem;
}

main {
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

form input[type="url"] {
    width: 100%;
    padding: 14px;
    font-size: 1em;
    border-radius: 6px;
    border: none;
    background-color: #1e1e1e;
    color: #fdf5e6;
}

form button[type="submit"] {
    padding: 14px;
    font-size: 1em;
    background-color: #7c4dff;
    border: none;
    border-radius: 6px;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button[type="submit"]:hover {
    background-color: #9575cd;
}

.result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.url-preview {
    background-color: #1d1d1d;
    border: 2px solid #b388ff;
    padding: 14px 22px;
    font-size: 1.1em;
    color: #fdf5e6;
    border-radius: 8px;
    cursor: pointer;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.url-preview.copied {
    animation: pulse 0.4s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); background-color: #2e2e2e; }
    50% { transform: scale(1.03); background-color: #4a148c; }
    100% { transform: scale(1); background-color: #1d1d1d; }
}

.qr-img {
    width: 200px;
    height: 200px;
    border: 2px solid #b388ff;
    border-radius: 6px;
    animation: fadeInUp 0.5s ease-in;
}

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

footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #777;
}

/* Mobile */
@media (max-width: 600px) {
    .neon-glow {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .url-preview {
        width: 100%;
        text-align: center;
    }

    .qr-img {
        width: 180px;
        height: 180px;
    }
}
