/* ===== Base Styles ===== */
:root {
    --primary-color: #4a6fa5;
    --primary-light: #6a8cc9;
    --primary-dark: #345284;
    --accent-color: #ff9800;
    --accent-light: #ffb74d;
    --accent-dark: #f57c00;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Documentation Content ===== */
.documentation {
    padding: 3rem 0;
}

.doc-header {
    text-align: center;
    margin-bottom: 3rem;
}

.doc-header h1 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.doc-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.doc-section {
    margin-bottom: 4rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.doc-section h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.doc-section h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.doc-section p, .doc-section ul {
    margin-bottom: 1rem;
}

.doc-section ul {
    padding-left: 1.5rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

.workflow {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    background-color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.workflow-step h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--primary-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    background-color: var(--primary-light);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.formula {
    background-color: var(--gray-200);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.example {
    background-color: var(--primary-light);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.example strong {
    color: var(--accent-light);
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}

th {
    background-color: var(--primary-light);
    color: white;
}

tr:nth-child(even) {
    background-color: var(--gray-100);
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-image {
    height: 200px;
    background-color: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* ⬆️ memposisikan gambar ke atas */
}

.team-info {
    padding: 1.5rem;
}

.team-info h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.team-info p {
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.team-info .email {
    color: var(--primary-color);
    font-weight: 500;
    word-break: break-all;  
    white-space: normal;   
    display: block;         
}

/* Reference section */
.reference-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.reference-link {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.reference-link:hover {
    background-color: var(--primary-light);
    color: white;
}

.reference-link:hover a {
    color: white;
}

.link-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    nav li {
        margin-left: 0;
        margin-right: 1rem;
    }
    
    .doc-header h1 {
        font-size: 2rem;
    }
    
    .workflow {
        flex-direction: column;
    }
    
    .workflow-step {
        min-width: unset;
    }
}
