/* General Styling */
:root {
    --bg-color: #121212;
    --primary-color: #1e1e1e;
    --secondary-color: #2a2a2a;
    --text-color: #e0e0e0;
    --accent-color: #03dac6;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    line-height: 1.6;
}

.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h1, h2 {
    color: var(--accent-color);
}

h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* 1. Portfolio / Hero Section */
#portfolio {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    margin-bottom: 20px;
}

#profile-name {
    font-size: 3rem;
    margin: 10px 0;
}

#profile-about {
    font-weight: 300; /* Font tipis sesuai permintaan */
    font-size: 1.2rem;
    color: #a0a0a0;
}

.typing-text {
    font-size: 1.5rem;
    margin: 20px 0;
}

.typing {
    color: var(--accent-color);
    font-weight: bold;
    border-right: 2px solid var(--accent-color);
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.social-icons {
    margin-top: 25px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 2rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* 2 & 4. Card Container (Snippets & Projects) */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    text-align: left;
}

.card {
    background-color: var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: #c0c0c0;
}

.card-category {
    display: inline-block;
    background-color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.card-buttons {
    margin-top: 20px;
}

.btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn:hover {
    opacity: 0.9;
}

.project-card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* 3. Script Share Table */
#script-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

#script-table th, #script-table td {
    padding: 15px;
    border-bottom: 1px solid var(--secondary-color);
}

#script-table th {
    background-color: var(--primary-color);
}

#script-table tr:hover {
    background-color: var(--secondary-color);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: var(--primary-color);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--secondary-color);
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-color);
}

pre {
    background-color: var(--bg-color);
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--primary-color);
    margin-top: 40px;
}