/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0a0a12; /* Warna dasar gelap */
    --neon-blue: #d400ff; /* Warna Aksen 1 (Cyberpunk Cyan) */
    --neon-purple: #fe9013; /* Warna Aksen 2 (Cyberpunk Purple) */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-white: #ffffff;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Background Anime Setup */
.anime-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* GANTI URL DI BAWAH INI DENGAN GAMBAR ANIME KEREN LU */
    background: url('https://images.unsplash.com/photo-1555680202-c86f0e12f086?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Kondisi awal: sedikit gelap, tanpa blur */
    background: rgba(10, 10, 18, 0.85); 
    backdrop-filter: blur(0px);
    transition: background 0.5s ease, backdrop-filter 0.5s ease; /* Transisi halus */
    z-index: -1;
}

/* Kondisi saat di-scroll */
.overlay.is-scrolled {
    background: rgba(10, 10, 18, 0.95); /* Lebih gelap */
    backdrop-filter: blur(8px); /* Tambahkan efek blur */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.highlight, .neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--neon-purple);
}

.menu-btn { display: none; }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    margin: 0 10px;
}

.primary-btn {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.secondary-btn {
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(89, 0, 255, 0.6);
}

/* Sections General */
.section-padding {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

/* Glass Cards (Services & Contact) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
    text-align: center;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--neon-purple);
    margin-bottom: 20px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #161621;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

/* Contact */
.whatsapp-btn {
    background: #d325a7;
    color: white;
    display: inline-block;
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #000;
    font-size: 0.9rem;
    color: #888;
}

/* Footer Social Links */
.social-links {
    /* Dipindahkan ke dalam contact box, jadi margin atas lebih penting */
    margin-top: 25px;
}

.social-links a {
    color: #ccc; /* Warna dibuat lebih terang agar cocok di dalam contact box */
    font-size: 1.5rem;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--neon-purple);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simplifikasi buat mobile */
    }
    .hero h1 { font-size: 2rem; }
    .section-padding { padding: 60px 5%; }
}

.section-padding {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* State akhir (terlihat) saat elemen masuk ke viewport */
/* Kita kembalikan ke posisi semula dan opacity penuh */
.section-padding.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Memberi sedikit delay pada kartu-kartu agar muncul satu per satu */
.glass-card, .project-card {
    transition-delay: 0.2s;
}

/* --- Scroll Animations --- */
.section-padding {
    opacity: 0;
    transform: translateY(40px) scale(0.98); /* Initial state: slightly down, slightly smaller */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother, "mantap" transition */
}

.section-padding.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1); /* Final state: original position and size */
}

/* Staggered animation for cards within sections */
.cards-container .glass-card,
.portfolio-grid .project-card {
    opacity: 0;
    transform: translateY(20px); /* Initial state for cards */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Apply delays when the parent section is visible */
.section-padding.is-visible .cards-container .glass-card:nth-child(1),
.section-padding.is-visible .portfolio-grid .project-card:nth-child(1) { transition-delay: 0.1s; }
.section-padding.is-visible .cards-container .glass-card:nth-child(2),
.section-padding.is-visible .portfolio-grid .project-card:nth-child(2) { transition-delay: 0.2s; }
.section-padding.is-visible .cards-container .glass-card:nth-child(3),
.section-padding.is-visible .portfolio-grid .project-card:nth-child(3) { transition-delay: 0.3s; }
.section-padding.is-visible .cards-container .glass-card:nth-child(4),
.section-padding.is-visible .portfolio-grid .project-card:nth-child(4) { transition-delay: 0.4s; }
/* Tambahkan lebih banyak jika ada lebih dari 4 kartu */

.section-padding.is-visible .cards-container .glass-card,
.section-padding.is-visible .portfolio-grid .project-card {
    opacity: 1;
    transform: translateY(0);
}

/* --- Modern Language Switcher --- */
.lang-switch-container {
    margin-left: 20px;
}

.lang-switch-checkbox {
    display: none; /* Sembunyikan checkbox asli */
}

.lang-switch-label {
    display: block;
    width: 70px;
    height: 34px;
    background-color: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Lingkaran slider */
.lang-switch-label::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    top: 3px;
    left: 4px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-blue);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Animasi dengan efek 'bouncy' */
}

/* Teks ID dan EN */
.lang-switch-label::before {
    content: 'EN | ID';
    position: absolute;
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 1px;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* Saat checkbox di-check (mode ID) */
.lang-switch-checkbox:checked + .lang-switch-label::after {
    transform: translateX(36px); /* Geser lingkaran ke kanan */
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    box-shadow: 0 0 10px var(--neon-purple);
}
