/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.highlight {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #ffd700;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
}

.btn-secondary:hover {
  background: #ffd700;
  color: #333;
}

/* Sections */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #ffd700;
}

.about, .projects, .contact {
  padding: 5rem 0;
}

.about-content, .contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem; /* Increased gap for 2 cards to look balanced */
  margin-bottom: 3rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer; /* Indicate clickable */
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
}

.project-card i {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 1rem;
}

.project-card h3 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.project-card p {
  opacity: 0.8;
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: scale(1.05);
  background: rgba(255, 215, 0, 0.1);
}

.contact-item i {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 1rem;
}

.contact-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact-item p {
  opacity: 0.8;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #ffd700;
  transform: translateY(-3px);
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-fade-in.visible { /* Updated class for observer */
  opacity: 1;
  transform: translateY(0);
}

/* Modal Styles (Enhanced for Elegance) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 2rem;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { transform: scale(0.9) translateY(-20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: #ffd700;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close:hover {
  color: #fff;
  transform: scale(1.2);
}

/* Sub-Projects Grid (New for Mobile App Modal - Mewah & Interaktif) */
.sub-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
}

.sub-project-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.sub-project-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
}

.sub-project-card i {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.sub-project-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.fade-in-sub {
  animation: fadeInSub 0.5s ease forwards;
}

@keyframes fadeInSub {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Form Styles (Minor Enhancement) */
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.contact-form h3 {
  margin-bottom: 1rem;
  color: #ffd700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Particles (Consistent with Header) */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particles::before,
.particles::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffd700;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
}

.particles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.particles::after {
  top: 80%;
  left: 80%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Mode Toggle (From Baseline) */
.mode-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 3;
}

.mode-toggle:hover {
  transform: scale(1.2);
  color: #ffd700;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav {
    gap: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sub-projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
    max-height: 90vh;
  }
  
  .sub-project-card {
    padding: 1rem;
  }
}

/* ===== NAVBAR HOME ONLY (REPORT PAGES) ===== */
.report-header {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.report-nav a {
  color: #ffd700;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.report-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}
/* ===== STYLE HALAMAN LAPORAN ===== */

/* Kotak konten utama */
main.container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 2rem 3rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  margin-top: 2rem;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease;
  color: #f5f5f5;
  line-height: 1.7;
}

/* Animasi muncul */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Judul utama */
main.container h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* Subjudul (Tujuan, Alat, Langkah, dst) */
main.container h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffd700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(255,215,0,0.3);
  padding-bottom: 0.5rem;
}

/* List dan ordered list */
main.container ul,
main.container ol {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}

main.container li {
  margin-bottom: 0.6rem;
}

/* Kode (inline dan block) */
code {
  background: rgba(0,0,0,0.6);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: #ffd700;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

pre {
  background: rgba(0,0,0,0.6);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

/* Gambar laporan */
.report-img {
  display: block;
  max-width: 100%;     /* Biar selalu ikut kotak container */
  height: auto;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(255, 215, 0, 0.3);
}

/* Caption gambar */
.fig-caption {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Footer laporan */
footer.footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}


