html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: scroll;
}

body {
  display: block;
  min-height: 100vh;
}

main {
  flex: 1;
}

.logo-symbol {
  transition: color 0.3s ease, fill 0.3s ease;
  color: black; /* default */
}

.logo-symbol.white {
  color: white;
  fill: white;
}


.hero-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: url('SOURCE/Pesanggaran perspective.jpg') center center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  color: #fff;
  text-align: center;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
}

.highlight {
  color: #ff5a36;
  font-style: italic;
}

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.5s ease, top 0.3s;
  background-color: rgba(0, 0, 0, 0.3); /* Menambahkan transparansi */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.projects-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-in, transform 1s ease-out;
}

.projects-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tooltip styles */
.image-tooltip {
  position: relative;
  display: inline-block;
}

.image-tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity .75s;
  font-size: 14px;
}

.image-tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.image-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.image-tooltip img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.about-img {
  height: 400px;
  object-fit: cover;
}

/* Scroll to top button */
#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff5a36;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollToTop.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  background-color: #e54a2e;
}

/* APPENDED BY CHATGPT: interactive additions */

/* === Interactive additions === */

/* Navbar active link */
.navbar-nav .nav-link.active {
  color: #0ea5e9 !important;
  font-weight: 600;
}

/* Dark mode */
:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #6b7280;
}
[data-theme="dark"] {
  --bg: #0f172a;
  --text: #e6eef8;
  --muted: #94a3b8;
}
body {
  background: var(--bg);
  color: var(--text);
}

/* Lightbox modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}
.lightbox.open { display:flex; }
.lightbox img { max-width: 90%; max-height: 80%; border-radius: 8px; }

/* Accordion */
.accordion-item { border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.accordion-item .acc-header { padding: 12px; cursor: pointer; background: transparent; display:flex; justify-content:space-between; align-items:center; }
.accordion-item .acc-body { padding: 12px; display: none; background: rgba(0,0,0,0.03); }
.accordion-item.open .acc-body { display:block; }

/* Counter */
.counter { font-size: 1.6rem; font-weight:700; }
.counter-label { font-size: 0.85rem; color: var(--muted); }

/* Carousel */
.carousel-wrapper { position: relative; overflow: hidden; }
.carousel-track { display:flex; transition: transform 0.45s ease; gap: 12px; }
.carousel-slide { min-width: 300px; flex: 0 0 auto; }

/* Mobile menu toggle */
.navbar .dark-toggle { margin-left: 10px; }

/* Tooltip images */
.image-tooltip { position: relative; display:inline-block; }
.image-tooltip .tooltip-text { position:absolute; bottom:6px; left:6px; background: rgba(0,0,0,0.6); color:#fff; padding:4px 8px; border-radius:4px; font-size:12px; display:none; }
.image-tooltip:hover .tooltip-text { display:block; }

/* Scroll-to-top button visible state */
#scrollToTop { transition: opacity 0.25s ease, transform 0.2s ease; opacity:0.0; transform: translateY(10px); }
#scrollToTop.visible { opacity:1; transform: translateY(0); }

/* small helpers */
.hidden { display:none !important; }
