/* Variable Warna Default (Dark Mode) */
:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --text-main: #f8fafc;
    --text-title: #ffffff; /* Warna judul di dark mode */
    --text-muted: #94a3b8;
    --border: #334155;
    --radius: 12px;
}

/* Variable Warna Light Mode (Disesuaikan agar kontras tinggi) */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --primary: #d97706;
    --primary-hover: #b45309;
    --text-main: #1e293b;
    --text-title: #0f172a; /* Warna judul tajam/gelap di light mode */
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Split Section */
.hero-split {
    padding: 40px 0 60px;
    background: radial-gradient(circle at left, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text-title); /* Disesuaikan dengan variabel */
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin-bottom: 24px;
}

.btn-wa-hero {
    background: var(--primary);
    color: #000;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-wa-hero:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.hero-rating {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-rating a {
    color: var(--primary);
    text-decoration: underline;
}

.hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Container Slider Hero */
.slider-container {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

/* Common Section Layout */
section {
    padding: 70px 0;
    border-top: 1px solid var(--border);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-title);
}

.section-title p {
    color: var(--text-muted);
}

/* Portfolio / WP Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.portfolio-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #000;
}

.portfolio-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-title);
    line-height: 1.4;
}

.portfolio-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Section Layanan Konsep Row/List */
.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    display: grid;
    grid-template-columns: 80px 1fr 220px;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-row:hover {
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: -6px 0 0 var(--primary), 0 10px 30px rgba(0,0,0,0.1);
}

.highlight-row {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}

.service-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--border);
    transition: color 0.3s ease;
}

.service-row:hover .service-num {
    color: var(--primary);
}

.service-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 8px;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags span {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.service-action {
    text-align: right;
}

.btn-service-row {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-title);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-service-row:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Section About / Selamat Datang dengan Aksen Warna */
.about-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary); /* Aksen garis vertikal di sebelah kiri */
    border-radius: var(--radius);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.about-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary); /* Judul diberi warna aksen utama */
    font-weight: 800;
}

.about-card p {
    color: var(--text-main);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
}

/* Penyorotan Kata Kunci/Aksen Teks */
.about-card mark, 
.about-card strong {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Aksen Nama Manager */
.about-author {
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    color: var(--text-title);
    font-weight: 800;
    font-size: 1.05rem;
}

.about-author span {
    display: block;
    color: var(--primary); /* Jabatan menggunakan warna aksen */
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 2px;
}

/* Section Map & Contact */
.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch; /* Memaksa kolom peta dan informasi kontak sama tinggi */
}

.map-wrapper {
    width: 100%;
    height: 100%; /* Mengikuti tinggi kontainer grid */
    min-height: 360px; /* Batas tinggi minimal */
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.location-info {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Meratakan isi kontak secara vertikal */
}

.location-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-title);
}

.location-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contact-links a {
    display: flex; /* Mengubah dari block ke flex agar ikon dan teks sejajar */
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

/* Menghapus garis pemisah di link kontak terakhir */
.contact-links a:last-child {
    border-bottom: none;
}

.contact-links a:hover {
    color: var(--primary);
}

/* Floating Switch Button */
.theme-switch-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.theme-switch-btn {
    background: var(--bg-card);
    color: var(--text-title);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.theme-switch-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
/* Custom CSS untuk Ikon Kontak */
.contact-icon {
    width: 20px;
    font-size: 1.1rem;
    margin-right: 8px;
    text-align: center;
}

.wa-icon {
    color: #25d366;
}

.tg-icon {
    color: #24a1de;
}

.ig-icon {
    color: #e1306c;
}

.contact-links a {
    display: flex;
    align-items: center;
}
.fb-icon {
    color: #1877f2;
}

.map-icon {
    color: #ea4335;
}
/* Responsif Mobile */
@media (max-width: 900px) {
    .hero-grid, .map-grid {
        grid-template-columns: 1fr;
    }
    .hero-right {
        order: -1;
    }
    .hero-img {
        height: 260px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
	.slider-container {
        height: 260px;
    }
    .about-card {
        padding: 24px;
    }
    .service-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }
    .service-num {
        font-size: 1.8rem;
    }
    .service-action {
        text-align: left;
        margin-top: 10px;
    }
    .btn-service-row {
        display: block;
        text-align: center;
        width: 100%;
    }
	.map-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        height: 300px;
        min-height: auto;
    }
}

/* Mobile Portrait (<= 600px) */
@media (max-width: 600px) {
    section {
        padding: 45px 0;
    }

    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .slider-container {
        height: 220px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr; /* 1 Kolom Penuh di HP */
    }

    .map-wrapper {
        height: 280px;
    }

    .theme-switch-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}