/* Reset dasar */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Styling section */
.section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: #f9f9f9;
}

/* Container */
.details__container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    background-color: #fff;
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Title */
.details__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: bold;
}

/* Tools container */
.details__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

/* Tool box */
.details__tool {
    background-color: #f0f0f0;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 2rem;
    color: #555;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    font-weight: bold;
    min-width: 200px;
}

/* Efek hover */
.details__tool:hover {
    background-color: #ddd;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Link styling */
.details__tool a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Hover pada link */
.details__tool a:hover {
    color: #007bff;
    text-decoration: none;
}
.back-btn {
    display: inline-block; width: 100px;
    align-items: center;
    justify-content: center;
    background-color:rgb(10, 96, 154);
    color: #fff;
    padding: 15px 15px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.back-btn i {
    margin-right: 10px;
}

/* Responsif */
@media (max-width: 768px) {
    .back-btn {
        font-size: 16px;
        padding: 12px 24px;
    }
}

/* Responsiveness */
/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .details__container {
        padding: 3rem;
        max-width: 90%;
    }
    
    .details__title {
        font-size: 1.8rem;
    }

    .details__tool {
        padding: 15px 30px;
        font-size: 1.8rem;
        min-width: 180px;
        flex-grow: 1; /* Membuat elemen dapat berkembang di dalam kontainer */
    }

    .details__tool a {
        font-size: 1.3rem;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .details__container {
        padding: 1.5rem; /* Mengurangi padding agar lebih efisien */
        max-width: 95%;
        width: 100%;
    }

    .details__title {
        font-size: 1.4rem;
    }

    .details__tools {
        flex-direction: column; /* Menjadikan elemen dalam satu kolom */
        gap: 1rem;
        justify-content: center;
        align-items: center; /* Memastikan elemen tersusun rapi secara vertikal */
    }

    .details__tool {
        padding: 12px 15px; /* Menyesuaikan padding agar tidak terlalu besar */
        font-size: 1.4rem;
        min-width: 90%; /* Memastikan tool memanfaatkan seluruh lebar */
        text-align: center; /* Menjaga teks tetap terpusat */
    }

    .details__tool a {
        font-size: 1.2rem;
    }
}
/* Animasi Fade In untuk seluruh section */
.section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
}

/* Animasi Fade In untuk elemen dalam container */
.details__container {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s ease-out forwards 0.5s; /* Penundaan animasi */
}

/* Animasi Fade In untuk tools secara bertahap */
.details__tool {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInTool 0.8s ease-out forwards;
}

.details__tool:nth-child(1) {
    animation-delay: 0.5s; /* Penundaan untuk elemen pertama */
}

.details__tool:nth-child(2) {
    animation-delay: 1s; /* Penundaan untuk elemen kedua */
}

.details__tool:nth-child(3) {
    animation-delay: 1.5s; /* Penundaan untuk elemen ketiga */
}

/* Animasi untuk fade in secara umum */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi untuk fade in secara bertahap pada tools */
@keyframes fadeInTool {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    animation: fadeOutLoading 2s ease-out forwards;  /* Durasi animasi fade-out 2 detik */
}

/* Loader animation */
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
}

/* Animasi rotasi untuk loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animasi untuk menghilangkan loading screen setelah 2 detik */
@keyframes fadeOutLoading {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


/* Konten utama muncul secara halus */
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
