/* ==========================================
   iConsult Group CSS Design System
   ========================================== */

:root {
  /* Color Palette */
  --primary-color: #00a896; /* Teal brand color */
  --primary-dark: #008f7f;
  --primary-light: #e0f2f1;
  --primary-rgb: 0, 168, 150;

  --secondary-color: #d9455b; /* Testimonials pink */
  --secondary-dark: #c13349;
  --secondary-light: #fdf2f4;

  --dark-color: #0f172a; /* Slate 900 */
  --text-dark: #1e293b; /* Slate 800 */
  --text-muted: #64748b; /* Slate 500 */
  --bg-light: #f8fafc; /* Slate 50 */
  --border-color: #e2e8f0; /* Slate 200 */
  --white: #ffffff;

  /* Typography */
  --font-title:
    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Shadows */
  --max-width: 1200px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md:
    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-premium:
    0 20px 25px -5px rgba(0, 168, 150, 0.1),
    0 10px 10px -5px rgba(0, 168, 150, 0.04);

  /* Animation Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--dark-color);
  font-weight: 700;
  line-height: 1.25;
}

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

a:hover {
  color: var(--primary-dark);
}

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

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 0;
}

/* Utility classes */
.text-center {
  text-align: center;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn-xs {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

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

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

.btn-block {
  display: flex;
  width: 100%;
}

/* Section Common Headers */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-top: 0;
}

.section-tag {
  font-family: var(--font-title);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* ==========================================
   Premium Header Navigation
   ========================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.main-header.shrunk {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.header-container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.logo .highlight {
  color: var(--primary-color);
}

.header-logo {
  height: 80px;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 73px;
  width: auto;
}

.footer-logo {
  height: 80px;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.footer-logo img {
  height: 73px;
  width: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Language Switcher (EN | 中文) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
}

.lang-link {
  color: var(--text-muted);
  font-weight: 500;
}

.lang-link:hover {
  color: var(--primary-color);
}

.lang-link.active {
  color: var(--primary-color);
  font-weight: 700;
}

.lang-sep {
  color: var(--border-color);
}

.lang-switch-mobile {
  margin-top: 0.5rem;
}

.desktop-nav a:not(.btn) {
  color: var(--text-dark);
  font-family: var(--font-title);
  font-weight: 500;
}

.desktop-nav a:not(.btn):hover {
  color: var(--primary-color);
}

/* Burger Button for Mobile */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--dark-color);
  transition: var(--transition);
}

/* Mobile Drawer Overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  z-index: 1010;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--white);
  z-index: 1020;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.mobile-drawer.open {
  right: 0;
}

.close-drawer {
  align-self: flex-end;
  font-size: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-nav-links {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  color: var(--text-dark);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.25rem;
  padding: 0.5rem 0;
}

.mobile-nav-links a.btn-primary {
  color: var(--white);
  text-align: center;
  border-radius: 50px;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
  min-height: 85vh;
  padding-top: 70px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
}

.hero-content {
  padding: 0;
}

.hero-content h1 {
  color: var(--white);
  font-size: 4rem;
  max-width: 700px;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

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

/* Micro-animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards ease-out;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   Hero Slider (auto-slide, multiple slides)
   ========================================== */
.hero-slider {
  padding-top: 0;
  overflow: hidden;
  background-color: var(--dark-color);
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease-in-out;
  padding-top: 70px;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-color: rgba(15, 23, 42, 0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.hero-slider-arrow:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.hero-slider-prev {
  left: 1.5rem;
}

.hero-slider-next {
  right: 1.5rem;
}

.hero-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.hero-slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.2);
}

.hero-slider-dot.active {
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
}

/* ==========================================
   Services Section
   ========================================== */
.services-section {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.service-img-wrapper {
  height: 200px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.service-card-body {
  padding: 2rem;
}

.service-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================
   Who We Are Section (Teal Background)
   ========================================== */
.whoweare-section {
  background-color: #00a294; /* Matches design image block color */
  color: var(--white);
}

.whoweare-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.whoweare-text h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 2rem;
}

.whoweare-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.whoweare-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.whoweare-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-section {
  background-color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 0;
}

.stat-card {
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.stat-card:last-child {
  border-right: none;
}

.stat-icon {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 800;
  color: var(--dark-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================
   Projects Section
   ========================================== */
.projects-section {
  background-color: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-img-wrapper {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--white);
  color: var(--dark-color);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.project-card-body {
  padding: 2rem;
}

.project-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.project-link {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.project-link:hover {
  color: var(--primary-dark);
}

.empty-state {
  padding: 4rem 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================
   Projects Pagination
   ========================================== */
.projects-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.pagination-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--border-color, #cbd5e1);
  transition: var(--transition);
  padding: 0;
}

.pagination-dot:hover {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.pagination-dot.active {
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
}

.pagination-arrows {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--dark-color);
  transition: var(--transition);
}

.pagination-arrow svg {
  display: block;
}

.pagination-arrow:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.pagination-arrow.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================
   Project Detail Page
   ========================================== */
.project-detail-hero {
  padding: 6rem 0 2rem;
  background-color: var(--bg-light);
}

.project-detail-hero .back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--text-muted);
}

.project-detail-hero .back-link:hover {
  color: var(--primary-color);
}

.project-detail-tag {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
  box-shadow: none;
  border: 1px solid var(--border-color);
}

.project-detail-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.project-detail-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.project-detail-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.project-detail-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.project-detail-content-section {
  padding: 4rem 0 6rem;
}

.project-detail-actions {
  margin-top: 2.5rem;
}

.markdown-content {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--font-body);
  color: var(--dark-color);
  line-height: 1.75;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  font-family: var(--font-title);
  color: var(--dark-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.markdown-content p {
  color: var(--dark-color);
  margin-bottom: 1.25rem;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--dark-color);
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.markdown-content code {
  background-color: var(--bg-light);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.markdown-content pre {
  background-color: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.markdown-content a {
  color: var(--primary-color);
}

.markdown-content a:hover {
  color: var(--primary-dark);
}

/* ==========================================
   Testimonials Section (Coral/Pink-Red)
   ========================================== */
.testimonials-section {
  background-color: var(--secondary-color);
  color: var(--white);
}

.testimonials-section h2,
.testimonials-section .section-tag,
.testimonials-section p {
  color: var(--white);
}

.testimonials-wrapper {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0 auto;
}

.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide standard Firefox scrollbars */
}

.testimonials-slider::-webkit-scrollbar {
  display: none; /* Hide Chrome/Safari scrollbars */
}

.testimonial-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0 1rem;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

.quote-text {
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-dark) !important;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary-light);
}

.client-meta h4 {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.client-role {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

/* ==========================================
   Partners / Clients Section
   ========================================== */
.partners-section {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 0;
}

.partners-section .section-header {
  margin-bottom: 2.5rem;
}

/* Legacy static grid (kept for reuse in case the slider is unavailable) */
.partners-logo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-logo {
  transition: var(--transition);
}

.partner-logo img {
  height: 40px;
  object-fit: contain;
}

.text-logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* ==========================================
   Clients Slider (auto-advance + dot indicators)
   ========================================== */
.clients-slider-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

.clients-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  gap: 0;
}

.clients-slider-track::-webkit-scrollbar {
  display: none;
}

.client-logo-item {
  flex: 0 0 20%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  transition: var(--transition);
}

.client-logo-item img {
  height: 64px;
  max-width: 100%;
  object-fit: contain;
}

.client-logo-item .text-logo {
  white-space: nowrap;
}

/* Clients slider arrows: light-background variant of the hero slider arrows.
   Light border/background, dark icon by default; teal fill + white icon on hover. */
.clients-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.clients-slider-arrow:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.clients-slider-prev {
  left: 0;
}

.clients-slider-next {
  right: 0;
}

.clients-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.clients-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.clients-slider-dot:hover {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.clients-slider-dot.active {
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info .section-tag {
  margin-bottom: 0.5rem;
}

.contact-info h2 {
  font-size: 3rem;
  margin-bottom: 2.5rem;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-details-list li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.details-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0; /* jangan menyusut saat teks di sebelahnya panjang (mis. alamat multi-baris) */
  border-radius: 12px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-dark); /* icon Font Awesome mengikuti warna teks */
}

.details-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.details-text a,
.details-text p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
}

.contact-form-wrapper {
  background-color: var(--bg-light);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15);
}

/* AJAX Form Toast */
.form-response-msg {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
  font-weight: 500;
}

.form-response-msg.success {
  display: block;
  background-color: #e6f4ea;
  color: #137333;
  border: 1px solid #a3e2b6;
}

.form-response-msg.error {
  display: block;
  background-color: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

.map-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

/* ==========================================
   Premium Footer Navigation
   ========================================== */
.main-footer {
  background-color: #00a294; /* Matches design teal colors */
  color: var(--white);
}

.main-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.main-footer a:hover {
  color: var(--white);
}

.footer-container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.logo-light .logo-icon {
  background-color: var(--white);
  color: #00a294;
}

.logo-light {
  color: var(--white);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.contact-info-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-info-list .icon {
  font-size: 1.1rem;
  line-height: 1.6;
  flex-shrink: 0;
  color: var(--white);
  width: 1.4rem;
  text-align: center;
}

.contact-info-list .info-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-info-list .info-title {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
}

.contact-info-list .info-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

.contact-info-list a.info-value:hover {
  color: var(--white);
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a {
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white) !important;
  transition: var(--transition);
}

.social-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  color: currentColor;
  fill: currentColor;
}

.social-icon:hover {
  background-color: var(--white);
  color: #00a294 !important;
  transform: translateY(-2px);
}

.cms-login-link {
  margin-top: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem 0;
}

.footer-bottom-container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

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

/* ==========================================
   About Page
   ========================================== */
.about-banner {
  min-height: 55vh;
  padding-top: 70px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.about-banner-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin: 0 auto 1rem;
  max-width: 800px;
}

.about-banner-content p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.about-whoweare-section {
  /* Reuses .whoweare-section styling from the homepage for visual consistency */
}

.about-cta-section {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

.about-cta-container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-cta-container h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-cta-container p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================
   Responsive Breakpoints & Mobile Optimization
   ========================================== */

@media (max-width: 1024px) {
  .container {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .whoweare-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .whoweare-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-logo-item {
    flex: 0 0 33.333%;
  }
}

/* Nav desktop butuh ruang lebar (menu panjang + language switcher) —
   di bawah 1080px pindah ke burger/drawer agar tidak wrap ke bawah logo */
@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header-logo {
    height: 70px;
  }
  .header-logo img {
    height: 65px; /* Lebih kecil dari ukuran desktop */
  }
  /* Footer Logo (Mobile - menjadi lebih kecil) */
  .footer-logo {
    height: 70px;
  }
  .footer-logo img {
    height: 65px; /* Lebih kecil dari ukuran desktop */
  }

  /* Judul section panjang (mis. SOLUTION/SERVICES) harus muat & bisa patah baris di layar sempit */
  .section-header h2 {
    font-size: 1.85rem;
    overflow-wrap: anywhere;
  }

  .hero-slider-arrow {
    display: none;
  }

  .hero-slider-track {
    height: 70vh;
    min-height: 480px;
  }

  .clients-slider-wrapper {
    padding: 0 2.25rem;
  }

  .clients-slider-arrow {
    width: 34px;
    height: 34px;
  }

  .clients-slider-arrow svg {
    width: 14px;
    height: 14px;
  }

  .client-logo-item {
    flex: 0 0 50%;
    padding: 0 1rem;
  }

  .client-logo-item img {
    height: 48px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-card {
    border-right: none;
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-section {
    min-height: 70vh;
  }

  .about-banner {
    min-height: 40vh;
    padding: 6rem 0 2rem;
  }

  .about-banner-content h1 {
    font-size: 2.25rem;
  }

  .about-cta-container {
    flex-direction: column;
    text-align: center;
  }

  .about-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .about-cta-actions .btn {
    width: 100%;
  }

  .testimonial-card {
    padding: 2rem;
  }

  .quote-text {
    font-size: 1.2rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .partners-section .container {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .partners-logo-grid {
    justify-content: center;
    gap: 2rem;
  }

  .projects-pagination {
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .pagination-dots {
    gap: 0.5rem;
  }

  .pagination-arrows {
    gap: 0.5rem;
  }

  .pagination-arrow {
    width: 38px;
    height: 38px;
  }

  .project-detail-hero {
    padding: 5rem 0 1.5rem;
  }

  .project-detail-hero h1 {
    font-size: 2rem;
  }

  .project-detail-content-section {
    padding: 2.5rem 0 4rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    width: 100%;
    text-align: center;
  }
}
