/* =========================
   RESET & BASE STYLE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}

body {
  background: #fff;
  color: #222;
  padding-top: 115px; /* ruang di bawah navbar */
  line-height: 1.6;
  scroll-behavior: smooth; /* smooth scroll global */
}

/* =========================
   TOP BAR
========================= */
.top-bar {
  background: #56a3ef;
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-size: 0.9rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 38px; /* di bawah top bar */
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 60px;
  z-index: 1000;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

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

/* Nav Menu */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a,
.dropdown-btn {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: #fff;
  border: 1px solid #d6e4ff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 1001;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #000;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #e7f0ff;
}

/* Arrow */
.arrow {
  margin-left: 6px;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.arrow.rotate {
  transform: rotate(180deg);
}

/* Join Button */
.join-btn {
  background: #56a3ef;
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.join-btn:hover {
  background: #4752c4;
}

.join-btn i {
  font-size: 18px;
}

/* =========================
   HAMBURGER (Mobile)
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 992px) {
  .navbar {
    padding: 12px 25px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 115px; /* navbar + top bar */
    right: -100%;
    width: 100%;
    height: calc(100vh - 115px);
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    transition: right 0.3s;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .nav-menu li a,
  .nav-menu li button {
    width: 100%;
    padding: 12px 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .dropdown-menu a {
    padding: 8px 0;
  }
}

/* =========================
   SECTION OFFSET
========================= */
section {
  scroll-margin-top: 115px; /* pastikan section tidak tertimpa navbar */
}

/* ========== HERO SECTION ========== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 10%;
  position: relative;
  background: #fff;
  overflow: hidden;
}

/* 🔵 Lingkaran biru di pinggir */
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: rgba(0, 123, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.hero-text {
  flex: 1;
  z-index: 2;
}

.hero-text h1 {
  font-size: 2.8rem;
  color: #000;
  font-weight: 700;
  line-height: 1.3;
}

.hero-text h1 span {
  color: #007bff;
}

.hero-text p {
  margin: 15px 0 25px;
  font-size: 1rem;
  color: #444;
  max-width: 500px;
}

.cta-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #0056d2;
}

/* Ikon sosial media bulat */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 2px solid #007bff;
  border-radius: 50%;
  color: #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  font-size: 18px;
  text-decoration: none;
}

.social-link:hover {
  background: #007bff;
  color: #fff;
}

.hero-img {
  flex: 1;
  width: 450px;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

/* =========================
   RESPONSIVE (TABLET)
========================= */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 6%;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-img {
    margin-top: 40px;
    width: 80%;
  }

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

  .cta-btn {
    margin: 0 auto;
  }
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 600px) {
  .hero {
    padding: 50px 5%;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .cta-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }

  .hero-img {
    width: 90%;
  }

  .social-icons a {
    font-size: 1.3rem;
  }
}

/* =========================
   ABOUT SECTION
========================= */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 80px 8%;
}

.about-left img {
  width: 300px;
  height: auto;
  object-fit: cover;
}

.about-right {
  max-width: 480px;
}

.about-right h2 {
  color: #2f80ed;
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-right h2::before {
  content: "";
  width: 40px;
  height: 3px;
  background: #2f80ed;
  border-radius: 2px;
  display: inline-block;
}

.about-right p {
  color: #333;
  font-size: 15px;
  margin-bottom: 10px;
}

/* =========================
   SERVICES SECTION
========================= */
.services {
  text-align: center;
  background: #f9f9f9;
  padding: 80px 20px;
}

.services h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.service-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 30px;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #000;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.card svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

/* =========================
         PORTFOLIO 
========================= */
.portfolio {
  padding: 0 40px 80px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 230px;
  text-align: center;
  padding: 15px;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
}

.portfolio-item p {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
            BLOG
========================= */
.blog {
  text-align: center;
  padding: 80px 20px;
}

.blog h2 {
  font-size: 1.8rem;
}

.grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.box {
  width: 200px;
  height: 200px;
  background: #eee;
  border: 2px solid #ccc;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.box:hover {
  transform: scale(1.05);
}


/* =========================
   CONTACT SECTION
========================= */
.contact {
  background: #f9f9f9;
  padding: 100px 80px;
}

.contact h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
  text-align: center;
}

.contact .map-container {
  padding-top: 2rem;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-map iframe {
  width: 500px;
  height: 320px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 500px;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100%;
  resize: none;
  font-family: "Poppins", sans-serif;
}

button {
  background: #56a3ef;
  border: none;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: fit-content;
  transition: all 0.3s;
}

button:hover {
  background: #0078d4;
  transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */
.pre-footer {
  background: linear-gradient(135deg, #f7f9fb 0%, #e9f0f5 100%);
  padding: 60px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pre-footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-column h3 {
  color: #0d1b2a;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-column li {
  list-style: none;
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-column li:hover {
  color: #0078d4;
  transform: translateX(3px);
}

footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: white;
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .navbar {
    padding: 15px 40px;
  }

  .hero {
    padding: 160px 40px 60px;
    text-align: center;
  }

  .hero-img {
    max-width: 400px;
  }

  .about {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-map iframe {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 25px;
  }

  .hamburger {
    display: flex;
    margin-top: 10px;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 220px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 180px 20px 60px;
  }

  .card {
    width: 80%;
  }

  .pre-footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .navbar {
    padding: 40px 25px;
  }

  .logo {
    height: 48px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .cta-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

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

  footer {
    font-size: 0.8rem;
  }
}
/* ===== PRE-FOOTER (Adaptive Version) ===== */
.pre-footer {
  background: linear-gradient(135deg, #f7f9fb 0%, #e9f0f5 100%);
  padding: 60px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pre-footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-column h3 {
  color: #0d1b2a;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-column li:hover {
  color: #0078d4;
  transform: translateX(3px);
}

/* ===== TABLET VIEW ===== */
@media (max-width: 992px) {
  .pre-footer {
    padding: 50px 8%;
  }

  .footer-logo {
    width: 90px;
  }

  .footer-column h3 {
    font-size: 17px;
  }

  .footer-column li {
    font-size: 14px;
  }
}

/* ===== MOBILE VIEW ===== */
@media (max-width: 768px) {
  .pre-footer {
    padding: 50px 6%;
  }

  .pre-footer-container {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .footer-column {
    align-items: center;
  }

  .footer-logo {
    margin-bottom: 12px;
  }
}

/* ===== SMALL MOBILE VIEW ===== */
@media (max-width: 500px) {
  .pre-footer {
    padding: 40px 5%;
  }

  .pre-footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-column {
    align-items: center;
    text-align: center;
  }

  .footer-column h3 {
    font-size: 16px;
  }

  .footer-column li {
    font-size: 14px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .contact {
    padding: 80px 40px;
  }

  .contact-container {
    flex-direction: column;
    gap: 40px;
  }

  .contact-map iframe {
    width: 100%;
    height: 280px;
  }

  .form-row {
    flex-direction: column;
  }

  button {
    align-self: flex-start;
  }
}

/* =========================
   WHATSAPP FLOATING BUTTON
========================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366; /* Warna hijau khas WhatsApp */
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float i {
  margin-top: 14px;
}

.whatsapp-float:hover {
  background-color: #1ebe5c; /* Hijau lebih tua saat hover */
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Animasi muncul halus */
.whatsapp-float {
  opacity: 0;
  animation: fadeInWA 0.8s ease forwards;
  animation-delay: 0.5s;
}

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

/* =========================
   RESPONSIVE (TABLET & HP)
========================= */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 20px;
    font-size: 26px;
  }
  .whatsapp-float i {
    margin-top: 11px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 40px;
    right: 15px;
    font-size: 24px;
  }
  .whatsapp-float i {
    margin-top: 10px;
  }
}
