/* ============================================
   GB ASIA - Professional Theme with Dark/Light Mode
   ============================================ */

:root {
  /* Light Mode Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #6c757d;
  --border-color: #e2e8f0;
  --accent-color: #f59e0b;
  --accent-hover: #d97706;
  --nav-bg: #ffffff;
  --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --footer-bg: #1a1a2e;
  --footer-text: #e2e8f0;
  --hero-overlay: rgba(0, 0, 0, 0.5);
  --badge-bg: #fef3c7;
  --badge-text: #92400e;
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --pagination-bg: #ffffff;
  --pagination-active: #f59e0b;
  --section-alt-bg: #f1f5f9;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --accent-color: #f59e0b;
  --accent-hover: #fbbf24;
  --nav-bg: #1e293b;
  --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --footer-bg: #0f172a;
  --footer-text: #cbd5e1;
  --hero-overlay: rgba(15, 23, 42, 0.7);
  --badge-bg: #78350f;
  --badge-text: #fef3c7;
  --input-bg: #334155;
  --input-border: #475569;
  --pagination-bg: #1e293b;
  --pagination-active: #f59e0b;
  --section-alt-bg: #1e293b;
}

/* ============================================
   Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Navigation
   ============================================ */
.gb-navbar {
  background-color: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  padding: 0.75rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.gb-navbar .navbar-brand img {
  height: 50px;
  width: auto;
}

.gb-navbar .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.gb-navbar .nav-link:hover,
.gb-navbar .nav-link.active {
  color: var(--accent-color) !important;
}

.gb-navbar .dropdown-menu {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 0.5rem 0;
}

.gb-navbar .dropdown-item {
  color: var(--text-primary);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.gb-navbar .dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-color);
}

.gb-navbar .search-form .form-control {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  border-radius: 25px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  width: 180px;
  transition: all 0.3s ease;
}

.gb-navbar .search-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  width: 220px;
}

.gb-navbar .search-form .btn-search {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.4rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.gb-navbar .search-form .btn-search:hover {
  background-color: var(--accent-hover);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: rotate(15deg);
}

/* ============================================
   Hero Section
   ============================================ */
.gb-hero {
  margin-top: 76px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 500px;
}

.gb-hero .carousel-item {
  min-height: 500px;
}

.gb-hero .carousel-item img,
.gb-hero .carousel-item iframe {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.gb-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 3rem 2rem 2rem;
  color: #fff;
}

.gb-hero-specs table {
  font-size: 0.9rem;
}

.gb-hero-specs td {
  padding: 0.2rem 0.5rem;
  color: #e2e8f0;
}

.gb-hero-links a {
  display: inline-block;
  margin: 0 0.4rem;
  transition: transform 0.3s ease;
}

.gb-hero-links a:hover {
  transform: translateY(-3px);
}

.gb-hero-links img {
  height: 32px;
  width: auto;
}

/* ============================================
   Section Styles
   ============================================ */
.gb-section {
  padding: 4rem 0;
}

.gb-section-alt {
  background-color: var(--section-alt-bg);
}

.gb-section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.gb-section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.gb-section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

.gb-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ============================================
   Product Cards
   ============================================ */
.gb-product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gb-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--accent-color);
}

.gb-product-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.gb-product-card .card-img-wrapper img {
  max-height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gb-product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.gb-product-card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gb-product-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  flex: 1;
}

.gb-product-card .card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gb-product-card .btn-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.gb-product-card .btn-shop:hover {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: #fff;
}

.gb-product-card .btn-shop img {
  height: 18px;
  width: auto;
}

.gb-product-card .btn-detail {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.gb-product-card .btn-detail:hover {
  background-color: var(--accent-hover);
}

/* ============================================
   Carousel (Products)
   ============================================ */
.gb-carousel .carousel-control-prev,
.gb-carousel .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--accent-color);
  border-radius: 50%;
  opacity: 1;
}

.gb-carousel .carousel-control-prev {
  left: -20px;
}

.gb-carousel .carousel-control-next {
  right: -20px;
}

/* ============================================
   Banner Section
   ============================================ */
.gb-banner-carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.gb-banner-carousel img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ============================================
   Partner Section
   ============================================ */
.gb-partner {
  text-align: center;
}

.gb-partner img {
  max-width: 250px;
  margin: 1rem auto;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

[data-theme="dark"] .gb-partner img {
  filter: brightness(1.1);
}

/* ============================================
   About Section
   ============================================ */
.gb-about-content {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.gb-about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.gb-about-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.gb-about-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.gb-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.btn-accent {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* ============================================
   CTA / Manufacture Section
   ============================================ */
.gb-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 16px;
  margin: 2rem 0;
}

.gb-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.gb-cta p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.gb-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-color);
}

.gb-footer .footer-brand img {
  height: 50px;
  margin-bottom: 1rem;
}

.gb-footer .footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.gb-footer .footer-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

[data-theme="dark"] .gb-footer .footer-title {
  color: #f1f5f9;
}

.gb-footer .footer-links {
  list-style: none;
  padding: 0;
}

.gb-footer .footer-links li {
  margin-bottom: 0.5rem;
}

.gb-footer .footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.gb-footer .footer-links a:hover {
  color: var(--accent-color);
}

.gb-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.gb-footer .footer-social a:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.gb-footer .footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   Pagination
   ============================================ */
.gb-pagination .page-item .page-link {
  background-color: var(--pagination-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  margin: 0 3px;
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
  transition: all 0.3s ease;
}

.gb-pagination .page-item .page-link:hover,
.gb-pagination .page-item.active .page-link {
  background-color: var(--pagination-active);
  border-color: var(--pagination-active);
  color: #fff;
}

/* ============================================
   Utilities
   ============================================ */
.spacer-top {
  margin-top: 76px;
}

.text-accent {
  color: var(--accent-color);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .gb-hero {
    min-height: 300px;
  }

  .gb-hero .carousel-item {
    min-height: 300px;
  }

  .gb-hero .carousel-item img,
  .gb-hero .carousel-item iframe {
    height: 300px;
  }

  .gb-section {
    padding: 2.5rem 0;
  }

  .gb-section-title h2 {
    font-size: 1.5rem;
  }

  .gb-about-content {
    padding: 1.5rem;
  }

  .gb-cta {
    padding: 3rem 1.5rem;
  }

  .gb-cta h2 {
    font-size: 1.5rem;
  }

  .gb-navbar .search-form .form-control {
    width: 140px;
  }

  .gb-navbar .search-form .form-control:focus {
    width: 160px;
  }
}

@media (max-width: 576px) {
  .gb-hero-links img {
    height: 24px;
  }

  .gb-hero-specs td {
    font-size: 0.75rem;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mobile navbar toggle */
.navbar-toggler {
  border-color: var(--border-color) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(148, 163, 184, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
