/* --- 1. Variabel & Reset Base --- */
:root {
    --bg-color: #0f172a; /* Dark Navy */
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #38bdf8; /* Sky Blue */
    --accent-hover: #7dd3fc;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* --- 2. Komponen Global (Tombol, Badge) --- */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 10px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.section-title span {
    color: var(--accent);
}

/* --- 3. Navigation Bar --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px); /* Efek kaca transparan */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

nav .logo span {
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--accent);
}

/* --- 4. Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    padding: 0 10%;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-section h1 span {
    color: var(--accent);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 40px;
}

/* --- 5. Services Section (Layanan) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- 6. Portfolio Section --- */
#portofolio {
    background-color: #111a2e; /* Variasi warna bg sedikit */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden; /* Agar gambar tidak keluar radius */
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.03);
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar rapi di dalam box */
    transition: var(--transition);
}

.card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--white);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Batasi teks deskripsi 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 7. Footer --- */
footer {
    text-align: center;
    padding: 40px;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- 8. Responsivitas (Mobile) --- */
@media (max-width: 768px) {
    html { font-size: 14px; }
    nav { padding: 15px 5%; }
    nav ul { display: none; } /* Sembunyikan menu di mobile (butuh JS untuk toggle) */
    .hero-section h1 { font-size: 2.5rem; }
    section { padding: 60px 5%; }
}