:root {
    --ink-navy: #0A1D37;
    --paper-cream: #FDF6E3;
    --accent-red: #D63D3D;
    --grid-dark: rgba(10, 29, 55, 0.08);
    --grid-light: rgba(255, 255, 255, 0.05);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#about {
    font-family: 'Courier Prime', monospace;
    overflow-x: hidden;
    background-color: var(--paper-cream);
}

/* =========================================
   LAYOUT SPLIT (DESKTOP)
========================================= */
.dossier-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Reverse layout untuk section cream (gambar di kanan, teks di kiri) */
.dossier-split.reverse {
    flex-direction: row-reverse;
}

.split-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.text-col {
    padding: 5% 8%;
    align-items: center;
    justify-content: flex-start;
}

.image-col {
    padding: 5%;
}

/* =========================================
   WARNA BACKGROUND
========================================= */
.section-navy {
    background-color: var(--ink-navy);
    background-image:
        linear-gradient(var(--grid-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-light) 1px, transparent 1px);
    background-size: 30px 30px;
}

.section-cream {
    background-color: var(--paper-cream);
    background-image:
        linear-gradient(var(--grid-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Utility Colors */
.text-cream { color: var(--paper-cream) !important; }
.text-navy { color: var(--ink-navy) !important; }
.bg-cream { background-color: var(--paper-cream) !important; }
.bg-navy { background-color: var(--ink-navy) !important; }

/* =========================================
   TYPOGRAPHY
========================================= */
.content-offset {
    max-width: 550px;
    width: 100%;
}

.tech-mark { margin-bottom: 20px; }
.tech-label { font-weight: 700; font-size: 0.85rem; letter-spacing: 2px; }

.editorial-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 4vw;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.draft-divider {
    height: 3px;
    width: 50px;
    margin-bottom: 30px;
}

.typewriter-body {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    opacity: 0.9;
}

/* =========================================
   DEKORASI FOTO
========================================= */
.pinned-photo {
    background: #FFF;
    padding: 15px 15px 50px 15px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 450px;
    width: 100%;
}

.tilt-right { transform: rotate(2deg); }
.tilt-left { transform: rotate(-2deg); }

.pinned-photo img {
    width: 100%;
    height: auto;
    border: 1px solid var(--ink-navy);
    filter: grayscale(20%);
    display: block;
}

.red-tape {
    position: absolute;
    top: -15px;
    left: 45%;
    width: 80px;
    height: 30px;
    background-color: rgba(214, 61, 61, 0.85);
    transform: rotate(-5deg);
    z-index: 5;
}

.alt-pos { left: auto; right: 20%; transform: rotate(4deg); }

.photo-meta {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-navy);
}

/* =========================================
   ANIMASI DESKTOP
========================================= */
@media (min-width: 993px) {
    .anim-fade-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .delay-1 { transition-delay: 0.1s; }
    .delay-2 { transition-delay: 0.3s; }
    .delay-3 { transition-delay: 0.5s; }
    .delay-4 { transition-delay: 0.7s; }

    .anim-photo-right {
        opacity: 0;
        transform: rotate(15deg) scale(0.8);
        transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .anim-photo-left {
        opacity: 0;
        transform: rotate(-15deg) scale(0.8);
        transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .is-visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .anim-photo-right.is-visible {
        transform: rotate(2deg) scale(1) !important;
    }
    .anim-photo-left.is-visible {
        transform: rotate(-2deg) scale(1) !important;
    }
}

/* =========================================
   RESPONSIVE TABLET & MOBILE
========================================= */
@media (max-width: 992px) {
    .dossier-split,
    .dossier-split.reverse {
        flex-direction: column !important; /* Paksa semua jadi kolom di mobile */
        min-height: auto;
    }

    .editorial-heading {
        font-size: 3rem;
    }

    .split-col {
        padding: 10% 5%;
    }

    .pinned-photo {
        max-width: 90%;
        margin: 0 auto;
    }
}

/* =========================================
   PERBAIKAN UNTUK HP KECIL (<= 480px)
========================================= */
@media (max-width: 480px) {
    .editorial-heading {
        font-size: 2rem !important;
    }
    
    .typewriter-body {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    .split-col {
        padding: 12% 6% !important;
    }
    
    .content-offset {
        max-width: 100% !important;
    }
    
    .pinned-photo {
        padding: 10px 10px 40px 10px !important;
        max-width: 100% !important;
    }
    
    .photo-meta {
        font-size: 0.6rem !important;
        bottom: 8px;
    }
    
    .tech-label {
        font-size: 0.7rem !important;
    }
    
    .draft-divider {
        width: 40px;
        margin-bottom: 20px;
    }
}

/* Mencegah overflow gambar */
img {
    max-width: 100%;
    height: auto;
}