@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,800&display=swap');

/* -------------------- RESET & GLOBAL -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #1e1e2f;
    background: 
        repeating-linear-gradient(90deg, 
            rgba(0,0,0,0.02) 0px, 
            rgba(0,0,0,0.02) 2px, 
            transparent 2px, 
            transparent 40px),
        repeating-linear-gradient(0deg, 
            rgba(0,0,0,0.03) 0px, 
            rgba(0,0,0,0.03) 1px, 
            transparent 1px, 
            transparent 16px),
        linear-gradient(145deg, #f8f9fa 0%, #e8ecf1 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Pastikan semua elemen tebal */
strong, b {
    font-weight: 700 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

p {
    font-weight: 400;
}

/* -------------------- HEADER (dengan transisi) -------------------- */
.header {
    background: #ffffff;
    border-bottom: 4px solid #232368;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1rem 1.5rem;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.3s ease;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    cursor: pointer;
    user-select: none;
}

.logo-icon {
    font-size: 2.4rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -5px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-icon:active {
    transform: scale(0.85);
}

.logo-orange {
    color: #e4640c;
    transition: color 0.3s ease;
}
.logo-blue {
    color: #232368;
    transition: color 0.3s ease;
}

.brand-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e1e2f;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    margin: 0;
}
.brand-text p {
    font-size: 0.85rem;
    font-weight: 400;
    color: #5a5a7a;
    margin-top: -2px;
    transition: color 0.3s ease;
}
.brand-text p strong {
    font-weight: 700;
}

.header-stripe {
    display: flex;
    gap: 6px;
    align-items: center;
}
.header-stripe span {
    display: block;
    width: 32px;
    height: 6px;
    border-radius: 4px;
    transition: background 0.4s ease;
}
.stripe-orange { background: #e4640c; }
.stripe-blue { background: #232368; }

/* ============================================================ */
/*                    MODE INVERT 1                              */
/* ============================================================ */
.header.invert-1 {
    background: #232368;
    border-bottom-color: #e4640c;
}

.header.invert-1 .logo-blue {
    color: #ffffff;
}
.header.invert-1 .logo-orange {
    color: #e4640c;
}

.header.invert-1 .brand-text h1 {
    color: #ffffff;
}
.header.invert-1 .brand-text p {
    color: rgba(255, 255, 255, 0.85);
}
.header.invert-1 .brand-text p strong {
    color: #ffffff;
}

.header.invert-1 .stripe-blue {
    background: #ffffff;
}
.header.invert-1 .stripe-orange {
    background: #e4640c;
}

/* ============================================================ */
/*                    MODE INVERT 2                              */
/* ============================================================ */
.header.invert-2 {
    background: #e4640c;
    border-bottom-color: #232368;
}

.header.invert-2 .logo-blue {
    color: #ffffff;
}
.header.invert-2 .logo-orange {
    color: #232368;
}

.header.invert-2 .brand-text h1 {
    color: #ffffff;
}
.header.invert-2 .brand-text p {
    color: #ffffff;
}
.header.invert-2 .brand-text p strong {
    color: #ffffff;
}

.header.invert-2 .stripe-blue {
    background: #ffffff;
}
.header.invert-2 .stripe-orange {
    background: #232368;
}

/* -------------------- GALERI GRID -------------------- */
.gallery {
    flex: 1;
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
}

/* -------------------- CARD LOKOMOTIF -------------------- */
.card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f5;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #eaeef2;
    display: block;
    transition: opacity 0.3s;
}

.card-body {
    padding: 1.2rem 1.2rem 1.4rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e1e2f;
    margin-bottom: 0.2rem;
}

.card-desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: #5a5a7a;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-detail {
    display: inline-block;
    background: #232368;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-detail:hover {
    background: #1a1a4d;
    transform: scale(0.97);
}

/* -------------------- FOOTER -------------------- */
.footer {
    background: #ffffff;
    border-top: 2px solid #ff7300;
    padding: 1.2rem 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-container p {
    color: #3a3a5a;
    font-size: 0.9rem;
    font-weight: 400;
}
.footer-container p strong {
    font-weight: 700;
}
.heart {
    color: #e60000;
}

/* -------------------- FLOATING ABOUT BUTTON -------------------- */
.about-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #ffffff;
    border: 2px solid #e60000;
    border-radius: 60px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e1e2f;
    box-shadow: 0 6px 18px rgba(230, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 999;
    font-size: 0.95rem;
    font-family: inherit;
}

.about-btn:hover {
    background: #e60000;
    color: #fff;
    border-color: #e60000;
    box-shadow: 0 10px 24px rgba(230, 0, 0, 0.25);
    transform: scale(1.03);
}

.about-btn svg {
    stroke: currentColor;
}

/* -------------------- MODAL (umum) -------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal {
    background: #ffffff;
    max-width: 520px;
    width: 90%;
    border-radius: 32px;
    padding: 2.2rem 2rem 2.5rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #5a5a7a;
    transition: color 0.2s;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #1e1e2f;
}

.modal-content {
    text-align: center;
}

.modal-avatar {
    font-size: 3.8rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e1e2f;
    margin-bottom: 0.8rem;
}

.modal-content p {
    color: #3a3a5a;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.6;
}
.modal-content p strong {
    font-weight: 700;
}

.modal-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border: 1.5px solid #232368;
    border-radius: 40px;
    color: #232368;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.social-link:hover {
    background: #232368;
    color: #fff;
}

/* -------------------- MODAL DETAIL FOTO -------------------- */
.modal-detail {
    max-width: 720px;
    padding: 2rem;
    border: 3px solid #e4640c;
    border-radius: 32px;
}

.detail-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    text-align: left;
}

.detail-image {
    flex: 1 1 45%;
}

.detail-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    background: #eaeef2;
}

.detail-info {
    flex: 1 1 55%;
}

.detail-info h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e1e2f;
}

.detail-info p {
    color: #3a3a5a;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-weight: 400;
    white-space: pre-line;
}

.detail-info .card-link {
    display: inline-block;
    background: #232368;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.detail-info .card-link:hover {
    background: #1a1a4d;
    transform: scale(0.97);
}

/* -------------------- RESPONSIVE MOBILE -------------------- */
@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .header-stripe {
        align-self: flex-start;
    }
    .brand-text h1 {
        font-size: 1.3rem;
        font-weight: 700;
    }
    .brand-text p {
        font-size: 0.8rem;
    }
    .logo-icon {
        font-size: 2rem;
    }
    .header-brand {
        gap: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .card-title {
        font-size: 1rem;
        font-weight: 700;
    }
    .card-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .btn-detail {
        font-size: 0.75rem;
        padding: 0.35rem 1rem;
    }

    .about-btn {
        bottom: 1.2rem;
        right: 1.2rem;
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }

    .modal {
        padding: 1.8rem 1.2rem;
        max-width: 95%;
    }
    .modal-content h2 {
        font-size: 1.4rem;
        font-weight: 700;
    }
    .modal-content p {
        font-size: 0.9rem;
    }
    .modal-content p strong {
        font-weight: 700;
    }

    .modal-detail {
        padding: 1.5rem 1rem;
        max-width: 95%;
    }
    .detail-row {
        flex-direction: column;
        gap: 1rem;
    }
    .detail-image {
        flex: 1 1 auto;
        width: 100%;
    }
    .detail-info {
        flex: 1 1 auto;
        width: 100%;
    }
    .detail-info h2 {
        font-size: 1.3rem;
        font-weight: 700;
    }
    .detail-info p {
        font-size: 0.9rem;
    }
    .detail-info .card-link {
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
    }

    .social-link {
        font-size: 0.8rem;
        padding: 0.35rem 1rem;
    }
}