/* Custom styles for enhanced visual effects */
body {
  overflow-x: hidden;
}

/* Navbar blur effect */
#navbar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Background blur elements animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(120deg);
  }

  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

.fixed div[class*="bg-primary"],
.fixed div[class*="bg-secondary"] {
  animation: float 20s ease-in-out infinite;
}

.fixed div[class*="bg-primary"]:nth-child(2n) {
  animation-delay: -5s;
}

.fixed div[class*="bg-secondary"]:nth-child(2n+1) {
  animation-delay: -10s;
}

/* FAQ accordion styles */
.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Form focus effects */
input:focus,
textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 110, 25, 0.2);
}

/* Button hover effects */
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#mobile-menu-btn:hover {
  box-shadow: unset !important;
  transform: unset !important;
}

button.faq-question:hover {
  box-shadow: unset !important;
  transform: unset !important;
}

/* Image hover effects */
.blog-card img:hover,
.article-hero-image:hover,
.service-card img:hover {
  transform: scale(1.02);
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease;
}

#mobile-menu.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .fixed div[class*="bg-primary"],
  .fixed div[class*="bg-secondary"] {
    width: 200px !important;
    height: 200px !important;
  }
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #FF6E19;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e55a15;
}

/* Fade-in animation */
.show-on-scroll {
  opacity: 0;
  transition: .9s all ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1.0s ease-in forwards;
}

/* Modern experience counter section */
.experience-section {
  isolation: isolate;
}

.experience-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.64)),
    radial-gradient(circle at 10% 20%, rgba(255, 110, 25, 0.14), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(13, 43, 77, 0.14), transparent 35%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 90px rgba(13, 43, 77, 0.13);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(13, 43, 77, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 43, 77, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.55), transparent 72%);
}

.experience-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
}

.experience-glow-one {
  width: 220px;
  height: 220px;
  left: -80px;
  top: -70px;
  background: rgba(255, 110, 25, 0.22);
}

.experience-glow-two {
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -100px;
  background: rgba(13, 43, 77, 0.14);
}

.experience-title {
  font-size: clamp(2.35rem, 6.5vw, 5.7rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.experience-number-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.04em;
  color: #FF6E19;
  font-variant-numeric: tabular-nums;
}

#counter {
  display: inline-block;
  min-width: 2.35ch;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.experience-plus {
  font-size: 0.55em;
  line-height: 1;
  margin-top: 0.11em;
}

.experience-title-text,
.experience-subtitle {
  display: block;
}

.experience-subtitle {
  max-width: 720px;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: rgba(13, 43, 77, 0.74);
}

.experience-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(13, 43, 77, 0.06);
  color: #0D2B4D;
  font-size: 0.82rem;
  font-weight: 700;
}

.experience-chip::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #FF6E19;
}

.experience-visual {
  position: relative;
}

.experience-visual img {
  box-shadow: 0 24px 60px rgba(13, 43, 77, 0.18);
}

.experience-floating-card {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 45px rgba(13, 43, 77, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.experience-floating-number {
  color: #FF6E19;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.experience-floating-text {
  color: #0D2B4D;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.experience-stat-card {
  padding: 1.25rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 16px 40px rgba(13, 43, 77, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 24px 50px rgba(13, 43, 77, 0.13);
}

.experience-stat-number {
  display: block;
  color: #0D2B4D;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.experience-stat-label {
  display: block;
  margin-top: 0.6rem;
  color: rgba(13, 43, 77, 0.68);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .experience-floating-card {
    position: static;
    margin-top: 1rem;
  }

  .experience-floating-text {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  #counter,
  .experience-stat-card {
    transition: none;
  }
}

/* Blog templates */
.blog-gradient-bg {
  background:
    radial-gradient(circle at top left, rgba(255, 110, 25, 0.14), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(13, 43, 77, 0.12), transparent 30rem),
    rgba(255, 255, 255, 0.74);
}

.blog-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 2.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 30px 90px rgba(13, 43, 77, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.blog-hero-card::before {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -8rem;
  top: -10rem;
  border-radius: 999px;
  background: rgba(255, 110, 25, 0.16);
  filter: blur(8px);
}

.blog-card {
  overflow: hidden;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(13, 43, 77, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 110, 25, 0.35);
  box-shadow: 0 28px 70px rgba(13, 43, 77, 0.14);
}

.blog-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(13, 43, 77, 0.08);
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 1.35rem;
}

.blog-category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 110, 25, 0.1);
  color: #FF6E19;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card-title {
  color: #0D2B4D;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.blog-card-excerpt {
  color: rgba(75, 85, 99, 0.95);
  font-size: 0.94rem;
  line-height: 1.65;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.1rem;
  color: rgba(13, 43, 77, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-read-more {
  display: inline-flex;
  margin-top: 1rem;
  color: #FF6E19;
  font-weight: 800;
  font-size: 0.92rem;
}

.blog-search-field {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(13, 43, 77, 0.12);
  background: rgba(255, 255, 255, 0.86);
  padding: 1rem 1.25rem;
  color: #0D2B4D;
  outline: none;
  box-shadow: 0 12px 30px rgba(13, 43, 77, 0.07);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-search-field:focus {
  border-color: rgba(255, 110, 25, 0.8);
  box-shadow: 0 14px 35px rgba(255, 110, 25, 0.14);
}

.blog-filter {
  border-radius: 999px;
  border: 1px solid rgba(13, 43, 77, 0.13);
  padding: 0.75rem 1rem;
  color: #0D2B4D;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.86rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.blog-filter:hover,
.blog-filter.is-active {
  background: #0D2B4D;
  color: #ffffff;
  border-color: #0D2B4D;
}

.blog-featured-card {
  border-radius: 2.5rem;
  overflow: hidden;
  background: #0D2B4D;
  box-shadow: 0 30px 80px rgba(13, 43, 77, 0.22);
}

.blog-featured-card img {
  height: 100%;
  min-height: 320px;
  width: 100%;
  object-fit: cover;
}

.blog-empty-state {
  border-radius: 2rem;
  border: 1px dashed rgba(13, 43, 77, 0.18);
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  color: rgba(13, 43, 77, 0.75);
  text-align: center;
}

.blog-breadcrumb a {
  color: rgba(13, 43, 77, 0.72);
  transition: color 0.25s ease;
}

.blog-breadcrumb a:hover {
  color: #FF6E19;
}

.article-shell {
  border-radius: 2.75rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 30px 90px rgba(13, 43, 77, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.article-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 2.25rem;
  box-shadow: 0 24px 70px rgba(13, 43, 77, 0.12);
}

.blog-prose {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.blog-prose h2 {
  color: #0D2B4D;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  font-weight: 800;
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  scroll-margin-top: 7rem;
}

.blog-prose h3 {
  color: #0D2B4D;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 7rem;
}

.blog-prose p,
.blog-prose ul,
.blog-prose ol {
  margin-bottom: 1.1rem;
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 1.25rem;
}

.blog-prose li {
  margin-bottom: 0.65rem;
}

.blog-prose ul li {
  list-style: disc;
}

.blog-prose ol li {
  list-style: decimal;
}

.blog-prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 5px solid #FF6E19;
  border-radius: 1.25rem;
  background: rgba(255, 110, 25, 0.08);
  color: #0D2B4D;
  font-weight: 700;
  font-size: 20px;
  font-style: italic;
  padding: 32px;
}

.article-info-box {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 110, 25, 0.18);
  background: rgba(255, 110, 25, 0.08);
  padding: 1.25rem;
}

.article-toc {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 43, 77, 0.08);
  box-shadow: 0 18px 45px rgba(13, 43, 77, 0.08);
  padding: 1.25rem;
}

.article-toc a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  color: rgba(13, 43, 77, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.22s ease;
}

.article-toc a:hover,
.article-toc a.is-active {
  background: rgba(255, 110, 25, 0.1);
  color: #FF6E19;
}

.author-card,
.article-cta-card {
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 50px rgba(13, 43, 77, 0.09);
}

.article-cta-card {
  background: linear-gradient(135deg, #0D2B4D, #123d6c);
}

/* ===== MOBILE RESPONSIVENESS FIXES ===== */
@media (max-width: 640px) {
  .blog-prose p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }
  .blog-prose h2 {
    font-size: 1.5rem !important;
    scroll-margin-top: 100px;
  }
  .blog-prose h3 {
    font-size: 1.1rem !important;
  }
  .blog-prose blockquote {
    font-size: 17px !important;
    padding: 20px !important;
  }
  .article-hero-image {
    max-height: 250px !important;
    border-radius: 1.5rem !important;
  }
  .article-shell {
    padding: 1.2rem !important;
    border-radius: 1.5rem !important;
  }
  .article-toc {
    display: none !important; /* Sembunyikan TOC desktop, karena sudah ada mobile TOC */
  }
  .blog-breadcrumb {
    font-size: 0.8rem;
  }
  .blog-category-pill {
    font-size: 0.65rem;
  }
  .author-card {
    padding: 1.2rem !important;
  }
  .article-cta-card {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .blog-prose p {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }
  .blog-prose h2 {
    font-size: 1.3rem !important;
  }
}

/* --- Perbaikan proporsi gambar --- */

/* Semua gambar tidak overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Gambar dengan object-fit cover tetapi tetap proporsional */
.blog-card-image,
.article-hero-image,
.experience-visual img,
.hero-grid-image,
.why-us-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pastikan kontainer memiliki aspect ratio */
.blog-card-media {
  aspect-ratio: 16 / 10;
}

.article-hero-image {
  aspect-ratio: 16 / 9;
}

.experience-visual img {
  aspect-ratio: 16 / 10;
}

.why-us-image {
  aspect-ratio: 1 / 1;
}

/* Ikon layanan dan proses (biar tidak terpotong) */
.service-icon,
.process-icon {
  object-fit: contain;
  width: 80px;
  height: 80px;
}

/* Spacing untuk gambar hero artikel */
.article-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 2.25rem;
  box-shadow: 0 24px 70px rgba(13, 43, 77, 0.12);
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Responsif mobile */
@media (max-width: 640px) {
  .article-hero-image {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 250px;
    border-radius: 1.5rem;
  }
}

footer {
  background-color: #0D2B4D !important;
  color: #ffffff !important;
  border-top: 3px solid #FF6E19;
}

footer a {
  color: rgba(255,255,255,0.8);
}

footer a:hover {
  color: #FF6E19;
}