/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLESHEET FOR KETOAN THUE MINH HOA
   Inspired by high-end financial consultancies (navy, gold, white)
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Design Tokens & Variables */
:root {
  --primary: #0a2540;         /* Deep Rich Navy Blue */
  --primary-light: #1c3d5a;   /* Secondary Navy */
  --primary-gradient: linear-gradient(135deg, #0a2540 0%, #1e3c72 100%);
  --accent: #c59b27;          /* Classic Gold */
  --accent-light: #f4d068;    /* Champagne / Warm Gold */
  --accent-contrast: #9a741c; /* Contrast Gold for light backgrounds */
  --accent-gradient: linear-gradient(135deg, #c59b27 0%, #e2b744 100%);
  --accent-rgb: 197, 155, 39;
  --dark: #0f172a;            /* Slate Dark */
  --light: #f8fafc;           /* Alternate light gray background */
  --white: #ffffff;
  --text-main: #1e293b;       /* Slate 800 for high readability */
  --text-muted: #64748b;      /* Slate 500 */
  --border-color: #e2e8f0;    /* Slate 200 */
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, 0.05);
  --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.08);
  --shadow-xl: 0 30px 60px rgba(10, 37, 64, 0.12);
  --shadow-accent: 0 10px 20px -10px rgba(197, 155, 39, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(241, 245, 249, 0.8);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  --scrollbar-thumb: var(--primary-light);
  --scrollbar-track: #f1f5f9;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

html:hover {
  --scrollbar-thumb: var(--accent-contrast);
}

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

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

p {
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

/* Scrollbar Customization Fallback */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-contrast);
  }
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--primary);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -10px rgba(197, 155, 39, 0.6);
}

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

.btn-secondary:hover {
  background: var(--accent-gradient);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

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

.btn-navy:hover {
  background: var(--accent-contrast);
  color: var(--white);
  transform: translateY(-2px);
}

/* Topbar */
.topbar {
  background-color: var(--white);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.topbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.topbar-info li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-info i {
  color: var(--accent);
}

.topbar-values {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent-contrast);
}

/* Header & Navbar (Glassmorphism + Shrinking) */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

/* Separate sticky class applied by JS on scroll */
.header-sticky {
  transform: translateY(0);
}

.navbar {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.2rem 0;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.navbar-scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--glass-border);
}

.navbar-scrolled .nav-link {
  color: var(--text-main);
}

.navbar-scrolled .logo-text {
  color: var(--primary);
}

.navbar-scrolled .logo-subtext {
  color: var(--accent-contrast);
}

.navbar-scrolled .logo-icon path {
  fill: var(--primary);
}

.navbar-scrolled .menu-toggle span {
  background-color: var(--primary);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 45px;
  height: 45px;
  transition: var(--transition);
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  line-height: 1.1;
  transition: var(--transition);
}

.logo-subtext {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-contrast);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
  transition: var(--transition);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-contrast);
}

.navbar-scrolled .nav-link:hover {
  color: var(--accent-contrast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-contrast);
  font-weight: 600;
}

.navbar-scrolled .nav-link.active {
  color: var(--accent-contrast);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* Mobile Active Burger */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section (Design) */
.hero {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(197, 155, 39, 0.05) 0%, transparent 60%), radial-gradient(circle at 10% 70%, rgba(10, 37, 64, 0.02) 0%, transparent 60%), #ffffff;
  display: flex;
  align-items: center;
  color: var(--text-main);
  padding-top: 130px; /* Offset for header */
  overflow: hidden;
}

/* Abstract Background Shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(10, 37, 64, 0.03) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-shape-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: radial-gradient(rgba(10, 37, 64, 0.04) 1.5px, transparent 0);
  background-size: 24px 24px;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  color: var(--accent-contrast);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, #a27b1e 0%, #c59b27 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Glass Card on Hero */
.hero-card-wrapper {
  perspective: 1000px;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(30deg);
  animation: shine 6s infinite linear;
}

@keyframes shine {
  0% { transform: translate(-30%, -30%) rotate(30deg); }
  100% { transform: translate(30%, 30%) rotate(30deg); }
}

.hero-card-title {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-card-title i {
  color: var(--accent-contrast);
}

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

.hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.stat-item-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-contrast);
}

.stat-item-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Core Values Section */
.section {
  padding: 6.5rem 0;
}

.section-bg-light {
  background-color: var(--light);
}

.section-header {
  max-width: 700px;
  margin: 0 auto 4.5rem auto;
}

.section-tagline {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-contrast);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.value-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 155, 39, 0.3);
  background-color: var(--white);
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(197, 155, 39, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.value-icon i {
  font-size: 1.7rem;
  color: var(--accent-contrast);
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background-color: var(--primary);
}

.value-card:hover .value-icon i {
  color: var(--accent-light);
}

.value-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.value-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

/* Span center service logic for 5 elements (3 on top, 2 below, centered) */
.services-grid > *:nth-child(4) {
  grid-column: 1 / span 1;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card-top {
  margin-bottom: 2rem;
}

.service-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: rgba(197, 155, 39, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(197, 155, 39, 0.15);
  transition: var(--transition);
}

.service-icon-wrapper i {
  font-size: 2rem;
  color: var(--accent-contrast);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 155, 39, 0.3);
}

.service-card:hover .service-icon-wrapper {
  background: var(--primary-gradient);
  border-color: var(--primary);
}

.service-card:hover .service-icon-wrapper i {
  color: var(--accent-light);
  transform: scale(1.1);
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.service-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
}

.service-link i {
  font-size: 0.8rem;
  transition: var(--transition);
}

.service-card:hover .service-link {
  color: var(--accent-contrast);
  border-bottom-color: var(--accent-contrast);
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* Layout adjusting helper for 5 items grid spacing */
@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .services-grid > *:nth-child(1),
  .services-grid > *:nth-child(2),
  .services-grid > *:nth-child(3) {
    grid-column: span 2;
  }
  .services-grid > *:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .services-grid > *:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.5rem;
}

.about-visual {
  position: relative;
}

.about-card-back {
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.15) 0%, rgba(244, 208, 104, 0.3) 100%);
  border-radius: var(--border-radius);
  width: 90%;
  height: 480px;
  position: relative;
  z-index: 1;
}

.about-card-front {
  position: absolute;
  top: 40px;
  left: 40px;
  right: -20px;
  bottom: -40px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.about-feature-item {
  display: flex;
  gap: 1rem;
}

.about-feature-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: rgba(197, 155, 39, 0.08);
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.about-feature-icon i {
  font-size: 0.75rem;
}

.about-feature-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.about-feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.about-stats-strip {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 2rem;
}

.about-stat-box {
  text-align: center;
}

.about-stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Call To Action Banner */
.cta-banner {
  background: linear-gradient(135deg, #fdfbf7 0%, #f7f0dc 100%);
  border-top: 1px solid rgba(197, 155, 39, 0.12);
  border-bottom: 1px solid rgba(197, 155, 39, 0.12);
  color: var(--text-main);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.12) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.cta-phone {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-contrast);
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
}

.contact-info-card {
  background: var(--white);
  color: var(--text-main);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.contact-info-card h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2.5rem 0;
}

.contact-info-item {
  display: flex;
  gap: 1.2rem;
}

.contact-info-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background-color: rgba(197, 155, 39, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon i {
  font-size: 1.25rem;
  color: var(--accent-contrast);
}

.contact-info-content h5 {
  color: var(--accent-contrast);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.contact-info-content p {
  margin-bottom: 0;
  font-size: 1rem;
}

.contact-socials {
  display: flex;
  gap: 1rem;
}

.contact-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-social-btn:hover {
  background-color: var(--accent-contrast);
  color: var(--white);
  transform: translateY(-2px);
}

/* Contact Form Style */
.contact-form-wrapper {
  background-color: var(--light);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
}

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

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-contrast);
  box-shadow: 0 0 0 4px rgba(197, 155, 39, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit-btn {
  width: 100%;
}

/* Success notification message */
.form-success-alert {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

/* Map placeholder */
.map-container {
  height: 350px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 3.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 1rem;
}

.map-placeholder i {
  font-size: 3rem;
  color: var(--accent-contrast);
}

/* Footer Section */
.footer {
  background-color: var(--light);
  color: var(--text-muted);
  padding: 5.5rem 0 2rem 0;
  border-top: 2px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-links a i {
  font-size: 0.75rem;
  color: var(--accent-contrast);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.footer-contact-list li {
  display: flex;
  gap: 0.8rem;
}

.footer-contact-list i {
  color: var(--accent-contrast);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

/* Modals Design */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 23, 40, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.modal-box {
  background-color: var(--white);
  border-radius: 16px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 3rem;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--light);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.modal-title {
  font-size: 1.8rem;
  color: var(--primary);
}

.modal-title-accent {
  color: var(--accent-contrast);
  font-size: 0.9rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.modal-body {
  font-size: 1rem;
  line-height: 1.7;
}

.modal-body h4 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem 0;
  color: var(--primary-light);
}

.modal-body ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-cta-box {
  background-color: var(--light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.modal-cta-box p {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Floating Widgets: Hotline + Zalo */
.floating-widgets {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--white);
  font-size: 1.6rem;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.widget-btn::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: pulse-ring 2s infinite ease-out;
  pointer-events: none;
}

.widget-zalo {
  background-color: #ffffff;
  border: 1px solid rgba(0, 104, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 104, 255, 0.15);
}

.widget-zalo::before {
  border-color: rgba(0, 104, 255, 0.3);
}

.widget-zalo svg path.zalo-crescent-1,
.widget-zalo svg path.zalo-text {
  fill: #0068ff;
  transition: fill 0.3s ease;
}

.widget-zalo svg path.zalo-crescent-2 {
  fill: #0050c7;
  transition: fill 0.3s ease;
}

.widget-zalo:hover {
  background-color: #0068ff;
  box-shadow: 0 12px 28px rgba(0, 104, 255, 0.35);
}

.widget-zalo:hover::before {
  border-color: rgba(0, 104, 255, 0.5);
}

.widget-zalo:hover svg path.zalo-crescent-1,
.widget-zalo:hover svg path.zalo-crescent-2,
.widget-zalo:hover svg path.zalo-text {
  fill: #ffffff;
}

.widget-phone {
  background-color: #2ecc71; /* Green */
}

.widget-phone::before {
  border-color: rgba(46, 204, 113, 0.4);
  animation-delay: 0.5s;
}

.widget-btn:hover {
  transform: translateY(-5px) scale(1.05);
}

.widget-tooltip {
  position: absolute;
  right: 70px;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition);
}

.widget-btn:hover .widget-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Scroll-Position Aware element: Back to top */
.back-to-top {
  position: fixed;
  bottom: 2.5rem;
  left: 2.5rem;
  width: 45px;
  height: 45px;
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary);
  color: var(--accent-light);
  border-color: var(--primary);
}

/* Scroll Animations (IntersectionObserver fallback + Scroll Timeline support) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth reveal left and right for components */
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.scroll-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.scroll-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Native CSS Scroll-driven Animations (Progressive Enhancement) */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @keyframes reveal-in {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .scroll-reveal {
    animation: reveal-in both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }

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

  .scroll-reveal-left {
    animation: reveal-left both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }

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

  .scroll-reveal-right {
    animation: reveal-right both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid > *:last-child {
    grid-column: span 2;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-card-back {
    width: 100%;
    height: 400px;
  }
  .about-card-front {
    right: 0;
    bottom: -30px;
    left: 20px;
    padding: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none; /* Hide topbar on mobile to save space */
  }
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2.5rem 3rem 2.5rem;
    gap: 1.8rem;
    box-shadow: -10px 0 30px rgba(10, 37, 64, 0.08);
    transition: var(--transition);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-link {
    color: var(--text-main);
    font-size: 1.1rem;
    width: 100%;
  }
  .navbar-scrolled .nav-link {
    color: var(--text-main);
  }
  .nav-link.active,
  .navbar-scrolled .nav-link.active {
    color: var(--accent-contrast);
  }
  .nav-link:hover,
  .navbar-scrolled .nav-link:hover {
    color: var(--accent-contrast);
  }
  .navbar-container .btn {
    display: none; /* Hide header CTA on mobile, keep inside nav if needed or hero */
  }
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 5rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 1.2rem auto;
  }
  .hero-desc {
    margin: 0 auto 2rem auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .values-grid,
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .services-grid > * {
    grid-column: span 1 !important;
  }
  .section {
    padding: 4.5rem 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-wrapper {
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .floating-widgets {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .widget-btn {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  .widget-btn svg {
    width: 26px !important;
    height: 26px !important;
  }
  .widget-tooltip {
    display: none; /* Tooltip doesn't work well on mobile touch */
  }
  .back-to-top {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
  }
  .modal-box {
    padding: 2rem 1.5rem;
    width: 95%;
  }
  .modal-title {
    font-size: 1.5rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .cta-title {
    font-size: 1.8rem;
  }
  .cta-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .cta-phone {
    font-size: 1.5rem;
  }
  .about-card-back {
    height: 300px;
  }
  .about-card-front {
    position: relative;
    margin-top: -60px;
    left: 0;
    right: 0;
    margin-left: 15px;
    margin-right: 15px;
    padding: 1.5rem;
  }
}
