/* --- VARIABEL & GLOBAL --- */
:root {
    --charcoal: #1a1a1a;
    --light-gray: #f4f4f4;
    --gold: #b8860b;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #fff;
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TYPOGRAFI --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
}

/* --- BUTTON --- */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--gold);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--gold);
}
.cta-button:hover {
    background-color: transparent;
    color: var(--gold);
}

/* --- HEADER & NAV --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}
.main-nav a:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.hero::before { /* Overlay gelap */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.5);
    z-index: -1;
}
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
}
.hero p {
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* --- PROYEK SECTION --- */
.projects-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}
.section-header h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
}
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}
.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--charcoal);
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}
.project-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 400px; /* Atur tinggi yang konsisten */
}
.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(26,26,26,0.9), transparent);
    color: #fff;
    padding: 30px;
    transform: translateY(100%);
    transition: var(--transition);
}
.project-item:hover .project-overlay {
    transform: translateY(0);
}
.project-item:hover img {
    transform: scale(1.1);
}

/* --- TENTANG SECTION (LAYOUT ASIMETRIS) --- */
.about-section {
    padding: 100px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.about-image-block {
    position: relative;
}
.about-image-block img {
    width: 100%;
    display: block;
}

/* --- KONTAK SECTION --- */
.contact-section {
    padding: 150px 0;
    background-color: var(--charcoal);
    color: #fff;
    text-align: center;
}
.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- FOOTER --- */
.main-footer {
    padding: 30px;
    text-align: center;
    background-color: #111;
    color: #777;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .main-header {
        padding: 20px;
    }
    .main-nav ul {
        gap: 20px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-item {
        height: 300px;
    }
}