/* RESET & BASE STYLES */
:root {
    --primary-color: #003366;    /* Deep Industrial Blue */
    --secondary-color: #e63946;  /* Industrial Red */
    --bg-light: #f8f9fa;         /* Light Gray Background */
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* UTILITY CLASSES */
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }

/* HEADER */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 55px;
}

.logo-text h1 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* HERO SECTION */
#hero {
    position: relative;
    background: url('images/Background_PT_Coppal.png') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 45%, rgba(255,255,255,0) 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    color: var(--primary-color);
    max-width: 750px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 650px;
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    cursor: pointer;
    border: 2px solid transparent;
}

.hero-content .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c62828;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* SECTIONS COMMON */
section {
    padding: 30px 0;
    scroll-margin-top: 80px;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-top: 10px;
    margin-bottom: 15px;
}

/* ABOUT SECTION */
.row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

#about {
    background: var(--white);
    overflow: hidden;
}

.about-full-layout {
    display: flex;
    width: 100%;
    align-items: stretch;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
    padding: 0 20px;
}

.about-image-side {
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateX(-100px); 
    transition: all 1.2s ease-out;
    height: 100%;
    display: flex;
}

.about-image-side.show-animation {
    opacity: 1;
    transform: translateX(0);
}

.about-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 5%;
}

.about-text-side p {
    margin-bottom: 20px;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    padding-top: 30px;
    margin-bottom: 30px;
}

/* VISI MISI */
#visi-misi {
    position: relative;
    background: url('images/Coppal_Landscape.jpg') center/cover fixed no-repeat;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    scroll-margin-top: 20px;
}

.visi-misi-overlay {
    position: absolute;
    top: 0
}
    
#visi-misi::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(17, 17, 17, 0.9) 100%);
    z-index: 1;
}

#visi-misi .container {
    position: relative;
    z-index: 2;
    margin-top: 80px;
    margin-bottom: 80px;
    width: 100%;
}

.card-vision {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid var(--secondary-color);
    height: auto;
}

.card-vision .icon-wrapper {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.card-vision h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.card-vision p, .card-vision ul li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
    text-align: left;
}

.card-vision ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.card-vision ul li i {
    color: var(--secondary-color);
    margin-top: 2px;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
    flex-shrink: 0;
}

.card-vision strong {
    color: var(--white);
    font-weight: 700;
}

/* --- DESAIN CORE VALUES (AGILE) --- */
.core-values-subtitle {
    font-style: italic;
    color: var(--text-muted);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    opacity: 0;
    transform: translateY(50px); 
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.value-card.show-card-animation {
    opacity: 1;
    transform: translateY(0);
}

.value-card:nth-child(1) { transition-delay: 0.1s; }
.value-card:nth-child(2) { transition-delay: 0.2s; }
.value-card:nth-child(3) { transition-delay: 0.3s; }
.value-card:nth-child(4) { transition-delay: 0.4s; }
.value-card:nth-child(5) { transition-delay: 0.5s; }

.value-card:hover {
    transform: translateY(-10px) !important;
    border-bottom: 4px solid var(--secondary-color);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: var(--bg-light);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.value-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    min-height: 45px;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* TABLES (FACILITIES) */
.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
}

.table-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

tr:nth-child(even) td {
    background-color: #f8f9fa;
}

tr:hover td {
    background-color: #e2e8f0;
}

.machine-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.machine-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* PRODUCTS GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease-out;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    display: block;
    cursor: pointer;
}

.gallery-item.show-product-animation {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,51,102,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.overlay span {
    color: #fff;
    font-size: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item:hover .overlay span {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* CUSTOMERS */
.customer-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}

.client-logo-wrapper {
    flex-basis: 18%; /* Lebar spesifik agar maksimal 5 kolom di desktop */
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-logo {
    max-width: 150px;
    height: 70px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* CONTACT */
.contact-wrapper {
    display: flex;
    gap: 40px;
}

.contact-left {
    flex: 1;
}

.contact-right {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.map-container {
    margin-top: 30px;
}

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.form-card h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-light);
    transition: var(--transition);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 5px rgba(0,51,102,0.2);
}

/* FOOTER */
footer {
    background: #111;
    color: #999;
    padding: 40px 0 20px 0;
}

.footer-logo {
    height: 60px;
    margin: 0 auto 20px auto;
    filter: brightness(0) invert(1);
}

/* MOBILE RESPONSIVE */
@media (max-width: 992px) {
    .gallery, .machine-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; padding: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero-content h2 { font-size: 2.2rem; }
    .hero-overlay { background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 70%, rgba(255,255,255,0.6) 100%); }
    .about-full-layout { flex-direction: column; }
    .values-grid { grid-template-columns: 1fr; }
    .row { flex-direction: column; }
    .gallery, .machine-gallery { grid-template-columns: 1fr; }
    .input-row { flex-direction: column; }
    .customer-list { gap: 30px; }
    .client-logo-wrapper { flex-basis: calc(33.333% - 20px); }
    .client-logo { height: 50px; }
}

@media (max-width: 480px) {
    .client-logo-wrapper {
        flex-basis: calc(50% - 15px);
    }
}
