:root {
  --primary: #c20000;
  --light: #f9f9f9;
  --dark: #222;
  --accent: #ffe5e5;
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Font */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Desktop default */
.container {
  display: flex;
  gap: 20px;
}

/* Tablet */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Style */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-center {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    flex-direction: column;
    padding: 20px;
  }

  .nav-center.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Disable hover dropdown */
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}

/* Navbar */
.navbar {
  background-color: #fff;
  border-bottom: 2px solid #c20000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
  margin-right: 20px;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #c20000;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* sits right under the parent */
  left: 0;
  min-width: 200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  list-style: none;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #c20000;
}

/* Show dropdown on hover (fix gap issue too) */
.dropdown:hover > .dropdown-menu {
  display: block;
}

/* Prevent dropdown from disappearing when hovering between items */
.dropdown {
  position: relative;
}

.dropdown-menu:hover {
  display: block;
}
/*----------------------*/

.tracking-section {
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/tracking\ container.jpg') no-repeat center center/cover;
  border-radius: 30px;
}

.tracking-box {
  position: relative;
  background-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

.tracking-box h2 {
  color: white
}

.tracking-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('cargo-pixabay.jpg') no-repeat center center/cover;
  z-index: 1;
  border-radius: 16px;
}

.tracking-box > * {
  position: relative;
  z-index: 2; /* semua content di atas background */
}


.tracking-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.tracking-form input[type="text"] {
  flex: 2;
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid goldenrod;
  border-radius: 8px;
  min-width: 200px;
}

.freight-options {
  display: flex;
  gap: 10px;
  align-items: center;
}

.freight-options label {
  background: white;
  border: 1.5px solid goldenrod;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  transition: 0.3s;
  min-width: 70px;
}

.freight-options label:hover {
  border-color: #c20000;
}

.freight-options input[type="radio"] {
  display: none;
}

.freight-options input[type="radio"]:checked + i,
.freight-options input[type="radio"]:checked + i + span {
  color: #c20000;
  font-weight: bold;
}

.freight-options i {
  font-size: 18px;
  margin-bottom: 5px;
}

#trackNow {
  background: #c20000;
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#trackNow:hover {
  background: #a00000;
}

.warning {
  color: gold;
  font-size: 12px;
  margin-top: 10px;
}


/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  position: relative;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#closePopup {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  border: none;
  background: none;
  color: #c20000;
  cursor: pointer;
}

.status-bar {
  width: 100%;
  height: 12px;
  background: #eee;
  border-radius: 8px;
  margin: 20px 0;
  overflow: hidden;
}

.status-bar-fill {
  height: 100%;
  width: 0%;
  background: #c20000;
  transition: width 0.5s ease;
}

.status-tracker {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 30px;
  position: relative;
}

.status-step {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: #ccc;
  position: relative;
  cursor: pointer;
}

.status-step::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 8px;
  background: #ccc;
  border-radius: 50%;
  z-index: 1;
}

.status-step.active {
  color: #c20000;
}

.status-step.active::before {
  background: #c20000;
}

/* Tooltip */
.status-step:hover::after {
  content: attr(data-desc);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}

.shipment-detail table {
  border: 1px solid #ddd;
  font-size: 14px;
  margin-top: 10px;
}

.shipment-detail th {
  background-color: #f9f9f9;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  color: #333;
}

.shipment-detail td {
  border-bottom: 1px solid #eee;
  color: #444;
}



/*----------------------*/
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 100vh; /* full screen height */
  height: auto;
  padding: 100px 20px;
  background: url('images/freepik-ai-complete.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  animation: fadeInUp 2s ease-out;
}

.hero-logo {
  max-width: 350px;
  width: 90%;
  animation: zoomIn 2s ease-out;
}

.hero-tagline {
  margin-top: 20px;
  font-size: 2clamp(16px, 2.5vw, 22px);
  font-weight: 500;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.headline {
  font-size: clamp(28px, 6vw, 56px);
}

@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons a {
    display: block;
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  #chatbot-box {
    width: 90%;
    right: 5%;
  }
}

section {
  padding: 40px 15px;
}

.card {
  padding: 20px;
}

.nav-center {
  display: flex;
}

.nav-center.active {
  display: none;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


.text-section {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.headline {
  font-size: 3.5rem; /* Big font */
  font-weight: 800;
  line-height: 1.3;
  color: #1a1a1a;
  letter-spacing: -1px;
  text-transform: uppercase;
  animation: slideRight 1s ease forwards;
}

.highlight {
  color: #c20000; /* Main brand color */
  font-style: italic;
}

/* Animation */
@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .headline {
    font-size: 2.2rem;
    text-align: center;
  }

  .text-section {
    text-align: center;
    padding: 40px 15px;
  }
}


section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

#hero {
  background: linear-gradient(135deg, var(--primary), #800000);
  color: white;
  padding: 100px 20px;
  text-align: center;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
}

#hero h1 {
  font-size: 3em;
}

h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.card:hover {
  border-top: 3px solid #c20000;
}

.services-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

form {
  display: flex;
  flex-direction: column;
}

input, textarea {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.cta-section {
  padding: 60px 20px;
  background-color: white;
}

.cta-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.cta-text {
  flex: 1;
  min-width: 300px;
}

.cta-title {
  font-size: 2rem;
  color: #c20000;
  margin-bottom: 15px;
}

.cta-description {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #333;
}

.cta-buttons a {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.primary-btn {
  background-color: #c20000;
  color: #fff;
}

.primary-btn:hover {
  background-color: #a00000;
}

.secondary-btn {
  background-color: transparent;
  color: #c20000;
  border: 2px solid #c20000;
}

.secondary-btn:hover {
  background-color: #c20000;
  color: #fff;
}

.cta-image {
  flex: 1;
  min-width: 300px;
}

.cta-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


.blog-section {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url('images/pixabay-port.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 40px;
}

.blog-overlay {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease;
  color: white;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.cardy {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 30px;
  width: 300px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.cardy:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.cardy h3 {
  color: gold;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.cardy p {
  color: #ddd;
  font-size: 1rem;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .blog-grid {
    flex-direction: column;
    align-items: center;
  }

  .cardy {
    width: 100%;
    max-width: 90%;
  }

  .blog-title {
    font-size: 2rem;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.col {
  flex: 1 1 300px;
}

img {
  max-width: 100%;
  height: auto;
}

/*----------chatbox-------*/

    /* Chatbot Bubble Button */
    #chatbot-toggle {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #c20000;
      color: #fff;
      border: none;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      z-index: 2;
    }

    /* Chatbox */
    #chatbot-box {
      position: fixed;
      bottom: 90px;
      right: 20px;
      width: 320px;
      max-height: 400px;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 10px;
      display: none;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0,0,0,0.2);
      z-index: 2;
    }

    #chatbot-messages {
      flex: 1;
      overflow-y: auto;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .message {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .user-message {
      justify-content: flex-end;
    }

    .bot-message {
      justify-content: flex-start;
    }

    .avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
    }

    .message-text {
      max-width: 200px;
      padding: 8px 12px;
      border-radius: 15px;
      background-color: #f1f1f1;
      font-size: 14px;
    }

    .user-message .message-text {
      background-color: #c20000;
      color: white;
      border-bottom-right-radius: 0;
    }

    .bot-message .message-text {
      background-color: #f1f1f1;
      border-bottom-left-radius: 0;
    }

    #chatbot-input-container {
      display: flex;
      border-top: 1px solid #ddd;
    }

    #chatbot-input {
      flex: 1;
      border: none;
      padding: 10px;
      font-size: 14px;
      outline: none;
    }

    #chatbot-send {
      background: #c20000;
      color: white;
      border: none;
      padding: 10px 15px;
      cursor: pointer;
    }


/*----------------------*/
.footer {
  background-color: white;
  padding: 40px 20px 20px;
  border-top: 2px solid #c20000; /* line merah */
}

.footer-top {
  text-align: center;
  margin-bottom: 30px;
}
.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
}
.footer-description {
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto 20px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 18px;
}
.social-icons a {
  color: #c20000;
  transition: transform 0.3s ease;
}
.social-icons a:hover {
  transform: scale(1.2);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.footer-column h3 {
  color: #c20000;
  margin-bottom: 10px;
}
.footer-column a {
  display: inline-block;
  margin: 4px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a {
  display: block;
  margin: 6px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #c20000;
  transition: width 0.3s ease;
}

.footer-column a:hover {
  color: #c20000;
  transform: translateX(4px);
}

.footer-column a:hover::after {
  width: 100%;
}


.footer-rights {
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
  color: #777;
}



