* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #003366;
  z-index: 1000;
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 65px;
  width: auto;
}

.logo-separator {
  width: 2px;
  height: 35px;
  background: linear-gradient(to bottom, #4dabf7, rgba(77, 171, 247, 0.2));
  margin: 0 4px;
}

.company-name {
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
}

.text-white {
  color: #fff;
  font-weight: 900;
}

.text-blue {
  color: #4dabf7;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navbar nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.navbar nav ul li a:hover {
  color: #4dabf7;
}

.hero {
  height: 100vh;
  background: linear-gradient(135deg, #003366 0%, #0055a4 50%, #0077cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/hero-bg.jpg') bottom center/cover no-repeat;
  opacity: 0.35;
  filter: grayscale(20%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  color: #e0e8f0;
  max-width: 650px;
  margin: 0 auto 30px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: #fff;
  color: #003366;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s, color 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #4dabf7;
  color: #fff;
  transform: translateY(-2px);
}

.btn-harga {
  display: inline-block;
  padding: 10px 28px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  margin: 10px 0;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-harga:hover {
  background: #005fa3;
  transform: translateY(-2px);
}

@media (min-width: 769px) {
  .btn-harga {
    display: block;
    width: fit-content;
    margin: 10px 0;
  }
}

.about {
  padding: 80px 0;
  background: #f0f7ff;
}

.about h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #003366;
  position: relative;
}

.about h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #0077cc;
  margin: 12px auto 0;
  border-radius: 2px;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-img {
  width: 100%;
  max-width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
}

.long-text {
  text-align: justify;
}

.indentasi {
  text-indent: 2rem;
}

.placeholder-img {
  width: 100%;
  max-width: 400px;
  height: 300px;
  background: linear-gradient(135deg, #b3d9ff, #66b2ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
}

.portfolio {
  padding: 80px 0;
  background: #fff;
}

.portfolio h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #003366;
  position: relative;
}

.portfolio h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #0077cc;
  margin: 12px auto 0;
  border-radius: 2px;
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.portfolio-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 51, 102, 0.1);
  border: 1px solid #dceeff;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 0 0 20px;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 51, 102, 0.2);
}

.portfolio-card:nth-child(odd) {
  grid-template-areas:
    'image description'
    'slider slider';
}

.portfolio-card:nth-child(even) {
  grid-template-areas:
    'description image'
    'slider slider';
}

.portfolio-card.rayap-card {
  grid-template-areas:
    'image header'
    'methods methods';
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-gap: 20px;
}

.portfolio-card.rayap-card .card-description {
  grid-area: header;
}

.portfolio-card.rayap-card .card-methods {
  grid-area: methods;
  width: 100%;
  padding: 20px 30px 0;
}

.card-image {
  grid-area: image;
  width: 100%;
}

.card-image .placeholder-img,
.card-image .card-img {
  border-radius: 0;
  height: 300px;
  box-shadow: none;
}

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

.card-description {
  grid-area: description;
  padding: 30px;
  min-width: 0;
}

.card-description h3 {
  font-size: 1.3rem;
  color: #003366;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.card-description p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  text-align: justify;
}

.method-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.method-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: #003366;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.method-text {
  min-width: 0;
}

.method-text strong {
  display: block;
  font-size: 0.9rem;
  color: #003366;
  margin-bottom: 2px;
  overflow-wrap: break-word;
}

.method-text p {
  font-size: 0.85rem;
  margin: 0;
  overflow-wrap: break-word;
}

.card-slider {
  grid-area: slider;
  width: 100%;
  padding: 0 20px 20px;
}

.card-slider.method-slider {
  grid-area: auto;
  padding: 14px 0;
}

.method-slider .slide {
  flex: 0 0 calc(20% - 6.4px);
}

.method-slider .slide .placeholder-img {
  aspect-ratio: 2 / 3;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.slider-track {
  display: flex;
  gap: 8px;
  transition: transform 0.5s ease;
  padding: 0 32px;
}

.slide {
  flex: 0 0 calc(20% - 6.4px);
  min-width: 0;
}

.slide .placeholder-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  box-shadow: none;
  font-size: 0.85rem;
  overflow: hidden;
  padding: 0;
  background: #dceeff;
}

.slide .placeholder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 51, 102, 0.6);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 2;
}

.slider-btn:hover {
  background: rgba(0, 51, 102, 0.9);
}

.slider-btn.prev {
  left: 0;
}

.slider-btn.next {
  right: 0;
}

.footer {
  background: #003366;
  color: #cce0ff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-logo {
  height: 50px;
  width: auto;
}

.footer-brand h3 {
  margin-bottom: 0;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-section p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section strong {
  color: #4dabf7;
}

.footer-bottom {
  border-top: 1px solid rgba(77, 171, 247, 0.3);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #8899aa;
}

@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .about h2,
  .portfolio h2 {
    font-size: 1.8rem;
  }

  .placeholder-img {
    max-width: 350px;
    height: 250px;
  }

  .card-image .placeholder-img,
  .card-image .card-img {
    height: 260px;
  }

  .slide {
    flex: 0 0 calc(25% - 6.4px);
  }

  .method-slider .slide {
    flex: 0 0 calc(33.333% - 5.33px);
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }

  .hero::before {
    background: url('/images/hero-bg.jpg') top center/cover no-repeat;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 12px 30px;
    font-size: 0.9rem;
  }

  .about {
    padding: 50px 0;
  }

  .about h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-text {
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #002a52;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .navbar nav.open {
    max-height: 300px;
  }

  .navbar nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
  }

  .navbar nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(77, 171, 247, 0.15);
  }

  .navbar nav ul li:last-child a {
    border-bottom: none;
  }

  .logo img {
    height: 35px;
  }

  .logo-separator {
    height: 28px;
  }

  .company-name {
    font-size: 0.8rem;
  }

  .text-blue {
    font-size: 0.7rem;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-section p {
    font-size: 0.85rem;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    height: 70px;
  }

  .portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .portfolio-card .card-image {
    order: 1;
  }

  .portfolio-card .card-description {
    order: 2;
  }

  .portfolio-card .card-methods {
    order: 3;
  }

  .portfolio-card .card-slider {
    order: 3;
  }


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

  .card-description {
    padding: 16px;
  }

  .card-description h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .method-list {
    gap: 16px;
  }

  .btn-harga {
    display: block;
    margin: 16px auto 0;
    text-align: center;
  }

  .method-item {
    align-items: flex-start;
    gap: 10px;
  }

  .method-num {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .method-text strong {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .method-text p {
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: left;
  }

  .card-slider {
    padding: 0 16px 16px;
  }

  .slide {
    flex: 0 0 calc(50% - 6px);
  }

  .method-slider .slide {
    flex: 0 0 calc(50% - 6px);
  }

  .portfolio-card.rayap-card .card-methods {
    display: block;
    width: 100%;
  }

  .portfolio-card.rayap-card .method-list {
    display: block;
  }

  .portfolio-card.rayap-card .method-list>.method-item,
  .portfolio-card.rayap-card .method-list>.card-slider {
    width: 100%;
    margin-bottom: 16px;
  }

  .portfolio-card.rayap-card .method-list>.card-slider:last-child {
    margin-bottom: 0;
  }

}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  .about h2,
  .portfolio h2 {
    font-size: 1.4rem;
  }

  .about-text p {
    font-size: 0.9rem;
    text-align: justify;
  }

  .placeholder-img {
    max-width: 250px;
    height: 180px;
    font-size: 0.9rem;
  }

  .card-image .placeholder-img,
  .card-image .card-img {
    height: 200px;
  }

  .card-description h3 {
    font-size: 1.1rem;
  }

  .card-description p {
    font-size: 0.85rem;
    text-align: justify;
  }

  .method-slider .slide .placeholder-img {
    max-height: none;
  }

}