/* ============================= */
/* LF MEDIA - CSS BERSIH & OPTIMAL */
/* ============================= */

/* Animasi */
@keyframes gradientMove {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}
@keyframes patternMove {
    from { background-position: 0 0; }
    to { background-position: 1200px 1200px; }
}

/* Global / Umum */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    min-height: 100vh;
    color: #111;
    position: relative;
    overflow-x: hidden;
    /* Background gradient bergerak */
    background: linear-gradient(-45deg, #0d6efd, #6f42c1, #0dcaf0, #6610f2);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}
html { scroll-behavior: smooth; }

/* Overlay pola ikon di background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../img/ikon.jpg");
    background-repeat: repeat;
    background-size: 800px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    animation: patternMove 90s linear infinite;
}

/* Efek glass (blur + transparansi) */
.glass {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

/* Header */
header {
    padding: 60px 20px;
    color: white;
}
.header-wrap {
    max-width: 1300px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo {
    max-width: 260px;
    padding: 14px 22px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.logo:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Container & Section */
.container {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px 80px;
}
.section {
    padding: 50px;
    margin-bottom: 80px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.section:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 90px rgba(0,0,0,0.25);
}

/* Profil Penulis */
.profile {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: center;
}
.profile img {
    width: 240px;
    height: 300px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.profile table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 15px;
}

/* Judul */
h1 { margin: 0; font-size: 38px; }
h2 { font-size: 30px; }

/* Artikel */
.meta { font-size: 14px; color: #555; margin-bottom: 25px; }
.article-img {
    width: 60%;
    display: block;
    margin: 40px auto;
    border-radius: 26px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}
p { line-height: 2; font-size: 16px; color: #222; text-align: justify; }

/* Kotak Teknologi / Tech Box */
.tech-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
    margin: 50px 0;
}
.tech-item {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: white;
    padding: 25px;
    border-radius: 22px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tech-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}

/* Footer Perusahaan */
.company-footer {
    margin: 100px auto 80px;
    padding: 50px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: white;
    max-width: 700px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 100px;
    align-items: flex-start;
}
.footer-col:last-child { text-align: right; }
.footer-logo { width: 350px; margin-bottom: 20px; }
.footer-desc { font-size: 14px; line-height: 1.8; opacity: 0.9; 
    color: white;
}
footer {
    color: white;
}

/* Ikon Sosial Media */
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}
.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    color: white;
    transition: 0.3s;
}
.social-icons .instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.social-icons .youtube { background: #FF0000; }
.social-icons .tiktok { background: #000; }
.social-icons a:hover { transform: scale(1.15); }

/* Navigasi bawah */
.bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    z-index: 999;
}
.bottom-nav .nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 14px;
    transition: all 0.3s ease;
}
.bottom-nav .nav-link.active {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: white;
}

/* FAQ / Pertanyaan */
.faq { max-width: 800px; margin: 60px auto; display: grid; gap: 18px; }
details {
    border-radius: 18px;
    padding: 22px 26px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    transition: all 0.4s ease;
}
details[open] { background: linear-gradient(135deg, #0d6efd, #6f42c1); }
summary {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::after { content: "⌄"; font-size: 20px; transition: transform 0.3s ease; }
details[open] summary::after { transform: rotate(180deg); }
details p { margin-top: 18px; line-height: 1.8; font-size: 15px; color: #fff; }
.faq-title { text-align: center; font-size: 34px; font-weight: 700; margin-bottom: 50px; letter-spacing: 1px; background: linear-gradient(80deg, #2b2b2b); -webkit-background-clip: text; -webkit-text-fill-color: white;}

/* Scroll progress bar */
#scrollBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    width: 0%;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    z-index: 99999;
}

/* Animasi muncul (scroll reveal) */
.reveal { opacity: 0; transform: translateY(60px); transition: all 0.9s cubic-bezier(.17,.67,.3,1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Tombol tema (gelap / terang) */
.theme-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 12px 14px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}
.theme-btn:hover { transform: scale(1.1); }

/* Dark mode */
body.dark {
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364);
}
body.dark .glass { background: rgba(30,30,30,0.9); color: white; }
body.dark p { color: #ddd; }

/* Kursor custom */
.cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d6efd;
    pointer-events: none;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease;
    z-index: 99999;
}

/* Responsif */
@media(max-width: 900px) {
    .profile { grid-template-columns: 1fr; text-align: center; }
    .profile img { margin: auto; }
}
/* ================= SEARCH BOX ================= */
.search-box {
  margin-top: 25px;
  position: relative;
  width: 100%;
  max-width: 420px;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 15px;
  pointer-events: none;
}

#searchInput {
  width: 100%;
  padding: 14px 18px 14px 45px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

/* placeholder */
#searchInput::placeholder {
  color: #bbb;
}

/* focus effect */
#searchInput:focus {
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
  background: rgba(255,255,255,0.12);
}

/* ================= LIGHT MODE ================= */
body:not(.dark) #searchInput {
  background: rgba(0,0,0,0.05);
  color: #111;
  border: 1px solid rgba(0,0,0,0.15);
}

body:not(.dark) #searchInput::placeholder {
  color: #666;
}

body:not(.dark) .search-box i {
  color: #555;
}
/* ================= MOBILE CLEAN MODE ================= */
@media (max-width: 768px) {

  body {
    font-size: 14px;
  }

  /* HEADER */
  header {
    padding: 28px 16px;
  }

  .header-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .logo img {
    width: 130px;
  }

  h1 {
    font-size: 26px;
    margin: 8px 0;
  }

  #typing {
    font-size: 14px;
    opacity: 0.85;
  }

  .theme-btn {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 99;
  }

  /* CONTAINER */
  .container {
    padding: 0 14px 60px;
  }

  /* SECTION */
  .section {
    padding: 22px;
    margin-bottom: 28px;
    border-radius: 22px;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* SEARCH */
  .search-box input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 14px;
  }

  /* PROFILE */
  .profile {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .profile img {
    width: 160px;
    height: 200px;
    margin: auto;
    border-radius: 18px;
  }

  table {
    font-size: 14px;
    margin: auto;
  }

  table td {
    padding: 4px 6px;
  }

  /* TECH CARD */
  .tech-box {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tech-item {
    padding: 18px;
    font-size: 15px;
    border-radius: 16px;
  }

  /* CURSOR OFF DI MOBILE */
  .cursor {
    display: none;
  }
}
/* Mobile touch feel */
@media (max-width: 768px) {
  button, a, input {
    -webkit-tap-highlight-color: transparent;
  }
}