/* Simple one-page CSS for Birutama Envitech */
:root {
  --primary: #006d77;
  --accent: #d1e1e3;
  --muted: #6b7280;
  --bg: #f7fbfb;
  --card: #ffffff;
  --container: 1100px;
  /* --app-height: 100vh; */
}
.section-hero,
.section-about,
.section-services,
.section-portfolio,
.section-contact {
  /* max-height: 100vh; section minimal full screen */
  min-height: 95vh; /* biarkan sesuai konten */
  width: 100%;
  scroll-margin-top: 5vh;
  box-sizing: border-box; /* supaya padding tidak menambah total height */
}

@media screen and (max-width: 900px) {
  .section-hero,
  .section-about,
  .section-services,
  .section-portfolio {
    min-height: none; /* lebih kecil supaya muat layar tablet */
  }
}

/* Mobile / small screen */
@media screen and (max-width: 520px) {
  .section-hero,
  .section-about,
  .section-services,
  .section-portfolio {
    min-height: auto; /* biarkan sesuai konten */
  }
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, system-ui, Arial, sans-serif;
  margin: 0;
  color: #102a43;
  background: var(--bg);
  line-height: 1.5;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media screen and (max-width: 1200px) {
  .container {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }
}
.site-header {
  background: linear-gradient(90deg, var(--primary) 0%, #008b8b 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  background: rgb(252, 252, 252);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  width: fit-content;
}
.logo span {
  color: var(--accent);
}

.logo img {
  height: 30px; /* kamu bisa ubah sesuai tinggi header */
  width: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.5);
}
@media screen and (max-width: 768px) {
  .logo img {
    height: 26px;
  }
}
.brand-text .company {
  font-weight: 700;
}
.brand-text .tagline {
  font-size: 12px;
  opacity: 0.9;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
}
.btn {
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #102a43;
  font-weight: 700;
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.06);
  padding: 10px 14px;
  border-radius: 8px;
}
.btn-link {
  background: none;
  color: var(--primary);
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

@media screen and (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 70px; /* sesuaikan tinggi header */
    left: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    display: none;
    transition: all 0.3s ease;
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .nav .btn-primary {
    display: block;
    width: 80%;
    text-align: center;
  }
}

/* Nav Responsive */

/* Hero */
.section-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* membuat 1 layar penuh */
  background: #ffffff;
  overflow: hidden;
}

.hero {
  flex: 2; /* hero ambil 2/3 layar */
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 48px 0; */
  background: transparent;
}
.hero-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-left {
  flex: 1;
}
.hero-right {
  flex: 1;
}
.hero h1 {
  font-size: 44px;
  margin: 6px 0;
  color: var(--primary);
}
.hero h1 span {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
}
.hero p {
  max-width: 520px;
  color: var(--muted);
}
.hero-photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(2, 48, 64, 0.08);
}
.clients {
  flex: 1; /* ambil 1/3 bagian bawah layar */
  padding: 20px 0;
  text-align: center;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clients.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--primary);
  /* text-align: start; */
}

@media screen and (max-width: 900px) {
  /* tablet */
  .section-title {
    font-size: 20px;
    text-align: start; /* biasanya untuk slider di tengah */
  }
}

.client-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.client-track {
  display: flex;
  gap: 40px;
  animation: scroll 25s linear infinite;
}

.client-logo {
  height: 60px;
  filter: grayscale(0%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* About */
/* section about with 100vh */
.section-about {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* membuat 1 layar penuh */
  background: #ffffff;
  overflow: hidden;
}

.about {
  padding: 48px 0;
  margin-top: 2%;
}

.about-grid {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.about-media {
  flex: 1;
}

.about-media img {
  width: 80%;
  border-radius: 8px;
  /* max-width: 50%; */
}

.about-body {
  flex: 1;
}

.about-body h3 {
  color: var(--primary);
  font-size: 26px;
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Subtitle above title */
.section-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle .line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.section-subtitle .text {
  font-size: 14px;
  letter-spacing: 1px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
}

/* Stats */
.stats {
  background: var(--primary);
  color: white;
  padding: 52px 0;
  margin-top: 2%;
}
.stats-inner {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.stat {
  text-align: center;
  flex: 1;
}
.stat-num {
  font-size: 38px;
  font-weight: 800;
}
.stat-num::after {
  content: "+";
  margin-left: 10px;
}
.stat-label {
  font-size: 14px;
  opacity: 0.9;
}

/* Services */
.section-services {
  /* membuat 1 layar penuh */
  background: var(--bg);
  overflow: hidden;
}
.services {
  padding: 100px 0;
  margin-top: auto;
}
.services-grid {
  display: flex; /* ubah jadi flex */
  flex-wrap: wrap; /* biar bisa ke baris baru */
  justify-content: center; /* center secara horizontal */
  gap: 20px; /* jarak antar item */
}

.service-icon {
  font-size: 28px;
}
.section-title {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 18px;
}

.services-header {
  text-align: start;
  margin-bottom: 36px;
}

.section-title {
  font-size: 26px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 18px;
  margin-top: 1px;
}

.service-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(2, 48, 64, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 340px; /* jangan grow */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(2, 48, 64, 0.08);
}

.service-icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 12px;
}

/* === MODAL STYLING === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 30, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 999;
}

/* Saat aktif */
.modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

/* Dialog utama */
.modal-dialog {
  background: #fff;
  border-radius: 18px;
  padding: 36px;
  max-width: 680px;
  width: 90%;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s ease;
  animation: modalPop 0.45s ease forwards;
}

/* Animasi muncul */
@keyframes modalPop {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tombol close */
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 20px;
  color: #003049;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  color: var(--primary, #007bff);
}

/* Konten modal */
.modal-content h4 {
  color: var(--primary, #005f73);
  font-size: 22px;
  margin-bottom: 12px;
}

.modal-content p {
  color: #333;
  line-height: 1.6;
}

/* Kalau ada gambar di modal */
.modal-content img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px 0 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Portfolio */
.section-portfolio {
  /* membuat 1 layar penuh */
  background: #fff;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.portfolio {
  padding: 64px 0;
}
@media screen and (max-width: 520px) {
  .portfolio.flip-x {
    transform: none; /* hapus efek rotasi */
    transition: none; /* optional: hapus transisi */
  }
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}
.tile {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.4s ease;
}
.tile:hover img {
  transform: scale(1.1);
}

/* Hover overlay */
.tile .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tile:hover .overlay {
  opacity: 1;
}
.tile .overlay h4 {
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* Modal */
.portfolio-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 20, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
}
.portfolio-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.portfolio-dialog {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  max-width: 720px;
  width: 90%;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: fadePop 0.4s ease forwards;
}
@keyframes fadePop {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.portfolio-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 20px;
  border: none;
  background: transparent;
  color: #003049;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}
.portfolio-close:hover {
  transform: rotate(90deg);
  color: var(--primary);
}
.portfolio-content {
  margin-top: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 8px;
}
.portfolio-content img {
  width: 100%; /* tetap responsive */
  max-height: 400px; /* batasi tinggi maksimal */
  object-fit: contain; /* supaya tidak terpotong */
  border-radius: 8px;
  margin-bottom: 12px;
}
.portfolio-content h4 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 8px;
}
.portfolio-content p {
  line-height: 1.6;
  font-size: 14px;
}

.portfolio-image-container {
  position: relative;
  width: 100%;
}

.portfolio-image-container img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: zoom-in;
}

.portfolio-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.portfolio-nav.prev {
  left: 12px;
}
.portfolio-nav.next {
  right: 12px;
}

.portfolio-nav svg {
  width: 24px;
  height: 24px;
}

.portfolio-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.2);
}

.portfolio-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: hidden;
}

.portfolio-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}

.portfolio-thumbnails img.active {
  border-color: var(--primary);
}

/* Testimonials */
.testimonials {
  padding: 48px 0;
}
.slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.slide {
  display: none;
  text-align: center;
}
.slide.active {
  display: block;
}
.slider-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.slider-controls button {
  border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #eee;
  cursor: pointer;
}

.section-contact {
  background: linear-gradient(90deg, #054e54, #0b6b6b) !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* membuat 1 layar penuh */
  background: #ffffff;
  overflow: hidden;
}
.contact {
  /* scroll-margin-top: 80px; */
  /* padding: 48px 0; */
  margin-top: 3%;
}
.contact.section-title {
  color: var(--accent);
}

.contact.section-subtitle .line {
  background-color: var(--accent);
}
.contact.section-subtitle .text {
  color: var(--accent);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(2, 48, 64, 0.05);
}

.contact-info h4 {
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 14px;
  color: #333;
}

.contact-info i {
  color: var(--primary);
  margin-right: 6px;
}

.office-map-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap; /* responsive */
}
/* Office Info kiri */
.office-info {
  flex: 1;
  min-width: 250px;
}

/* Map kanan */
.office-map {
  flex: 1;
  min-width: 250px;
}

.contact-logo {
  margin-top: 20px;
  text-align: center;
}
.contact-logo img {
  width: 60px; /* lebih kecil */
  margin: 20px auto 0;
  display: block;
}
.divider {
  border-top: 1px solid var(--primary);
  margin: 30px 0;
}

.social-icons {
  margin-top: 16px;
}

.social-icons a {
  margin-right: 10px;
  color: var(--primary);
  font-size: 20px;
  transition: 0.2s ease;
}

.social-icons a:hover {
  color: #007bff;
}

/* FORM */
.contact-form {
  flex: 1;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(2, 48, 64, 0.05);
}

.contact-form label {
  font-weight: 600;
  margin-top: 12px;
  display: block;
  color: black;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 6px;
  font-size: 14px;
}

.contact-form textarea {
  resize: none;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.form-actions button {
  flex: 1;
  margin: 4px;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  transition: 0.3s ease;
}

#sendEmail {
  background: var(--primary);
}

#sendEmail:hover {
  background: #02577a;
}

#sendWA {
  background: #25d366;
}

#sendWA:hover {
  background: #1eb85d;
}

/* Footer */
.site-footer {
  background: linear-gradient(90deg, #054e54, #0b6b6b) !important;
  color: white;
  padding-top: 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: flex-start;
  padding-bottom: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .logo img {
  width: 80px;
  height: auto;
  border-radius: 8px;
}

.footer-brand .company-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand .tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-office h4 {
  margin-bottom: 8px;
  color: var(--accent, #ffb703);
}

.footer-office p {
  margin: 4px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-office a {
  color: #fff;
  text-decoration: none;
}

.footer-office a:hover {
  text-decoration: underline;
}

.footer-map iframe {
  border: 0;
  width: 100%;
  border-radius: 8px;
  height: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.footer-bottom {
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  padding: 12px 0;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media screen and (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
  }
  .about-grid {
    flex-direction: column;
  }
  .stats-inner {
    flex-direction: column;
    gap: 16px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav a {
    display: none;
  }
  .hamburger {
    display: inline-block;
  }
  .btn-primary {
    padding: 8px 10px;
  }
}
@media screen and (max-width: 520px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero h1 span {
    font-size: 32px;
  }
}

.hero {
  padding-top: 1.5%;
  background: #ffffff;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1;
  padding: 20px;
}

.hero-left h1 {
  font-size: 26px;
  font-weight: 700;
  color: #006d77;
}

.hero-left h1 span {
  color: #00a896;
}

.hero-left p {
  font-size: 16px;
  margin: 50px 0;
  line-height: 1.6;
  color: #333;
}

.hero-ctas {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-outline {
  border: 2px solid #006d77;
  background: transparent;
  color: #006d77;
}

.btn-outline:hover {
  background: #006d77;
  color: #fff;
}

/* .btn-primary {
  background: #ffb703;
  border: none;
  color: #1b1b1b;
} */

.btn-primary:hover {
  background: var(--primary);
}

.hero-right {
  flex: 2;
  position: relative;
  height: 450px;
  /* max-width: 600px; */
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-dots .dot.active {
  background: var(--primary);
  width: 10 px;
  height: 10 px;
}
