/* ==================================
   VARIABLES & RESET
================================== */
:root {
    --color-dark-900: #0f172a;   /* Slate Sangat Gelap */
    --color-dark-800: #1e293b;   /* Slate Gelap */
    --color-dark-700: #334155;   /* Slate Medium */
    --color-accent-500: #008c8c; /* Teal/Cyan sesuai Logo */
    --color-accent-400: #00b3b3;
    --color-white: #ffffff;
    --color-gray-100: #f4f5f7;
    --color-gray-300: #cbd5e1;
    --color-gray-500: #64748b;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark-900);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================
   TYPOGRAPHY & UTILITIES
================================== */
.text-accent { color: var(--color-accent-500); }
.text-center { text-align: center; }
.bg-light { background-color: var(--color-gray-100); }
.mt-4 { margin-top: 30px; }
.mb-3 { margin-bottom: 15px; }

.section {
    padding: 100px 0;
}

.section-subtitle {
    color: var(--color-accent-500);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-dark-900);
    margin-bottom: 20px;
    font-weight: 800;
}

.section-desc {
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* ==================================
   BUTTONS
================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-accent {
    background-color: var(--color-accent-500);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: var(--color-accent-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 140, 140, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark-900);
}

.btn-block {
    width: 100%;
    display: block;
}

/* ==================================
   NAVIGATION
================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--color-dark-900);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover:not(.btn) {
    color: var(--color-accent-500);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background-color: var(--color-white);
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.logo-img {
    height: 40px; 
    width: auto;
    display: block;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 35px;
}

/* ==================================
   HERO SECTION (DIPERBARUI)
================================== */
.hero {
    height: 100vh;
    /* GANTI URL DI BAWAH INI DENGAN GAMBAR PROYEK ANDA */
    background-image: url('../assets/img/hero-bg.png'); 
    background-color: var(--color-dark-800); /* Warna fallback jika gambar gagal dimuat */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Efek Parallax saat di scroll */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradasi gelap agar teks putih tetap terbaca di atas gambar */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(0, 140, 140, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3); /* Bayangan teks agar lebih jelas */
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-gray-100);
    margin-bottom: 40px;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==================================
   ABOUT SECTION
================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.img-placeholder {
    width: 100%;
    height: 500px;
    background-color: var(--color-dark-700);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
    box-shadow: -20px 20px 0 var(--color-accent-500);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background-color: var(--color-gray-100);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent-500);
}

.stat-box h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* ==================================
   SERVICES SECTION
================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--color-accent-500);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    color: var(--color-dark-800);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--color-gray-500);
    font-size: 0.95rem;
}

/* ==================================
   PORTFOLIO SECTION (DIPERBARUI)
================================== */
.portfolio-grid {
    display: grid;
    /* Membuat kolom sedikit lebih lebar agar gambar lebih lega */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    /* 
       Mengubah aspek rasio menjadi 16/9 (widescreen).
       Ini biasanya lebih pas untuk foto landscape / arsitektur
       dibandingkan 4/3 yang lebih mengotak.
    */
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    background-color: var(--color-dark-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    /* Transisi diperhalus */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Pastikan tag <img> di HTML Anda menggunakan ini (bisa dihapus dari inline style HTML jika sudah ditambahkan di sini) */
.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Memastikan titik tengah gambar yang menjadi fokus saat dipotong */
    object-position: center; 
}

/* Mengurangi tingkat zoom saat hover (dari 1.1 menjadi 1.05) agar tidak terlalu berlebihan */
.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h3 {
    color: var(--color-accent-500);
    font-size: 1.25rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-info p {
    color: var(--color-white);
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.portfolio-item:hover .portfolio-info h3,
.portfolio-item:hover .portfolio-info p {
    transform: translateY(0);
}
/* ==================================
   CONTACT & FORMS
================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info { padding-right: 20px; }
.contact-info h3 { color: var(--color-dark-900); font-size: 1.8rem; margin-bottom: 10px; }

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    background: var(--color-accent-500);
    color: var(--color-white);
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-item h4 { color: var(--color-dark-800); margin-bottom: 5px; }
.info-item p { color: var(--color-gray-500); }

/* Tombol WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contact-form-container {
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px;
    font-weight: 600; color: var(--color-dark-800);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 15px;
    border: 1px solid var(--color-gray-300);
    border-radius: 4px; font-family: var(--font-main);
    font-size: 1rem; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--color-accent-500);
    box-shadow: 0 0 0 3px rgba(0, 140, 140, 0.2);
}

/* ==================================
   LIGHTBOX / IMAGE MODAL
================================== */
.lightbox {
    display: none; /* Disembunyikan secara default */
    position: fixed;
    z-index: 2000; /* Harus lebih tinggi dari navbar (1000) */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.95); /* Warna latar Slate sangat gelap & transparan */
    backdrop-filter: blur(5px); /* Efek blur pada background jika browser mendukung */
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh; /* Maksimal tinggi 80% dari layar agar tidak terpotong */
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Animasi muncul (zoom in) */
    animation-name: zoom;
    animation-duration: 0.4s;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--color-white);
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Tombol Close (X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--color-gray-300);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-accent-500); /* Warna berubah jadi Teal saat di-hover */
    text-decoration: none;
    cursor: pointer;
}

/* ==================================
   FOOTER
================================== */
.footer {
    background-color: var(--color-dark-900);
    color: var(--color-white);
    padding: 60px 0 20px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; margin-bottom: 40px;
}
.footer h3, .footer h4 { margin-bottom: 20px; }
.footer p, .footer li { color: var(--color-gray-300); margin-bottom: 10px; }
.footer a:hover { color: var(--color-accent-500); }

/* ==================================
   ANIMATIONS & OBSERVER CLASSES
================================== */
.observe-fade-up, .observe-fade-left, .observe-fade-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.observe-fade-up { transform: translateY(30px); }
.observe-fade-left { transform: translateX(-30px); }
.observe-fade-right { transform: translateX(30px); }
.is-visible { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

/* ==================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
================================== */
@media (max-width: 992px) {
    .about-container { gap: 30px; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .about-container, .contact-grid { grid-template-columns: 1fr; }
    .contact-info { padding-right: 0; }
    
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 80%; height: 100vh;
        background-color: var(--color-dark-900);
        flex-direction: column; justify-content: center;
        transition: var(--transition);
    }
    .nav-links.active { right: 0; }
    .hamburger.active { background-color: transparent; }
    .hamburger.active::before { transform: rotate(45deg); top: 0; }
    .hamburger.active::after { transform: rotate(-45deg); top: 0; }
    
    /* Pengecilan logo di mode mobile */
    .logo-img { height: 30px; }
    
    /* Matikan Parallax di Mobile untuk performa yang lebih baik */
    .hero { background-attachment: scroll; }
}