/* ============================================
   CDNMaker - Shared Design System
   Theme: Warm Brown/Orange Premium
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --dark: #7a4b2a;
  --dark-deep: #5e351c;
  --main: #a86a3a;
  --accent: #d65a3a;
  --accent-light: #e8764f;
  --light: #f3e6d8;
  --section: #ead7c4;
  --section-alt: #f7efe6;
  --text: #2e2e2e;
  --text-light: #5a5a5a;
  --white: #ffffff;
  --card-shadow: 0 10px 40px rgba(122, 75, 42, 0.08);
  --card-shadow-hover: 0 20px 50px rgba(122, 75, 42, 0.15);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1200px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays for grid children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark-deep);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6%;
  font-size: 12.5px;
}

.top-bar-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-right: 16px;
  transition: var(--transition);
  font-weight: 500;
}

.top-bar-links a:hover {
  color: var(--accent);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-contact {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.85);
}

.top-bar-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.top-bar-contact a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .top-bar-contact {
    display: none;
  }
}

@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    gap: 8px;
    padding: 10px 6%;
    text-align: center;
  }
  .top-bar-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .top-bar-links a {
    margin-right: 10px;
    font-size: 11px;
  }
}

/* ===== HEADER ===== */
header {
  background: var(--dark);
  color: white;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(122, 75, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

/* ===== NAVIGATION ===== */
nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.open span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ===== PAGE HERO BANNER ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--main) 100%);
  color: white;
  padding: 80px 6% 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214, 90, 58, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb a {
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.page-hero .breadcrumb a:hover {
  opacity: 1;
}

/* ===== MAIN HERO (INDEX) ===== */
.hero {
  padding: 100px 6% 80px;
  background: linear-gradient(135deg, var(--section) 0%, var(--section-alt) 50%, var(--light) 100%);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(214, 90, 58, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 106, 58, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-container {
  max-width: var(--max-width);
  margin: auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--dark);
}

.hero h1 .accent-text {
  color: var(--accent);
  position: relative;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 35px;
  max-width: 600px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  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:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 90, 58, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
section {
  padding: 90px 6%;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 16px;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-alt {
  background: var(--section);
}

.section-white {
  background: var(--white);
}

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--main), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 700;
}

.card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

.card .card-icon {
  font-size: 44px;
  margin-bottom: 20px;
  display: block;
}

.card.priority {
  border: 2px solid var(--accent);
}

.card.priority::before {
  transform: scaleX(1);
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--main) 100%);
  padding: 60px 6%;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--main) 100%);
  padding: 80px 6%;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  background: white;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.cta-section .btn:hover {
  background: var(--light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== TIMELINE (VERTICAL) ===== */
.timeline-v {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline-v::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--main), var(--accent));
  border-radius: 3px;
}

.timeline-v-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-v-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 8px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--light);
  z-index: 1;
}

.timeline-v-item .year-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--main));
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.timeline-v-item .card {
  margin-top: 0;
}

/* ===== LEADER CARD ===== */
.leader-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.leader-card-top {
  background: linear-gradient(135deg, var(--dark), var(--main));
  padding: 30px 25px 50px;
  position: relative;
}

.leader-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 15px;
  transition: var(--transition);
}

.leader-card:hover img {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.6);
}

.leader-card-top h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 6px;
}

.leader-card-top .role {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 14px;
}

.leader-card-body {
  padding: 25px;
}

.leader-card-body .description {
  font-size: 14.5px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.leader-card-body .tag {
  display: inline-block;
  background: var(--section);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== QUOTE / BLOCKQUOTE ===== */
blockquote {
  background: var(--white);
  padding: 40px 40px 40px 50px;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  font-size: 17px;
  position: relative;
  line-height: 1.8;
  color: var(--text);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 50px;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ===== PROFILE (MESSAGE PAGE) ===== */
.profile {
  text-align: center;
}

.profile img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--main);
  margin-bottom: 20px;
  transition: var(--transition);
}

.profile:hover img {
  border-color: var(--accent);
  transform: scale(1.05);
}

.profile h3 {
  color: var(--dark);
  font-size: 20px;
  margin-bottom: 6px;
}

.profile .role-text {
  font-weight: 600;
  color: var(--main);
  font-size: 15px;
}

/* ===== LOGO / PARTNER CARDS ===== */
.logo-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  font-weight: 600;
  color: var(--main);
  text-align: center;
  gap: 10px;
}

.logo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  color: var(--accent);
}

.logo-card .partner-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.logo-card .partner-desc {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

/* ===== LOCATION CARD ===== */
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--main);
  margin-bottom: 12px;
  font-size: 15px;
}

.location-badge .loc-icon {
  font-size: 22px;
}

/* ===== WHY US SECTION ===== */
.why-card {
  text-align: center;
  padding: 40px 30px;
}

.why-card .why-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent), var(--main));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
  color: white;
}

.why-card h3 {
  text-align: center;
}

.why-card p {
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 6% 30px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 15px;
  font-size: 22px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

footer h4 {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

footer a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: var(--transition);
}

footer a:hover {
  color: white;
  transform: translateX(4px);
}

footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  margin-bottom: 0;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px) translateX(0);
}

/* ===== FLOATING CONTACT MENU ===== */
.contact-menu-wrapper {
  position: fixed;
  bottom: 35px; /* Shifted UP */
  right: 35px; /* Shifted LEFT */
  width: 60px;
  height: 60px;
  z-index: 999;
  transition: bottom 0.3s ease;
}

.contact-menu-items {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contact-menu-wrapper.active .contact-menu-items {
  /* Container stays same, items will animate */
  pointer-events: auto;
}

.contact-item {
  position: absolute;
  top: 8px; /* (60 - 44) / 2 */
  left: 8px;
  width: 44px;
  height: 44px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  z-index: 1;
}

.contact-item:hover {
  z-index: 2;
}

.contact-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
  background: transparent;
}

.contact-item:hover img {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.contact-menu-wrapper.active .contact-item {
  opacity: 1;
}

/* 1: Outlook (Top: 90 deg) */
.contact-menu-wrapper.active .contact-item:nth-child(1) {
  transform: translateY(-90px) scale(1);
  transition-delay: 0.15s;
}

/* 2: Messenger (Top-Left: 120 deg) */
.contact-menu-wrapper.active .contact-item:nth-child(2) {
  transform: translate(-45px, -78px) scale(1);
  transition-delay: 0.1s;
}

/* 3: Zalo (Left-Top: 150 deg) */
.contact-menu-wrapper.active .contact-item:nth-child(3) {
  transform: translate(-78px, -45px) scale(1);
  transition-delay: 0.05s;
}

/* 4: Phone (Left: 180 deg) */
.contact-menu-wrapper.active .contact-item:nth-child(4) {
  transform: translateX(-90px) scale(1);
  transition-delay: 0s;
}

.contact-label {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--dark);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
}

.contact-item:hover .contact-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.contact-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--main));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(214, 90, 58, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  position: relative;
}

.contact-toggle img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.contact-menu-wrapper.active .contact-toggle img {
  transform: rotate(45deg);
}

.contact-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(214, 90, 58, 0.55);
}

/* Wave animation for toggle button */
.contact-toggle::before,
.contact-toggle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(214, 90, 58, 0.3);
  z-index: -1;
  animation: zalo-wave 2s ease-out infinite;
}

.contact-toggle::after {
  animation-delay: 0.6s;
}

@keyframes zalo-wave {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 125px; /* Shifted UP to maintain separation from contact menu at 35px */
  right: 43px; /* Shifted LEFT to align with contact toggle center */
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease, bottom 0.3s ease;
  z-index: 1000; /* Increased to ensure visibility on desktop */
  box-shadow: 0 4px 15px rgba(214, 90, 58, 0.4);
}

.back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Hide back-to-top when contact menu is active */
.contact-menu-wrapper.active ~ .back-to-top,
body.contact-open .back-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px) !important;
}

.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}

/* Shift buttons up a fixed amount when near footer-bottom */
body.near-footer .contact-menu-wrapper {
  bottom: 110px;
}

body.near-footer .back-to-top.visible {
  bottom: 200px;
}

/* ===== INTRO TEXT ===== */
.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== MESSAGE CONTAINER ===== */
.message-container {
  display: grid;
  gap: 50px;
  align-items: center;
}

@media (min-width: 900px) {
  .message-container {
    grid-template-columns: 1fr 1.6fr;
  }
}

/* ===== PHILOSOPHY / CULTURE SECTIONS ===== */
.philosophy-section {
  background: var(--section);
  padding: 80px 6%;
}

.philosophy-grid {
  display: grid;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.philosophy-item {
  text-align: center;
  padding: 30px;
}

.philosophy-item .phil-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.philosophy-item h4 {
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 17px;
}

.philosophy-item p {
  font-size: 14.5px;
  color: var(--text-light);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ===== TABLET (max 768px) ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
  }

  nav {
    display: none;
    flex-direction: column;
    background: var(--dark);
    position: fixed;
    top: 64px;
    right: 0;
    width: 280px;
    height: calc(100vh - 64px);
    padding: 30px 25px;
    gap: 4px;
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  nav.active {
    display: flex;
    transform: translateX(0);
  }

  nav a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  nav a:hover, nav a.active {
    background: rgba(255, 255, 255, 0.1);
  }

  .hero {
    padding: 60px 6%;
    min-height: auto;
  }

  .page-hero {
    padding: 60px 6% 40px;
  }

  section {
    padding: 60px 6%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .message-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  header {
    padding: 0 5%;
  }

  .hero h1 {
    font-size: 28px;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    text-align: center;
    justify-content: center;
  }

  .card {
    padding: 25px;
  }

  .stat-number {
    font-size: 32px;
  }

  nav {
    width: 100%;
  }


}

/* ===== LARGE DESKTOP (min 1400px) ===== */
@media (min-width: 1400px) {
  :root {
    --max-width: 1320px;
  }

  header {
    padding: 0 8%;
  }

  section {
    padding: 100px 8%;
  }
}

/* ============================================
   PHASE 2 — NEW COMPONENTS
   ============================================ */

/* ===== PROCESS STEPS ===== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  counter-reset: step;
}

@media (min-width: 600px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  text-align: center;
  padding: 35px 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: var(--transition);
  counter-increment: step;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.process-step .step-num {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--main));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 18px;
}

.process-step .step-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.process-step h4 {
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 16px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-light);
}

/* Arrow connectors (desktop only) */
@media (min-width: 900px) {
  .process-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--main);
    font-weight: 700;
    z-index: 2;
  }
}

/* ===== PROJECT / CASE STUDY CARDS ===== */
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.project-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--dark), var(--main));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: rgba(255,255,255,0.3);
}

.project-card-body {
  padding: 25px;
}

.project-card-body h3 {
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 18px;
}

.project-card-body .project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.project-tag {
  display: inline-block;
  background: var(--section);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.project-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.testimonial-card .stars {
  color: #f5a623;
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card .quote-text {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--main), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-author .author-info strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
}

.testimonial-author .author-info span {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--card-shadow-hover);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 25px 20px;
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== ORG CHART ===== */
.org-chart {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
}

.org-level + .org-level {
  margin-top: 30px;
  padding-top: 30px;
}

.org-level + .org-level::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: var(--main);
  top: -30px;
}

.org-node {
  background: var(--white);
  padding: 18px 28px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  min-width: 180px;
  transition: var(--transition);
}

.org-node:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.org-node.org-ceo {
  background: linear-gradient(135deg, var(--dark), var(--main));
  color: white;
}

.org-node.org-ceo strong {
  color: white;
}

.org-node.org-ceo span {
  color: rgba(255,255,255,0.8);
}

.org-node strong {
  display: block;
  color: var(--dark);
  font-size: 15px;
  margin-bottom: 4px;
}

.org-node span {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.comparison-table thead th {
  background: var(--dark);
  color: white;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.comparison-table thead th:first-child {
  width: 35%;
}

.comparison-table tbody td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--section-alt);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .highlight-col {
  background: rgba(214, 90, 58, 0.06);
  font-weight: 600;
  color: var(--accent);
}

.comparison-table tbody tr:nth-child(even) .highlight-col {
  background: rgba(214, 90, 58, 0.1);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  gap: 50px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--section);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.3s;
  background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .ci-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--main));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-info-item h4 {
  color: var(--dark);
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== MAP EMBED ===== */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-top: 30px;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* ===== SERVICE DETAIL CARDS ===== */
.service-detail {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail.reverse {
    direction: rtl;
  }

  .service-detail.reverse > * {
    direction: ltr;
  }
}

.service-visual {
  background: linear-gradient(135deg, var(--dark), var(--main));
  border-radius: var(--radius);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  min-height: 300px;
}

.service-content h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 16px;
}

.service-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  font-size: 14px;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== COOPERATION MODELS ===== */
.coop-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 35px;
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.coop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.coop-card.coop-featured {
  border-top-color: var(--accent);
}

.coop-card .coop-icon {
  font-size: 42px;
  margin-bottom: 16px;
}

.coop-card h3 {
  color: var(--dark);
  margin-bottom: 12px;
  font-size: 18px;
}

.coop-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.coop-card ul {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coop-card ul li {
  font-size: 13px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.coop-card ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* ===== TARGET INFOGRAPHIC ===== */
.target-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .target-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.target-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid var(--accent);
}

.target-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.target-card .target-year {
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--accent);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.target-card .target-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}

.target-card .target-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================
   PHASE 3 — UX ENHANCEMENTS
   ============================================ */

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== PAGE LOADING OVERLAY ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--light);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--section);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--main));
  z-index: 10000;
  width: 0;
  transition: width 0.1s linear;
}

/* Deleted Individual Phone Float CSS */





/* ===== PROMO POPUP ===== */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.promo-overlay.active {
  opacity: 1;
  visibility: visible;
}

.promo-popup {
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: popIn 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.promo-popup .promo-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s;
}

.promo-popup .promo-close:hover {
  color: var(--accent);
}

.promo-popup .promo-icon {
  font-size: 50px;
  margin-bottom: 16px;
}

.promo-popup h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 12px;
}

.promo-popup p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ===== PARALLAX HERO ===== */
.hero.parallax {
  background-attachment: fixed;
  background-size: cover;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--dark), var(--main));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--card-shadow-hover);
}

.gallery-item .gallery-icon {
  font-size: 48px;
  color: rgba(255,255,255,0.4);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item .gallery-overlay span {
  color: white;
  font-size: 13px;
  font-weight: 600;
}

/* ===== PRICING CARDS ===== */
.pricing-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.pricing-card.popular {
  border: 2px solid var(--accent);
}

.pricing-card.popular::before {
  content: "Phổ biến";
  position: absolute;
  top: 14px;
  right: -30px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(45deg);
}

.pricing-header {
  background: linear-gradient(135deg, var(--dark), var(--main));
  padding: 30px;
  color: white;
}

.pricing-card.popular .pricing-header {
  background: linear-gradient(135deg, var(--accent), var(--main));
}

.pricing-header h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: white;
}

.pricing-header .price {
  font-size: 36px;
  font-weight: 800;
}

.pricing-header .price-unit {
  font-size: 14px;
  opacity: 0.8;
}

.pricing-body {
  padding: 30px;
}

.pricing-body ul {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.pricing-body ul li {
  font-size: 14px;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}

.pricing-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== CAREER / JOB CARDS ===== */
.job-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 30px;
  transition: var(--transition);
  border-left: 4px solid var(--accent);
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.job-card h3 {
  color: var(--dark);
  font-size: 18px;
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.job-meta span {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.job-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.job-tags span {
  background: var(--section);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== MOBILE ADJUSTMENTS FOR FLOATING BUTTONS ===== */
@media (max-width: 768px) {
  .contact-menu-wrapper {
    bottom: 30px; /* Shifted UP on mobile */
    right: 35px; /* Shifted LEFT on mobile */
    width: 55px;
    height: 55px;
  }
  .contact-toggle {
    width: 55px;
    height: 55px;
  }
  .contact-item {
    width: 40px;
    height: 40px;
    top: 7.5px;
    left: 7.5px;
  }
  .contact-item img {
    width: 40px;
    height: 40px;
  }
  
  /* Mobile Radial Offsets (Slightly tighter radius: 80px) */
  .contact-menu-wrapper.active .contact-item:nth-child(1) { transform: translateY(-80px) scale(1); }
  .contact-menu-wrapper.active .contact-item:nth-child(2) { transform: translate(-40px, -69px) scale(1); }
  .contact-menu-wrapper.active .contact-item:nth-child(3) { transform: translate(-69px, -40px) scale(1); }
  .contact-menu-wrapper.active .contact-item:nth-child(4) { transform: translateX(-80px) scale(1); }
  
  .contact-label {
    display: none;
  }
  .back-to-top {
    bottom: 105px; /* Shifted UP on mobile to maintain separation */
    right: 43px; /* Shifted LEFT on mobile */
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   PHASE 4 — ADDITIONAL FEATURES
   ============================================ */

/* ===== SKIP TO CONTENT (A11Y) ===== */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  z-index: 100000;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* ===== FOCUS VISIBLE (A11Y) ===== */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-deep);
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  flex-wrap: wrap;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.cookie-banner .cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner .btn-accept {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-banner .btn-accept:hover {
  background: var(--accent-light);
}

.cookie-banner .btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-banner .btn-decline:hover {
  border-color: white;
  color: white;
}

/* ===== NEWSLETTER FORM ===== */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-light);
}

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 12px;
}

.error-page p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 30px;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--dark), var(--main));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.blog-thumb .blog-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.blog-body {
  padding: 24px;
}

.blog-date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-body h3 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}

.blog-body .read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-body .read-more:hover {
  color: var(--dark);
}

/* ===== SOCIAL SHARE ===== */
.social-share {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.social-share span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.social-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--section);
  color: var(--dark);
  text-decoration: none;
  font-size: 16px;
  transition: var(--transition);
}

.social-share a:hover {
  background: var(--accent);
  color: white;
}

/* ===== PRINT STYLES ===== */
@media print {
  header, footer, .back-to-top, .contact-menu-wrapper,
  .cookie-banner, .promo-overlay, .scroll-progress, .page-loader,
  .menu-toggle, .nav-overlay, .cta-section, .skip-to-content {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .page-hero {
    background: none !important;
    color: #000 !important;
    padding: 20px 0;
  }

  .page-hero h1,
  .page-hero p {
    color: #000 !important;
  }

  section {
    page-break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  nav a[href]::after,
  .btn[href]::after {
    content: none;
  }
}

/* ============================================
   PHASE 5 — FINAL ENHANCEMENTS
   ============================================ */

/* ===== GALLERY LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content .lightbox-icon {
  font-size: clamp(80px, 15vw, 200px);
}

.lightbox-content h3 {
  color: white;
  font-size: 22px;
  margin-top: 20px;
}

.lightbox-content p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-top: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  transition: transform 0.3s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== PARTNER LOGO MARQUEE ===== */
.marquee-section {
  overflow: hidden;
  padding: 30px 0;
  background: var(--section-alt);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.marquee-item:hover {
  opacity: 1;
}

.marquee-item .marquee-logo {
  font-size: 28px;
  margin-right: 10px;
}

/* ===== TYPEWRITER EFFECT ===== */
.typewriter-text {
  display: inline;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink-cursor 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 3px;
  margin-left: 12px;
}

.lang-toggle button {
  padding: 3px 8px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle button img {
  width: 20px;
  height: auto;
  display: block;
  border-radius: 2px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.lang-toggle button:hover {
  background: rgba(255,255,255,0.1);
}

.lang-toggle button.active {
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(214, 90, 58, 0.4);
}

/* ===== POLICY / LEGAL PAGE ===== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.policy-content h2 {
  font-size: 22px;
  color: var(--dark);
  margin-top: 30px;
  margin-bottom: 12px;
}

.policy-content h3 {
  font-size: 17px;
  color: var(--dark-deep);
  margin-top: 20px;
  margin-bottom: 8px;
}

.policy-content p,
.policy-content li {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 10px;
}

.policy-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content ul li::marker {
  color: var(--accent);
}

.policy-content .last-updated {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 30px;
}


