:root {
  --primary: #349158;
  --dark: #07160e;
  --white: #ffffff;
  --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background: var(--dark);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #1a4d2e 0%, var(--dark) 80%);
  z-index: -1;
}

header {
  position: fixed;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(7, 22, 14, 0.8);
  backdrop-filter: blur(15px);
}

.logo img {
  height: 35px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav .nav-wrapper {
  display: flex;
  gap: 30px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: 0.3s;
  opacity: 0.7;
}

nav a:hover {
  opacity: 1;
  color: var(--primary);
}

/* Social Icons Style */
.social-group {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #fff;
  text-decoration: none;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px) rotate(10deg);
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 10%;
  position: relative;
}

.hero-content {
  flex: 1;
  z-index: 2;
  order: 2;
}

.hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}

.hero-image-wrap {
  order: 1;
  flex: 1;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 901px) {
  .hero-content {
    flex: 1.5;
    order: 1;
  }

  .hero-image-wrap {
    order: 2;
    flex: 1;
    height: 75vh;
    position: relative;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    overflow: hidden;
    margin-bottom: 0;
  }
}



/* PRODUCTS */
section {
  padding: 120px 10%;
}

.reveal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10vw;
  opacity: 0.03;
  position: absolute;
  left: 0;
  white-space: nowrap;
  pointer-events: none;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 100px;
}

.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

.service-img {
  flex: 1;
  height: 450px;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.service-info {
  flex: 1;
}

.service-info h3 {
  font-family: 'Cormorant Garamond';
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  transition: 0.4s;
}

.feature-card:hover {
  border-color: var(--primary);
  background: rgba(52, 145, 88, 0.05);
}

/* TESTIMONIALS MARQUEE */
.testimonials {
  padding: 80px 0;
  overflow: hidden;
}

.t-track {
  display: flex;
  gap: 40px;
  animation: scroll 35s linear infinite;
  width: max-content;
}

.t-card {
  width: 350px;
  background: #0a1f14;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* FOOTER */
footer {
  padding: 100px 10% 40px;
  background: #040d08;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-links a,
.footer-links p {
  display: block;
  color: #fff;
  text-decoration: none;
  opacity: 0.5;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Hamburger default hidden on desktop */
.hamburger {
  display: none;
}

@media (max-width: 900px) {
  .header-right {
    display: none;
  }

  /* Hamburger button */
  .hamburger {
    display: block;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
  }

  .hamburger-box {
    display: inline-block;
    width: 24px;
    height: 16px;
    position: relative;
  }

  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    width: 24px;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .hamburger-inner {
    top: 7px;
  }

  .hamburger-inner::before {
    content: '';
    top: -7px;
  }

  .hamburger-inner::after {
    content: '';
    top: 7px;
  }

  .hamburger.open .hamburger-inner {
    transform: translateX(-2px) rotate(45deg);
  }

  .hamburger.open .hamburger-inner::before {
    transform: translateX(-2px) rotate(-45deg);
    top: 0;
  }

  .hamburger.open .hamburger-inner::after {
    opacity: 0;
  }

  /* Mobile nav panel */
  .mobile-nav {
    position: fixed;
    right: 0;
    top: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(7, 22, 14, 0.98);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
  }

  .mobile-nav.open {
    transform: translateX(0);
  }

  .mobile-nav-inner {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .mobile-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    align-self: flex-end;
    cursor: pointer;
  }

  .mobile-nav .social-group {
    display: flex;
    gap: 12px;
  }

  /* Footer social icons centered on mobile */
  .footer-logo .social-group {
    justify-content: center;
  }

  /* Fullscreen semi-transparent overlay behind the panel */
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1040;
  }

  .menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero,
  .service-row,
  .about,
  .footer-grid {
    grid-template-columns: 1fr;
    flex-direction: column !important;
    text-align: center;
  }
}

.section-container {
  max-width: 1200px;
  min-height: 50vh;
  margin: 0 auto;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary);
}

.section-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.section-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.section-content p br {
  display: block;
  margin-bottom: 10px;
}

.section-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.section-content ul li {
  margin-bottom: 10px;
}

.section-content a {
  color: var(--primary);
  text-decoration: none;
}

.section-content a:hover {
  text-decoration: underline;
}

.partners-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  white-space: nowrap;
  padding: 20px 0;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 80px;
  /* Khoảng cách giữa các logo */
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.partner-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  opacity: 0.8;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.partner-logo:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.1);
}

.partner-logo:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.1);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
  .partner-item {
    font-size: 1.1rem;
  }

  .partners-track {
    gap: 40px;
  }
}

/* Team Section Styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.team-card {
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.member-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  /* Tỉ lệ ảnh chân dung chuẩn editorial */
  background: #1a1a1a;
  /* Khung chờ khi chưa có ảnh */
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.member-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}


.member-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.member-info span {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 600;
}

.member-info-top {
  margin-bottom: 20px;
}

/* Tinh chỉnh mobile */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    /* Chia đôi trên mobile */
  }
}

.member-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.member-card:hover {
  background: rgba(52, 145, 88, 0.08);
  /* Màu xanh primary mờ */
  border-color: var(--primary);
  transform: translateY(-10px);
}

.badge-icon {
  height: 60px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon img {
  max-height: 100%;
  max-width: 180px;
  opacity: 0.7;
  transition: 0.3s;
}

.member-card:hover .badge-icon img {
  opacity: 1;
  transform: scale(1.1);
}

.member-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.member-card p {
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.5;
}

/* Values Grid Layout */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.value-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 50px 30px;
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.value-item:hover {
  background: rgba(52, 145, 88, 0.05);
  border-color: var(--primary);
  transform: translateY(-10px);
}

.value-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  position: absolute;
  top: -10px;
  right: 10px;
  opacity: 0.05;
  font-weight: bold;
  color: var(--primary);
}

.value-item h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.value-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.6;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .strategy-section div {
    grid-template-columns: 1fr !important;
    gap: 60px !important;
  }
}

/* --- Shop Categories Section --- */
.shop-categories {
  padding: 100px 10%;
  background: #040d08;
  /* Tiệp màu với background site chính */
  text-align: center;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.section-header .subtitle {
  opacity: 0.5;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.categories-wrapper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Biến tấu hình khối: Bo góc không đối xứng tạo cảm giác nghệ thuật */
.cat-shape {
  width: 140px;
  height: 140px;
  border-radius: 60% 40% 70% 30% / 40% 50% 50% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  transition: all 0.5s ease;
}

.bg-green-gradient {
  background: linear-gradient(135deg, #0a2f1c 0%, #164a2f 100%);
  border: 1px solid rgba(52, 145, 88, 0.3);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #2a2412 0%, #4a3f1d 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.cat-img {
  width: 110%;
  /* Ảnh to hơn khung một chút để tạo độ nổi */
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
}

.cat-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Hover Effects */
.cat-card:hover {
  transform: translateY(-15px);
}

.cat-card:hover .cat-shape {
  border-radius: 50%;
  /* Chuyển thành hình tròn hoàn hảo khi hover */
  background: var(--primary);
  /* Đổi màu chủ đạo site */
}

.cat-card:hover .cat-img {
  transform: scale(1.1) rotate(5deg);
}

.cat-card:hover .cat-name {
  color: var(--primary);
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .categories-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .categories-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .cat-shape {
    width: 110px;
    height: 110px;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

/* --- Footer Trust Badges --- */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 30px 0;
  flex-wrap: wrap;
  /* Tự xuống hàng trên điện thoại */
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  /* Để mờ nhẹ cho sang */
  transition: opacity 0.3s ease;
}

.badge-item:hover {
  opacity: 1;
  /* Sáng lên khi hover */
}

.badge-item img {
  height: 35px;
  /* Kích thước vừa phải, không quá to */
  width: auto;
  filter: brightness(0) invert(1);
  /* Chuyển logo sang màu trắng hoàn toàn */
}

.badge-item span {
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
}

/* Responsive cho mobile */
@media (max-width: 600px) {
  .trust-badges {
    gap: 20px;
  }

  .badge-item img {
    height: 25px;
  }
}