/* --- CSS Variables --- */
:root {
    --primary-color: #ffffff;
    --secondary-color: #e0e0e0;
    --text-dark: #1a202c;
    --gold-color: #D4AF37; /* Warna emas dari logo */
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* --- General Body & Background Styling --- */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;

    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #111111, #2d2d2d, #1a1a1a, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Header Styling --- */
.site-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.logo {
    margin-bottom: 1rem;
    width: 120px; /* Menyesuaikan ukuran logo */
    height: auto;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 0.5rem;
    color: var(--secondary-color);
    max-width: 500px;
}

/* --- Content Grid Styling --- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 800px;
}

/* --- Card Styling --- */
.card {
    text-decoration: none;
    color: var(--text-dark);

    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 30px var(--shadow-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);

    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Staggered animation for cards */
.card:nth-child(1) {
    animation-delay: 0.5s;
}
.card:nth-child(2) {
    animation-delay: 0.7s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px var(--shadow-color);
}

.card-content {
    color: var(--primary-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.card-link {
    font-weight: 600;
    background-color: var(--gold-color);
    color: var(--text-dark); /* Teks tetap gelap agar kontras */
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.card:hover .card-link {
    background-color: #e4be58; /* Warna emas lebih terang saat hover */
}

/* --- Animations --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    body {
        padding: 1.5rem;
    }
    .main-title {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .content-grid {
        gap: 1.5rem;
    }
    .card {
        padding: 1.5rem;
    }
}
