/* ========================================
   SDA Logistics - National Freight Forwarder
   Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --primary-light: #e1effe;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --dark: #1f2937;
  --darker: #111827;
  --light: #f3f4f6;
  --lighter: #f9fafb;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --success: #059669;
  --danger: #dc2626;
  --info: #0891b2;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
  background: var(--darker);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar a {
  color: rgba(255,255,255,0.8);
}

.top-bar a:hover {
  color: var(--secondary);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  background: var(--white) !important;
  box-shadow: var(--shadow);
  padding: 0;
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary) !important;
  padding: 12px 0;
}

.navbar-brand i {
  color: var(--secondary);
  margin-right: 8px;
}

.navbar-brand span {
  color: var(--dark);
}

.nav-link {
  color: var(--dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 20px 16px !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 8px;
}

.dropdown-item {
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 41, 55, 0.75);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  max-width: 600px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

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

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
  padding: 80px 0;
}

.section-lg {
  padding: 100px 0;
}

.section-sm {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-title .line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ========================================
   CARDS
   ======================================== */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  background: var(--white);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon i {
  font-size: 1.8rem;
  color: var(--primary);
}

.card-body {
  padding: 30px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.card-text {
  color: var(--gray);
  margin-bottom: 20px;
}

/* Service Card */
.service-card {
  padding: 35px 30px;
  text-align: center;
}

/* Feature Card */
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
}

.feature-card .feature-icon {
  width: 55px;
  height: 55px;
  min-width: 55px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================
   STATS
   ======================================== */
.stats-section {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========================================
   TRACKING BOX
   ======================================== */
.tracking-box {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 35px;
}

.tracking-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.tracking-box .form-control {
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.tracking-box .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* ========================================
   PAGE BANNER
   ======================================== */
.page-banner {
  position: relative;
  padding: 100px 0 80px;
  background: var(--primary);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="2" fill="rgba(255,255,255,0.06)"/></svg>');
  background-size: 200px;
}

.page-banner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.page-banner .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
  color: rgba(255,255,255,0.8);
}

.page-banner .breadcrumb-item.active {
  color: var(--white);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item h5 {
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--gray);
  margin: 0;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.testimonial-card .stars {
  color: var(--secondary);
  margin-bottom: 15px;
}

.testimonial-card p {
  color: var(--gray);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h6 {
  font-weight: 700;
  margin: 0;
}

.testimonial-author span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ========================================
   NEWS CARD
   ======================================== */
.news-card {
  overflow: hidden;
}

.news-card .news-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.news-card:hover .news-img {
  transform: scale(1.05);
}

.news-card .news-date {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.news-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card h4 a:hover {
  color: var(--primary);
}

/* ========================================
   TABLE STYLES
   ======================================== */
.table-container {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 15px;
}

.table tbody td {
  padding: 14px 15px;
  border-color: var(--gray-light);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: var(--lighter);
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-control,
.form-select {
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--darker);
  color: rgba(255,255,255,0.8);
  padding: 70px 0 0;
}

.footer h5 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 25px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 4px;
  min-width: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px;
  padding: 25px 0;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .navbar-collapse {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
  }

  .nav-link {
    padding: 12px 16px !important;
  }

  .nav-link::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 500px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .stat-item .stat-number {
    font-size: 2.2rem;
  }

  .page-banner {
    padding: 70px 0 60px;
  }

  .page-banner h1 {
    font-size: 1.9rem;
  }
}

/* ========================================
   UTILITY
   ======================================== */
.bg-light {
  background-color: var(--lighter) !important;
}

.bg-primary-soft {
  background-color: var(--primary-light) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.rounded-lg {
  border-radius: var(--border-radius-lg) !important;
}
