:root {
    --bg-color: #f3eee9; /* Warna krem/beige */
    --text-color: #0d0d0d;
    --grid-color: rgba(0, 0, 0, 0.15);
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    position: relative;
    height: 100vh;
}

/* Dekorasi Grid Pattern */
.grid-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

.top-left {
    top: 0;
    left: 0;
    border-right: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
}

.bottom-right {
    bottom: -50px;
    right: 20px;
    border-left: 1px solid var(--text-color);
    border-top: 1px solid var(--text-color);
}

/* Header & Navigasi */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 4rem;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-box {
    border: 2px solid var(--text-color);
    padding: 10px 5px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    transform: rotate(-90deg);
    transform-origin: left top;
    position: absolute;
    top: 180px;
    left: 50px;
    background-color: var(--bg-color);
}

.logo-text-vertical {
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 5px;
}

.logo-sub-vertical {
    font-size: 0.5rem;
    letter-spacing: 2px;
}

.navbar {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a.active, .nav-links a:hover {
    font-weight: 700;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 2rem 4rem 4rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.hero-text-small {
    text-align: right;
    padding-right: 2rem;
    z-index: 2;
    transform: translateY(-40px); /* Menggeser seluruh blok ke atas sejauh 40px */
}

.hero-text-small p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-read-more {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-read-more:hover {
    background-color: #333;
}

.hero-image-wrapper {
    position: relative;
    height: 70vh;
    min-height: 500px;
    z-index: 1;
    border-top: 1px solid var(--text-color);
    padding-top: 20px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-typography {
    position: absolute;
    right: 5%;
    top: 20%;
    z-index: 5; /* Ditingkatkan agar pasti berada di atas gambar */
    pointer-events: none;
    color: #ffffff; /* Diubah menjadi putih untuk dasar mix-blend-mode */
    mix-blend-mode: difference; /* Otomatis kontras dengan background di belakangnya */
}

.hero-typography h1 {
    font-size: 8rem;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -2px;
}

.hero-typography h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

/* Circular Text Decor */
.circular-text {
    position: absolute;
    bottom: -50px;
    right: 10%;
    z-index: 4;
    animation: rotateText 20s linear infinite;
}

@keyframes rotateText {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 1200px) {
    .hero-typography h1 { font-size: 6rem; }
    .hero-content { grid-template-columns: 1fr 2fr 1fr; }
}

@media (max-width: 992px) {
    /* Tambahkan blok body ini ke dalam media query */
    body {
        overflow-y: auto; /* Kembalikan fungsi scroll ke bawah untuk mobile */
        overflow-x: hidden; /* Tetap sembunyikan scroll tumpah ke kanan */
        height: auto; /* Biarkan tinggi menyesuaikan isi konten */
        min-height: 100vh;
    }
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 3rem;
    }
    
    .hero-text-small { text-align: left; padding-right: 0; order: 2; }
    .hero-image-wrapper { order: 1; height: 50vh; }
    
    .hero-typography {
        position: relative;
        right: 0;
        top: 0;
        order: 3;
        text-align: center;
    }
    
    .hero-typography h1 { font-size: 5rem; }
    .logo-box { position: relative; top: 0; left: 0; transform: none; flex-direction: row; }
    .logo-text-vertical { margin-right: 10px; }
    .header { padding: 2rem; justify-content: space-between; }
    .navbar { justify-content: flex-end; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 2rem;
        background-color: var(--bg-color);
        width: 200px;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border: 1px solid var(--text-color);
        z-index: 100;
    }

    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    .hero-section { padding: 2rem; }
    .hero-typography h1 { font-size: 3.5rem; }
    .circular-text { display: none; /* Sembunyikan di layar kecil agar tidak menumpuk */ }
    .grid-bg { display: none; }
}