/* ===================================
   PORTFOLIO & BLOG - GLOBAL STYLES
   Inspired by: danbeeshin.com
   Minimalist, Whitespace, Elegant
   =================================== */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Minimalist */
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #666666;
  --color-accent: #2d2d2d;
  --color-border: #e5e5e5;
  --color-hover: #f5f5f5;
  --color-border2: #ffcc00;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  
  /* Spacing - Generous whitespace */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 12rem;
  
  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
  font-size: 1.125rem;
  line-height: 1.8;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.6;
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  border-left: 50px solid var(--color-border2);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* === LAYOUT === */
.main-content {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
}

/* === HERO SECTION === */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-xl);
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* === SECTION === */
.section {
  padding: var(--space-xxl) 0;
}

.section.fade-in {
    /* Ganti 192px yang gila itu dengan XL (96px) atau LG (64px) */
    padding: var(--space-lg) 0; 
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: 2.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  font-size: 1.125rem;
}

/* === GRID LAYOUTS === */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* === CARD === */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: var(--space-md);
  background: var(--color-hover);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

.card-meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-excerpt {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* === BUTTON === */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: 2px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
  opacity: 1;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* === FORM === */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* === FOOTER === */
.footer {
  background: var(--color-hover);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  list-style: none;
  margin-bottom: var(--space-md);
}

.footer-text {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
  }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--color-border);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: 70vh;
    padding: var(--space-xl) var(--space-md);
  }
}

/* === UTILITIES === */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* ==========================================
   SIHIR CSS ARTIKEL GAYA NATIONAL GEO TERLENGKAP
   ========================================== */

/* --- 1. JURUS HURUF RAKSASA --- */
.dropcap::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 1;
    margin-right: 0.15em;
    color: #ffcc00; /* Kuning Emas NatGeo */
    font-weight: bold;
    font-family: 'Playfair Display', 'Georgia', serif;
}

/* --- 2. JURUS GAMBAR BERCERITA --- */
.gambar-natgeo {
    margin: 3rem 0;
    text-align: center;
}
.gambar-natgeo img {
    width: 100%; 
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.gambar-natgeo figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.8rem;
    text-align: left;
    border-left: 4px solid #ffcc00;
    padding-left: 10px;
    font-style: italic;
}

/* --- 3. JURUS KUTIPAN SUPER --- */
.kutipan-natgeo {
    font-size: 1.5rem;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-style: italic;
    text-align: center;
    border-top: 2px solid #ffcc00;
    border-bottom: 2px solid #ffcc00;
    padding: 2rem 0;
    margin: 3rem auto;
    width: 80%;
    color: #222;
    line-height: 1.4;
}

/* --- 4. JURUS BINGKAI KACA (PDF) --- */
.dokumen-sakti {
    margin: 3rem auto;
    padding: 1.5rem;
    background-color: #fcfcfc;
    border: 1px solid #e5e5e5;
    border-top: 4px solid #ffcc00;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.judul-dokumen {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dokumen-sakti iframe {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #eee;
}
.catatan-dokumen {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}
.tombol-unduh {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 16px;
    background-color: #ffcc00;
    color: #111;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s ease;
}
.tombol-unduh:hover {
    background-color: #e6b800;
}

/* --- 5. JURUS BIOSKOP (VIDEO YOUTUBE & LOKAL) --- */
.video-sakti {
    margin: 3rem auto; /* Jarak agar tidak menempel dengan teks */
    width: 100%;
    max-width: 800px; /* Lebar maksimal layaknya bioskop mini */
    text-align: center;
}
.video-sakti iframe, 
.video-sakti video {
    width: 100%;
    aspect-ratio: 16 / 9; /* Cetakan ajaib agar video tidak gepeng! */
    border-radius: 8px; /* Ujung melengkung */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Bayangan tebal */
    border-bottom: 4px solid #ffcc00; /* Garis kuning di bawah layar */
    background-color: #000; /* Layar hitam sebelum video mulai */
}
.catatan-video {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}