/*---------------------------------------------
  0. Variables & Base
---------------------------------------------*/
:root {
  --transition-fast: 0.3s;
  --transition-medium: 0.5s;
  --transition-long: 0.8s;
}

/*---------------------------------------------
  1. Navbar Scroll & Dropdown
---------------------------------------------*/
.navbar {
  padding: 1rem;
  transition: background-color var(--transition-medium),
              padding var(--transition-medium),
              backdrop-filter var(--transition-medium);
}
.navbar-scrolled {
  background-color: #ffffff !important;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.navbar-scrolled .nav-link,
.navbar-scrolled .navbar-brand {
  color: #000 !important;
}
.navbar .nav-link {
  position: relative;
  transition: color var(--transition-fast);
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffc107;
  transition: width var(--transition-medium), left var(--transition-medium);
}
.navbar .nav-link:hover::after {
  width: 100%;
  left: 0;
}
/* Toggler icon custom with clearer stroke */
.navbar .navbar-toggler {
  border-color: #ffc107;
}
.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffc107'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3e%3c/svg%3e");
}
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
  }
  .navbar-nav .dropdown-menu {
    margin-top: 0;
    opacity: 0.95;
    transition: opacity var(--transition-fast);
  }
}


/*==========
 Whatsapp Button & Modal 
 ================*/
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
}
.whatsapp-button img {
  width: 90px;
  height: auto;
}

.wa-modal {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 300px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.wa-modal-content {
  position: relative;
}
.wa-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
}

/* ==============
Footer Links 
===============*/
.footer-link {
  color: #222;
  text-decoration: none;
  transition: color .3s;
}
.footer-link:hover {
  color: #f0ad4e;
}

/* Social Icons */
.social-icon {
  font-size: 1.4rem;
  color: #555;
  margin-right: .8rem;
  transition: transform .3s, color .3s;
}
.social-icon:hover {
  color: #f0ad4e;
  transform: scale(1.2);
}

/* Back To Top Button */
#back-to-top {
  display: none;
  opacity: 0;
  transition: opacity .4s;
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1000;
}

/* Tooltip custom */
.tooltip-inner {
  background-color: #333;
  color: #fff;
  font-size: .85rem;
}

/* HR style */
footer hr {
  border-top: 1px solid #ddd;
}

/*---------------------------------------------
  2. Hero Banner Effects - Xolabit
---------------------------------------------*/
:root {
  --transition-medium: 0.6s ease;
}

.hero-banner {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

.hero-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.5), rgba(0,0,0,0.2));
  animation: overlayPulse 8s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes overlayPulse {
  from {
    background: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  }
  to {
    background: linear-gradient(45deg, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1,
.hero-content p,
.hero-content .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

.scroll-down i {
  color: #fff;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.wave-wrapper {
  height: 80px;
  line-height: 0;
}

.wave-svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p  { font-size: 1rem; }
}


/*---------------------------------------------
  3. About Section & Features
---------------------------------------------*/
.about-section {
  position: relative;
  overflow: hidden;
}

.text-accent {
  background-color: rgba(0, 76, 153, 0.9);
  color: #fff;
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: slideIn var(--transition-medium) ease-out;
}
.text-accent::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.15);
  transform: rotate(45deg);
}
@keyframes slideIn {
  from { transform: translateX(50px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.btn-outline-light {
  border-color: #fff;
  color: #fff;
  transition: background-color var(--transition-fast);
  z-index: 1;
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.2);
}

.hover-scale {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hover-scale:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.parallax-img {
  transition: transform var(--transition-long) ease-out;
}

.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: box-shadow var(--transition-medium);
}
.about-image-wrapper:hover {
  box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .text-accent { background-color: #004c99; }
}

/*---------------------------------------------
  About Section: equal-height cards & image
---------------------------------------------*/

/* Reset wrapper for text: no circle, fluid size */
.about-content {
  background: transparent;
  border-radius: 0;
  width: 100%;
  box-shadow: none;
  padding: 0;
}

/* Image wrapper with circular background remains as is */
.image-circle-wrapper {
  width: 400px;
  height: 400px;
  position: relative;
}
.circle-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,76,153,0.1), rgba(255,193,7,0.1));
  border: 5px solid rgba(0,76,153,0.3);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Foreground image sits above the circle */
.image-circle-wrapper img {
  width: 80%;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-medium);
}
.image-circle-wrapper img:hover {
  transform: scale(1.05);
}

/* Equal-height columns using flex */
.row.align-items-center > [class*="col-"] {
  display: flex;
  align-items: center;
}

/* Card wrapper hover */
.shadow-hover {
  transition: transform .3s, box-shadow .3s;
  border-radius: .5rem;
}
.shadow-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Constrain image height without cropping */
.card-img-wrapper {
  overflow: hidden;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  height: 180px; /* ubah sesuai kebutuhan */
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-top {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .5s;
}
.shadow-hover:hover .card-img-top {
  transform: scale(1.05);
}

/* Smaller text spacing */
.text-sm {
  font-size: .9rem;
  line-height: 1.4;
}

/* Responsive gutters & container */
@media (max-width: 576px) {
  .card-img-wrapper {
    height: 150px;
  }
}
/* ==================
Produk================ */
/* Section & Gradient Fallback */
#produk-unggulan {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 242, 204, 0.3),
    rgba(255, 204, 51, 0.1)
  );
}

/* Blob dasar */
.decor-blob {
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 1;
}

/* Blob kiri atas */
.blob-1 {
  top: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><path fill='%23FFD700' d='M44.8,-69.8C58.2,-56.8,68.5,-45,72.9,-30.5C77.3,-16,75.7,0,70.3,13.8C64.9,27.7,55.9,39.4,44.4,50.2C32.9,61.1,18.9,71,-0.6,73.7C-20.1,76.5,-40.2,72.1,-54.8,60.4C-69.4,48.7,-78.5,29.8,-78.1,11.1C-77.7,-7.6,-67.8,-25.3,-55.3,-39.6C-42.8,-53.8,-27.5,-64.7,-10.3,-68.9C6.8,-73.1,13.7,-70.9,44.8,-69.8Z'/></svg>");
}

/* Blob kanan bawah */
.blob-2 {
  bottom: -140px;
  right: -140px;
  width: 500px;
  height: 500px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><path fill='%23FFC107' d='M44.8,-69.8C58.2,-56.8,68.5,-45,72.9,-30.5C77.3,-16,75.7,0,70.3,13.8C64.9,27.7,55.9,39.4,44.4,50.2C32.9,61.1,18.9,71,-0.6,73.7C-20.1,76.5,-40.2,72.1,-54.8,60.4C-69.4,48.7,-78.5,29.8,-78.1,11.1C-77.7,-7.6,-67.8,-25.3,-55.3,-39.6C-42.8,-53.8,-27.5,-64.7,-10.3,-68.9C6.8,-73.1,13.7,-70.9,44.8,-69.8Z'/></svg>");
}

/* Card hover effect */
.shadow-hover {
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 0.5rem;
}
.shadow-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Constrain image height without cropping */
.card-img-wrapper {
  overflow: hidden;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-top {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s;
}
.shadow-hover:hover .card-img-top {
  transform: scale(1.05);
}

/* Smaller text for descriptions */
.text-sm {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .card-img-wrapper {
    height: 150px;
  }
}
/*======== Banner About Page ===========*/
#about-banner {
  height: 70vh;
}
#about-banner img {
  object-fit: cover;
  height: 100%;
  transition: transform 0.5s ease-out;
}
#about-banner .banner-overlay {
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
}
#about-banner:hover .banner-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.animate-scale {
  transition: transform 0.3s ease;
}
.animate-scale:hover {
  transform: scale(1.05);
}

.hover-opacity:hover {
  opacity: 0.85;
  transition: 0.3s;
}

/*======BOD=====*/
.profile-img-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.profile-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.linkedin-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 119, 181, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.profile-img-wrapper:hover .linkedin-overlay {
  opacity: 1;
}

.profile-img-wrapper:hover .profile-img {
  transform: scale(1.05);
}
.profile-img-wrapper {
  width: 140px;
  height: 140px;
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.linkedin-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s ease-in-out;
}
.profile-img-wrapper:hover .linkedin-overlay {
  opacity: 1;
}
