/* Biar smooth semua */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
}

/* === Background Animasi (Versi Elegan) === */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #203a43);
    background-size: 400% 400%;
    animation: gradientBG 25s ease infinite;
}

/* === Konten Utama === */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #eee;
}

.file-examples {
    font-size: 0.9rem;
    font-weight: 300;
    color: #ddd;
    margin-bottom: 30px;
    padding: 0 20px;
}

/* === Tombol Upload Interaktif === */
#fileInput {
    display: none;
}

.upload-label {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #e73c7e;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.upload-label:hover {
    transform: translateY(-5px) scale(1.05);
    background: #ee7752;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.upload-label:active {
    transform: translateY(-2px) scale(1.02);
}

/* === Preview Gambar & File === */
#previewArea {
    width: 100%;
    min-height: 100px;
    margin-top: 30px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.1);
}

#previewArea p {
    color: #ccc;
}

#previewArea img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
}

#previewArea .file-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    padding: 20px;
    word-break: break-all;
}

/* === Progress Bar === */
#progressContainer {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    margin-top: 20px;
    overflow: hidden;
    height: 30px;
    display: none;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #23a6d5, #23d5ab);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: width 0.4s ease-out;
}

/* === Area Hasil === */
#resultArea {
    width: 100%;
    margin-top: 20px;
}

#resultArea input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f4f4f4;
    color: #333;
    text-align: center;
    border: 2px solid #23d5ab;
    margin-bottom: 10px;
}

#resultArea button {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #23a6d5;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#resultArea button:hover {
    background: #23d5ab;
    transform: scale(1.05);
}

/* === Fitur Keunggulan === */
.features-container {
    max-width: 1000px;
    margin: 60px auto 20px auto;
    padding: 20px;
    text-align: center;
}

.features-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.feature-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex-basis: 250px;  
    flex-grow: 1;      
    max-width: 350px;  
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.5;
}

/* === Footer === */
footer {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 25px;
        width: 90%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle, .file-examples {
        font-size: 0.95rem;
    }

    .features-container {
        margin-top: 40px;
        width: 90%;
    }

    .features-container h2 {
        font-size: 2rem;
    }
}