html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #0f2d2d, #122f2f), url('construction-site.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
  text-align: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(15, 45, 45, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .brand img {
  height: 50px;
}

.navbar .brand h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #ffd580;
  font-size: 22px;
  margin: 0;
}

.navbar .nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar a {
  color: #a7f3d0;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease, background 0.3s ease;
  padding: 8px 16px;
  border-radius: 6px;
}

.navbar a:hover,
.navbar a.active {
  background: #064e3b;
  color: #122f27;
}

.section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.header-section {
  background: linear-gradient(rgba(254, 255, 254, 0.977), rgba(0, 70, 37, 0.5)), url('background.jpg') no-repeat center center;
  background-size: cover;
  height: 400px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.header-section h1 {
  font-size: 42px;
  color: #0d2e2e;
  font-weight: 700;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #fefce8;
}

.section p {
  font-size: 18px;
  line-height: 1.7;
  color: #d1fae5;
}

.btn {
  background-color: #10b981;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn:hover {
  background-color: #0f766e;
  transform: translateY(-3px);
}

.kontak-card {
  display: flex;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  margin-top: 30px;
  overflow: hidden;
  gap: 20px;
}

.kontak-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  max-width: 250px;
}

.kontak-info {
  padding: 30px;
  text-align: left;
  flex: 1;
  color: #ecfdf5;
}

.kontak-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.kontak-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.kontak-form label {
  display: block;
  margin: 12px 0 5px;
  font-weight: 600;
}

.kontak-form input,
.kontak-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: rgb(255, 255, 255);
  color: #ffffff;
  margin-bottom: 15px;
}

.kontak-form input::placeholder,
.kontak-form textarea::placeholder {
  color: #bafdd8;
}

.halaman-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.halaman-item {
  flex: 0 0 auto;
  width: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  scroll-snap-align: start;
  color: #fefce8;
  transition: transform 0.3s ease;
}

.halaman-item:hover {
  transform: translateY(-6px);
}

.card-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.social {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social a img {
  width: 32px;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}

.social a img:hover {
  transform: scale(1.1);
}

.services-grid,
.portofolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-item,
.portofolio-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease;
  backdrop-filter: blur(6px);
}

.service-item:hover,
.portofolio-item:hover {
  transform: translateY(-5px);
}

.map-container {
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-section {
  padding: 4rem 2rem 6rem;
  background-color: #0f2d2d;
  text-align: center;
}

.gallery-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ecfdf5;
  font-family: 'Montserrat', sans-serif;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.3s ease;
}

.gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.logo {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

/* Responsive - tablet dan mobile */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .navbar .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .header-section {
    height: 280px;
  }

  .header-section h1 {
    font-size: 28px;
  }

  .section h2 {
    font-size: 22px;
  }

  .section p,
  .kontak-info p {
    font-size: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .kontak-card {
    flex-direction: column;
    padding: 20px;
  }

  .kontak-image img {
    max-width: 100%;
    height: auto;
  }

  .halaman-item {
    width: 240px;
    padding: 15px;
  }

  .map-container {
    height: 250px;
  }

  .social {
    right: 10px;
    top: auto;
    bottom: 20px;
    transform: none;
    flex-direction: row;
    justify-content: center;
  }

  .social a img {
    width: 28px;
  }
}

/* Tambahan ekstra kecil */
@media (max-width: 480px) {
  .header-section h1 {
    font-size: 22px;
  }

  .navbar .brand h2 {
    font-size: 16px;
  }

  .section h2 {
    font-size: 20px;
  }

  .btn {
    font-size: 12px;
  }
}
