/* Modern Gradient + Card Shadow + Smooth Animation */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f7f9fc;
  color: #1a1a1a;
}

#content {
  opacity: 0;
  transition: opacity 0.8s ease;
}

#content.show {
  opacity: 1;
}

#news {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                      url("../img/bg-service.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.section {
  padding: 80px 0;
}

.gray {
  background: #eef2f7;
}

.title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInUp .6s ease;
}

.title-news{
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInUp .6s ease;
  color: #ffffff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 100;
}

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

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #3b7bfd;
}

.menu a {
  margin-left: 22px;
  text-decoration: none;
  font-weight: 500;
  color: #333;
  transition: .3s;
}
.menu a:hover {
  color: #3b7bfd;
}

/* Hero */
  .hero {
  padding: 90px 40px; /* top-bottom 90px, left-right 40px */
  background: linear-gradient(135deg, #3b7bfd, #00c6ff);
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  animation: fadeInUp .7s ease;
}

.hero p {
  margin-top: 15px;
  font-size: 18px;
  opacity: .9;
}

.hero-img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: fadeIn .8s ease;
}

.hero-buttons {
  margin-top: 25px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}


/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s;
  border: 2px solid transparent;
}

.primary {
  background: white;
  color: #0059ff;
}
.primary:hover {
  background: #e8eeff;
}

.btn:not(.primary) {
  border-color: white;
  color: white;
}
.btn:not(.primary):hover {
  background: rgba(255,255,255,0.2);
}

/* Grid Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gap {
  gap: 20px;
}

/* Floating Button */
.contact-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  color: #fff;
  padding: 15px 20px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.contact-btn:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* Popup Form Container */
.form-popup {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 10000;
}

/* Popup Form Box */
.form-container {
  width: 320px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  animation: popup 0.3s ease;
}

.form-container h2 {
  margin-top: 0;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.btn.form {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.submit { background: #007bff; color: white; }


@keyframes popup {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* Card */
.card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: .3s;
  animation: fadeInUp .6s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.card h3 {
  margin-bottom: 10px;
  font-weight: 700;
}

/* Partners */
.center {
  text-align: center;
}

.brand-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  font-weight: 600;
  color: #888;
  transition: .3s;
}
.brand-box:hover {
  transform: scale(1.05);
  color: #3b7bfd;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #d5d9e0;
  font-size: 15px;
  transition: .3s;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #3b7bfd;
  box-shadow: 0 0 0 3px rgba(59,123,253,0.25);
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  background: #0d1b3f;
  color: white;
  margin-top: 40px;
}

/* Animations */
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 38px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* Preloader background */
#preloader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #ffffff; /* background color */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Loader circle */
.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #e0e0e0;
  border-top-color: #0057ff; /* color spinner */
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about-section {
  background: #fff;
  padding: 60px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.about-logo {
  width: 180px;
  margin-bottom: 15px;
}

.about-left p {
  line-height: 1.7;
}

.about-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.icon-box {
  width: 40px;
  height: 40px;
  background: #e9f2ff;
  color: #0057b8;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  margin-right: 12px;
  font-size: 20px;
}

.about-info h4 {
  margin: 0;
  color: #0057b8;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: #0057b8;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
}

.social-icons a img {
  width: 24px;
  height: 24px;
} 

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cert-box {
  background: #f3f3f3;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

/* Responsive */
@media(max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-info {
    justify-content: center;
  }
  .icon-box {
    margin-right: 8px;
  }
  .social-icons {
    justify-content: center;
  }
}

.testimonials-section {
    padding: 80px 40px;
    text-align: center;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.testimonial-card {
    width: 380px;
}

.bubble {
    background-color: #d8ecff;
    border-radius: 10px;
    padding: 25px 30px;
    position: relative;
    font-style: italic;
}

.bubble::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 20px 15px 0 15px;
    border-style: solid;
    border-color: #d8ecff transparent transparent transparent;
}

.client-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 35px;
}

.client-name {
    font-size: 20px;
    font-weight: 700;
    margin-top: 10px;
}

.client-position {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* ===========================
   MOBILE FIX (max-width: 600px)
   =========================== */
@media (max-width: 600px) {

    .hero-slider {
    width: 100%;
    height: 240px;          /* tinggi ideal untuk HP */
    border-radius: 16px;
    overflow: hidden;
    position: relative;      /* wajib untuk absolute slides */
  }

  .hero-slider .slide {
    position: absolute;      /* DIBALIKAN agar bisa fade */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;       /* cover agar penuh */
    object-position: center; /* bagian tengah muncul */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
  }

  .hero-slider .slide.active {
    opacity: 1;
  }
    
  /* Header */
  .nav {
    flex-direction: column;
    text-align: center;
  }

  .menu {
    margin-top: 10px;
  }

  .menu a {
    margin: 10px;
    display: inline-block;
    font-size: 16px;
  }

  /* Hero */
  .hero {
    padding: 60px 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-slider {
    height: 220px;
  }

  /* Services, News, Partners */
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
  }

  /* Testimonials */
  .testimonials-container {
    flex-direction: column;
    gap: 30px;
  }

  .testimonial-card {
    width: 100%;
  }

  /* About Section */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-info {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  /* Contact floating form */
  .form-container {
    width: 90%;
  }

  /* Certificates */
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================
   NEW SERVICES – GRID 3 + 2
   ====================== */

/* Cards */
.service-row {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.service-card-new {
  background: #ffffff;
  padding: 35px 20px;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  color: #0d2c5a;
  width: 280px;                   /* ukuran card */
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.service-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .service-row {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .service-card-new {
    width: 100%;
  }
}

