/* ===============================
   GLOBAL RESET
================================ */
* {
    box-sizing: border-box;
}

/* ===============================
   BODY
================================ */
body {
    margin: 0;
    background: radial-gradient(circle at top, #001f3f, #000814);
    font-family: 'Orbitron', monospace;
    color: #00eaff;
    overflow-x: hidden;
}

/* ===============================
   MATRIX BACKGROUND
================================ */
#matrixCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ===============================
   MAIN CONTAINER
================================ */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px 110px; /* ruang aman untuk footer */
    position: relative;
    z-index: 3;
}

/* ===============================
   HEADINGS
================================ */
h1 {
    text-align: center;
    color: #00ffff;
    letter-spacing: 2px;
}

.subtitle {
    text-align: center;
    margin-bottom: 35px;
    color: #6be6ff;
    letter-spacing: 1px;
}

/* ===============================
   BOX (INPUT & OUTPUT)
================================ */
.box {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid #00eaff44;
    box-shadow:
        0 0 25px rgba(0, 234, 255, 0.15),
        inset 0 0 20px rgba(0, 234, 255, 0.05);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 30px;
}

.box h2 {
    margin-bottom: 15px;
    color: #00ffee;
    letter-spacing: 1px;
}

/* ===============================
   BOX CONTENT
================================ */
.box-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ===============================
   TEXTAREA
================================ */
textarea {
    width: 100%;
    min-height: 260px;
    background: #000;
    color: #00ffea;
    border: 1px solid #00eaff;
    padding: 15px;
    border-radius: 10px;
    resize: vertical;
    font-family: Consolas, monospace;
    font-size: 14px;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 12px rgba(0, 234, 255, 0.4);
}

/* ===============================
   BUTTONS
================================ */
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

button {
    padding: 12px 28px;
    background: linear-gradient(135deg, #0077ff, #00ffee);
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.25s ease;
}

button:hover {
    box-shadow: 0 0 18px #00ffff;
    transform: translateY(-1px);
}

button.reset {
    background: linear-gradient(135deg, #ff004c, #ff6b6b);
    color: #000;
}

/* ===============================
   FOOTER FIXED BOTTOM
================================ */
.golden-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;

    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.95),
        rgba(10,20,40,0.95),
        rgba(0,0,0,0.95)
    );

    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(0, 234, 255, 0.35);
    z-index: 10;
}

/* ===============================
   FOOTER CONTENT
================================ */
.footer-content {
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 25px;
}

/* ===============================
   GITHUB LINK
================================ */
.github-link {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.25s ease;
}

.github-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00ffff;
}

.github-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ===============================
   COPYRIGHT
================================ */
.copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.6px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
    .btn-group {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
        justify-content: center;
    }
}


/* ===============================
   CENTER BACKGROUND GIF
================================ */
.center-bg-gif {
    position: fixed;
    top: 43%;
    left: 57%;
    transform: translate(-50%, -50%);

    width: 366px;
    height: 420px;

    background-image: url("https://camo.githubusercontent.com/3f74cf6b2b0ca5b76ba88123250c0550d510fbeb7ed3c3b24d9830676409e4e6/68747470733a2f2f696b2e696d6167656b69742e696f2f647a6f6e652f6861636b696e672e676966");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.18; /* transparan biar elegan */
    filter: drop-shadow(0 0 25px rgba(0, 234, 255, 0.55));

    z-index: 1;
    pointer-events: none;
}
