/* ==
   1. RESET & BASE
   == */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Warna */
  --primary: #1a3a5c;
  --primary-dark: #0f2a3f;
  --secondary: #e8a817;
  --secondary-hover: #f0b922;
  --dark: #0f2a3f;
  --light: #f4f7fc;
  --white: #fff;
  --text: #333;
  --text-light: #666;
  --border: #dde3ec;
  --success: #1e8e3e;
  --wa-green: #25D366;
  --wa-green-hover: #1ebe5d;

  /* Layout */
  --nav-height: 72px;
  --container-max: 1300px;
  --section-pad-y: 5rem;
  --section-pad-x: 5%;

  /* Efek */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-pill: 50px;

  /* Transisi */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.dot:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==
   2. PRELOADER
   == */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  text-align: center;
  color: var(--white);
}

.loader-icon {
  font-size: 3rem;
  color: var(--secondary);
  animation: bounce 1s infinite;
}

.loader p {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
}

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

/* ==
   3. NAVBAR
   == */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem 5%;
  z-index: 999;
  background: rgba(26, 58, 92, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 5%;
  background: rgba(15, 42, 63, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--white);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--secondary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==
   4. HERO
   == */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 2rem 60px;
  text-align: center;
  color: var(--white);
  background: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?w=1600&h=1000&fit=crop')
              center / cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 42, 63, 0.88) 0%,
    rgba(26, 58, 92, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
}

.hero-logo-img {
  display: inline-block;
  margin-bottom: 1.8rem;
  animation: float 4s ease-in-out infinite;
}

.hero-logo-img img {
  height: 130px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

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

.hero-title {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero-subtitle {
  margin-bottom: 1.2rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--secondary);
}

.hero-desc {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* Tombol */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none !important;
}

.btn-primary {
  color: var(--primary-dark);
  background: var(--secondary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--secondary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(232, 168, 23, 0.4);
}

.btn-outline {
  color: var(--white);
  background: transparent;
  border: 2px solid var(--white);
}

.btn-outline:hover:not(:disabled) {
  color: var(--primary);
  background: var(--white);
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
}

/* Statistik */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem 3.5rem;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.2;
  color: var(--secondary);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
}

.stat-plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.stat-label {
  margin-left: 4px;
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
  color: var(--white);
  opacity: 0.85;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  transform: translateX(-50%);
  animation: bounceDown 2s infinite;
}

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

/* ==
   5. SECTION UMUM
   == */
section {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.3rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(232, 168, 23, 0.15);
  border-radius: var(--radius-pill);
}

.section-title {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.section-divider {
  width: 80px;
  height: 4px;
  margin: 0 auto;
  background: var(--secondary);
  border-radius: 2px;
}

.section-desc {
  max-width: 640px;
  margin: 1rem auto 0;
  color: var(--text-light);
}

/* ==
   6. TENTANG
   == */
.tentang-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tentang-image {
  position: relative;
}

.image-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.image-frame:hover img {
  transform: scale(1.03);
}

.image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.image-badge span {
  font-size: 1.2rem;
  line-height: 1;
}

.image-badge small {
  font-size: 0.6rem;
  font-weight: 500;
  margin-top: 2px;
}

.tentang-text h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: var(--primary);
}

.tentang-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light);
}

.tentang-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.value-item i {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--secondary);
}

/* ==
   7. SEJARAH — TIMELINE
   == */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--secondary);
  border-radius: 2px;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--secondary);
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-card {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-year {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius-pill);
}

.timeline-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: var(--primary);
}

.timeline-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.highlight-card {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.highlight-card h4 {
  color: var(--white);
}

.highlight-card p {
  color: var(--white);
  opacity: 0.9;
}

.highlight-card .timeline-year {
  color: var(--primary-dark);
  background: var(--secondary);
}

/* ==
   8. LAYANAN
   == */
.layanan {
  background: var(--light);
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.layanan-card {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.layanan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.layanan-icon {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--secondary);
}

.layanan-card h4 {
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.layanan-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ==
   9. GALERI
   == */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.galeri-item {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeri-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.galeri-image {
  position: relative;
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  background: #eaeef4;
}

.galeri-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeri-image:hover > img {
  transform: scale(1.05);
}

.galeri-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  background: rgba(26, 58, 92, 0.72);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.galeri-image:hover .galeri-overlay,
.galeri-item:hover .galeri-overlay {
  opacity: 1;
}

.galeri-info {
  padding: 1.2rem;
}

.galeri-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.4;
}

.galeri-info p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.galeri-tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--secondary);
  border-radius: var(--radius-pill);
}

/* ---------- Kolase ---------- */
.galeri-image.collage-grid,
.galeri-image.collage-grid-2,
.galeri-image.collage-grid-3,
.galeri-image.collage-grid-4 {
  display: grid;
  gap: 4px;
  height: 220px;
  overflow: hidden;
}

.galeri-image.collage-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.galeri-image.collage-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.galeri-image.collage-grid-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.galeri-image.collage-grid img,
.galeri-image.collage-grid-2 img,
.galeri-image.collage-grid-3 img,
.galeri-image.collage-grid-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeri-image.collage-grid-2 img:hover,
.galeri-image.collage-grid-3 img:hover,
.galeri-image.collage-grid-4 img:hover {
  transform: scale(1.06);
  z-index: 2;
  position: relative;
}

/* ==
   10. KLIEN & MITRA
   == */
.klien {
  padding: 4rem var(--section-pad-x);
  background: var(--light);
}

.klien-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.klien-item {
  flex: 0 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 1.5rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--primary);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.klien-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow);
}

.klien-item i {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  color: var(--secondary);
}

/* ==
   11. TESTIMONIAL
   == */
.testimonial-brief {
  padding: 4rem var(--section-pad-x);
  text-align: center;
  color: var(--white);
  background: var(--primary);
}

.testimonial-slider {
  display: grid;
  grid-template-areas: 'slide';
  max-width: 750px;
  margin: 0 auto;
}

.testimonial-slide {
  grid-area: slide;
  padding: 0 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-slide i {
  display: block;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--secondary);
}

.testimonial-slide p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-slide strong {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--secondary);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.dot {
  display: block;
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.dot.active {
  background: var(--secondary);
  transform: scale(1.2);
}

/* ==
   12. KONTAK
   == */
.kontak-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.kontak-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.kontak-card:last-child {
  margin-bottom: 0;
}

.kontak-card i {
  flex-shrink: 0;
  width: 30px;
  margin-top: 5px;
  font-size: 1.4rem;
  color: var(--secondary);
}

.kontak-card h4 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  color: var(--primary);
}

.kontak-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* Form */
.kontak-form {
  padding: 2rem;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.kontak-form h3 {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(232, 168, 23, 0.18);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #99a3b0;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--success);
  background: rgba(30, 142, 62, 0.08);
  border-left: 3px solid var(--success);
  border-radius: 4px;
}

/* ==
   13. FOOTER
   == */
.footer {
  padding-top: 3rem;
  color: var(--white);
  background: var(--primary-dark);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary-dark);
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--secondary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.92rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  padding-left: 5px;
  color: var(--secondary);
  opacity: 1;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  margin-top: 0.8rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  border: none;
  outline: none;
}

.newsletter-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  color: var(--primary-dark);
  background: var(--secondary);
  border: none;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--secondary-hover);
}

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* ==
   14. BACK TO TOP
   == */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
  color: var(--primary-dark);
  background: var(--secondary);
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
              background 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary-hover);
  transform: translateY(-3px);
}

/* ==
   15. LIGHTBOX
   == */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.lightbox-caption {
  max-width: 640px;
  margin-top: 1.2rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--white);
  line-height: 1.6;
}

.lightbox-caption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
  color: var(--secondary);
}

/* ==
   16. FLOATING WHATSAPP
   == */
.whatsapp-float {
  position: fixed;
  bottom: 90px;                   /* ← DIUBAH: naik ke atas back-to-top */
  right: 30px;                    /* ← DIUBAH: sejajar kanan dengan back-to-top */
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
  color: var(--white);
  background: var(--wa-green);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.whatsapp-float:hover {
  background: var(--wa-green-hover);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55);
}

/* Efek denyut halus supaya menarik perhatian */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa-green);
  animation: waPulse 2.2s ease-out infinite;
  z-index: -1;
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.65; }
  100% { transform: scale(1.9); opacity: 0;    }
}

/* Tooltip opsional — muncul saat hover */
.whatsapp-float::before {
  content: 'Chat via WhatsApp';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--white);
  background: var(--primary-dark);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.whatsapp-float:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ==
   17. RESPONSIVE
   == */

/* Tablet & small desktop */
@media (max-width: 992px) {
  .tentang-content,
  .kontak-content {
    grid-template-columns: 1fr;
  }

  .kontak-form {
    order: -1;
  }

  .timeline-item {
    width: 100%;
    padding-right: 0;
    padding-left: 60px;
    text-align: left !important;
    left: 0 !important;
  }

  .timeline-line {
    left: 20px;
    transform: none;
  }

  .timeline-dot {
    right: auto !important;
    left: 12px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
}

/* Mobile landscape & small tablets */
@media (max-width: 768px) {
  :root {
    --section-pad-y: 4rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo-text {
    font-size: 0.85rem;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .nav-menu.active {
    max-height: 500px;
    padding: 1.5rem 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  /* Hero */
  .hero {
    background-attachment: scroll;
    padding-top: 90px;
  }

  .hero-logo-img img {
    height: 90px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-stats {
    gap: 1.2rem 2rem;
  }

  .stat-number,
  .stat-item .stat-number {
    font-size: 1.8rem;
  }

  .stat-plus,
  .stat-item .stat-plus {
    font-size: 1.5rem;
  }

  .stat-label,
  .stat-item .stat-label {
    font-size: 0.8rem;
  }

  /* Tentang */
  .image-badge {
    width: 72px;
    height: 72px;
    right: -10px;
    bottom: -10px;
  }

  .image-badge span {
    font-size: 1rem;
  }

  /* Galeri */
  .galeri-grid {
    grid-template-columns: 1fr;
  }

  /* Kontak */
  .kontak-form {
    padding: 1.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo,
  .footer-social {
    justify-content: center;
  }

  .newsletter-form {
    max-width: 360px;
    margin: 0.8rem auto 0;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --section-pad-y: 3.5rem;
  }

  .nav-logo-text {
    display: none;
  }

  .hero-logo-img img {
    height: 70px;
  }

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

  .hero-desc {
    font-size: 0.9rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.2rem;
  }

  .stat-item {
    justify-content: center;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .tentang-values {
    grid-template-columns: 1fr;
  }

  .klien-item {
    flex: 0 1 140px;
    min-height: 100px;
    font-size: 0.85rem;
  }

  .klien-item i {
    font-size: 1.5rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .whatsapp-float {
    bottom: 74px;                 /* ← DIUBAH: naik ke atas back-to-top */
    right: 20px;                  /* ← DIUBAH: sejajar kanan dengan back-to-top */
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  /* Sembunyikan tooltip di mobile (tidak ada hover) */
  .whatsapp-float::before {
    display: none;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
  }

  .testimonial-slide p {
    font-size: 0.98rem;
  }
}

/* ==
   18. REDUCED MOTION
   == */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-logo-img,
  .scroll-indicator,
  .loader-icon {
    animation: none;
  }

  .whatsapp-float::after {
    animation: none;
  }
}