:root {
  --bg-primary: #18181b;
  --bg-secondary: #27272a;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --accent-1: #f97316;
  --accent-2: #fbbf24;
  --accent-3: #fde047;
  --gradient-main: linear-gradient(
    98deg,
    rgba(249, 115, 22, 1) 0%,
    rgba(251, 191, 36, 1) 100%
  );
}

html {
  scroll-behavior: smooth;
}

/* Scrollbar Chrome, Edge, Safari */
body::-webkit-scrollbar {
  width: 8px;
  background: #18181b;
}

body::-webkit-scrollbar-thumb {
  background: #f97316;
  background: linear-gradient(
    98deg,
    rgba(249, 115, 22, 1) 0%,
    rgba(251, 191, 36, 1) 100%
  );
  border-radius: 8px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #f97316;
  background: linear-gradient(
    98deg,
    rgba(249, 115, 22, 1) 0%,
    rgba(251, 191, 36, 1) 100%
  );
}

/* Body */
/* --- General Styles --- */
body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  background-image: radial-gradient(
      ellipse at top,
      rgba(251, 191, 36, 0.1) 0%,
      rgba(24, 24, 27, 0) 50%
    ),
    radial-gradient(
      ellipse at bottom,
      rgba(249, 115, 22, 0.1) 0%,
      rgba(24, 24, 27, 0) 50%
    );
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: "Montserrat", sans-serif;
}

.container {
  max-width: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  cursor: none;
}

html, body {
  overflow-x: hidden !important;
}

@media (max-width: 767px) {
  .hero-section {
    padding-top: 80px;
  }
}

/* --- Header & Hero Section --- */
.header-bg {
  background-color: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section {
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-shapes div {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-main);
  animation: rise 25s infinite linear;
  opacity: 0.15;
}

.hero-shapes div:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-duration: 22s;
}

.hero-shapes div:nth-child(2) {
  width: 150px;
  height: 150px;
  left: 20%;
  animation-delay: 2s;
  animation-duration: 25s;
}

.hero-shapes div:nth-child(3) {
  width: 50px;
  height: 50px;
  left: 35%;
  animation-delay: 4s;
  animation-duration: 18s;
}

.hero-shapes div:nth-child(4) {
  width: 200px;
  height: 200px;
  left: 50%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.hero-shapes div:nth-child(5) {
  width: 120px;
  height: 120px;
  left: 70%;
  animation-delay: 3s;
  animation-duration: 23s;
}

.hero-shapes div:nth-child(6) {
  width: 60px;
  height: 60px;
  left: 85%;
  animation-delay: 1s;
  animation-duration: 19s;
}

@keyframes rise {
  0% {
    transform: translateY(100vh) scale(0);
  }
  100% {
    transform: translateY(-10vh) scale(1);
  }
}

.hero-title {
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 5.5rem;
  }
}

.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-top: 10px;
}

/* --- Nút bấm (Button) --- */
.btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  background-size: 200% auto;
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(251, 191, 36, 0.25);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-1);
  transform: translateY(-3px);
}

/* --- Thẻ (Card) --- */
.card {
  border-radius: 20px;
  border: 1px solid var(--accent-1);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-1);
}

/* --- Tiêu đề mục (Section Title) --- */
.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

/* --- Hiệu ứng & Tiện ích khác --- */
.icon-wrapper {
  padding: 20px;
  border-radius: 50%;
  display: inline-flex;
  margin-bottom: 24px;
  background: var(--gradient-main);
  color: white;
}

.icon-wrapper svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}

/* Logo Carousel */
.logo-carousel-container {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

.logo-carousel {
  display: flex;
  width: fit-content;
  animation: scroll-left 40s linear infinite;
}

.logo-item {
  flex-shrink: 0;
  margin-right: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  opacity: 0.6;
  filter: grayscale(50%) brightness(1.5);
  transition: all 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
  transform: scale(1.1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-carousel-container:hover .logo-carousel {
  animation-play-state: paused;
}

/* --- [CẬP NHẬT] Infographic Quyền lợi KOC --- */
.benefits-infographic-container {
  display: none; /* Ẩn trên di động */
}

@keyframes rotate-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1024px) {
  .benefits-infographic-container {
    display: block;
    position: relative;
    width: 100%;
    max-width: 850px; /* Giới hạn chiều rộng */
    height: 850px; /* Chiều cao tương ứng */
    margin: 5rem auto 0;
  }

  .benefits-orbit {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: rotate-orbit 90s linear infinite; /* Tốc độ xoay */
  }

  .benefits-infographic-container:hover .benefits-orbit {
    animation-play-state: paused; /* Dừng khi hover */
  }

  .benefits-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: white;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.4);
    z-index: 10; /* Đảm bảo ở trên */
  }
  .benefits-center h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.2;
  }
  .benefit-node {
    position: absolute;
    top: calc(50% - 120px); /* Nửa chiều cao node */
    left: calc(50% - 120px); /* Nửa chiều rộng node */
    width: 240px;
    height: 240px;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    transition: all 0.4s ease;
    transform-origin: center center;
  }
  .benefit-node:hover {
    transform: scale(1.1) !important; /* Luôn phóng to khi hover vào node */
    border-color: var(--accent-2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 20;
  }
  .benefit-node .icon {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
  }
  .benefit-node .icon svg {
    width: 36px;
    height: 36px;
  }
  .benefit-node h4 {
    font-family: "Montserrat";
    font-weight: 700;
    font-size: 1rem;
  }
  .benefit-node p {
    font-size: 0.8rem;
    color: var(--text-secondary);
  }

  /* Định vị các node một cách đều đặn */
  .benefit-node-1 {
    transform: rotate(-90deg) translateY(-325px) rotate(90deg);
  }
  .benefit-node-2 {
    transform: rotate(-38.57deg) translateY(-325px) rotate(38.57deg);
  }
  .benefit-node-3 {
    transform: rotate(12.86deg) translateY(-325px) rotate(-12.86deg);
  }
  .benefit-node-4 {
    transform: rotate(64.29deg) translateY(-325px) rotate(-64.29deg);
  }
  .benefit-node-5 {
    transform: rotate(115.71deg) translateY(-325px) rotate(-115.71deg);
  }
  .benefit-node-6 {
    transform: rotate(167.14deg) translateY(-325px) rotate(-167.14deg);
  }
  .benefit-node-7 {
    transform: rotate(218.57deg) translateY(-325px) rotate(-218.57deg);
  }
}

.benefits-list-mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .benefits-list-mobile {
    display: none; /* Ẩn trên desktop */
  }
}

/* --- Custom Cursor CSS --- */
.custom-cursor-outer {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px; /* Kích thước của hình vuông */
  height: 40px;
  border: 1.5px solid var(--accent-1); /* Màu vàng cho viền */
  border-radius: 8px; /* Bo góc */
  pointer-events: none; /* Quan trọng: để không cản trở click vào các phần tử khác */
  transform: translate(-50%, -50%) rotate(45deg) !important; /* Căn giữa theo vị trí chuột */
  transition: transform 0.05s ease-out, opacity 0.2s ease; /* Chuyển động và độ mờ */
  z-index: 9999; /* Đảm bảo luôn nằm trên cùng */
  opacity: 0; /* Ban đầu ẩn */
}

.custom-cursor-inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent-1);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out, opacity 0.2s ease;
  z-index: 9999;
  opacity: 0;
}

body.mouse-moving .custom-cursor-outer,
body.mouse-moving .custom-cursor-inner {
  opacity: 1;
}

@media (max-width: 480px) {
  .custom-cursor-outer,
  .custom-cursor-inner {
    display: none !important;
  }
  body {
    cursor: default;
  }
}

.custom-card:hover {
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 10px 30px var(--accent-1);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.custom-card:hover .icon-wrapper i,
.custom-card:hover .icon-wrapper svg {
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: #FFFFFF !important;
  background: none !important;
  transition: color 0.3s;
}

.hover\:text-orange:hover {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hover\:color-orange:hover {
  color: var(--accent-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Logo Carousel --- */
.logo {
  padding-top: 0px !important;
}

.logo img {
  width: 100%;
  height: 60px;
  max-width: 200px;
  transition: transform 0.3s ease;
}

/* --- Custom --- */
.circle-border-orange {
  border: 2px solid var(--accent-1);
  border-radius: 50%;
}

.technology-img {
  height: 50px;
}

/* --- Fixed Action Buttons --- */
.fixed-action-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.action-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

.action-btn img {
  transition: all 0.3s ease;
}

/* Scroll to top button - không có hiệu ứng rung */
.scroll-top-btn {
  background: var(--gradient-main);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-top-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
  animation: none;
}

/* Call button */
.call-btn {
  background: #f97316;
  animation: shake-shadow 3s infinite;
}

.call-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
}

/* Zalo button */
.zalo-btn {
  background: #0084ff;
  animation: shake-shadow 3s infinite 0.5s;
}

.zalo-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(0, 132, 255, 0.6);
}

.zalo-btn:hover img {
  transform: scale(1.1);
}

/* Facebook button */
.facebook-btn {
  background: #1877f2;
  animation: shake-shadow 3s infinite 1s;
}

.facebook-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(24, 119, 242, 0.6);
}

/* Keyframes cho hiệu ứng rung lắc và shadow */
@keyframes shake-shadow {
  0%, 100% {
    transform: translateX(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }
}

/* Pulse animation cho scroll button */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  }
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
  .fixed-action-buttons {
    right: 15px;
    bottom: 15px;
    gap: 12px;
  }
  
  .action-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
