body {
  font-size: 16px;
  font-family: var(--body-text);
  transition: background 0.3s, color 0.3s;
}

/* hero page */

.pagepage {
  min-height: 100vh;
}

.section1 {
  background: url("../resources/img/serjan-midili-8eoRM2zHkHc-unsplash-sec1.jpg"),
    rgba(63, 201, 45, 0.5);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: multiply;
}

h1.headingHp,
h2.headingHp {
  text-align: center;
  color: white;
}

span.heroPagesp,
.heroPagesp .logosp,
.btn-heroPage {
  background: linear-gradient(180deg, rgb(109, 238, 135) 0%, rgb(70, 155, 31) 100%);
}

span.heroPagesp {
  background-clip: text;
  color: transparent;
}

/* btnland */

.button-container {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}

.btn-heroPage {
  cursor: pointer;
  transition: all 0.5s ease;
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
  font-size: 1.2rem;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.btn-heroPage:hover {
  transition: all 0.5s ease;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.5);
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: white;
  letter-spacing: 1px;
}

.btn-heroPage:active {
  transition: all 0.5s ease;
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(46, 204, 113, 0.5);
}

.btn-heroPage:focus {
  transition: all 0.5s ease;
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.5);
}

/* Efek ripple saat diklik */
.btn-heroPage::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-heroPage:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Animasi latar belakang bergerak */
.btn-heroPage::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
  z-index: -1;
}

.btn-heroPage:hover::before {
  left: 100%;
}

.icon-circle {
  width: 2.5rem;
  height: 2.5rem;
  position: absolute;
  right: -1rem;
  top: -1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, var(--bs-warning), var(--bs-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.icon-btnH {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}

/* Animasi mengambang untuk ikon */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Efek partikel saat hover */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--w09);
  border-radius: 50%;
  opacity: 0;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1);
  }
}

/* sec2 */

h1.headingS2 {
  position: relative;
  display: inline-block;
}

h1.headingS2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 5px;
  background: var(--bs-warning);
  border-radius: 10px;
  transition: width 0.5s ease;
}

h1.headingS2:hover::after {
  width: 100%;
}

.comparison-slider-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  height: 500px;
}

.comparison-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

#before-image {
  width: 50%;
  overflow: hidden;
  z-index: 2;
  position: absolute;
  height: 100%;
}

#after-image {
  width: 100%;
  z-index: 1;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: white;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: ew-resize;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.slider-handle:after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.slider-handle:before {
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--secondary-green);
  z-index: 4;
  font-size: 16px;
}

.before-label,
.after-label {
  position: absolute;
  top: 25px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  z-index: 4;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.before-label {
  left: 25px;
}

.after-label {
  right: 25px;
}

/* slider l */

.slider-container {
  max-width: max-content;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: transparent;
}

.stats-slider {
  display: flex;
  transition: transform 0.5s ease;
  margin-bottom: 1rem;
  cursor: grab;
}

.stats-slider:active {
  cursor: grabbing;
}

.stats-card {
  flex: 0 0 100%;
  flex-direction: row;
  background: white;
  border-radius: 12px;
  padding: 1rem 0 1rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid #e8f5e9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stats-icon {
  display: inline-block;
  margin: 0 1rem 0;
  font-size: 2.5rem;
  color: var(--secondary-green);
  margin-bottom: 0;
}

.stats-value {
  display: inline-block;
  margin: 0 1rem 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.stats-label {
  display: inline-block;
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 20px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dcf3e7;
  margin: 0 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--secondary-green) !important;
  transform: scale(1.3);
}

.slider-nav-mini {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 15px;
}

.slider-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.slider-nav-btn:hover {
  background: var(--secondary-green);
  color: white;
  border-color: var(--secondary-green);
}

/* comparison slider */

.comparison-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  height: 0;
  padding-bottom: 90%;
  background: #f1f1f1;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.before-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.slider-handle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  background: var(--secondary-green);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-handle:hover::after {
  background: #27ae60;
}

.label {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  color: white;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.label.before {
  left: 20px;
  background: rgba(231, 76, 60, 0.85);
}

.label.after {
  right: 20px;
  background: rgba(46, 204, 113, 0.85);
}

.label.visible {
  opacity: 1;
}

.instruction {
  text-align: center;
  margin-top: 15px;
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* b4 footer*/
.hero-gallery-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-grid-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  animation: scrollGrid 20s ease-in-out infinite;
  z-index: 1;
}

.gallery-grid-container:hover {
  animation-play-state: paused;
}

.grid-item {
  overflow: hidden;
  position: relative;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 2.5rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  backdrop-filter: blur(8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  color: var(--secondary-green);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.6;
}

.btn-join {
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s;
  color: var(--dark-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-join:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: var(--dark-color);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes scrollGrid {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@media (max-width: 992px) {
  .gallery-grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, 1fr);
  }
}

/* mq md */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .btn-join {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .gallery-grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, 1fr);
  }
}

/* Tooltip styling */
.tooltip-inner {
  background-color: var(--dark-color);
  color: white;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before,
.bs-tooltip-left .tooltip-arrow::before {
  border-left-color: var(--dark-color);
}

/* Loading indicator */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--secondary-green);
  font-size: 1.5rem;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--secondary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* mq lg */
@media (min-width: 992px) {
  .card-left,
  .card-right {
    width: 100%;
  }

  .carbon-card:hover .card-left {
    width: 100%;
  }

  .card-right {
    display: none;
  }

  .carbon-card:hover .card-right {
    display: flex;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: translateX(0);
  }

  .category-content {
    max-width: 90%;
  }

  .category-switcher {
    flex-direction: row;
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }

  .calculator-btn {
    margin-bottom: 10px;
    margin-right: 10px;
  }

  .default-content {
    padding: 15px;
  }

  .default-icon {
    font-size: 3rem;
  }

  .quick-stats {
    flex-direction: column;
    gap: 15px;
  }

  .scroll-indicator {
    display: block;
  }

  .pie-chart {
    width: 150px;
    height: 150px;
  }

  .pie-center {
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }
}

/* berseka sec */
.berseka-card {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.berseka-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.berseka-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.berseka-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  text-align: center;
}

.berseka-step {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bs-warning);
  color: var(--dark-color);
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.4s ease;
}

.berseka-card:hover .berseka-step {
  opacity: 1;
  transform: translateY(0);
}

.vid-container {
  width: 100%;
  max-width: 900px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin: 0 auto;
  border: 5px solid white;
  background: #000;
}

.vid-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.vid-wrap {
  position: relative;
  padding-bottom: 60%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.vid-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* sec3 */

.container-profile-section-3 {
  display: flex;
  align-items: center;
  gap: 5px;
}

#profile img {
  width: 45px;
}

.cardd {
  border-radius: 1rem;
  overflow: hidden;
  background: #fffaf6;
  font-family: Inter, sans-serif;
  height: 100%;
  transition: transform 0.3s ease;
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.expand-btn {
  color: #555555;
  text-decoration: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.card-desc {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.avatarimg {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  margin-right: 1rem;
}

.container-side p span a {
  color: var(--bs-warning);
  text-decoration: none;
  font-weight: 600;
}
.container-side p span a:hover {
  text-decoration: underline;
}

.profile-info h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #bbb;
}

.btn-sec3 {
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.container-button-showmore {
  cursor: pointer;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.container-button-showmore button {
  cursor: pointer;
  background-color: var(--bs-warning);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 30px;
  border: 2px var(--bs-warning) solid;
  transition: all 0.5s ease;
  color: white;
}

/* Card yang disembunyikan di tablet dan mobile */
.hidden-card {
  display: none;
}

/* Media Queries untuk responsif */
@media (max-width: 992px) {
  .card-row .col-lg-4:not(:first-child) {
    display: none;
  }

  .card-row .col-lg-4:first-child {
    width: 100%;
  }

  .container-button-showmore {
    display: flex;
  }
}

@media (max-width: 768px) {
  .card-row .col-lg-4:not(:first-child) {
    display: none;
  }

  .card-row .col-lg-4:first-child {
    width: 100%;
  }

  .container-button-showmore {
    display: flex;
  }
}

@media (min-width: 993px) {
  .container-button-showmore {
    display: none;
  }
}
/* sec 6 */
#sec6img {
  width: 100%;
  object-fit: cover;
  border-radius: 25px;
}

@media (min-width: 992px) {
  #sec6img {
    width: 100vh;
    height: 70%;
  }
}

@media (min-width: 576px) {
  #sec6img {
    width: 50vh;
    height: auto;
    margin-bottom: 1rem;
  }
}

.header-section-6 p,
.header-section-6 h1 {
  text-align: center;
}

.header-section-6 p {
  color: #6b6a6a;
  font-weight: 700;
}

.header-section-6 h1 {
  font-weight: 700;
  font-size: 40px;
}

.header-section-6 {
  margin-top: 40px;
}

.desc-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.berita-wrapper h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.berita-wrapper p {
  font-size: 0.9rem;
  color: #6b6a6a;
  font-weight: 600;
}

.container-views p {
  color: var(--dark-color);
}

.container-views * {
  margin: 0;
  line-height: 1;
}

.container-views button {
  background: var(--dark-green);
  border-radius: 30px;
  padding: 5px 20px 5px 20px;
  border: 1px var(--dark-green) solid;
  color: white;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.5s ease-in-out;
}

.container-views button:hover {
  background: white;
  border: 1px solid var(--dark-green);
  color: var(--dark-green);
}

.container-views button.pp {
  color: var(--dark-color) !important;
  background: var(--bs-warning);
  border-radius: 30px;
  padding: 5px 20px 5px 20px;
  border: 1px var(--bs-warning) solid;
  color: white;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.5s ease-in-out;
}

.container-views button.pp:hover {
  background: white;
  border: 1px solid var(--bs-warning);
  color: var(--bs-warning) !important;
}
