/* CSS Reset & Variables */
:root {
    --bg-color: #07090f; /* Dark Corporate Blue/Black */
    --surface-color: #121622;
    --gold: #c5a059; /* Elegant Muted Gold */
    --gold-hover: #e0bb73;
    --text-main: #f8f9fa;
    --text-muted: #a0aabc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5; /* Spasi antar baris teks dirapatkan menjadi 1.5 */
    overflow-x: hidden; 
}

h1, h2, h3, .brand-font {
    font-family: 'Cinzel', serif;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s ease;
}

/* ================= HEADER ================= */
header {
    background-color: rgba(7, 9, 15, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%; /* Jarak atas bawah header dirapatkan sedikit */
    width: 100%;
    max-width: 100%; 
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.brand-logo-img {
    height: 60px; 
    width: auto;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.95); 
    padding: 6px; 
    border-radius: 8px; 
    border: 2px solid var(--gold); 
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.6); 
    transition: all 0.3s ease;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links li a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links li a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1000; 
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.4s ease-in-out; 
}

/* ================= SECTION UTAMA ================= */
section {
    padding: 80px 4%; /* Jarak atas-bawah dikurangi dari 100px menjadi 80px */
    width: 100%; 
}

.hero-content, 
.about-grid, 
.section-header, 
.portfolio-grid, 
.footer-grid {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(7, 9, 15, 0.85), rgba(7, 9, 15, 0.95)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80') center/cover fixed;
    padding: 0 4%; 
}

.hero-subtitle {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px; /* Dirapatkan */
    display: block;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px; /* Dirapatkan */
    color: #ffffff;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px; /* Dirapatkan */
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 15px 35px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:active {
    background: var(--gold);
    color: var(--bg-color);
}

.section-header {
    margin-bottom: 40px; /* Dirapatkan dari 60px */
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 10px; /* Dirapatkan */
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Jarak antara teks dan gambar dirapatkan */
    align-items: center;
}

.about-text p {
    margin-bottom: 15px; /* Dirapatkan */
    color: var(--text-muted);
    text-align: justify;
}

.corporate-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px; /* Dirapatkan */
}

.value-box {
    background: var(--surface-color);
    padding: 20px; /* Padding dalam kotak dirapatkan */
    border-left: 3px solid var(--gold);
}

.value-box h4 {
    color: var(--text-main);
    margin-bottom: 8px; /* Dirapatkan */
    font-size: 16px;
}

/* Business Lines / Portfolio */
.portfolio-section {
    background-color: var(--surface-color);
    margin-top: 30px; /* Dirapatkan */
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; /* Dirapatkan */
}

.brand-card {
    background-color: var(--bg-color);
    border: 1px solid rgba(197, 160, 89, 0.1);
    padding: 40px 30px; /* Dirapatkan sedikit agar lebih padat */
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.brand-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.brand-logo {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 15px; /* Dirapatkan */
    font-family: 'Cinzel', serif;
}

.brand-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 10px; /* Dirapatkan */
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ================= FOOTER ================= */
footer {
    background-color: #04050a;
    padding: 60px 4% 80px; /* Padding dirapatkan, sisakan ruang bawah untuk copyright */
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px; /* Jarak antar kolom dirapatkan */
    margin-bottom: 30px; /* Dirapatkan */
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 20px; /* Dirapatkan */
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p, .footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px; /* Dirapatkan */
}

.footer-col ul {
    list-style: none;
}

/* Teks Hak Cipta Tetap Melayang */
.footer-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(4, 5, 10, 0.95);
    backdrop-filter: blur(10px); 
    text-align: center;
    padding: 12px 4%; /* Dibuat sedikit lebih ramping */
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    color: var(--text-muted);
    font-size: 13px;
    z-index: 900;
}

/* ================= DESAIN MODAL POP-UP LEGAL ================= */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(7, 9, 15, 0.85); 
    backdrop-filter: blur(8px); 
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--surface-color);
    padding: 35px; /* Dirapatkan sedikit */
    border: 1px solid rgba(197, 160, 89, 0.25);
    width: 85%;
    max-width: 750px;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 20px;
    color: var(--text-muted);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--gold);
}

.modal h2 {
    color: var(--gold);
    margin-bottom: 20px; /* Dirapatkan */
    font-size: 24px;
    letter-spacing: 1px;
    padding-right: 30px;
}

.legal-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6; /* Spasi dalam pop-up dirapatkan */
    overflow-y: auto;
    padding-right: 15px;
}

.legal-text p {
    margin-bottom: 15px; /* Dirapatkan */
    text-align: justify;
}

.legal-text::-webkit-scrollbar {
    width: 6px;
}
.legal-text::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}
.legal-text::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* Responsive View (Untuk Mobile/HP) */
@media (max-width: 900px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 70%; 
        height: 100vh;
        background-color: rgba(7, 9, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        border-left: 1px solid rgba(197, 160, 89, 0.15);
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0); 
        z-index: 998;
    }

    .nav-links.active {
        right: 0; 
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0; 
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .brand-logo-img {
        height: 40px; 
        padding: 4px;
    }
    
    .logo {
        font-size: 18px;
    }

    .modal-content {
        padding: 30px 20px;
        width: 90%;
    }
}