
:root {
  --bg-color: #f0fdfa; /* Cyan sangat muda */
  --text-main: #0f766e; /* Teal gelap */
  --text-muted: #475569;
  --primary: #14b8a6; /* Teal / Hijau kebiruan */
  --primary-hover: #0d9488;
  --card-bg: #ffffff;
}

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

html {
  scroll-behavior: smooth; /* Animasi scroll lambat */
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   NAVBAR MODERN STICKY
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(240, 253, 250, 0.85);
  backdrop-filter: blur(10px); /* Efek blur ala Apple */
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ==========================================
   HERO SECTION & EFEK MENGETIK
   ========================================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #e0f2fe 0%, #ccfbf1 100%);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: #115e59;
}

.highlight {
  color: var(--primary);
}

.hero-typing {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.txt-type {
  color: var(--primary);
  font-weight: 600;
}

/* Membuat kursor vertikal | berkedip halus */
.cursor {
  animation: kedipKursor 0.7s infinite;
  color: var(--primary);
  margin-left: 2px;
}

@keyframes kedipKursor {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

/* ==========================================
   BAGIAN UMUM SECTION & PROYEK GRID
   ========================================== */
section {
  padding: 100px 20px;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #115e59;
}

.about p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

.project-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(20, 184, 166, 0.15);
}

.card-img {
  height: 200px;
  width: 100%;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  margin-bottom: 10px;
  color: var(--text-main);
}

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

/* ==========================================
   DESAIN TOMBOL KUNJUNGI NOVEL
   ========================================== */
.novel-card .card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-action {
  margin-top: 15px;
  opacity: 0; /* Sembunyikan tombol secara bawaan di laptop */
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
}

.btn-visit {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary);
  color: white !important;
  text-decoration: none !important;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease;
}

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

.novel-card:hover .card-action {
  opacity: 1; /* Muncul saat di-hover */
  transform: translateY(0);
}

/* ==========================================
   DESAIN LAYOUT CURRICULUM VITAE (CV)
   ========================================== */
.cv {
  background-color: #e6f7f4; 
}

.cv-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.05);
}

.cv-profile {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.info-block h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.info-block p {
  font-weight: 600;
  color: var(--text-main);
}

.tag-link {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f0fdfa;
  color: var(--primary);
  text-decoration: none;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 5px;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.cv-divider {
  border: 0;
  height: 1px;
  background: rgba(15, 118, 110, 0.1);
  margin: 25px 0;
}

/* ==========================================
   DESAIN BARU: HEADER PROFIL CV & POLAROID
   ========================================== */
.cv-header-profile {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

/* Bingkai Polaroid */
.polaroid-wrapper {
  flex-shrink: 0;
}

.polaroid-frame {
  background: #ffffff;
  padding: 12px 12px 18px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: rotate(-3deg); /* Efek miring estetik khas polaroid */
  transition: transform 0.3s ease;
  width: 160px;
  border: 1px solid rgba(0,0,0,0.05);
}

.polaroid-frame:hover {
  transform: rotate(0deg) scale(1.05); /* Lurus dan membesar sedikit saat di-hover */
}

.polaroid-photo {
  width: 136px;
  height: 140px;
  background-color: #ddd; /* Warna default kalau foto belum di-load */
  border: 1px solid rgba(0,0,0,0.1);
}

.polaroid-caption {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: #475569;
  margin-top: 10px;
}

/* Detail Teks di Samping Polaroid */
.profile-details {
  flex-index: 1;
}

.cv-full-name {
  font-size: 2.2rem;
  font-weight: 600;
  color: #115e59;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.cv-job-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cv-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: justify;
  line-height: 1.6;
}

/* Penyesuaian Tampilan untuk Layar HP */
@media screen and (max-width: 768px) {
  .cv-header-profile {
    flex-direction: column; /* Polaroid pindah ke atas teks saat di HP */
    text-align: center;
    gap: 20px;
  }
  
  .polaroid-frame {
    transform: rotate(0deg); /* Di HP dibuat lurus saja agar rapi */
    margin: 0 auto;
  }
  
  .cv-full-name {
    font-size: 1.8rem;
  }
  
  .cv-summary {
    text-align: justify;
  }
}

/* --- Pendidikan (Garis Putus-putus) --- */
.cv-section-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
}

.cv-column-title h3, .column-header-title h3 {
  font-size: 1.4rem;
  color: #115e59;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  margin-bottom: 20px;
}

.education-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px; 
  border-left: 2px dashed rgba(20, 184, 166, 0.4); 
}

.edu-item {
  position: relative;
  padding-bottom: 25px;
}

.edu-item:last-child {
  padding-bottom: 0;
}

.edu-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.edu-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.edu-header h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin: 0;
}

.edu-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 4px 0;
}

.edu-desc {
  font-size: 0.95rem;
  color: #475569;
  margin: 5px 0 0 0;
}

.status-badge.ongoing {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #f59e0b;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

/* --- Grid Pengalaman (Dua Kolom) --- */
.cv-experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.exp-item {
  margin-bottom: 25px;
  padding: 15px;
  background: #fdfdfd;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.05);
}

.exp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.badge-cat {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}

.school-badge { background-color: #e0f2fe; color: #0369a1; }
.env-badge { background-color: #dcfce7; color: #15803d; } 
.campus-badge { background-color: #fef3c7; color: #b45309; }

.exp-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.exp-item h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.exp-role {
  font-size: 0.9rem;
  font-style: italic;
  color: #0d9488;
  font-weight: 600;
  margin-bottom: 8px;
}

.exp-desc {
  font-size: 0.95rem;
  color: #475569;
  text-align: justify;
  line-height: 1.5;
}

/* --- Bagian Keahlian --- */
.cv-skills h3 {
  font-size: 1.4rem;
  color: #115e59;
  margin-bottom: 15px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-badge {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.text-tech { background-color: #e0f2fe; color: #0369a1; }
.text-creative { background-color: #fce7f3; color: #be185d; }

/* ==========================================
   FOOTER
   ========================================== */
footer {
  text-align: center;
  padding: 30px;
  background-color: #0f766e;
  color: white;
  font-size: 0.9rem;
}

/* ==========================================
   KELAS ANIMASI JS
   ========================================== */
.fade-in {
  animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   MEDIA QUERIES (Semua Fungsi HP Disatukan Di Sini)
   ========================================== */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .nav-links {
    gap: 15px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  section {
    padding: 60px 15px;
  }

  section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .about p {
    font-size: 1rem;
    text-align: justify;
  }

  /* CSS HP Untuk Tombol Novel */
  .card-action {
    opacity: 1;
    transform: translateY(0);
  }

  /* CSS HP Untuk CV */
  .cv-profile {
    flex-direction: column;
    gap: 15px;
  }
  .cv-section-wrapper {
    grid-template-columns: 1fr;
  }
  .education-timeline {
    padding-left: 15px;
  }
  .edu-item::before {
    left: -22px;
  }
  .cv-experience-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cv-card {
    padding: 20px;
  }
  .exp-meta {
    flex-direction: row;
    justify-content: space-between;
  }
} /* <--- Kurung Kurawal Penutup Utama Media Query */

/* ==========================================
   DESAIN KOTAK SARAN & RATING BINTANG
   ========================================== */
.feedback {
  background-color: #ffffff;
}

.feedback-card {
  max-width: 600px;
  margin: 0 auto;
  background: #f0fdfa; /* Sesuai variabel --bg-color kamu */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.05);
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #115e59;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group textarea {
  font-family: 'Poppins', sans-serif;
  padding: 12px 15px;
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Logika & Style Rating Bintang Terbalik (Kanan ke Kiri untuk Hover CSS) */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 2rem;
  color: #cbd5e1; /* Warna abu-abu saat belum dipilih */
  cursor: pointer;
  transition: color 0.2s ease;
}

/* Efek menyala saat di-hover atau dipilih */
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f59e0b; /* Warna Amber/Emas */
}

.btn-submit {
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .feedback-card {
    padding: 25px 20px;
  }
}

/* ==========================================
   TOMBOL KONTROL BGM MELAYANG (TEAL THEME)
   ========================================== */
.music-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary); /* Menggunakan warna teal khas webmu */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
  z-index: 2000;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.music-btn:hover {
  transform: scale(1.1);
  background-color: var(--primary-hover);
}

/* Efek berputar lambat saat musik aktif bermain */
.music-btn.playing {
  animation: putarMusik 4s linear infinite;
}

@keyframes putarMusik {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Penyesuaian responsif posisinya di Layar HP */
@media screen and (max-width: 768px) {
  .music-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}
