/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #ea4c89; /* Warna pink khas Dribbble */
    --primary-hover: #e13b7b;
    --bg-dark: #0d0c22;       /* Warna background gelap khas Dribbble */
    --card-bg: rgba(255, 255, 255, 0.05); /* Effect glassmorphism */
    --card-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-muted: #9e9ea7;
    --radius-pill: 999px;
    --radius-card: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Haas Grot Text R Web', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    /* Gradient mesh seperti hero banner Dribbble */
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(76, 29, 149, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(234, 76, 137, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(13, 12, 34, 0.8);
    backdrop-filter: blur(12px);
    padding: 1.2rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.nav-links a.active, 
.nav-links a:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    padding-right: 3rem;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--text-white);
    font-weight: 700;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(234, 76, 137, 0.4);
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 76, 137, 0.6);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* --- CONTAINER & CARDS --- */
.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.container h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--text-white);
    font-weight: 700;
}

/* DESKTOP LAYOUT (Horizontal Grid) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(234, 76, 137, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--radius-card) - 4px);
    margin-bottom: 1.2rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-white);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.card-link {
    display: inline-block;
    margin-top: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #ff76a8;
}

.modal-open {
    overflow: hidden;
}

.certificate-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.82);
}

.certificate-modal[hidden] {
    display: none;
}

.certificate-modal-content {
    position: relative;
    width: min(900px, 100%);
    max-height: 95vh;
    overflow: auto;
    padding: 2.5rem 1.5rem 1.5rem;
    background: #17152f;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    text-align: center;
}

.certificate-modal-content h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.certificate-modal-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    border: 0;
    background: transparent;
    color: var(--text-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--primary-color);
}

.social-links {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.8rem;
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: var(--text-white);
    background: var(--primary-color);
}

/* --- MOBILE RESPONSIVE --- */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 2.5rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}