/*
 * PORTFOLIO STYLESHEET
 * --------------------------------------------------
 * Organized by:
 * 1. Global typography
 * 2. Header & navigation
 * 3. General / About
 * 4. Timeline
 * 5. Projects
 * 6. The Closed Eyes
 * 7. Responsive rules
 * 8. Social
 * 9. Background decoration
 * --------------------------------------------------
 */

/* =========================================
   GLOBAL TYPOGRAPHY
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.heading-box,
.title-box-gray,
.game-title {
    font-family: 'Space Grotesk', sans-serif;
}

.page-monospace {
    font-family: 'JetBrains Mono', monospace;
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background-color: rgba(23, 25, 28, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(220, 53, 69, 0.25);

    transform: translateY(0);
    transition: transform 0.3s ease;
}

header.navbar-hidden {
    transform: translateY(-100%);
}

main {
    padding-top: 100px;
}

.navbar .nav-link {
    color: #f5f5f5;
}

.navbar .nav-link:hover {
    color: #dc3545;
}

.navbar .nav-link.active {
    color: #ffffff;
}
.navbar-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid #dc3545;
}
.navbar .navbar-brand {
    color: #f5f5f5;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.scroll-reveal {
    opacity: 0;
    filter: blur(8px) grayscale(1);
    transform: translateY(25px) scale(0.99);

    transition:
        opacity 0.7s ease,
        filter 0.7s ease,
        transform 0.7s ease;
}

.scroll-reveal.show {
    opacity: 1;
    filter: blur(0) grayscale(0);
    transform: translateY(0) scale(1);
}
/* =========================================
   GENERAL / ABOUT
   ========================================= */

.col-md-4 .card {
    color: #f5f5f5;
    text-decoration: none;
}

.foto-about {
    height: 250px;
}

.foto-about-academic-consistency {
    width: 100%;
    max-width: 500px;
    height: 250px;
}

.poster-lomba {
    height: 350px;
}

.kotak-home {
    display: flex;
    flex-direction: column;
    background-color: rgba(108, 117, 125, 0.25);
    max-width: 500px;   /* Atur angka ini (misal: 400px atau 500px) sesuai ukuran kecil yang Anda inginkan */
    margin: 0 auto;
}

.kotak-home img {
    width: 100%;
    height: auto;
    display: block;
}

.kotak-home .border {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important; /* Menghilangkan jarak putih di sekeliling gambar */

}

.kolom-teks-tengah {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.photo-caption {
    display: block;
    width: 100%;

    margin: 0;
    padding: 6px 10px;

    color: rgba(245, 245, 245, 0.55);
    font-size: 0.7rem;
    text-align: left;
}
/* =========================================
   TIMELINE
   ========================================= */

.timeline {
    position: relative;
    max-width: 900px;
    padding: 20px 0;
}

.timeline-track {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 3px;

    background-color: #dc3545;

    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;

    position: relative;
    min-height: 150px;
}

.timeline-year {
    text-align: right;
    padding-right: 25px;
}

.timeline-year span {
    display: inline-block;

    background-color: rgba(108, 117, 125, 0.25);

    padding: 5px 15px;
}

.timeline-marker {
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 2;
}

.timeline-dot {
    width: 20px;
    height: 20px;

    border-radius: 50%;

    background-color: #dc3545;
    border: 4px solid #212529;
}

.timeline-content {
    background-color: rgba(108, 117, 125, 0.25);

    padding: 15px;
    margin-left: 15px;

    text-align: center;
}

.timeline-content h5 {
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* =========================================
   PROJECTS - GENERAL
   ========================================= */

.projects-header {
    max-width: 900px;

    margin-left: auto;
    margin-right: auto;
}

.projects-title,
.projects-description {
    display: inline-block;
}

.projects-list {
    max-width: 1100px;

    margin-left: auto;
    margin-right: auto;
}

.project-item {
    position: relative;
}

.project-marker {
    min-height: 300px;
}

.project-number {
    width: 50px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 2;

    background-color: #212529;
    color: #dc3545;

    border-radius: 50%;

    font-size: 1.5rem;
    font-weight: bold;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.project-line {
    width: 25px;
    min-height: 250px;

    flex-grow: 1;

    background-color: #212529;
}

.project-image {
    min-height: 300px;

    background-color: rgba(108, 117, 125, 0.25);
}

.project-image-content {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.project-placeholder {
    color: #212529;
}

.project-tag {
    display: inline-block;

    background-color: rgba(108, 117, 125, 0.25);

    padding: 0.25rem 0.5rem;

    color: rgb(225, 125, 125);

    font-size: 0.875rem;
    font-weight: bold;
}

/* =========================================
   PROJECT INFORMATION
   ========================================= */

.project-info-label {
    color: #f5f5f5;
}

.project-info-text {
    padding: 0.25rem 0.5rem;

    color: rgb(225, 125, 125);

    font-size: 0.875rem;
    font-weight: bold;
}

.project-info-box {
    display: flex;

    max-width: 350px;

    background-color: rgba(108, 117, 125, 0.5);

    color: #212529;
}

.project-info-accent {
    width: 8px;
    flex-shrink: 0;

    background-color: #212529;
}

/* =========================================
   THE CLOSED EYES
   ========================================= */

/* ---------- Typography & Title ---------- */

.title-box-gray {
    display: inline-block;

    background-color: rgba(108, 117, 125, 0.5);

    padding: 0.2rem 2.5rem;

    font-weight: bold;
    font-size: 1.25rem;
    letter-spacing: 3px;
}

.game-title {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 4px;
}

.subtitle-box-inverted {
    display: inline-block;

    background-color: #f5f5f5;
    color: #212529;

    padding: 2px 10px;

    font-size: 0.85rem;
    font-weight: bold;
}

.tracking-wide {
    letter-spacing: 2px;
}

.heading-box {
    display: inline-block;

    background-color: rgba(108, 117, 125, 0.5);

    padding: 0.5rem 3rem;

    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.content-box-gray {
    max-width: 900px;

    background-color: rgba(108, 117, 125, 0.25);

    padding: 2.5rem;
}

/* ---------- Dividers ---------- */

.divider-thick {
    width: 100%;
    height: 40px;

    display: flex;
    align-items: center;

    position: relative;

    background-color: #111;
}

.divider-thick::after {
    content: "";

    width: 100%;
    height: 8px;

    background-color: #dc3545;
}

.divider-barbell {
    width: 100%;
    height: 8px;

    position: relative;

    margin: 5rem 0;

    background-color: #dc3545;

    border-radius: 4px;
}

.divider-barbell::before,
.divider-barbell::after {
    content: "";

    width: 35px;
    height: 35px;

    position: absolute;
    top: 50%;

    background-color: #111;

    border-radius: 50%;

    transform: translateY(-50%);
}

.divider-barbell::before {
    left: -10px;
}

.divider-barbell::after {
    right: -10px;
}

/* ---------- Flowchart ---------- */

.flowchart-wrapper {
    max-width: 700px;
}

.flowchart-pill {
    display: inline-block;

    min-width: 180px;

    background-color: rgba(108, 117, 125, 0.5);

    padding: 12px 30px;

    border-radius: 50px;

    font-weight: bold;

    text-align: center;
}

.flowchart-line-vertical,
.flowchart-line-vertical-drop {
    width: 1px;
    height: 35px;

    background-color: #f5f5f5;
}

.flowchart-line-vertical {
    margin: 0 auto;
}

.flowchart-line-horizontal {
    width: 60%;
    height: 35px;

    position: relative;
    margin: 0 auto;

    background-color: transparent;
}

.flowchart-line-horizontal::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background-color: #f5f5f5;
}

.flowchart-branches .flowchart-branch {
    width: 45%;
}

/* ---------- Info Cards & Placeholders ---------- */

.info-card {
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background-color: rgba(108, 117, 125, 0.25);

    padding: 1.5rem 1rem;

    text-align: center;
}

.info-card h5 {
    font-weight: bold;
    font-size: 1rem;
}

.info-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.placeholder-box {
    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(108, 117, 125, 0.25);

    color: #f5f5f5;

    font-size: 1.2rem;
    font-weight: bold;
}

.placeholder-box-tall {
    min-height: 400px;
}

/* =========================================
   RESPONSIVE - MAX WIDTH 767.98px
   ========================================= */

@media (max-width: 767.98px) {

    /* ---------- Timeline ---------- */

    .timeline {
        padding-left: 20px;
    }

    .timeline-track {
        left: 20px;
        top: 20px;
        bottom: 20px;
    }

    .timeline-item {
        grid-template-columns: 40px 1fr;
        min-height: 150px;
    }

    .timeline-year {
        grid-column: 2;
        grid-row: 1;

        padding: 0 0 8px 15px;

        text-align: left;
    }

    .timeline-marker {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .timeline-content {
        grid-column: 2;
        grid-row: 2;

        margin-left: 15px;
    }

    /* ---------- Projects ---------- */

    .project-marker {
        min-height: 300px;
    }

    .project-number {
        width: 45px;
        height: 45px;

        font-size: 1.25rem;
    }

    .project-line {
        width: 20px;
        min-height: 250px;
    }

    .project-image {
        min-height: 250px;
    }

    .project-info-box {
        max-width: 100%;
    }

    /* ---------- The Closed Eyes ---------- */

    .flowchart-line-horizontal {
        width: 80%;
    }

    .game-title {
        font-size: 2rem;
    }
}

/* =========================================
   STYLE KHUSUS HALAMAN: SOCIAL
   ========================================= */

/* Kotak Terminal Status */
.social-terminal {
    background-color: rgba(108, 117, 125, 0.25);
    padding: 2rem;
    max-width: 550px;
}

/* Area Wrapper Zig-zag */
.social-wrapper {
    max-width: 800px;
}

/* Kartu Detail Sosial Media */
.social-card {
    background-color: rgba(108, 117, 125, 0.25);
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 450px;
    z-index: 10;
}

/* Angka Bulat di sebelah Kartu */
.social-number {
    width: 55px;
    height: 55px;
    background-color: #212529;
    color: #dc3545;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Responsive: Memperbaiki tata letak di Layar HP (Mobile) */
@media (max-width: 767.98px) {
    /* Membuat item sebelah kanan berubah orientasi agar seragam rata kiri di HP */
    .social-item-right {
        flex-direction: row-reverse;
        justify-content: flex-start !important;
    }

    /* Memindahkan margin angka bulat ketika dibalik */
    .social-item-right .social-number {
        margin-left: 0 !important;
        margin-right: 1rem !important;
    }

    .social-item-left .social-number {
        margin-right: 1rem !important;
    }

    .social-card {
        padding: 1.2rem;
    }
}

.background-web {
    position: fixed;

    top: 50%;
    left: 50%;

    width: 300px;

    transform: translate(-50%, -50%);

    opacity: 0.02;
    pointer-events: none;

    z-index: -1;
}

.background-web img {
    display: block;

    width: 100%;
    height: auto;
}
.social-wrapper {
    position: relative;
}
.social-wrapper::before,
.social-wrapper::after {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;

    width: 3px;

    background-color: #dc3545;
}

.social-wrapper::before {
    left: -30px;
}

.social-wrapper::after {
    right: -30px;
}
