:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
}

@page {
    size: A4;
    margin: 2cm;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.page-break {
    page-break-before: always;
}

/* Cover Page Styles */
.cover-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--info));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cover-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920&h=1080&fit=crop&crop=center&auto=format&q=80') center/cover;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.cover-illustration {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cover-illustration img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.cover-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    z-index: 2;
    position: relative;
    letter-spacing: -1px;
}

.cover-subtitle {
    font-size: 28px;
    margin-bottom: 15px;
    opacity: 0.95;
    z-index: 2;
    position: relative;
    font-weight: 300;
}

.cover-description {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 50px;
    z-index: 2;
    position: relative;
    line-height: 1.8;
}

.cover-version {
    position: absolute;
    bottom: 60px;
    font-size: 18px;
    opacity: 0.8;
    z-index: 2;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Table of Contents */
.toc-page {
    padding: 60px 40px;
    background: var(--light);
}

.toc-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
}

.toc-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--info));
    border-radius: 2px;
}

.toc-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.toc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-bottom: 15px;
    background: var(--white);
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.toc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: var(--info);
}

.toc-number {
    font-weight: 700;
    color: var(--primary);
    margin-right: 20px;
    font-size: 18px;
    min-width: 30px;
}

.toc-text {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
}

.toc-page-num {
    font-weight: 700;
    color: var(--gray);
    background: var(--light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 16px;
}

/* List of Figures Styles */
.lof-page {
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fff9, var(--light));
}

.lof-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--success);
    position: relative;
}

.lof-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--success), var(--teal));
    border-radius: 2px;
}

.lof-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.lof-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 25px;
    margin-bottom: 15px;
    background: var(--white);
    border-radius: 12px;
    border-left: 5px solid var(--success);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.lof-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: var(--teal);
}

.lof-number {
    font-weight: 700;
    color: var(--success);
    margin-right: 20px;
    min-width: 100px;
    font-size: 16px;
}

.lof-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
}

.lof-page-num {
    font-weight: 700;
    color: var(--gray);
    background: var(--light);
    padding: 5px 12px;
    border-radius: 20px;
    margin-left: 20px;
    font-size: 14px;
}

.lof-description {
    font-size: 14px;
    color: var(--gray);
    font-style: italic;
    margin-top: 8px;
    line-height: 1.4;
}

/* Content Pages */
.content-page {
    padding: 60px 0px;
}

/* Untuk md dan ke atas (768px ke atas) */
@media (min-width: 768px) {
    .content-page {
        padding: 60px 40px;
    }
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 2px;
}

.feature-section {
    margin-bottom: 60px;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,123,255,0.1);
    position: relative;
    overflow: hidden;
}

.feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--info), var(--teal));
}

.feature-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.feature-number {
    background: linear-gradient(135deg, var(--primary), var(--info));
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.screenshot-container {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: var(--white);
    position: relative;
}

.screenshot-placeholder {
    width: 100%;
    background: linear-gradient(135deg, var(--light), #e9ecef);
    border: 3px solid var(--primary);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.screenshot-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23007bff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2317a2b8" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%2328a745" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.screenshot-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

/* .screenshot-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.2);
    filter: brightness(1.05);
} */

.screenshot-image.loaded {
    opacity: 1;
}

.figure-caption {
    background: linear-gradient(135deg, var(--primary), var(--info));
    color: var(--white);
    padding: 15px 20px;
    margin-top: 0;
    border-radius: 0 0 12px 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

.feature-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--dark);
    text-align: justify;
}

.feature-description p {
    margin-bottom: 20px;
}

.feature-description ol, .feature-description ul {
    margin: 20px 0;
    padding-left: 30px;
}

.feature-description li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(23,162,184,0.1));
    border-left: 5px solid var(--info);
    padding: 25px;
    margin: 30px 0;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 15px rgba(23,162,184,0.1);
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: url('https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/icons/info.svg') center/contain no-repeat;
    opacity: 0.3;
}

.highlight-box .title {
    font-weight: 700;
    color: var(--info);
    margin-bottom: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.highlight-box .title::before {
    content: '💡';
    margin-right: 10px;
    font-size: 20px;
}

/* Illustration Images */
.illustration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.illustration-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

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

.illustration-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.illustration-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.2);
    filter: brightness(1.05);
}

.illustration-item img.loaded {
    opacity: 1;
}

.illustration-caption {
    padding: 15px;
    font-size: 14px;
    color: var(--gray);
    text-align: center;
    background: var(--light);
}

/* Process Steps */
.process-steps {
    margin: 30px 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
    border-left: 4px solid var(--success);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-2px);
}

.step-number {
    background: linear-gradient(135deg, var(--success), var(--teal));
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
}

/* Print Button */
.print-button {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--info));
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.print-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,123,255,0.4);
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.summary-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary);
    transition: transform 0.3s ease;
}

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

.summary-card:nth-child(2) { border-left-color: var(--success); }
.summary-card:nth-child(3) { border-left-color: var(--warning); }
.summary-card:nth-child(4) { border-left-color: var(--danger); }
.summary-card:nth-child(5) { border-left-color: var(--purple); }
.summary-card:nth-child(6) { border-left-color: var(--teal); }

.summary-card h4 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.summary-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.5;
    margin: 0;
}

/* Statistics */
.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(23,162,184,0.1));
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
}

/* Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--info);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-item strong {
    color: var(--info);
    display: block;
    margin-bottom: 5px;
}

/* Modal Styles untuk Preview Gambar */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: imageZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    max-width: 80%;
    animation: captionFadeIn 0.6s ease 0.2s both;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #ff6b6b;
}

/* Overlay icon untuk menunjukkan gambar bisa diklik */
.screenshot-container::after,
.illustration-item::after {
    content: '🔍';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
}

.screenshot-container:hover::after,
.illustration-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Placeholder untuk gambar yang gagal load */
.image-placeholder {
    margin: 10px 0;
    border-radius: 12px;
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes captionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 10px;
    }
    
    .modal-image {
        max-height: 70vh;
    }
    
    .close-modal {
        font-size: 35px;
        top: 15px;
        right: 25px;
    }
    
    .modal-caption {
        font-size: 14px;
        max-width: 90%;
    }
    
    .illustration-grid {
        grid-template-columns: 1fr !important;
    }
    
    .summary-grid {
        grid-template-columns: 1fr !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-container {
        flex-direction: column !important;
        gap: 20px;
    }
    
    .print-button {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 20px auto !important;
        display: block !important;
    }
    
    .cover-title {
        font-size: 36px;
    }
    
    .cover-subtitle {
        font-size: 20px;
    }
    
    .cover-description {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .feature-title {
        font-size: 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .toc-page,
    .lof-page,
    .content-page {
        padding: 40px 20px;
    }
}

/* Print Styles */
@media print {
    .cover-page {
        height: 100vh;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    .no-print,
    .print-button,
    .image-modal {
        display: none !important;
    }
    
    .screenshot-placeholder {
        border: 2px solid var(--dark) !important;
        background: var(--light) !important;
    }
    
    .screenshot-container::after,
    .illustration-item::after {
        display: none !important;
    }
    
    .feature-section {
        break-inside: avoid;
    }
    
    .illustration-grid {
        break-inside: avoid;
    }
    
    .process-steps {
        break-inside: avoid;
    }
    
    body {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .figure-caption {
        background: #f8f9fa !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
}

/* Enhanced Table of Contents Styles */
.toc-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;

}

.toc-item-main {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.toc-item-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #007bff, #17a2b8);
    transition: width 0.3s ease;
}

.toc-item-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
}

.toc-item-main:hover::before {
    width: 8px;
}

.toc-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(23, 162, 184, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toc-header:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(23, 162, 184, 0.1) 100%);
}

.toc-icon {
    font-size: 24px;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.toc-item-main:hover .toc-icon {
    transform: scale(1.2) rotate(5deg);
}

.toc-sublist {
    padding: 0;
    background: #ffffff;
}

.toc-subitem {
    display: flex;
    align-items: center;
    padding: 18px 25px 18px 70px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.toc-subitem::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #007bff, #17a2b8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toc-subitem:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.03) 0%, rgba(23, 162, 184, 0.03) 100%);
    padding-left: 75px;
}

.toc-subitem:hover::before {
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.toc-subitem:last-child {
    border-bottom: none;
}

.toc-subnumber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 32px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(23, 162, 184, 0.1));
    color: #007bff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-right: 15px;
    border: 1px solid rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.toc-subitem:hover .toc-subnumber {
    background: linear-gradient(135deg, #007bff, #17a2b8);
    color: white;
    transform: scale(1.05);
}

.toc-subtext {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.toc-subitem:hover .toc-subtext {
    color: #007bff;
    font-weight: 600;
}

.toc-subdesc {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    background: rgba(108, 117, 125, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toc-subitem:hover .toc-subdesc {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: scale(1.05);
}

/* Animation for page load */
.toc-item-main {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.toc-item-main:nth-child(1) { animation-delay: 0.1s; }
.toc-item-main:nth-child(2) { animation-delay: 0.2s; }
.toc-item-main:nth-child(3) { animation-delay: 0.3s; }
.toc-item-main:nth-child(4) { animation-delay: 0.4s; }
.toc-item-main:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Responsive Styles */
@media (max-width: 480px) {
    .cover-title {
        font-size: 28px;
    }
    
    .cover-subtitle {
        font-size: 18px;
    }
    
    .cover-description {
        font-size: 14px;
    }
    
    .toc-title,
    .lof-title,
    .section-title {
        font-size: 28px;
    }
    
    .feature-section {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .screenshot-container::after,
    .illustration-item::after {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light: #2d2d2d;
        --dark: #ffffff;
        --gray: #b0b0b0;
        --gray-dark: #e0e0e0;
    }
    
    body {
        background: var(--white);
        color: var(--dark);
    }
    
    .feature-section {
        background: var(--light);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .toc-item,
    .lof-item,
    .summary-card,
    .contact-item {
        background: var(--light);
        color: var(--dark);
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.screenshot-image:focus,
.illustration-item img:focus,
.toc-item:focus,
.print-button:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .screenshot-container,
    .illustration-item,
    .feature-section {
        border: 2px solid var(--dark);
    }
    
    .highlight-box {
        border: 2px solid var(--info);
    }
    
    .step-item {
        border: 2px solid var(--success);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cover-page::before {
        animation: none;
    }
}

/* Print optimization */
@media print {
    @page {
        margin: 1.5cm;
        size: A4;
    }
    
    .cover-page {
        page-break-after: always;
    }
    
    .toc-page,
    .lof-page {
        page-break-after: always;
    }
    
    .feature-section {
        page-break-inside: avoid;
        margin-bottom: 40px;
    }
    
    .screenshot-container,
    .illustration-grid {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .process-steps {
        page-break-inside: avoid;
    }
    
    .step-item {
        page-break-inside: avoid;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Performance optimizations */
.screenshot-image,
.illustration-item img {
    will-change: transform, opacity;
}

.modal-content {
    will-change: transform, opacity;
}

/* End of CSS */
/* Enhanced 3D Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 123, 255, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transform: perspective(100px) rotateX(15deg) rotateY(-5deg);
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.scroll-to-top:hover::before {
    animation: shine 0.8s ease-in-out;
    opacity: 1;
}

.scroll-to-top:hover {
    transform: perspective(100px) rotateX(0deg) rotateY(0deg) scale(1.1);
    box-shadow: 
        0 15px 40px rgba(0, 123, 255, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 3px 6px rgba(255, 255, 255, 0.4),
        inset 0 -3px 6px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #0056b3 0%, #004085 50%, #002752 100%);
}

.scroll-to-top:active {
    transform: perspective(100px) rotateX(5deg) rotateY(2deg) scale(0.95);
    transition: all 0.1s ease;
}

.scroll-to-top-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.scroll-to-top:hover .scroll-to-top-icon {
    transform: translate(-50%, -50%) translateY(-2px);
    font-size: 26px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Progress Ring */
.scroll-progress-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #007bff 0deg,
        #007bff var(--progress, 0deg),
        rgba(255, 255, 255, 0.2) var(--progress, 0deg),
        rgba(255, 255, 255, 0.2) 360deg
    );
    padding: 3px;
    box-sizing: border-box;
    transition: --progress 0.1s ease;
}

.scroll-progress-ring::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: perspective(100px) rotateX(15deg) rotateY(-5deg) translateY(0px);
    }
    50% {
        transform: perspective(100px) rotateX(15deg) rotateY(-5deg) translateY(-5px);
    }
}

/* Shine Effect */
@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Pulse Effect when appearing */
@keyframes pulseIn {
    0% {
        transform: perspective(100px) rotateX(15deg) rotateY(-5deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: perspective(100px) rotateX(15deg) rotateY(-5deg) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: perspective(100px) rotateX(15deg) rotateY(-5deg) scale(1);
        opacity: 1;
    }
}

.scroll-to-top.show {
    display: block;
    animation: pulseIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Smooth Scroll Animation */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
    border-radius: 10px;
    border: 2px solid #f8f9fa;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0056b3 0%, #004085 100%);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Scroll Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Parallax Effect */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top-icon {
        font-size: 20px;
    }
    
 /* Mobile Responsive - lanjutan */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top-icon {
        font-size: 20px;
    }
    
    .scroll-to-top:hover .scroll-to-top-icon {
        font-size: 22px;
    }
    
    .scroll-progress-ring {
        width: 56px;
        height: 56px;
        top: -3px;
        left: -3px;
    }
}

/* Additional Scroll Effects */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #17a2b8 50%, #28a745 100%);
    z-index: 9998;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* Scroll Snap for smooth section navigation */
.content-page {
    scroll-snap-type: y mandatory;
}

.feature-section {
    scroll-snap-align: start;
}

/* Enhanced Animation Delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }

/* Glow effect on scroll */
.glow-on-scroll {
    transition: all 0.3s ease;
}

.glow-on-scroll.glowing {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    transform: scale(1.02);
}
}