/* Font Poppins Lokal */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; /* Tambah transisi untuk konsistensi */
}

/* Atur smooth scrolling untuk seluruh halaman */
html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    padding: 15px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.navbar-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.navbar-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block; /* Pastikan link terlihat sebagai blok inline */
    white-space: nowrap; /* Hindari wrap teks link */
}

.navbar-link:hover {
    color: #ff4d4d;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #1e1e1e, #121212);
    padding: 20px;
    padding-top: 80px; /* Adjust for navbar height */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    gap: 40px;
    width: 100%;
}

/* Chat Column (Kiri) */
.chat-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bubble {
    background-color: #1e1e1e;
    padding: 12px 18px;
    border-radius: 20px 20px 20px 0;
    max-width: 300px;
    font-size: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-left: 2px solid #ff4d4d;
}

/* About Column (Kanan) */
.about-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    align-items: flex-start;
}

.about-column h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.about-column h3 {
    font-size: 24px;
    font-weight: 500;
    color: #cccccc;
    margin: 0;
}

.about-column p {
    font-size: 18px;
    max-width: 500px;
    color: #cccccc;
}

.highlight {
    color: #ff4d4d;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: #ff4d4d;
    color: #ffffff;
}

/* Skills Section */
/* .skills-section {
    padding: 20px 20px;
    background-color: #121212;
    text-align: center;
    margin-top: -100px;
}

.skills-section h2 {
    font-size: 36px;
    margin-top: 60px;
    margin-bottom: 40px;
    color: #ff4d4d;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.skill-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 16px;
    color: #cccccc;
} */

/* Portfolio Section */
.portfolio {
    padding: 60px 20px;
    background-color: #121212;
    text-align: center;
}

.portfolio h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #ff4d4d;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.portfolio-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-card p {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #121212, #121212);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff4d4d;
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #cccccc;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    background: rgba(30, 30, 30, 0.7);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 6px 15px rgba(255, 77, 77, 0.3);
    outline: none;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #ff4d4d;
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.contact-card i {
    color: white;
    font-size: 20px;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

/* Documentation Section (Academy) */
.documentation {
    padding: 60px 40px;
    background-color: #121212;
    min-height: 100vh;
    padding-top: 80px; /* Adjust for navbar height */
}

.doc-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

.toc-toggle-button {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.toc-toggle-button:hover {
    color: #ff4d4d;
}

.toc-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);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.toc-modal.show {
    display: flex;
    opacity: 1;
}

.toc-modal-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.toc-modal.show .toc-modal-content {
    transform: scale(1);
}

.toc-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.toc-close:hover {
    color: #ff4d4d;
}

.doc-sidebar {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    min-width: 250px;
    max-width: 300px;
    height: fit-content;
}

.doc-sidebar h3 {
    font-size: 20px;
    color: #ff4d4d;
    margin-bottom: 20px;
}

.doc-sidebar ul {
    list-style: none;
    padding: 0;
}

.doc-sidebar ul li {
    margin-bottom: 15px;
}

.doc-sidebar ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

.doc-sidebar ul li a:hover {
    color: #ff4d4d;
}

.doc-sidebar ul ul {
    margin-left: 20px;
    margin-top: 10px;
}

.doc-content {
    flex: 4;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.doc-content h1 {
    font-size: 32px;
    color: #ff4d4d;
    margin-bottom: 25px;
}

.doc-content h2 {
    font-size: 24px;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
}

.doc-content p {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.8;
}

.doc-content ol {
    padding-left: 20px;
    color: #cccccc;
    margin-bottom: 20px;
}

.doc-content pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 15px;
}

.doc-content code {
    font-family: 'Courier New', Courier, monospace;
    color: #ff4d4d;
}

/* Responsivitas */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 70px;
        margin-bottom: 100px;
    }
    .chat-column {
        align-items: center;
    }
    .bubble {
        max-width: 80%;
    }
    .about-column {
        align-items: justify;
    }
    .about-judul {
        display: none;
    }
    .cta-button {
        padding: 6px 15px;
    }
    #cta-button-port {
        display: none;
    }
    .skills-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .skill-card:hover,
    .portfolio-card:hover,
    .contact-card:hover {
        transform: translateY(0);
    }
    .contact-container {
        flex-direction: column;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }
    .doc-container {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        box-sizing: border-box;
    }
    .toc-toggle-button {
        display: block;
    }
    .desktop-sidebar {
        display: none;
    }
    .doc-content {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .navbar-container {
        justify-content: flex-start;
        gap: 20px;
        flex-wrap: nowrap; /* Ubah ke nowrap untuk mencegah wrap yang mungkin menyebabkan hilang */
    }
    .navbar-links {
        gap: 20px;
    }
    .navbar-link {
        font-size: 16px;
    }
    .academy-page .navbar-container {
        justify-content: space-between;
    }
    .academy-page .navbar-links {
        justify-content: flex-end;
        gap: 20px; /* Kembalikan gap untuk ukuran lebih besar */
        margin-right: 0; /* Hilangkan margin kanan ekstra */
    }
    .hero {
        padding: 80px 10px 20px;
    }
    .skills-section {
        padding: 20px 10px;
    }
    .portfolio {
        padding: 60px 10px;
    }
    .contact-section {
        padding: 60px 10px;
    }
    .documentation {
        padding: 80px 10px 60px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 10px;
    }
    .navbar-container {
        gap: 10px;
    }
    .navbar-links {
        gap: 10px;
    }
    .navbar-link {
        font-size: 14px;
    }
    .toc-toggle-button {
        font-size: 16px;
    }
    .doc-sidebar {
        padding: 20px;
    }
    .doc-sidebar ul li {
        margin-bottom: 10px;
    }
    .doc-sidebar ul ul {
        margin-left: 10px;
    }
    .doc-sidebar ul li a {
        font-size: 14px;
    }
    .academy-page .navbar-links {
        gap: 15px; /* Sesuaikan gap untuk menghindari potong */
        margin-right: 0;
    }
}