/* ==================================== */
/* 1. FOOTER STRUCTURE */
/* ==================================== */
.footer {
    background: var(--color-bg-deep); /* Lebih gelap */
    color: var(--color-text-light);
    text-align: center;
    padding: 60px 20px 30px;
    position: relative; /* Penting untuk konteks shadow/border */

    /* Border Neon Atas yang Bersih */
    border-top: 2px solid var(--color-neon-blue);
    box-shadow: 0 -5px 20px rgba(0, 229, 255, 0.2);
    z-index: 1; /* Pastikan footer berada di atas */

    /* Efek Grid/Scanline yang Lebih Ringan */
    background-image: linear-gradient(0deg, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 100% 4px;
}

.footer-container {
    display: grid;
    /* Rampingkan menjadi 3 kolom default */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Sedikit lebih sempit */
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding-bottom: 20px; /* Jarak sebelum footer-bottom */
}

/* Animasi Kedatangan Kolom - Lebih Simpel */
.footer-col {
    opacity: 0;
    transform: translateY(20px);
    animation: footer-fade-in 0.9s ease-out forwards;
}
.footer-col:nth-child(1) { animation-delay: 0.2s; }
.footer-col:nth-child(2) { animation-delay: 0.4s; }
.footer-col:nth-child(3) { animation-delay: 0.6s; }


/* ==================================== */
/* 2. TYPOGRAPHY & LINKS */
/* ==================================== */

.footer-col h3 {
    color: var(--color-neon-purple);
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 6px var(--color-neon-purple);
    border-bottom: 1px solid rgba(174, 0, 255, 0.2);
    padding-bottom: 5px;
}

.footer-col a {
    display: block;
    color: #a0a0a0;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s, transform 0.3s;
    font-size: 0.95rem;
    position: relative;
    padding-left: 10px; /* Jarak untuk simbol */
}

/* Simbol Tautan */
.footer-col a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-neon-blue);
    opacity: 0.6;
    transition: transform 0.3s;
}

/* Efek Hover Link Keren */
.footer-col a:hover {
    color: var(--color-neon-blue);
    text-shadow: 0 0 8px var(--color-neon-blue);
    transform: translateX(5px);
    animation: glitch-text-light 0.1s 3;
}

.footer-col a:hover::before {
    content: '>>'; /* Simbol lebih aktif saat hover */
    transform: translateX(2px);
}

.logo-tagline {
    color: var(--color-neon-purple);
    font-size: 0.75rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

/* ==================================== */
/* 3. LOGO & SUPPORT BUTTON */
/* ==================================== */
.footer-logo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--color-neon-blue);
    box-shadow: var(--shadow-blue);
    animation: neon-light-pulse-blue 4s infinite alternate ease-in-out;
    transition: transform 0.3s;
}
.footer-logo:hover {
    transform: scale(1.1) rotate(5deg); /* Efek sedikit rotasi */
}

/* Tombol Support */
.subscribe-btn {
    display: block;
    width: 100%;
    max-width: 250px; /* Lebih luas */
    margin: 25px auto 0; /* Jarak dari links dan auto-center */
    padding: 12px 20px;
    color: var(--color-bg-deep); /* Teks gelap */
    background: var(--color-neon-purple);
    border: none;
    border-radius: 2px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--color-neon-purple);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center; /* Pastikan teks di tengah */

    /* Animasi Pulse pada tombol support */
    animation: neon-light-pulse-purple 4s infinite alternate ease-in-out 1s;
}

.subscribe-btn:hover {
    background: var(--color-neon-blue);
    box-shadow: 0 0 20px var(--color-neon-blue), 0 0 5px var(--color-bg-deep);
    color: var(--color-bg-deep);
    transform: translateY(-2px) scale(1.03);
}


/* ==================================== */
/* 4. FOOTER BOTTOM & SCROLL TOP */
/* ==================================== */
.footer-bottom {
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #808080;
    letter-spacing: 0.5px;
}
.footer-bottom .brand {
    color: var(--color-neon-blue);
    font-weight: 600;
    display: inline-block;
    animation: glitch-text-small 5s infinite alternate 1s;
}
.footer-bottom .year-range {
    color: #555;
    font-size: 0.8rem;
}

/* Tombol Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--color-neon-purple);
    color: var(--color-bg-deep);
    border: none;
    border-radius: 50%; /* Kembali ke bentuk bulat */
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    box-shadow: 0 0 10px var(--shadow-purple);
    transition: all 0.3s;
    z-index: 1000;
    display: none; /* Default hidden, JS handles display */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none; /* Hilangkan garis bawah pada link */
}
.scroll-top:hover {
    background: var(--color-neon-blue);
    box-shadow: 0 0 20px var(--shadow-blue);
    transform: scale(1.1);
}

/* ==================================== */
/* 5. MOBILE FRIENDLY */
/* ==================================== */
@media (max-width: 768px) {
    .footer {
        padding: 50px 15px 20px;
    }
    .footer-container {
        grid-template-columns: 1fr; /* Stacked */
        gap: 30px;
    }

    .footer-col {
        text-align: center;
        width: 100%;
        padding-bottom: 20px;
        /* Menggunakan border dashed untuk tampilan cyberpunk/glitch yang lebih baik */
        border-bottom: 1px dashed rgba(174, 0, 255, 0.1);
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-logo {
        margin: 0 auto 10px;
    }

    .subscribe-btn {
        margin: 15px auto 0; /* Pusat tombol di mobile */
    }
}


/* ==================================== */
/* 6. KEYFRAMES */
/* ==================================== */

@keyframes footer-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes neon-light-pulse-blue {
    0%, 100% { box-shadow: 0 0 10px var(--color-neon-blue); }
    50% { box-shadow: 0 0 30px var(--color-neon-blue), 0 0 5px rgba(0,0,0,0.5); }
}

@keyframes neon-light-pulse-purple {
    0%, 100% { box-shadow: 0 0 10px var(--color-neon-purple); }
    50% { box-shadow: 0 0 30px var(--color-neon-purple), 0 0 5px rgba(0,0,0,0.5); }
}

@keyframes glitch-text-light {
    0% { transform: translate(0); }
    33% { transform: translate(0.5px, -0.5px); }
    66% { transform: translate(-0.5px, 0.5px); }
    100% { transform: translate(0); }
}

@keyframes glitch-text-small {
    0%, 100% { transform: translate(0); }
    40% { transform: translate(-0.2px, 0.2px); }
    80% { transform: translate(0.3px, 0.3px); }
}