/* ==========================================================================
   1. RESET & BASE STYLES (Fondasi Bersih)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #0f1115; /* Hitam arang modern */
  --bg-light: #f8f9fa; /* Putih bersih keabu-abuan */
  --text-dark: #1f232b;
  --text-light: #f0f2f5;
  --accent: #0071e3; /* Biru premium khas brand teknologi top */
  --accent-hover: #005bb5;
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Helper Class */
.badge {
  background-color: rgba(0, 113, 227, 0.1);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 20px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (Minimalis & Sticky)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px); /* Efek kaca transparan premium */
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--bg-dark);
}

.logo span {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 300;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: #555;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav .nav-btn {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
}

.main-nav .nav-btn:hover {
  background-color: var(--accent);
  color: white;
}

/* ==========================================================================
   3. HERO SECTION (Impactful & Bold - Pola Modius)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark); /* Bisa diganti background gambar nanti */
  padding: 120px 20px 80px 20px;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 25px;
}

.hero-section p {
  font-size: 1.2rem;
  color: #a0a5b5;
  max-width: 650px;
  margin: 0 auto 40px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.btn {
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   4. SERVICES SECTION (Clean Layout)
   ========================================================================== */
.services-section,
.portfolio-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--bg-dark);
  margin-bottom: 15px;
}

.section-title p {
  color: #666;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-light);
  padding: 40px 30px;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 113, 227, 0.2);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--bg-dark);
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ==========================================================================
   5. PORTFOLIO SECTION (Grid Elegan)
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.portfolio-item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.portfolio-img {
  height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.03); /* Efek zoom tipis saat dihover ala Modius */
}

.portfolio-info {
  padding: 30px;
}

.portfolio-info .category {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.portfolio-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--bg-dark);
}

.portfolio-info p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.demo-link {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
}

.demo-link:hover {
  letter-spacing: 0.5px; /* Efek gerak maju sedikit */
}

.demo-link.disabled {
  color: #aaa;
  cursor: not-allowed;
}

/* ==========================================================================
   6. CONTACT SECTION & FOOTER
   ========================================================================== */
.contact-section {
  background-color: var(--bg-light);
  padding: 100px 20px;
}

.contact-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-box h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  margin-bottom: 15px;
}

.contact-box p {
  color: #666;
  margin-bottom: 35px;
}

.btn-whatsapp {
  background-color: #25d366; /* Warna hijau WA resmi */
  color: white;
  display: inline-block;
}

.btn-whatsapp:hover {
  background-color: #1ebd58;
  transform: scale(1.02);
}

.site-footer {
  border-top: 1px solid #eee;
  padding: 40px 20px;
  text-align: center;
  background-color: white;
}

.footer-bottom {
  font-size: 0.9rem;
  color: #888;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (Pola Mobile-Friendly)
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    padding: 15px 20px;
  }

  .main-nav {
    display: none; /* Kamu bisa kembangkan ke Hamburger Menu nanti jika butuh */
  }

  .hero-section h1 {
    font-size: 2.3rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr; /* Jadi satu kolom penuh di HP */
  }

  .portfolio-img {
    height: 200px;
  }
}
