/* Fx-Home Architecture & Interior Design - Premium Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Brand Color Palette - Phong Thủy Mệnh Kim (Thổ Sinh Kim & Kim Hoàng Kim) */
  --primary-color: #D4AF37; /* Vàng Hoàng Kim / Royal Metallic Gold */
  --primary-rgb: 212, 175, 55;
  --secondary-color: #C87D32; /* Nâu Cam Đất Thổ Ấm (Thổ sinh Kim tài lộc) */
  --secondary-rgb: 200, 125, 50;
  --gold-light: #F9E79F; /* Vàng Ánh Kim Sáng */
  --silver-accent: #E2E8F0; /* Bạch Kim / Platinum Silver (Bản mệnh Kim) */
  
  /* Backgrounds - Thanh Lịch Mệnh Kim */
  --bg-dark: #0D1117; /* Titanium Dark Slate / Xám Đen Titan Kim Loại */
  --bg-dark-accent: #161B22; /* Deep Slate Gray */
  --bg-light: #F8FAFC; /* Trắng Sứ Tinh Khiết / Pearl Pure White */
  --bg-light-accent: #EDF2F7; /* Trắng Bạc Platinum */
  
  /* Text colors */
  --text-light: #F8FAFC; /* Trắng Bạc */
  --text-light-muted: #94A3B8; /* Ghi Bạc Titan */
  --text-dark: #1E293B; /* Xám Đậm Titan */
  --text-dark-muted: #64748B;

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', sans-serif;

  /* Shadows & Radius */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.45);
  --shadow-glow-primary: 0 0 25px rgba(212, 175, 55, 0.5);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Selection Color */
::selection {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Common Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}

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

.text-center { text-align: center; }

.section-padding {
  padding: 8rem 0;
}

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

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

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  position: relative;
}

.bg-dark-section .section-title {
  color: var(--text-light);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 1.5rem 0 0 0;
}

.text-center .section-title::after {
  margin: 1.5rem auto 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-smooth);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background-color: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}

.btn-secondary:hover {
  background-color: var(--text-dark);
  color: var(--bg-light);
  border-color: var(--text-dark);
  transform: translateY(-2px);
}

.bg-dark-section .btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
  border-color: var(--text-light);
}

/* --- Header / Sticky Nav --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.9rem 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.65rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.header-logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(218, 150, 44, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.logo:hover .header-logo-img {
  transform: scale(1.06);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-glow);
}

.logo span {
  color: var(--secondary-color);
}

.logo .brand-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light-muted);
  display: block;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
}

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

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

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

header:not(.scrolled) .nav-link {
  color: var(--text-light);
}

header:not(.scrolled) .logo {
  color: var(--text-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.nav-hotline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.nav-hotline-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  animation: pulse-hotline 2.6s infinite;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 2px 8px rgba(218, 150, 44, 0.5));
}

.nav-hotline-icon svg,
.float-phone svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Burger Menu */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  margin: 5px;
  transition: var(--transition-fast);
}

/* Animations */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(200, 75, 39, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(200, 75, 39, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(200, 75, 39, 0);
  }
}

@keyframes pulse-hotline {
  0% {
    transform: scale(0.96) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(218, 150, 44, 0.7));
  }
  8%, 24% {
    transform: scale(1.08) rotate(-7deg);
  }
  16%, 32% {
    transform: scale(1.08) rotate(7deg);
  }
  40% {
    transform: scale(1.04) rotate(0deg);
    filter: drop-shadow(0 0 16px rgba(218, 150, 44, 0.9));
  }
  65% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(218, 150, 44, 0.4));
  }
  100% {
    transform: scale(0.96) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(218, 150, 44, 0));
  }
}

@keyframes pulse-zalo {
  0% {
    transform: scale(0.96) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(0, 132, 255, 0.7));
  }
  8%, 24% {
    transform: scale(1.08) rotate(-7deg);
  }
  16%, 32% {
    transform: scale(1.08) rotate(7deg);
  }
  40% {
    transform: scale(1.04) rotate(0deg);
    filter: drop-shadow(0 0 16px rgba(0, 132, 255, 0.9));
  }
  65% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(0, 132, 255, 0.4));
  }
  100% {
    transform: scale(0.96) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(0, 132, 255, 0));
  }
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13,17,23,0.7) 0%, rgba(13,17,23,0.45) 40%, rgba(13,17,23,0.98) 100%);
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 750px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.2s;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.4s;
}

.hero h1 span {
  font-style: italic;
  font-weight: 400;
  color: var(--secondary-color);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.6s;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.8s;
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 3rem;
  right: 5%;
  z-index: 10;
  display: flex;
  gap: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 2px solid var(--text-light-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  width: 32px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- About & USPs --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-img-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-img-box::before {
  content: '';
  position: absolute;
  border: 4px solid var(--secondary-color);
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border-radius: var(--radius-md);
  z-index: -1;
  transition: var(--transition-smooth);
}

.about-img-box:hover::before {
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
}

.about-content-inner p {
  color: var(--text-dark-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.usps-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.usp-card {
  background: var(--bg-light-accent);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  border-left: 4px solid var(--primary-color);
}

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

.usp-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.usp-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.usp-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dark-muted);
  margin-bottom: 0;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-dark-accent);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
}

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

.service-card:hover::after {
  opacity: 1;
}

.service-num {
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  transition: var(--transition-smooth);
}

.service-card:hover .service-num {
  color: rgba(255, 255, 255, 0.15);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.service-card:hover h3 {
  color: white;
}

.service-card p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.service-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary-color);
}

.service-card:hover .service-link {
  color: white;
}

/* --- Portfolio Showcase --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--text-dark-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--primary-color);
}

.filter-btn.active::after {
  width: 60%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  grid-column: span 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 380px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.portfolio-item.col-8 {
  grid-column: span 8;
}

.portfolio-item.col-6 {
  grid-column: span 6;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(22, 19, 17, 0.95) 0%, rgba(22, 19, 17, 0.4) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary-color);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-category {
  transform: translateY(0);
}

.portfolio-item h3 {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  transition-delay: 0.05s;
}

.portfolio-item:hover h3 {
  transform: translateY(0);
}

.portfolio-zoom {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  align-self: flex-start;
  transform: scale(0.6);
  opacity: 0;
  transition: var(--transition-smooth);
  transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-zoom {
  transform: scale(1);
  opacity: 1;
}

/* Badge for Reality */
.badge-real {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* --- Cost Calculator --- */
.calc-wrapper {
  background-color: var(--bg-dark-accent);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
}

.calc-form-group {
  margin-bottom: 2.5rem;
}

.calc-label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.calc-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.calc-type-card {
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calc-type-card.active,
.calc-type-card:hover {
  background: rgba(200, 75, 39, 0.08);
  border-color: var(--primary-color);
}

.calc-type-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  display: block;
}

.calc-type-name {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

/* Input Area slider */
.calc-range-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.calc-range {
  flex: 1;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: var(--shadow-glow-primary);
  transition: var(--transition-fast);
}

.calc-range::-webkit-slider-thumb:hover {
  background: var(--secondary-color);
  transform: scale(1.15);
}

.calc-input-number-box {
  width: 100px;
  position: relative;
}

.calc-input-number {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.calc-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.calc-package-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calc-package-card.active,
.calc-package-card:hover {
  border-color: var(--secondary-color);
  background: rgba(218, 150, 44, 0.05);
}

.calc-pkg-title {
  color: var(--secondary-color);
  font-weight: 700;
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.calc-pkg-price {
  color: var(--text-light-muted);
  font-size: 0.8rem;
  display: block;
}

/* Calc Results Panel */
.calc-result-panel {
  background: linear-gradient(145deg, #2D2723 0%, #1A1614 100%);
  border-radius: var(--radius-md);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.calc-result-title {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.calc-result-item span:first-child {
  color: var(--text-light-muted);
}

.calc-result-item span:last-child {
  color: white;
  font-weight: 600;
}

.calc-total-box {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.calc-total-label {
  display: block;
  font-size: 0.9rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.calc-total-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

.calc-btn {
  width: 100%;
}

.calc-note {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  text-align: center;
  margin-top: 1.5rem;
  line-height: 1.4;
}

/* --- Timeline Process --- */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateX(-50%);
  z-index: 1;
}

.process-node {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6rem;
  z-index: 2;
}

.process-node:last-child {
  margin-bottom: 0;
}

.process-node-content {
  width: 42%;
  background: var(--bg-light-accent);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.process-node:nth-child(even) .process-node-content {
  order: 2;
}

.process-node:hover .process-node-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: white;
}

.process-node-dot {
  width: 50px;
  height: 50px;
  background-color: var(--bg-dark);
  border: 3px solid var(--secondary-color);
  border-radius: var(--radius-full);
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.process-node:hover .process-node-dot {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-glow-primary);
  transform: translateX(-50%) scale(1.1);
}

.process-step-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.process-node-content h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.process-node-content p {
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Spacer on the opposite side to balance flex container */
.process-spacer {
  width: 42%;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
}

.contact-info-panel h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info-desc {
  color: var(--text-light-muted);
  margin-bottom: 3rem;
}

.contact-details {
  margin-bottom: 3.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: white;
}

.contact-detail-text p,
.contact-detail-text a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
}

.contact-detail-text a:hover {
  color: var(--secondary-color);
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 250px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Form Styling */
.contact-form-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

.contact-form-panel h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-form-panel p {
  color: var(--text-dark-muted);
  margin-bottom: 3rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: var(--bg-light-accent);
  border: 1px solid transparent;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(200, 75, 39, 0.1);
}

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

.contact-form-btn {
  width: 100%;
  margin-top: 1rem;
}

/* --- Footer --- */
footer {
  background-color: #07090C;
  color: var(--text-light);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.footer-top {
  padding: 6rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(218, 150, 44, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: white;
}

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

.footer-desc {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-muted);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--primary-color);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-col h3 {
  font-size: 1.1rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
  margin-top: 0.75rem;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
}

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

.footer-col-contact li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light-muted);
  font-size: 0.95rem;
}

.footer-col-contact li i {
  color: var(--secondary-color);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a:hover {
  color: var(--secondary-color);
}

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

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.float-btn:hover {
  transform: scale(1.1) translateY(-3px);
}

.float-phone {
  background-color: transparent;
  padding: 0;
  border: none;
  overflow: visible;
  filter: drop-shadow(0 4px 15px rgba(218, 150, 44, 0.6));
  animation: pulse-hotline 2.6s infinite;
}

.float-zalo {
  background-color: transparent;
  padding: 0;
  border: none;
  overflow: visible;
  filter: drop-shadow(0 4px 15px rgba(0, 104, 255, 0.6));
  animation: pulse-zalo 2.6s infinite 1.3s;
}

.float-zalo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  display: block;
  transition: var(--transition-smooth);
}

.float-zalo:hover .float-zalo-img {
  transform: scale(1.08);
}

.footer-zalo-img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: var(--radius-full);
  display: block;
}

.float-scrollup {
  background-color: rgba(22, 19, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
}

.float-scrollup.show {
  opacity: 1;
  visibility: visible;
}

/* --- Lightbox Modal --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 12, 11, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-caption {
  color: var(--text-light);
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--primary-color);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-fast);
  z-index: 1001;
}

.lightbox-nav:hover {
  background: var(--primary-color);
  border-color: transparent;
}

.lightbox-prev {
  left: 2.5rem;
}

.lightbox-next {
  right: 2.5rem;
}


/* --- Responsive Styles --- */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-item, .portfolio-item.col-8 {
    grid-column: span 6;
  }
}

@media (max-width: 992px) {
  .section-padding {
    padding: 6rem 0;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-img-box {
    max-width: 600px;
    margin: 0 auto;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .process-timeline::before {
    left: 20px;
  }
  .process-node {
    flex-direction: column;
    margin-bottom: 4rem;
  }
  .process-node-content {
    width: calc(100% - 50px);
    margin-left: 50px;
  }
  .process-node:nth-child(even) .process-node-content {
    order: unset;
    margin-left: 50px;
  }
  .process-spacer {
    display: none;
  }
  .process-node-dot {
    left: 20px;
    transform: translateX(-50%);
  }
  .process-node:hover .process-node-dot {
    transform: translateX(-50%) scale(1.1);
  }
}

@media (max-width: 1024px) {
  /* Navigation mobile menu active styles */
  .burger {
    display: block;
    z-index: 101;
  }
  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .burger.toggle .line2 {
    opacity: 0;
  }
  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  .nav-menu {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 75%;
    max-width: 360px;
    background-color: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    z-index: 100;
  }
  .nav-menu.active {
    transform: translateX(0);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  .nav-link {
    color: var(--text-light) !important;
    font-size: 0.95rem;
  }
  .header-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .calc-types {
    grid-template-columns: 1fr;
  }
  .calc-packages {
    grid-template-columns: 1fr;
  }
  .calc-wrapper {
    padding: 2rem;
  }
  .contact-form-panel {
    padding: 2.5rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  .portfolio-item, .portfolio-item.col-8, .portfolio-item.col-6 {
    grid-column: span 12;
    height: 320px;
  }
  .floating-widgets {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-flex {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .usps-list {
    grid-template-columns: 1fr;
  }
}
