/* 
   HTP ELECTRICAL ENGINEERING SERVICES - STYLESHEET
   Google Fonts are preconnected & linked directly in partials/header.php for optimal Core Web Vitals
*/

:root {
  --primary: #003285;
  --primary-rgb: 0, 50, 133;
  --primary-light: #2A62FF;
  --primary-light-rgb: 42, 98, 255;
  --accent: #FF9900;
  --accent-rgb: 255, 153, 0;
  --accent-light: #FFBB00;
  --cyan: #00F0FF;
  --bg-light: #F4F7FC;
  --bg-dark: #020C1B;
  --surface: #FFFFFF;
  --surface-soft: #F0F4F8;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-white: #FFFFFF;
  --border-color: #E2E8F0;
  --font-header: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 1px 2px rgba(var(--primary-rgb), 0.05);
  --shadow-md: 0 12px 30px rgba(var(--primary-rgb), 0.10);
  --shadow-lg: 0 24px 60px rgba(var(--primary-rgb), 0.16);
  --shadow-accent: 0 14px 28px rgba(var(--accent-rgb), 0.22);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-height: 110px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

input, textarea, select, button {
  font-family: inherit;
  outline: none;
}

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

.section-padding {
  padding: 96px 0;
}

.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.text-accent { color: var(--accent); }

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-family: var(--font-header);
}

.section-title-wrap {
  margin-bottom: 60px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 15px auto 0;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--font-header);
  font-weight: 700;
  border-radius: 999px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 8px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

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

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

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

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

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-3px);
}

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

.btn-white:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Header & Navigation */
.header-top {
  background-color: #020C1B;
  color: #FFFFFF;
  font-size: 0.85rem;
  padding: 12px 0;
  border-top: 3px solid #D9383A; /* Red Accent Line at the very top */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

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

.contact-info-top {
  display: flex;
  gap: 28px;
}

.contact-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item-top svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
}

.top-bar-link {
  color: #FFFFFF;
  transition: var(--transition);
}

.top-bar-link:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
}

.social-links a svg {
  width: 16px;
  height: 16px;
  fill: #FFFFFF;
  transition: var(--transition);
}

.social-links a:hover svg {
  fill: var(--accent);
  transform: translateY(-1px);
}

/* Main Navigation Header */
.main-header {
  background-color: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 229, 241, 0.7);
  will-change: padding, background-color, box-shadow;
}

.main-header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 90px;
  object-fit: contain;
}

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

.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
  padding: 8px 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::after,
.nav-link.active::after {
  width: 100%;
}

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

.nav-cta {
  display: flex;
  align-items: center;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

/* Drawer Menu (Mobile) */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--primary);
  color: var(--text-white);
  z-index: 1002;
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-menu-overlay.open .mobile-drawer {
  transform: translateX(-300px);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer-title {
  font-family: var(--font-header);
  font-size: 1.2rem;
  color: var(--accent);
  text-transform: uppercase;
}

.close-drawer-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.close-drawer-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-white);
  stroke-width: 2;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent);
  padding-left: 8px;
}

.mobile-contact-info {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 0.9rem;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

/* Hero Section (Banner Slider) */
.hero-slider {
  height: calc(100vh - 120px);
  min-height: 550px;
  max-height: 800px;
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease-out;
}

.slide.active .slide-bg {
  transform: none;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(2, 12, 27, 0.65) 0%, rgba(2, 12, 27, 0.3) 100%);
}

.slide-content {
  position: relative;
  z-index: 3;
  color: var(--text-white);
  max-width: 700px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-content h1,
.slide-content h2 {
  font-size: 3.4rem;
  color: var(--text-white);
  margin-bottom: 20px;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0,0,0,0.28);
  letter-spacing: -0.02em;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slide-btns {
  display: flex;
  gap: 15px;
}

/* Slider Indicators */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--accent);
  width: 30px;
  border-radius: 10px;
}

/* Slider Controls */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-control:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.slider-control svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-white);
  stroke-width: 2;
  fill: none;
}

.slider-control:hover svg {
  stroke: var(--primary);
}

.slider-prev { left: 30px; }
.slider-next { right: 30px; }

/* Classic Professional Feature Showcase styling */
.features-showcase {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 40px 0;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
  margin-top: -55px;
  border-radius: var(--radius-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  position: relative;
  transition: var(--transition);
}

/* Classic vertical divider */
.feature-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: #E2E8F0;
}

.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary); /* Deep Navy Blue */
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.5px;
}

.feature-desc {
  font-size: 0.88rem;
  font-weight: 500;
  color: #D9383A; /* Classic Crimson Red */
  line-height: 1.6;
  text-align: center;
  margin-bottom: 0;
}

.feature-desc.font-red {
  font-weight: 700;
  font-size: 0.92rem;
}

/* Numeric Statistics Band (Home & About) */
.stat-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
  position: relative;
}

.stat-counter:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: var(--border-color);
}

.stat-counter-value {
  font-family: var(--font-header);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.stat-plus {
  color: var(--accent);
}

.stat-counter-label {
  margin-top: 10px;
  font-family: var(--font-header);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.stats-band {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 40px 20px;
}

/* Intro/About Home Section */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-img-wrapper {
  position: relative;
}

.intro-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  position: relative;
  width: 100%;
}

.intro-img-bg {
  position: absolute;
  top: -30px;
  left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  border: 4px solid var(--accent);
  border-radius: var(--radius-md);
  z-index: 1;
}

.intro-experience-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background-color: var(--accent);
  color: var(--primary);
  padding: 20px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.intro-exp-years {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.intro-exp-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.intro-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.intro-feature-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.intro-feature-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 5px;
}

.intro-feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Service Home Section */
.bg-light {
  background-color: var(--bg-light);
}

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

.service-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 241, 0.8);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent);
}

/* Services catalog: wider, lower landscape cards */
.service-catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-catalog-item {
  display: grid;
  grid-template-columns: minmax(180px, 40%) minmax(0, 60%);
  min-height: 275px;
  padding: 0;
}

.service-catalog-image {
  height: 100% !important;
  min-height: 275px;
}

.service-catalog-image img {
  transition: transform 0.45s ease;
}

.service-catalog-item:hover .service-catalog-image img {
  transform: scale(1.045);
}

.service-catalog-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px !important;
}

.service-catalog-body h3 {
  line-height: 1.35;
}

.service-catalog-body > p {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.service-catalog-body > div {
  gap: 12px;
  margin-top: auto;
}

.service-catalog-body > div span:last-child {
  overflow: hidden;
  max-width: 48%;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .service-catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .service-catalog-item {
    grid-template-columns: 1fr;
  }

  .service-catalog-image {
    height: 200px !important;
    min-height: 0;
  }
}

.service-icon-wrap {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-md);
  background-color: rgba(var(--primary-rgb), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background-color: var(--accent);
}

.service-icon-wrap svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap svg {
  fill: var(--primary);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: 700;
}

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

.service-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
  transition: var(--transition);
}

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

.service-card:hover .service-link svg {
  fill: var(--accent);
  transform: translateX(4px);
}

/* Home Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 350px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.95) 0%, rgba(var(--primary-rgb), 0.6) 50%, rgba(var(--primary-rgb), 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--text-white);
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.98) 0%, rgba(var(--primary-rgb), 0.8) 60%, rgba(var(--primary-rgb), 0.3) 100%);
}

.project-category {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
  transform: translateY(15px);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-category {
  transform: translateY(0);
  opacity: 1;
}

.project-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 10px;
}

.project-view-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  width: fit-content;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-view-btn {
  transform: translateY(0);
  opacity: 1;
}

.project-view-btn svg {
  width: 12px;
  height: 12px;
  fill: var(--text-white);
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.process-grid::after {
  content: '';
  position: absolute;
  top: 60px;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 4px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.process-step:hover .process-number {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: scale(1.1);
  box-shadow: var(--shadow-accent);
}

.process-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0 10px;
}

/* Safety & Call To Action Section */
.cta-section {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background-size: cover;
  background-position: center;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.8rem;
  color: var(--text-white);
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Footer Section */
.main-footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 20px;
  font-size: 0.9rem;
  border-top: 5px solid var(--accent);
}

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

.footer-col-title {
  font-family: var(--font-header);
  font-size: 1.2rem;
  color: var(--text-white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-info-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 100px;
  object-fit: contain;
}

.footer-logo-text h3 {
  font-size: 1.2rem;
  color: var(--text-white);
  text-transform: uppercase;
}

.footer-logo-text span {
  font-size: 0.7rem;
  color: var(--accent);
  display: block;
}

.footer-info-text {
  margin-bottom: 25px;
  line-height: 1.6;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links-list a::before {
  content: '→';
  color: var(--accent);
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--text-white);
  padding-left: 5px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background-color: var(--accent);
}

.footer-social-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--text-white);
}

.footer-social-btn:hover svg {
  fill: var(--primary);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: #112233;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* Page Header Banner (for inner pages) */
.page-hero {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 3rem;
  color: var(--text-white);
  margin-bottom: 10px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  color: var(--accent);
}

/* --- About Page Specifics --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  background: var(--bg-light);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

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

.value-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
  transition: var(--transition);
}

.value-card:hover .value-icon svg {
  fill: var(--primary);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.value-card:hover h3 {
  color: var(--text-white);
}

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

.value-card:hover .value-desc {
  color: rgba(255, 255, 255, 0.8);
}

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

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.cert-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--border-color);
}

.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg {
  width: 60px;
  height: 60px;
  fill: var(--primary-light);
}

.cert-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 5px;
}

.cert-org {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Services Page Specifics --- */
.service-details-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.service-details-row:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}

.service-details-row:nth-child(even) .service-detail-img-wrap {
  order: 2;
}

.service-details-row:last-child {
  margin-bottom: 0;
}

.service-detail-img-wrap {
  position: relative;
}

.service-detail-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.service-detail-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.badge.badge-cyan {
  background-color: rgba(0, 229, 255, 0.1);
  color: #00A8CC;
}

.badge.badge-orange {
  background-color: rgba(255, 159, 28, 0.1);
  color: var(--accent);
}

.service-detail-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.service-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 25px 0;
}

.service-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.service-feature-list li svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

/* --- Projects Page Filter & Modal --- */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  font-family: var(--font-header);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-accent);
}

.project-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.project-details-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-wrap {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
}

.project-details-modal.open .modal-content-wrap {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-white);
  stroke-width: 2;
}

.modal-close-btn:hover {
  background-color: var(--accent);
}

.modal-close-btn:hover svg {
  stroke: var(--primary);
}

.modal-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.modal-body {
  padding: 40px;
}

.modal-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.modal-title h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.modal-cat {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}

.meta-item-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.meta-item-value {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.modal-description p {
  color: var(--text-main);
  margin-bottom: 20px;
  font-size: 1rem;
}

/* --- Contact Page Specifics --- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-card-info {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 40px;
  border-radius: var(--radius-md);
  height: fit-content;
}

.contact-card-info h3 {
  color: var(--text-white);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.contact-card-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.contact-detail-text h4 {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.contact-detail-text p {
  margin-bottom: 0;
  color: var(--text-white);
}

.contact-form-wrap {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-form-wrap h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

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

.contact-map-section {
  padding-top: 0;
}

.contact-large-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 450px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

/* Animations and Reveal triggers - Disabled for instant smooth scroll (Written by MinhTaz) */
.reveal {
  position: relative;
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}

.reveal.active {
  transform: none !important;
  opacity: 1 !important;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Notification Popups for Contact Submission */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 16px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--accent);
  transform: translateY(100px);
  opacity: 0;
  z-index: 3000;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .services-grid,
  .projects-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .intro-grid,
  .about-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-details-row,
  .service-details-row:nth-child(even) {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px !important;
  }

  .service-details-row:last-child {
    margin-bottom: 0 !important;
  }

  .service-details-row .service-detail-img-wrap {
    order: 1 !important;
    width: 100%;
  }

  .service-details-row .service-detail-content {
    order: 2 !important;
    width: 100%;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-grid::after {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-item {
    border-right: none;
  }
  
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stats-band {
    padding: 30px 15px;
  }

  .stat-counter:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-top .container,
  .modal-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  /* Shrink Header Height on Mobile */
  .main-header .container {
    height: 80px;
  }

  .logo-img {
    height: 55px;
  }

  .logo-text h1 {
    font-size: 1.1rem;
  }

  .logo-text span {
    font-size: 0.65rem;
  }

  /* Slide Buttons Stacked */
  .slide-btns {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 10px;
  }

  .slide-btns .btn {
    width: 100%;
    text-align: center;
  }

  /* Shrink Page Hero Padding & Text */
  .page-hero {
    padding: 80px 0 40px;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  /* Modal Mobile UI Optimizations */
  .modal-content-wrap {
    max-height: 95vh;
  }

  .modal-hero-img {
    height: 220px;
  }

  .modal-body {
    padding: 24px;
  }

  .modal-title h2 {
    font-size: 1.6rem;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  /* Contact page UI Optimizations */
  .contact-card-info,
  .contact-form-wrap {
    padding: 30px 20px;
  }

  .contact-large-map {
    height: 300px;
  }

  .contact-info-top,
  .nav-menu {
    display: none;
  }
  
  /* Hide slider arrows on mobile to prevent overlaying text */
  .slider-control {
    display: none !important;
  }

  /* Reposition and scale Zalo float on mobile */
  .zalo-float {
    left: auto !important;
    right: 20px !important;
    bottom: 80px !important;
    width: 46px !important;
    height: 46px !important;
    box-shadow: 0 3px 10px rgba(0, 104, 255, 0.3) !important;
  }


  /* Reposition and scale Back to Top on mobile */
  .back-to-top {
    right: 20px !important;
    bottom: 20px !important;
    width: 46px !important;
    height: 46px !important;
  }

  .back-to-top svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .hero-slider {
    height: 520px;
  }
  
  .slide-content h1,
  .slide-content h2 {
    font-size: 2.15rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 72px 0;
  }

  .services-grid,
  .projects-grid,
  .values-grid,
  .process-grid,
  .stats-grid,
  .footer-grid,
  .certs-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
  }
  
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stats-band {
    padding: 24px 12px;
  }

  .stat-counter-value {
    font-size: 2.1rem;
  }
  
  .filter-container {
    flex-wrap: wrap;
  }
  
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-title h2 {
    font-size: 1.6rem;
  }
  
  .modal-header-info {
    flex-direction: column;
    gap: 15px;
  }

  /* Intro Section adjustments to prevent layout overflow */
  .intro-img-bg {
    top: -15px !important;
    left: -15px !important;
    width: calc(100% + 30px) !important;
    height: calc(100% + 30px) !important;
  }
  
  .intro-experience-badge {
    right: 10px !important;
    bottom: 10px !important;
    padding: 10px 15px !important;
  }
  
  .intro-exp-years {
    font-size: 1.8rem !important;
  }

  .intro-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .slide-content h1,
  .slide-content h2 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Floating Zalo Button Widget - Written by MinhTaz */
.zalo-float {
  position: fixed;
  bottom: 35px;
  left: 30px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0068FF 0%, #0046B8 100%);
  box-shadow: 0 8px 25px rgba(0, 104, 255, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  will-change: transform;
}

/* Animated Outer Ripple Rings */
.zalo-float::before,
.zalo-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 104, 255, 0.45);
  z-index: -1;
  animation: zalo-ripple-pulse 2.2s infinite cubic-bezier(0, 0, 0.2, 1);
  pointer-events: none;
}

.zalo-float::after {
  animation-delay: 0.7s;
}

/* Hover Tooltip Badge */
.zalo-tooltip {
  position: absolute;
  left: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: #0f172a;
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.zalo-tooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #0f172a;
}

.zalo-float:hover {
  transform: scale(1.14) rotate(6deg);
  box-shadow: 0 14px 35px rgba(0, 104, 255, 0.65);
}

.zalo-float:hover .zalo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.zalo-float img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: zalo-icon-bounce 3s infinite ease-in-out;
}

@keyframes zalo-ripple-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

@keyframes zalo-icon-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Final service catalog layout override: unmistakably horizontal */
#service-catalog-grid {
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 1100px;
  margin-inline: auto;
}

#service-catalog-grid .service-catalog-item {
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 62%);
  min-height: 240px;
  padding: 0;
}

#service-catalog-grid .service-catalog-image {
  width: 100%;
  height: 100% !important;
  min-height: 240px;
}

#service-catalog-grid .service-catalog-body {
  padding: 26px 30px !important;
}

@media (max-width: 640px) {
  #service-catalog-grid .service-catalog-item {
    grid-template-columns: minmax(130px, 38%) minmax(0, 62%);
    min-height: 220px;
  }

  #service-catalog-grid .service-catalog-image {
    height: 100% !important;
    min-height: 220px;
  }

  #service-catalog-grid .service-catalog-body {
    padding: 18px !important;
  }

  #service-catalog-grid .service-catalog-body > div {
    display: none !important;
  }

  #service-catalog-grid .service-catalog-body > p {
    -webkit-line-clamp: 2;
  }
}

/* Rich Text & Horizontal Image Layout - Written by MinhTaz */
.article-rich-content,
.modal-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  text-align: left;
}

.article-rich-content h2,
.modal-description h2 {
  font-size: 1.75rem;
  margin-top: 30px;
  margin-bottom: 14px;
  color: var(--primary);
  line-height: 1.3;
}

.article-rich-content h3,
.modal-description h3 {
  font-size: 1.35rem;
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--primary);
  line-height: 1.35;
}

.article-rich-content p,
.modal-description p {
  margin-bottom: 14px;
  line-height: 1.7;
  color: #334155;
}

.article-rich-content p:last-child,
.modal-description p:last-child {
  margin-bottom: 0;
}

.article-rich-content ul, .article-rich-content ol,
.modal-description ul, .modal-description ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.article-rich-content li,
.modal-description li {
  margin-bottom: 6px;
  line-height: 1.65;
}

.article-rich-content strong,
.modal-description strong {
  color: var(--text-main);
}

.article-rich-content p.rich-img-group,
.article-rich-content p:has(> img),
.modal-description p.rich-img-group,
.modal-description p:has(> img) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px 0;
}

.article-rich-content img,
.modal-description img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  vertical-align: top;
}

.article-rich-content p.rich-img-group img,
.article-rich-content p:has(> img:nth-child(2)) img,
.modal-description p.rich-img-group img,
.modal-description p:has(> img:nth-child(2)) img {
  flex: 1 1 200px;
  max-width: calc(50% - 8px);
  object-fit: cover;
}

.article-rich-content p.rich-img-group:has(> img:nth-child(3)) img,
.article-rich-content p:has(> img:nth-child(3)) img,
.modal-description p.rich-img-group:has(> img:nth-child(3)) img,
.modal-description p:has(> img:nth-child(3)) img {
  max-width: calc(33.333% - 10px);
  flex: 1 1 160px;
}

@media (max-width: 640px) {
  .article-rich-content p.rich-img-group img,
  .article-rich-content p:has(> img:nth-child(2)) img,
  .modal-description p.rich-img-group img,
  .modal-description p:has(> img:nth-child(2)) img {
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }
}

.article-rich-content .ql-align-center, .modal-description .ql-align-center { text-align: center; }
.article-rich-content .ql-align-right, .modal-description .ql-align-right { text-align: right; }
.article-rich-content .ql-align-justify, .modal-description .ql-align-justify {
  text-align: justify;
  text-justify: inter-word;
  word-spacing: -0.5px;
}

/* Global Hidden Attribute Override - Written by MinhTaz */
[hidden] {
  display: none !important;
}

/* ==========================================================================
   SERVICES CATALOG PAGE (dich-vu.php)
   ========================================================================== */
/* Hero Integrated Search Box Styling */
    .hero-search-wrapper {
      max-width: 580px;
      margin: 24px 0 0;
      position: relative;
    }
    .service-search-box {
      position: relative;
      margin-bottom: 0;
    }
    .service-search-input {
      width: 100%;
      padding: 14px 20px 14px 50px;
      font-size: 0.96rem;
      color: #1e293b;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 50px;
      outline: none;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      transition: all 0.25s ease;
    }
    .service-search-input:focus {
      background: #ffffff;
      border-color: #ffffff;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }
    .service-search-icon {
      position: absolute;
      left: 18px;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      color: #64748b;
      pointer-events: none;
    }
    .service-search-clear {
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      background: #cbd5e1;
      color: #475569;
      border: none;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      cursor: pointer;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: bold;
    }

    .category-filter-pills {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }
    .category-pill {
      padding: 8px 22px;
      border-radius: 30px;
      background: #ffffff;
      color: #475569;
      font-size: 0.9rem;
      font-weight: 600;
      border: 1px solid #cbd5e1;
      cursor: pointer;
      transition: all 0.25s ease;
      user-select: none;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    }
    .category-pill:hover {
      background: #f1f5f9;
      color: #003285;
      border-color: #003285;
    }
    .category-pill.active {
      background: #003285;
      color: #ffffff;
      border-color: #003285;
      box-shadow: 0 4px 12px rgba(0, 50, 133, 0.2);
    }

    .result-count-badge {
      font-size: 0.88rem;
      color: #64748b;
      font-weight: 500;
    }
    .result-count-badge strong {
      color: #003285;
    }

    .services-grid-modern {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
      gap: 30px;
      margin-bottom: 60px;
    }
    .service-card-modern {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 18px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
      position: relative;
    }
    .service-card-modern:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 35px -8px rgba(0, 50, 133, 0.12);
      border-color: rgba(42, 98, 255, 0.4);
    }
    .service-card-media {
      position: relative;
      height: 230px;
      overflow: hidden;
      background: #0f172a;
    }
    .service-card-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .service-card-modern:hover .service-card-img {
      transform: scale(1.06);
    }
    .service-card-category-tag {
      position: absolute;
      top: 16px;
      left: 16px;
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(8px);
      padding: 6px 14px;
      border-radius: 30px;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--primary, #003285);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      z-index: 2;
    }
    .service-card-body {
      padding: 28px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .service-card-title {
      font-size: 1.3rem;
      font-weight: 700;
      line-height: 1.4;
      margin-bottom: 12px;
    }
    .service-card-title a {
      color: #0f172a;
      text-decoration: none;
      transition: color 0.2s ease;
    }
    .service-card-modern:hover .service-card-title a {
      color: var(--primary-light, #2A62FF);
    }
    .service-card-excerpt {
      font-size: 0.95rem;
      color: #64748b;
      line-height: 1.6;
      margin-bottom: 22px;
      flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .service-card-features {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 22px;
    }
    .service-feature-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      background: #f1f5f9;
      border-radius: 6px;
      font-size: 0.78rem;
      color: #475569;
      font-weight: 500;
    }
    .service-card-footer {
      padding-top: 18px;
      border-top: 1px solid #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .service-card-link-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border-radius: 10px;
      background: #f8fafc;
      color: var(--primary, #003285);
      font-weight: 600;
      font-size: 0.9rem;
      text-decoration: none;
      border: 1px solid #e2e8f0;
      transition: all 0.3s ease;
    }
    .service-card-modern:hover .service-card-link-btn {
      background: var(--primary, #003285);
      color: #ffffff;
      border-color: var(--primary, #003285);
      box-shadow: 0 4px 12px rgba(0, 50, 133, 0.25);
    }
    .service-card-link-btn svg {
      width: 16px;
      height: 16px;
      transition: transform 0.3s ease;
    }
    .service-card-modern:hover .service-card-link-btn svg {
      transform: translateX(4px);
    }

    .service-empty-wrapper {
      text-align: center;
      padding: 60px 20px;
      background: #ffffff;
      border: 2px dashed #e2e8f0;
      border-radius: 20px;
      grid-column: 1 / -1;
    }
    .service-empty-icon {
      width: 70px;
      height: 70px;
      margin: 0 auto 20px;
      background: #f1f5f9;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #94a3b8;
    }
    .service-empty-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 8px;
    }
    .service-empty-desc {
      font-size: 0.95rem;
      color: #64748b;
      margin-bottom: 24px;
      max-width: 450px;
      margin-inline: auto;
    }

    .service-consultation-banner {
      background: linear-gradient(135deg, #003285 0%, #0f172a 100%);
      border-radius: 24px;
      padding: 50px 40px;
      color: #ffffff;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      flex-wrap: wrap;
      box-shadow: 0 20px 40px -10px rgba(0, 50, 133, 0.3);
    }
    .service-consultation-banner::before {
      content: '';
      position: absolute;
      bottom: -50%;
      left: -10%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(255, 183, 3, 0.15) 0%, rgba(0,0,0,0) 70%);
      pointer-events: none;
    }
    .service-cta-text {
      max-width: 600px;
      position: relative;
      z-index: 2;
    }
    .service-cta-title {
      font-size: 1.8rem;
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 12px;
      line-height: 1.3;
    }
    .service-cta-subtitle {
      font-size: 1.05rem;
      color: #cbd5e1;
      line-height: 1.6;
    }
    .service-cta-actions {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      position: relative;
      z-index: 2;
    }

    @media (max-width: 768px) {
      .service-hero-title { font-size: 2.1rem; }
      .service-hero-stats { gap: 15px; }
      .service-control-hub { padding: 20px; }
      .services-grid-modern { grid-template-columns: 1fr; }
      .service-consultation-banner { padding: 35px 25px; text-align: center; justify-content: center; }
      .service-cta-actions { justify-content: center; width: 100%; }
    }

    /* Visibility Utility & PC Layout Styles - Matching User Screenshot */
    @media (max-width: 991px) {
      .pc-only { display: none !important; }
      .mobile-only { display: flex !important; }
      .mobile-only-tag { display: inline-block !important; }
    }

    /* Hidden attribute override for search filtering */
    [hidden], .service-card-modern[hidden] {
      display: none !important;
    }

    @media (min-width: 992px) {
      .pc-only { display: block !important; }
      .mobile-only { display: none !important; }
      .mobile-only-tag { display: none !important; }
      .pc-service-cta-wrap { display: block !important; }
      .pc-service-bullet-list { display: flex !important; }
      .pc-service-category-badge { display: block !important; }

      /* PC Layout: Professional Clean White Cards */
      .services-grid-modern {
        display: flex;
        flex-direction: column;
        gap: 35px;
        margin-bottom: 70px;
      }
      .service-card-modern {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 45px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 32px 36px;
        box-shadow: 0 4px 20px rgba(0, 50, 133, 0.04);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
      }
      .service-card-modern:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 35px rgba(0, 50, 133, 0.09);
        border-color: #cbd5e1;
      }
      .service-card-modern.service-card-reverse {
        flex-direction: row-reverse;
      }

      /* Image Container */
      .service-card-media {
        width: 420px;
        min-width: 420px;
        height: 280px;
        border-radius: 12px;
        overflow: hidden;
        background: #f1f5f9;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        position: relative;
      }
      .service-card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
      }
      .service-card-modern:hover .service-card-img {
        transform: scale(1.04);
      }

      /* Content Body */
      .service-card-body {
        flex: 1;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
      }
      
      /* Clean Corporate Category Badge */
      .pc-service-category-badge {
        margin-bottom: 12px;
      }
      .pc-cat-pill {
        display: inline-flex;
        align-items: center;
        padding: 5px 16px;
        border-radius: 20px;
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        background: #f1f5f9;
        color: #003285;
        border: 1px solid #e2e8f0;
      }

      .service-card-title {
        font-size: 1.65rem;
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 12px;
        letter-spacing: -0.2px;
      }
      .service-card-title a {
        color: #0f172a;
        text-decoration: none;
        transition: color 0.2s ease;
      }
      .service-card-title a:hover {
        color: #003285;
      }

      .service-card-excerpt {
        font-size: 0.96rem;
        color: #64748b;
        line-height: 1.65;
        margin-bottom: 18px;
        max-width: 620px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      /* Clean Navy Checkmark Bullets */
      .pc-service-bullet-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
      }
      .pc-bullet-item {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .pc-bullet-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        border-radius: 50%;
        background: rgba(0, 50, 133, 0.08);
        color: #003285;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .pc-bullet-icon svg {
        width: 12px;
        height: 12px;
      }
      .pc-bullet-text {
        font-size: 0.93rem;
        font-weight: 600;
        color: #334155;
        line-height: 1.4;
      }

      /* Professional Primary Button */
      .pc-service-cta-wrap {
        margin-top: 4px;
      }
      .pc-service-cta-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 28px;
        border-radius: 8px;
        background: #003285;
        color: #ffffff;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        text-decoration: none;
        transition: all 0.25s ease;
        box-shadow: 0 4px 14px rgba(0, 50, 133, 0.18);
      }
      .pc-service-cta-btn:hover {
        background: #002266;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 50, 133, 0.28);
        color: #ffffff;
      }
    }

/* ==========================================================================
   SHARED PAGE STYLES (moved from partials/header.php)
   ========================================================================== */
/* Search Bar custom styles matching the HTP theme */
    .search-container-wrap {
      max-width: 600px;
      margin: 0 auto 50px;
      position: relative;
    }
    .search-input-field {
      width: 100%;
      padding: 16px 24px;
      padding-left: 55px;
      border: 2px solid var(--border-color);
      border-radius: 50px;
      font-size: 1rem;
      color: var(--text-main);
      background-color: var(--surface);
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
    }
    .search-input-field:focus {
      border-color: var(--primary-light);
      box-shadow: var(--shadow-md);
      background-color: #ffffff;
    }
    .search-icon-svg {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      width: 22px;
      height: 22px;
      color: var(--text-muted);
      pointer-events: none;
    }

/* Styling for Rich Text inside articles & modals - Written by MinhTaz */
    .article-rich-content,
    .modal-description {
      font-size: 1.05rem;
      line-height: 1.7;
      color: #334155;
      text-align: left;
    }
    .article-rich-content h2,
    .modal-description h2 {
      font-size: 1.75rem;
      margin-top: 30px;
      margin-bottom: 14px;
      color: var(--primary);
      line-height: 1.3;
    }
    .article-rich-content h3,
    .modal-description h3 {
      font-size: 1.35rem;
      margin-top: 22px;
      margin-bottom: 10px;
      color: var(--primary);
      line-height: 1.35;
    }
    .article-rich-content p,
    .modal-description p {
      margin-bottom: 14px;
      line-height: 1.7;
      color: #334155;
    }
    .article-rich-content p:last-child,
    .modal-description p:last-child {
      margin-bottom: 0;
    }
    .article-rich-content ul, .article-rich-content ol,
    .modal-description ul, .modal-description ol {
      margin-bottom: 18px;
      padding-left: 24px;
    }
    .article-rich-content li,
    .modal-description li {
      margin-bottom: 6px;
      line-height: 1.65;
    }
    .article-rich-content strong,
    .modal-description strong {
      color: var(--text-main);
    }

    /* Support side-by-side images on horizontal layout */
    .article-rich-content p.rich-img-group,
    .article-rich-content p:has(> img),
    .modal-description p.rich-img-group,
    .modal-description p:has(> img),
    .ql-editor p.rich-img-group,
    .ql-editor p:has(> img) {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 14px;
      margin: 22px 0;
    }

    .article-rich-content img,
    .modal-description img,
    .ql-editor img {
      display: inline-block;
      max-width: 100%;
      height: auto;
      margin: 8px 0;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-md);
      vertical-align: top;
    }

    /* Auto sizing when multiple images exist in a row */
    .article-rich-content p.rich-img-group img,
    .article-rich-content p:has(> img:nth-child(2)) img,
    .modal-description p.rich-img-group img,
    .modal-description p:has(> img:nth-child(2)) img,
    .ql-editor p.rich-img-group img,
    .ql-editor p:has(> img:nth-child(2)) img {
      flex: 1 1 200px;
      max-width: calc(50% - 8px);
      object-fit: cover;
    }

    .article-rich-content p.rich-img-group:has(> img:nth-child(3)) img,
    .article-rich-content p:has(> img:nth-child(3)) img,
    .modal-description p.rich-img-group:has(> img:nth-child(3)) img,
    .modal-description p:has(> img:nth-child(3)) img,
    .ql-editor p.rich-img-group:has(> img:nth-child(3)) img,
    .ql-editor p:has(> img:nth-child(3)) img {
      max-width: calc(33.333% - 10px);
      flex: 1 1 160px;
    }

    /* Responsive adjustment for small mobile screens */
    @media (max-width: 640px) {
      .article-rich-content p.rich-img-group img,
      .article-rich-content p:has(> img:nth-child(2)) img,
      .modal-description p.rich-img-group img,
      .modal-description p:has(> img:nth-child(2)) img,
      .ql-editor p.rich-img-group img,
      .ql-editor p:has(> img:nth-child(2)) img {
        max-width: 100% !important;
        flex: 1 1 100% !important;
      }
    }

    .article-rich-content blockquote,
    .modal-description blockquote {
      margin: 20px 0;
      padding: 14px 20px;
      border-left: 4px solid var(--accent);
      background: var(--bg-light);
      color: var(--text-muted);
    }
    .article-rich-content iframe,
    .modal-description iframe {
      width: 100%;
      max-width: 100%;
      min-height: 360px;
      margin: 20px 0;
      border: 0;
      border-radius: var(--radius-md);
    }

    /* Alignment overrides with soft justification */
    .article-rich-content .ql-align-center, .modal-description .ql-align-center { text-align: center; }
    .article-rich-content .ql-align-right, .modal-description .ql-align-right { text-align: right; }
    .article-rich-content .ql-align-justify, .modal-description .ql-align-justify {
      text-align: justify;
      text-justify: inter-word;
      word-spacing: -0.5px;
    }
