 /* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-family: "Inter", sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 4rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.2s;
}
.fade-in-delay-2 {
  animation-delay: 0.4s;
}
.fade-in-delay-3 {
  animation-delay: 0.6s;
}

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

/* ===== TYPOGRAPHY ===== */
.hero-title {
  font-size: clamp(2.5rem, 5vw, var(--font-size-4xl));
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: clamp(2rem, 4vw, var(--font-size-3xl));
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.5;
}

/* ===== NAVIGATION ===== */
.navbar {
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  font-size: var(--font-size-xl);
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  transition: color var(--transition-base);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
  width: 80%;
}

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

/* ===== LOGO STYLES ===== */
.navbar-logo {
  height: clamp(40px, 8vw, 50px);
  width: auto;
  transition: transform var(--transition-base);
}

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

.footer-logo {
  height: clamp(50px, 6vw, 60px);
  width: auto;
  filter: brightness(0) invert(1);
}

/* ===== HERO SECTIONS ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section-small {
  height: 60vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-image {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card-hover {
  transition: all var(--transition-base);
}

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

/* ===== VALUE CARDS ===== */
.featured-value-card {
  transform: scale(1.05);
  border: 2px solid var(--primary-color) !important;
  position: relative;
  overflow: hidden;
}

.featured-value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.featured-value-card:hover::before {
  left: 100%;
}

.value-icon,
.featured-value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.value-icon {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.featured-value-icon {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.value-icon:hover,
.featured-value-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* ===== SERVICE CARDS ===== */
.service-product-card {
  border-radius: var(--radius-xl) !important;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.service-product-card:hover::before {
  transform: translateX(100%);
}

.service-icon-small {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.service-product-card:hover .service-icon-small {
  transform: scale(1.1);
}

/* ===== CONTACT & INFO CARDS ===== */
.contact-icon,
.culture-icon,
.mission-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.contact-info-card:hover .contact-icon {
  transform: scale(1.1) rotate(10deg);
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
}

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

.cta-button {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

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

/* ===== SOCIAL LINKS ===== */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

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

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-2xl);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  z-index: 2;
  border: 4px solid var(--white);
}

.timeline-content {
  width: calc(50% - 30px);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: calc(50% + 30px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .featured-value-card {
    transform: scale(1);
    margin-bottom: var(--spacing-xl);
  }

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

  .back-to-top {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  .hero-section-small {
    height: 50vh;
  }

  .service-product-card {
    margin-bottom: var(--spacing-md);
  }

  .navbar-nav .nav-link {
    padding: var(--spacing-sm) !important;
  }
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .back-to-top,
  .social-links {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    background: var(--white) !important;
    color: var(--black) !important;
  }
}

/* ===== COMPANY VALUES SECTION ===== */
.values-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  min-height: 400px;
}

.values-card-bg {
  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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.values-badge {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #6f42c1 100%) !important;
}

.values-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.decoration-1 {
  width: 120px;
  height: 120px;
  top: -60px;
  right: -60px;
}

.decoration-2 {
  width: 80px;
  height: 80px;
  bottom: 20px;
  right: 20px;
}

.decoration-3 {
  width: 40px;
  height: 40px;
  top: 50%;
  right: 10%;
}

/* Professional Image Container */
.professional-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.professional-image-container img {
  transition: transform var(--transition-slow);
}

.professional-image-container:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.professional-image-container:hover .image-overlay {
  transform: translateY(0);
}

/* Values Info Panel */
.values-info-panel {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.info-item {
  transition: all var(--transition-base);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.info-item:hover {
  background: rgba(0, 123, 255, 0.05);
  transform: translateX(5px);
}

/* Additional Image Container */
.additional-image-container {
  position: relative;
}

.image-caption {
  position: absolute;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  max-width: 250px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Contact Quick Links */
.contact-quick a {
  color: var(--secondary-color);
  transition: color var(--transition-base);
}

.contact-quick a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .values-card {
    min-height: 300px;
  }

  .values-card .card-body {
    padding: var(--spacing-xl) !important;
  }

  .image-caption {
    position: static;
    margin-top: var(--spacing-md);
    max-width: none;
  }

  .decoration-1 {
    width: 80px;
    height: 80px;
    top: -40px;
    right: -40px;
  }

  .decoration-2 {
    width: 60px;
    height: 60px;
  }

  .decoration-3 {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 576px) {
  .values-info-panel {
    margin-top: var(--spacing-md);
  }

  .info-item:hover {
    transform: none;
  }
}

/* Animation for values section */
.values-card {
  animation: slideInLeft 0.8s ease-out;
}

.professional-image-container {
  animation: slideInRight 0.8s ease-out 0.2s both;
}

.values-info-panel {
  animation: slideInRight 0.8s ease-out 0.4s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hover effects for the entire section */
.values-card:hover .decoration-circle {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.1);
  }
}


.featured-value-card {
    border: none !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
}

.core-values-section .row > [class*="col-"]:not(:last-child) {
    margin-right: 2rem; /* khoảng cách phải giữa các card trên desktop */
}

