/* ============================================================
   VARIABLE & GENERAL SETUP
   ============================================================ */
:root {
    --primary-red: #d32f2f;
    --dark-main: #111111;
    --dark-secondary: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #666666;
    --bg-light: #f9f9f9;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background-color: var(--dark-main);
    color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
}

.brand-name {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-red);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background: var(--dark-secondary);
    min-width: 180px;
    top: 100%;
    padding: 10px 0;
    border-top: 2px solid var(--primary-red);
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content li a { padding: 8px 20px; display: block; }

.btn-hubungi {
    background-color: #e3c500;
    color: rgb(0, 0, 0) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hubungi:hover {
    background-color: #ddff00;
    transform: translateY(-2px);
}

/* ============================================================
   HERO SECTION (HOMEPAGE)
   ============================================================ */
.hero-home {
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.2)), 
                url('https://images.unsplash.com/photo-1517581177682-a085bb7ffb15?q=80&w=2070'); /* Contoh gbr proyek */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content-home {
    padding-left: 5%;
}

.sub-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
    font-family: Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px 4px #111111 ;
}

.hero-home h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.scroll-down {
    position: absolute;
    right: 50px;
    bottom: 50px;
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-text p {
    color: #555;
    margin-bottom: 20px;
}

.btn-red {
    background: var(--primary-red);
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    font-size: 0.9rem;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 20px 20px 0px rgba(211, 47, 47, 0.1);
}

/* ============================================================
   FEATURES (KENAPA MEMILIH KAMI)
   ============================================================ */
.features-section {
    background-color: var(--bg-light);
    padding-top: 50px 0;
    padding-bottom: 100px;
}

.label-center {
    text-align: center;
    display: block;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.title-center {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.feature-item h3 {
    margin-bottom: 10px;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-section {
    padding: 100px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn-detail {
    color: var(--primary-red);
    border: 1.5px solid var(--primary-red);
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
}

.btn-detail:hover {
    background: var(--primary-red);
    color: white;
}

.center-btn {
    text-align: center;
    margin-top: 20px;
}

.btn-outline {
    border: 1px solid #ccc;
    padding: 12px 30px;
    border-radius: 50px;
    color: #333;
    font-weight: bold;
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: var(--dark-main);
    color: white;
    padding: 80px 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 0.85rem;
}

.footer-col p {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.footer-col i {
    margin-right: 10px;
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
}

.social-links a:hover {
    background: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: #666;
    font-size: 0.75rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .footer-grid, .features-grid {
        grid-template-columns: 1fr;
    }
 
    .hero-home h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Idealnya ganti ke hamburger menu */
}

/* ADMIN GUI ELEMENTS */
.admin-top-bar {
    background: #ce1212; /* Merah gelap agar kontras */
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001;
    font-size: 0.8rem;
    font-weight: bold;
}

.admin-actions a {
    color: white;
    margin-left: 15px;
    padding: 5px 15px;
    border: 1px solid white;
    border-radius: 4px;
}

.admin-mode-card {
    position: relative;
    border: 2px dashed var(--primary-red) !important; /* Tandai box yang bisa diedit */
}

.admin-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.btn-edit-icon, .btn-delete-icon {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
}

.btn-edit-icon { background: #2196F3; } /* Biru untuk edit */
.btn-delete-icon { background: #f44336; } /* Merah untuk hapus */

.btn-edit-icon:hover, .btn-delete-icon:hover {
    transform: scale(1.1);
}

/* --- Enhanced Hero Section --- */
.hero {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.hero-line {
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --- Modern Breadcrumbs --- */
.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1); /* Efek Kaca */
    backdrop-filter: blur(8px);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.breadcrumb-nav a:hover {
    color: var(--primary-red);
}

.breadcrumb-nav .separator {
    color: var(--primary-red);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
}

.breadcrumb-nav .current {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ============================================================
   DESKTOP STYLING (Halaman Tentang Kami & Global)
   ============================================================ */

.about-grid-start {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.rich-text p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

.main-about-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0px rgba(183, 28, 28, 0.05);
    transition: var(--transition-smooth);
}

.main-about-img:hover { transform: scale(1.02); }

.about-page container{
padding: 100px 0
}

.visi-misi {
    background: #fdfdfd;
    padding: 100px 0;
}

.grid-visi {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.item-misi {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
    transition: var(--transition-smooth);
}

.item-misi:hover { transform: translateX(10px); }

.icon-circle {
    min-width: 60px;
    height: 60px;
    background: rgba(183, 28, 28, 0.1);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.about-grid, .grid-visi {
    min-height: auto !important;
    margin-bottom: 0;
}

/* Admin UI */
.admin-edit-wrapper { position: absolute; top: 20px; right: 20px; z-index: 100; }
.btn-edit-icon-alt {
    background-color: #2196F3;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* Nav Components */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; z-index: 10001; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: white; border-radius: 2px; transition: all 0.3s ease; }
.mobile-only { display: none; }

/* ============================================================
   RESPONSIVE SYSTEM (SATU PINTU)
   ============================================================ */

/* TABLET & MOBILE VIEWPORT (992px) */
@media (max-width: 992px) {
    .container { padding: 0 30px; }

    /* Navigasi Hamburger Drawer */
    .menu-toggle { display: flex; }
    .btn-hubungi { display: none !important; }
    .mobile-only { display: block; border-top: 1px solid rgba(255,255,255,0.1); width: 100%; text-align: center; }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #111111;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        transition: 0.5s all ease;
        z-index: 10000;
        overflow-y: auto;
        gap: 20px;
    }

    .nav-links.active { left: 0; }
    .nav-links li { width: 100%; text-align: center; list-style: none; }
    .nav-links li a { font-size: 1.2rem; }

    /* Dropdown Mobile Fix */
    .dropdown-content {
        position: static !important;
        display: none;
        background: rgba(255,255,255,0.05);
        width: 100%;
        box-shadow: none;
    }
    .dropdown:hover .dropdown-content, .dropdown.active .dropdown-content { display: block; }
    .dropdown-content li a { padding: 15px 0; font-size: 0.9rem; color: #ddd; }

    /* Universal Grid Stacking */
    .about-grid, .about-grid-start, .grid-visi, .contact-grid, .footer-grid, .features-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    /* Visi Misi Mobile */
    .item-misi { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
    .icon-circle { margin: 0 auto 15px; }
    .visi-img { order: -1; }

    /* Typo Scaling */
    .hero-title { font-size: 2.5rem !important; }
    .hero { min-height: 300px; padding: 60px 0; }
}

/* KHUSUS SMARTPHONE (768px) */
@media (max-width: 768px) {
    .nav-wrapper { flex-direction: row; justify-content: space-between; }
    
    .hero-home { height: auto; padding: 100px 0; }
    .hero-home h1 { font-size: 2.2rem; }

    .about-image-wrapper, .about-image { order: -1; margin-bottom: 20px; }
    
    .experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        transform: translateY(-10px);
        margin: 0 auto;
        width: fit-content;
    }

    .footer-grid { text-align: center; }
    .footer-col.logo-col { justify-content: center; display: flex; margin-bottom: 20px; }
    .social-links { justify-content: center; }
}

@media (max-width: 992px) {
    /* Mencegah menu bertumpuk */
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Mulai dari atas, bukan tengah */
        padding-top: 80px; /* Beri ruang agar tidak tertutup tombol close */
        overflow-y: auto; /* Supaya menu bisa di-scroll kalau kepanjangan */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        list-style: none; /* Hilangkan titik-titik putih di samping */
    }

    /* FIX UTAMA: Dropdown tidak boleh melayang di mobile */
    .dropdown-content {
        position: static; /* Mengubah dari melayang jadi mendorong menu bawah */
        background: rgba(255, 255, 255, 0.05); /* Beri warna beda dikit biar ketauan itu sub-menu */
        width: 100%;
        box-shadow: none;
        display: none; /* Sembunyikan dulu */
    }

    /* Tampilkan dropdown saat menu induknya diklik/aktif */
    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Gaya link di dalam dropdown mobile */
    .dropdown-content li a {
        padding: 15px 0;
        font-size: 0.9rem;
        color: #ddd;
    }
}

/* --- Global Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Padding kiri-kanan standar */
    width: 100%;
}

/* --- Penyeragaman Section --- */
/* Gunakan selector koma agar kedua halaman punya jarak atas-bawah yang sama */


/* --- Penyeragaman Grid --- */
/* Samakan gap antara grid beranda dan grid halaman profil */
.about-grid, 
.about-grid-start {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* Samakan gap agar konsisten */
    align-items: center;
}

.contact-section{
    padding-left: 100px;
    margin-top: 50px;
    margin-bottom:50px;
}

/* --- Fix Margin Mobile --- */
@media (max-width: 992px) {
    .container {
        padding: 0 25px; /* Beri ruang sedikit lebih lega di HP */
    }

    .about-section {
        margin: 10px !important; /* Perkecil padding di mobile agar tidak terlalu kosong */
    }

    .about-grid-start {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
}