:root {
    --primary-bg: #222;
    --primary-text: #fff;
    --accent: #ffcc00;
    --accent-hover: #e6b800;
    --light-bg: #f8f9fa;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    background: var(--light-bg);
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: var(--primary-bg);
    color: var(--primary-text);
    padding: 15px;
    text-align: center;
}

nav a {
    color: var(--primary-text);
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

/* Kontak Section */
.contact-section {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.8s ease-in-out;
    text-align: center;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.contact-section p {
    margin-bottom: 20px;
    color: #555;
}

/* Form */
.contact-section form input,
.contact-section form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-section form input:focus,
.contact-section form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

.contact-section form button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-section form button:hover,
.contact-section form button:focus {
    background: var(--accent-hover);
    outline: none;
}

/* Social Links */
.social-links {
    text-align: center;
    margin-top: 20px;
}

.social-links h3 {
    margin-bottom: 15px;
    color: #333;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    min-width: 140px; /* Semua tombol sama lebar */
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.05);
}

/* Warna tombol sosial */
.social-links a.wa { background: #25D366; }
.social-links a.wa:hover { background: #1ebe5d; }

.social-links a.ig { background: #E1306C; }
.social-links a.ig:hover { background: #c82361; }

.social-links a.fb { background: #1877F2; }
.social-links a.fb:hover { background: #145dbf; }

.social-links a.x {
    background: #000;
    font-size: 20px; /* Perbesar X agar terlihat jelas */
    padding: 10px 20px; /* Tambah padding biar seimbang */
}
.social-links a.x:hover { background: #333; }

.social-links a.dc { background: #5865F2; }
.social-links a.dc:hover { background: #4a55d4; }

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: var(--primary-bg);
    color: var(--primary-text);
    margin-top: 50px;
}

/* Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsif */
@media (max-width: 768px) {
    .contact-section {
        margin: 20px;
        padding: 20px;
    }
    nav a {
        display: inline-block;
        margin: 8px;
    }
    .social-links a {
        width: 100%;
        max-width: 250px;
    }
}
