/* =========================================
   1. VARIABLES & THEME SETUP
   ========================================= */
:root {
  /* --- Light Mode Palette --- */
  --bg-color: #f8fafc;            /* Slate 50 */
  --primary-dark: #0f172a;        /* Slate 900 (Warna Utama) */
  --primary-blue: #0284c7;        /* Sky 600 (Warna Aksen) */
  --primary-blue-hover: #0369a1;  /* Sky 700 */
  
  --text-main: #334155;           /* Slate 700 */
  --text-muted: #64748b;          /* Slate 500 */
  --white: #ffffff;

  /* --- Glassmorphism --- */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --backdrop-blur: blur(16px);

  /* --- Layout & Spacing --- */
  --max-width: 1200px;
  --header-height: 80px;
  --radius-lg: 16px;
  --radius-md: 10px;
  
  /* --- Transitions --- */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.3s var(--ease-out);
}

/* --- Dark Mode Variables --- */
body.dark-mode {
  --bg-color: #0f172a;
  --primary-dark: #f1f5f9;
  --primary-blue: #38bdf8;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #1e293b;

  /* Glass Dark */
  --glass-bg: rgba(15, 23, 42, 0.75); 
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

/* Background Vanta.js Fixed */
#vanta-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* =========================================
   3. UTILITIES
   ========================================= */
.container {
  max-width: var(--max-width);
  width: 90%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   4. HEADER
   ========================================= */
header {
  height: var(--header-height);
  padding: 0 5%;
  background: rgba(15, 23, 42, 0.85); 
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.logo-container h1 {
  display: flex;
  flex-direction: column;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-container .word:nth-child(1) { color: #ffffff; font-weight: 700; }
.logo-container .word:nth-child(2) { color: var(--primary-blue); font-weight: 800; }

/* =========================================
   5. SECTIONS & ALIGNMENT FIX (Side-by-Side)
   ========================================= */
.glass-panel h2 {
  color: var(--primary-dark);
  font-size: 1.75rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-blue);
  display: inline-block;
}

.description-container p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  text-align: justify;
}

@keyframes gradientPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Teks Animasi */
#animated-data {
  margin-top: 15px;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 1.8em;
}

/* =========================================
   6. PROJECTS GRID (UPDATED)
   ========================================= */
.projects {
  display: grid;
  /* PERBAIKAN UTAMA: Ubah 320px menjadi 280px */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* Pastikan lebar max 100% agar tidak overflow container */
  max-width: 100%; 
}

/* ... (Kode .project img, .project:hover, dll biarkan sama) ... */

.project:hover {
  transform: translateY(-8px);
  /* Ubah shadow biasa menjadi efek Neon Glow biru */
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.6); 
  border: 1px solid var(--primary-blue);
}

.project img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project:hover img { transform: scale(1.05); }

.project-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  color: var(--text-main);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.project-content a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: inline-block;
}

.project-content a:hover { color: var(--primary-blue); }

.project-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================
   7. INTERACTIVE & MODALS
   ========================================= */
/* Dark Mode Toggle */
.dark-mode-btn {
  position: fixed;
  bottom: 25px; left: 25px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.dark-mode-btn:hover { transform: scale(1.1); }
.dark-mode-btn .sun { opacity: 0; transform: translateY(20px); position: absolute; }
.dark-mode-btn .moon { opacity: 1; transform: translateY(0); position: absolute; }
body.dark-mode .dark-mode-btn .sun { opacity: 1; transform: translateY(0); }
body.dark-mode .dark-mode-btn .moon { opacity: 0; transform: translateY(-20px); }

/* Modal */
.modal {
  display: none; position: fixed; z-index: 2000;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center; align-items: center;
}
.modal.show { display: flex; animation: fadeIn 0.3s ease; }
.modal-content {
  max-width: 90%; max-height: 90vh;
  border-radius: 8px; box-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.close {
  position: absolute; top: 20px; right: 30px;
  color: #f1f1f1; font-size: 40px; cursor: pointer;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   8. FOOTER (Icon Fix)
   ========================================= */
footer {
  margin-top: auto;
  background-color: #0f172a;
  color: #94a3b8;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  max-width: var(--max-width);
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-contacts { display: flex; gap: 25px; }
.footer-contacts a {
  display: flex; align-items: center; gap: 8px;
  color: #f8fafc; font-weight: 500; font-size: 0.9rem;
}
.footer-contacts a:hover { color: var(--primary-blue); }

/* --- ICON FOOTER STYLING --- */
.footer-contacts img {
  /* Default: Warna Asli (misal Gmail) */
  width: 18px; 
  height: 18px;
  /* Filter dihapus agar Gmail berwarna */
}

/* Khusus WhatsApp: Jadi Putih */
.footer-icon-white {
  filter: brightness(0) invert(1); 
}

/* =========================================
   9. RESPONSIVE (Stacking)
   ========================================= */
@media (max-width: 600px) {
  /* --- FIX LOGO HEADER --- */
  header { height: 70px; padding: 0 15px; }
  .logo-container img { height: 35px; } /* Perkecil logo sedikit */
  .logo-container h1 { font-size: 0.85rem; }

  /* --- FIX CONTAINER --- */
  .container {
    width: 92%; /* Lebarkan container di HP biar gak terlalu sempit */
    margin: 20px auto;
    gap: 30px;
  }
  
  .glass-panel { padding: 20px; } /* Kurangi padding dalam kartu */

  /* --- FIX SIDE-BY-SIDE (ATAU) --- */
  .side-by-side-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .separator-wrapper { height: 40px; margin: -10px 0; }
  .separator-text { width: 40px; height: 40px; font-size: 0.7rem; }
  .left-container, .right-container { border-radius: var(--radius-lg); padding: 30px 20px; }

  /* --- FIX PROJECT CARD (Samsung A22/S8+) --- */
  .projects {
    display: flex; /* Ganti Grid jadi Flex column agar lebih stabil di HP kecil */
    flex-direction: column;
    gap: 20px;
  }
  
  .project img {
    height: 180px; /* Kurangi tinggi gambar agar konten muat dalam satu layar */
  }

  .project-content h2 {
      font-size: 1.1rem; /* Sesuaikan ukuran font judul project */
  }

  /* Footer & Tombol */
  .footer-content { flex-direction: column; text-align: center; gap: 15px; }
  #contact-notification { left: 10px; right: 10px; bottom: 80px; width: auto; max-width: none; }
  .dark-mode-btn { bottom: 15px; left: 15px; width: 45px; height: 45px; }
}

/* =========================================
   10. VIDEO MODAL & PLAY OVERLAY
   ========================================= */
/* Wrapper untuk gambar agar tombol play bisa ditengah */
.image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Efek zoom saat card dihover */
.project:hover .image-wrapper img { transform: scale(1.05); }

/* Tombol Play Transparan di atas gambar */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(2, 132, 199, 0.85); /* Warna biru tema Anda */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  padding-left: 5px; /* Agar logo play (segitiga) terlihat lebih ke tengah */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; /* Agar klik diteruskan ke artikel */
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Munculkan tombol play saat cursor diarahkan ke kartu proyek mana pun yang ada videonya */
.project:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Styling Container Video Modal */
.modal-video-container {
  width: 90%;
  max-width: 900px;
  position: relative;
  display: flex;
  justify-content: center;
}

#modalVideo {
  width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #000;
  outline: none;
}

/* =========================================
   11. VISUAL CUES (BADGE VIDEO & LINK ICON)
   ========================================= */
/* Badge "Video Demo" di pojok gambar */
.video-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.75); /* Dark blue glass */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none; /* Agar klik tetap tembus ke trigger video */
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Titik merah berkedip ala indikator "Live/Recording" */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444; /* Warna merah */
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Animasi untuk icon external link saat judul di-hover */
.external-link svg {
  transition: transform 0.3s ease, color 0.3s ease;
}

.external-link:hover svg {
  transform: translate(3px, -3px); /* Ikon meluncur miring ke atas */
  color: var(--primary-blue);
}

/* Animasi untuk icon play saat judul video di-hover */
.video-title-link svg {
  transition: transform 0.3s ease, color 0.3s ease;
}

.video-trigger:hover .video-title-link svg {
  transform: scale(1.2); /* Ikon play membesar sedikit */
  color: var(--primary-blue);
}

/* Blinking Cursor untuk Efek Typewriter */
#animated-data::after {
  content: '|';
  color: var(--primary-blue);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* =========================================
   12. TYPOGRAPHY & SECTION HEADINGS
   ========================================= */

/* Sub-heading kecil di atas judul utama (Gaya Startup Modern) */
.sub-heading {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary-blue);
  background: rgba(2, 132, 199, 0.1); /* Background biru transparan */
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
body.dark-mode .sub-heading {
  background: rgba(56, 189, 248, 0.1);
}

/* Penyesuaian H2 (Judul Utama) */
.glass-panel h2 {
  font-size: 2.2rem; /* Diperbesar sedikit agar lebih dominan */
  margin-bottom: 20px;
  border-bottom: none; /* Buang garis bawah biru kaku yang lama */
  padding-bottom: 0;
  line-height: 1.3;
  color: var(--primary-dark);
}

/* Teks Gradasi (Highlight Kata Penting) */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue), #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
  display: inline-block;
}

/* Container untuk heading agar rapi */
.section-heading {
  margin-bottom: 30px;
}

/* Khusus untuk judul yang di tengah (seperti Portofolio) */
.text-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Deskripsi pendek di bawah judul Portofolio */
.heading-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 10px auto;
  line-height: 1.6;
}

/* =========================================
   RESPONSIVE TYPOGRAPHY (HP)
   Tambahkan di dalam blok @media (max-width: 600px) yang sudah ada:
   ========================================= */
@media (max-width: 600px) {
  .glass-panel h2 {
    font-size: 1.6rem;
  }
  .sub-heading {
    font-size: 0.65rem;
  }
  .heading-desc {
    font-size: 0.95rem;
  }
}

/* =========================================
   13. ABOUT & SERVICES (PROFESSIONAL LAYOUT)
   ========================================= */

/* Bagian Tentang Kami (Dengan Glass Panel Premium) */
.about-section {
  max-width: 900px; /* Dibuat lebih lebar dari sebelumnya agar proporsional */
  margin: 0 auto;
  text-align: center;
  padding: 50px 60px; /* Padding dibesarkan agar teks bisa bernapas */
  border-radius: 24px; /* Sudut dibuat lebih melengkung halus (modern) */
  border-top: 1px solid rgba(255, 255, 255, 0.8); /* Pantulan cahaya di atas */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05); /* Bayangan super halus */
}

body.dark-mode .about-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.about-content h2 {
  font-size: 2.8rem;
  color: var(--primary-dark);
  margin-bottom: 25px;
  line-height: 1.3;
}

/* Penyesuaian Responsif HP agar kotaknya tidak mentok layar */
@media (max-width: 600px) {
  .about-section {
    padding: 35px 25px;
    border-radius: 16px;
  }
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-content p:not(.lead-text) {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Grid Layanan (Dua Kolom Rapi) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

/* Kartu Layanan (Menggunakan Glassmorphism yang lebih tipis) */
.service-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%; /* TAMBAHKAN INI: Menjaga tinggi kartu seragam */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent; 
}

.service-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--primary-blue);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

body.dark-mode .service-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

body.dark-mode .service-icon {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Teks Efek Ngetik di dalam Kartu */
.typewriter-text {
    display: block; 
    margin-top: 10px;
    font-size: 1.15rem; 
    color: var(--primary-blue);
    font-weight: 800;
    line-height: 1.4;
    
    /* INI KUNCI UTAMANYA: Mengunci tinggi absolut untuk 2 baris teks */
    height: 3.5rem; 
    
    /* Mencegah layout bergeser kalau ada kata yang kepanjangan */
    overflow: hidden; 
    word-wrap: break-word;
}

/* Kursor berkedip untuk Typewriter */
.typewriter-text::after {
    content: '|';
    color: var(--primary-blue);
    animation: blink 1s step-end infinite;
}

/* Penyesuaian khusus untuk iPad dan HP agar tidak kegedean */
@media (max-width: 768px) {
    .typewriter-text {
        font-size: 1.05rem;
        height: 3rem; /* Dikurangi sedikit proporsional dengan font-nya */
    }
}

/* =========================================
   RESPONSIVE (HP)
   Tambahkan di dalam @media (max-width: 600px)
   ========================================= */
@media (max-width: 600px) {
  .about-content h2 {
    font-size: 2rem;
  }
  .lead-text {
    font-size: 1.1rem;
  }
  .about-content p:not(.lead-text) {
    font-size: 0.95rem;
  }
  .service-card {
    padding: 30px 20px;
  }
}

/* =========================================
   14. HEADER NAVIGATION & TABS (PREMIUM)
   ========================================= */
header {
  justify-content: space-between; /* Pisahkan logo dan menu */
}

/* Container navigasi bergaya "Floating Island" / Kaca Tipis */
.main-nav {
  display: flex;
  gap: 5px;
  background: rgba(15, 23, 42, 0.05); /* Latar transparan super tipis */
  padding: 6px;
  border-radius: 40px;
  border: 1px solid rgba(2, 132, 199, 0.1); /* Garis batas halus */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); /* Pantulan cahaya dalam */
}

body.dark-mode .main-nav {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem; /* Dibuat sedikit lebih kecil agar berkelas */
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 8px 24px;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Efek Hover untuk tombol yang TIDAK aktif */
.nav-btn:hover:not(.active) {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.6);
}
body.dark-mode .nav-btn:hover:not(.active) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Tombol Menu yang sedang AKTIF */
.nav-btn.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-blue), #0ea5e9);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

/* --- TAB CONTENT ANIMATION --- */
.tab-content {
  display: none; /* Sembunyikan semua tab secara default */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; /* Animasi lebih smooth */
}

/* Class untuk tab yang aktif */
.tab-content.active-tab {
  display: flex;
  flex-direction: column;
  gap: 50px; /* Jarak proporsional antar section */
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pastikan section dalam About tidak numpuk */
#about-content .founder-section {
  margin-top: 0;
}

/* =========================================
   RESPONSIF NAVIGASI (HP)
   ========================================= */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 15px;
    gap: 20px;
  }
  
  .main-nav {
    width: 100%;
    justify-content: center;
    padding: 5px;
  }
  
  .nav-btn {
    flex: 1; /* Di HP, tombol Home dan About membagi layar sama rata */
    font-size: 0.85rem;
    padding: 10px 15px;
  }
}

/* =========================================
   15. FOUNDER SECTION (ABOUT TAB - FIXED)
   ========================================= */
.founder-section {
  padding: 60px 50px;
  border-radius: 24px;
  width: 100%;
}

/* Menggunakan Flexbox agar pembagian layout lebih stabil di Desktop */
.founder-layout-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 60px;
}

/* --- KIRI: FOTO & INFO SINGKAT --- */
.founder-sidebar {
  flex: 0 0 300px; /* Lebar tetap 300px di Desktop */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.founder-image-wrapper {
  position: relative;
  margin-bottom: 25px;
}

.founder-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
body.dark-mode .founder-img { 
  border-color: var(--primary-dark); 
}

.verified-badge {
  position: absolute;
  bottom: 15px;
  right: 25px;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
  display: flex;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.founder-name {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
  line-height: 1.2;
}

.founder-title {
  font-size: 1rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 25px;
}

.founder-credentials {
  width: 100%;
  text-align: left;
  background: rgba(2, 132, 199, 0.05);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(2, 132, 199, 0.15);
  margin-bottom: 30px;
}
body.dark-mode .founder-credentials {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.cred-item {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cred-item:last-child { margin-bottom: 0; }

.founder-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.btn-download-cv {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s, background 0.3s;
  width: 100%;
}
.btn-download-cv:hover { 
  background: var(--primary-blue); 
  color: #fff; 
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3);
}

.founder-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.founder-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--bg-color);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, background 0.3s;
}
.founder-socials a:hover { 
  transform: scale(1.1); 
  background: var(--white);
}

/* --- KANAN: KONTEN UTAMA --- */
.founder-main-content {
  flex: 1; /* Mengisi sisa ruang di layar */
  display: flex;
  flex-direction: column;
}

/* Pastikan Sub-heading selalu memblok 1 baris penuh di atas H2 */
.founder-heading-area .sub-heading {
  display: inline-block; /* Gunakan inline-block atau block */
  margin-bottom: 15px; /* Jarak ke bawah sebelum H2 */
  width: max-content; /* Pastikan dia tidak melebar lebih dari isi teksnya */
}

/* Pastikan H2 turun ke baris baru dan tidak bersebelahan */
.founder-heading-area h2 {
  display: block; /* INI KUNCINYA: Memaksa H2 selalu di baris baru */
  width: 100%;    /* Mengambil lebar penuh container */
  font-size: 2.6rem;
  line-height: 1.2;
  margin-top: 0;  /* Margin atas di-nol-kan karena sudah ada margin-bottom di sub-heading */
  margin-bottom: 20px;
  border-bottom: none;
  padding-bottom: 0;
}

/* Paragraf Bio */
.founder-bio p {
  font-size: 1.1rem;
  color: var(--text-main); /* Sedikit lebih gelap dari muted agar mudah dibaca */
  line-height: 1.8;
  margin-bottom: 20px;
}

.skills-intro {
  margin-top: 30px;
  font-size: 1.2rem !important;
  color: var(--primary-dark) !important;
}

/* Daftar Keahlian (List) */
.founder-skills-list {
  list-style: none;
  padding: 0;
  margin-bottom: 35px;
}

.founder-skills-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.4);
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.03);
}
body.dark-mode .founder-skills-list li {
  background: rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.05);
}

.skill-icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.skill-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.skill-text strong {
  color: var(--primary-dark);
}

/* Kotak Kutipan (Quote) di Bawah */
.founder-quote-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), transparent);
  border-left: 4px solid var(--primary-blue);
  padding: 20px 25px;
  border-radius: 0 12px 12px 0;
}
body.dark-mode .founder-quote-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), transparent);
}

.founder-quote-box p {
  margin-bottom: 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary-dark);
  font-weight: 600;
}

/* =========================================
   RESPONSIVE ABOUT SECTION (HP & Tablet)
   ========================================= */
@media (max-width: 950px) {
  .founder-layout-wrapper {
    flex-direction: column; /* Berubah jadi atas-bawah di Tablet/HP */
    align-items: center;
    gap: 40px;
  }
  
  .founder-sidebar {
    flex: none;
    width: 100%;
    max-width: 400px;
  }
  
  .founder-actions {
    flex-direction: row; /* Tombol CV dan sosmed berjajar ke samping di HP */
    align-items: center;
    justify-content: center;
  }
  
  .btn-download-cv {
    flex: 1; /* Biar tombol CV agak memanjang */
  }

  .founder-heading-area {
    text-align: center; /* Judul rata tengah di HP */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .founder-heading-area h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .founder-section {
    padding: 35px 25px;
  }
  .founder-heading-area h2 {
    font-size: 1.8rem;
  }
  .founder-bio p {
    font-size: 1rem;
  }
  .founder-skills-list li {
    flex-direction: column; /* Ikon dan teks ke bawah di HP kecil */
    gap: 8px;
    padding: 15px;
  }
}

/* =========================================
   16. CUSTOM SCROLLBAR (SLIDER HALAMAN)
   ========================================= */

/* Untuk Mozilla Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) transparent;
}

/* Untuk Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
  width: 10px; /* Lebar scrollbar vertikal */
  height: 10px; /* Tinggi scrollbar horizontal (jika ada) */
}

/* Jalur Scrollbar (Background) */
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05); 
}

body.dark-mode ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* Handle/Slider Scrollbar (Yang ditarik) */
::-webkit-scrollbar-thumb {
  background-color: var(--primary-blue);
  border-radius: 20px;
  /* Memberikan border transparan agar slider tidak mentok ke ujung layar */
  border: 3px solid rgba(255, 255, 255, 0.5); 
  background-clip: padding-box;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  border: 3px solid rgba(15, 23, 42, 0.8); 
}

/* Saat Slider di-hover/disentuh */
::-webkit-scrollbar-thumb:hover {
  background-color: #0284c7; /* Biru yang lebih terang */
}

/* =========================================
   17. TECH STACK MARQUEE (GLASS CHIPS STYLE)
   ========================================= */
.tech-stack-container {
  width: 100%;
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 5; /* Pastikan di atas background */
}

.tech-label {
  font-size: 0.85rem;
  letter-spacing: 3px;
  font-weight: 800;
  color: #fff; /* Putih terang biar jelas */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Shadow teks biar pop-up */
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  /* Masker gradasi kiri-kanan agar halusnya dapet */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 20px; /* Jarak antar kotak */
  animation: scrollLeft 40s linear infinite;
  width: max-content;
  padding-left: 20px; /* Padding awal */
}

/* Pause saat dihover */
.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

/* STYLE BARU: KOTAK KACA (GLASS CHIPS) */
.tech-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff; /* Teks Putih Solid */
  
  /* Background Kaca Buram */
  background: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  padding: 12px 24px; /* Ukuran tombol */
  border-radius: 50px; /* Bentuk Pil */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Garis tepi halus */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: default;
}

/* Khusus Dark Mode (Tetap terang biar kontras) */
body.dark-mode .tech-item {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(56, 189, 248, 0.3);
  color: #e2e8f0;
}

/* Efek Hover: Menyala Biru */
.tech-item:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
  transform: translateY(-3px) scale(1.05); /* Naik sedikit */
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.5); /* Glow biru */
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsif HP */
@media (max-width: 600px) {
  .tech-item {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* =========================================
   18. PRELOADER (LOADING SCREEN)
   ========================================= */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--primary-dark);
  z-index: 9999; /* Paling atas menutupi semua */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pulsing-logo {
  animation: logoPulse 2s infinite ease-in-out;
  filter: drop-shadow(0 0 15px rgba(2, 132, 199, 0.5));
}

.loader-line {
  width: 150px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 50%;
  background: var(--primary-blue);
  animation: loadingLine 1.5s infinite ease-in-out;
  border-radius: 3px;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes loadingLine {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* =========================================
   19. GRAND CTA & CONTACT FORM
   ========================================= */
.cta-section {
  padding: 0 0 50px 0;
}

.cta-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Membagi 2 kolom sama rata */
  gap: 50px;
  padding: 50px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border: 1px solid rgba(255,255,255,0.5);
  align-items: flex-start;
}

body.dark-mode .cta-container-grid {
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(15,23,42,0.7));
  border-color: rgba(255,255,255,0.1);
}

/* --- KOLOM KIRI (TEKS & WA) --- */
.cta-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Tetap nempel di atas */
  width: 100%; /* Pastikan kolom mengambil 100% ruang grid-nya */
}

/* Pastikan judul dan paragraf mengambil lebar penuh agar tidak kaku */
.cta-left-col h2, 
.cta-left-col p {
  width: 100%;
  text-align: left;
}

/* Kotak WA harus memenuhi lebar kolom kiri */
.cta-wa-box {
  width: 100%; /* INI KUNCINYA: Supaya kotak WA melebar */
  background: rgba(37, 211, 102, 0.1);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(37, 211, 102, 0.2);
  margin-top: 10px; /* Tambah jarak sedikit dengan paragraf di atas */
}

.wa-label {
  font-size: 0.85rem !important;
  font-weight: 700;
  color: #15803d !important; /* Hijau tua */
  margin-bottom: 10px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary-glow.full-width-btn {
  width: 100%;
  justify-content: center;
  background: #25D366; /* Warna Asli WA */
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.btn-primary-glow.full-width-btn:hover {
  background: #1ebc57;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

/* --- KOLOM KANAN (FORM EMAIL) --- */
.form-wrapper {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
body.dark-mode .form-wrapper {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.form-wrapper h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-blue);
  padding-left: 10px;
}

.form-group {
  margin-bottom: 15px;
}

/* Styling Input Form yang cantik */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
  background: var(--white);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  border-color: rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
}

.btn-email-submit {
  width: 100%;
  padding: 12px;
  border: none;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-email-submit:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

/* Responsif CTA (Tumpuk di HP) */
@media (max-width: 900px) {
  .cta-container-grid {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 40px;
  }
  .cta-left-col { text-align: center; }
  .cta-wa-box { text-align: left; }
}

/* --- Perbaikan Gaya Tombol WhatsApp di CTA --- */

/* Wadah untuk area WhatsApp */
.cta-wa-box {
    background-color: rgba(37, 211, 102, 0.1); /* Latar belakang hijau muda transparan */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(37, 211, 102, 0.2); /* Border hijau halus */
}

/* Label "RESPON TERCEPAT" */
.wa-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #15803d; /* Warna hijau tua untuk teks */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

/* Ikon Petir */
.wa-label i.fas.fa-bolt {
    color: #f59e0b; /* Warna oranye/emas untuk ikon petir */
    margin-right: 8px;
    font-size: 1rem;
}

/* Tombol "Chat WhatsApp Sekarang" */
.cta-wa-box .btn-primary-glow.full-width-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #25d366, #128c7e); /* Gradasi hijau WhatsApp */
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); /* Bayangan hijau yang berpendar */
    transition: all 0.3s ease;
    border: none;
}

/* Efek Hover pada Tombol */
.cta-wa-box .btn-primary-glow.full-width-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #1ebc57, #0e7a6e); /* Gradasi sedikit lebih terang saat hover */
}

/* Ikon WhatsApp di dalam tombol */
.cta-wa-box .btn-primary-glow.full-width-btn img {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    filter: brightness(0) invert(1); /* Membuat ikon menjadi putih */
}

/* =========================================
   20. CUSTOM CURSOR (PRECISION STYLE)
   ========================================= */
/* Sembunyikan cursor asli di device non-touch (PC/Laptop) */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none; /* Hilangkan panah default */
    }
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999; /* Di atas segalanya */
    pointer-events: none; /* Agar klik tembus ke elemen di bawahnya */
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(2, 132, 199, 0.5);
    transition: transform 0.15s ease-out; /* Efek delay halus */
}

/* Saat Hover Elemen Interaktif (Link, Button) */
body.hovering .cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: #fff;
}

body.hovering .cursor-outline {
    transform: translate(-50%, -50%) scale(1.8);
    background-color: rgba(2, 132, 199, 0.2);
    border-color: transparent;
}

/* Sembunyikan cursor custom di HP (Ribet kalau di touch screen) */
@media (max-width: 900px) {
    .cursor-dot, .cursor-outline { display: none; }
    body { cursor: auto; }
}

/* =========================================
   21. FLOATING ACTION BUTTONS
   ========================================= */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
}

/* Tombol WA Hijau */
.wa-btn {
    background: #25D366;
}

/* Tombol Top Biru */
.top-btn {
    background: var(--primary-blue);
    color: white;
    opacity: 0; /* Hidden default */
    transform: translateY(20px);
    pointer-events: none;
}

.top-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* =========================================
   22. WA TOOLTIP (CHAT BUBBLE)
   ========================================= */
.wa-tooltip {
  position: absolute;
  right: 70px; /* Muncul di sebelah kiri tombol WA */
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--white);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Panah kecil di tooltip */
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--white);
}

body.dark-mode .wa-tooltip {
  background-color: #1e293b;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
body.dark-mode .wa-tooltip::after {
  border-color: transparent transparent transparent #1e293b;
}

/* Animasi Muncul Otomatis */
.wa-wrapper:hover .wa-tooltip,
.wa-tooltip-show { /* Class ini akan dipicu JS */
  opacity: 1;
  visibility: visible;
  right: 65px; /* Efek geser sedikit */
}

/* Styling Tombol Email Melayang */
.email-btn {
  background: #fff; /* Latar putih */
  color: var(--primary-dark);
}
/* Efek hover untuk email */
.email-btn:hover {
  background: #f1f5f9;
}
/* Mode gelap: Email btn jadi agak gelap dikit biar gak silau */
body.dark-mode .email-btn {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
}

/* MEKANISME AUTO-HIDE SAAT KETEMU FOOTER */
.floating-container {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Class ini akan ditambahkan oleh JS saat footer terlihat */
.floating-container.hide-floating {
  transform: translateY(100px); /* Turun ke bawah layar */
  opacity: 0;
  pointer-events: none; /* Agar tidak bisa diklik saat sembunyi */
}

/* =========================================
   23. PROFILE SEPARATOR (ABOUT US)
   ========================================= */
.profile-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.3), transparent);
    margin: 70px 0;
    border: none;
}

body.dark-mode .profile-separator {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* =========================================
   24. VERTICAL LANGUAGE TOGGLE & ANIMATION
   ========================================= */
.lang-toggle-vertical {
    position: fixed;
    bottom: 85px; 
    left: 25px;
    display: flex;
    flex-direction: column; /* Mengubah susunan menjadi Atas-Bawah */
    align-items: center;
    gap: 6px;
    z-index: 1100;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 12px 10px;
    border-radius: 30px;
    border: var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.lang-toggle-vertical:hover {
    transform: scale(1.05);
}

.lang-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted); /* Warna default redup */
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

/* Teks label menyala sesuai bahasa yang aktif */
html[lang="en"] #label-en { color: var(--primary-blue); }
html[lang="id"] #label-id { color: #10b981; }

/* --- Vertical Switch Styling --- */
.switch-vertical {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 46px; /* Dibuat memanjang ke bawah */
}

.switch-vertical input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-vertical .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--primary-dark);
    transition: .4s;
    border-radius: 34px;
}

.switch-vertical .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 4px; /* Posisi awal di ATAS (EN) */
    background-color: var(--white);
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

/* Saat di-check (ID), slider turun ke BAWAH */
.switch-vertical input:checked + .slider {
    background-color: #10b981; 
}

.switch-vertical input:checked + .slider:before {
    transform: translateY(20px); /* Bergerak ke bawah 20px */
}

/* --- THE MAGIC: TEXT ANIMATION LOGIC --- */
@keyframes fadeInLang {
    0% { opacity: 0; filter: blur(4px); }
    100% { opacity: 1; filter: blur(0); }
}

html[lang="en"] .lang-en,
html[lang="id"] .lang-id {
    /* Memicu animasi fade & blur setiap kali bahasa muncul */
    animation: fadeInLang 0.5s ease forwards;
}

html[lang="en"] .lang-id,
html[lang="id"] .lang-en {
    display: none !important;
}

/* Responsif untuk HP */
@media (max-width: 600px) {
    .lang-toggle-vertical {
        bottom: 75px;
        left: 15px;
        padding: 10px 8px;
    }
}

/* =========================================
   TOMBOL JURNAL & YOUTUBE (PROJECT CARD)
   ========================================= */
.project-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Mendorong tombol selalu ke paling bawah kartu */
    flex-wrap: wrap;  /* Jika layar sempit, tombol akan turun ke bawahnya */
}

.project-content a.journal-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    width: fit-content;
    border: 1px solid rgba(2, 132, 199, 0.2);
    transition: all 0.3s ease;
}

/* Penyesuaian untuk Dark Mode (Jurnal Biru) */
body.dark-mode .project-content a.journal-btn {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.2);
}

/* Efek Hover Jurnal */
.project-content a.journal-btn:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

body.dark-mode .project-content a.journal-btn:hover {
    color: #fff;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
}

/* --- KHUSUS TOMBOL YOUTUBE --- */
.project-content a.youtube-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444; /* Merah khas YouTube */
    border-color: rgba(239, 68, 68, 0.2);
}

.project-content a.youtube-btn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

body.dark-mode .project-content a.youtube-btn {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.2);
}

body.dark-mode .project-content a.youtube-btn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

/* =========================================
   WORKFLOW SECTION (ALUR KERJA)
   ========================================= */
.workflow-section {
    margin-top: 20px;
    padding: 50px 40px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    margin-top: 40px;
}

.workflow-step {
    position: relative;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

body.dark-mode .workflow-step {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.workflow-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
    background: var(--white);
}

body.dark-mode .workflow-step:hover {
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

/* Garis penghubung antar step (Hanya desktop) */
.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 45px; /* Sejajar dengan icon */
    right: -30px;
    width: 30px;
    height: 2px;
    background: dashed 2px var(--primary-blue);
    opacity: 0.4;
    z-index: 1;
}

/* Angka Latar Belakang Pudar */
.step-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(2, 132, 199, 0.1);
    line-height: 1;
    z-index: -1;
    transition: color 0.3s ease;
}

body.dark-mode .step-number {
    color: rgba(56, 189, 248, 0.08);
}

.workflow-step:hover .step-number {
    color: rgba(2, 132, 199, 0.2);
}

body.dark-mode .workflow-step:hover .step-number {
    color: rgba(56, 189, 248, 0.15);
}

/* Ikon Step */
.step-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-blue), #0ea5e9);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.workflow-step h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.workflow-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive Workflow untuk Tablet & HP */
@media (max-width: 950px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Sembunyikan garis penghubung di tablet agar tidak berantakan */
    .workflow-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .workflow-section {
        padding: 35px 20px;
    }
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}