/* ==========================================================================
   DESIGN SYSTEM & GLOBAL STYLES - VIETNAMS TECH
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #070913;
  --bg-secondary: #0c0f24;
  --bg-tertiary: #131735;
  --card-bg: rgba(12, 16, 38, 0.65);
  
  --primary: #e5c158; /* Electric Violet */
  --primary-glow: rgba(229, 193, 88, 0.45);
  --secondary: #b8860b; /* Cyber Cyan */
  --secondary-glow: rgba(184, 134, 11, 0.45);
  --success: #10b981; /* Mint Green */
  --warning: #f59e0b; /* Amber */
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-glow: rgba(229, 193, 88, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
  
  /* Layout & Animations */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

/* Glow Background Effects */
body::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

body::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

/* Global Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

ul {
  list-style: none;
}

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

/* ========== FLOATING CTA PHONE ========== */
#floating-phone {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(229, 193, 88, 0.4), 0 0 0 0 rgba(229, 193, 88, 0.4);
  z-index: 999;
  cursor: pointer;
  animation: pulse-phone 2s infinite;
}

#floating-phone svg {
  width: 24px;
  height: 24px;
}

@keyframes pulse-phone {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(229, 193, 88, 0.4), 0 0 0 0 rgba(229, 193, 88, 0.4);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(229, 193, 88, 0.6), 0 0 0 15px rgba(229, 193, 88, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(229, 193, 88, 0.4), 0 0 0 0 rgba(229, 193, 88, 0);
  }
}

/* ========== HEADER & NAVIGATION ========== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  height: 70px;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* SVG Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

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

.logo-container svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

.nav-cta {
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.1), rgba(184, 134, 11, 0.1));
  border: 1px solid var(--primary);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(229, 193, 88, 0.15);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  height: 20px;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* ========== HERO SECTION & QUICK FORM ========== */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Grid overlay background */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  z-index: -2;
  mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(184, 134, 11, 0.08) 0%, transparent 60%);
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 193, 88, 0.08);
  border: 1px solid rgba(229, 193, 88, 0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: var(--font-title);
  box-shadow: 0 4px 12px rgba(229, 193, 88, 0.05);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 8px var(--secondary-glow);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

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

.hero-title-accent {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(229, 193, 88, 0.1));
}

.hero-title-sub {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 10px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-primary);
  border: none;
  box-shadow: 0 8px 24px rgba(229, 193, 88, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(229, 193, 88, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-suffix {
  color: var(--secondary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-light);
}

/* Glass Card Booking Widget */
.booking-widget-wrapper {
  perspective: 1000px;
}

.booking-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.booking-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.booking-card-header {
  margin-bottom: 24px;
}

.booking-card-header h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.booking-card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.booking-form-el {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  width: 100%;
}

.form-row.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 1rem;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 38px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.input-wrap textarea {
  padding: 10px 12px;
  resize: vertical;
  min-height: 80px;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(229, 193, 88, 0.15);
}

/* Calculator Price Box widget */
.booking-price-box {
  background: rgba(229, 193, 88, 0.06);
  border: 1px solid rgba(229, 193, 88, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-value-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-val {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  text-shadow: 0 0 10px var(--secondary-glow);
}

.price-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.success-box {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.success-icon {
  font-size: 2.2rem;
  color: var(--success);
  margin-bottom: 12px;
}

.success-box h4 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.success-box p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ========== SECTIONS COMMON ========== */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-badge {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

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

/* ========== SERVICES SECTION ========== */
#services {
  background-color: var(--bg-secondary);
}

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 100%, rgba(184, 134, 11, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(229, 193, 88, 0.3);
  box-shadow: 0 20px 40px rgba(229, 193, 88, 0.12);
}

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

.service-icon-box {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.1), rgba(184, 134, 11, 0.1));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(229, 193, 88, 0.2);
  color: var(--primary);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-primary);
  border-color: transparent;
  transform: scale(1.05);
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.service-list li::before {
  content: "✦";
  color: var(--secondary);
  font-size: 0.75rem;
}

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

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

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

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

/* ========== ABOUT US SECTION ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-graphics {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-card-glow {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.about-card-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.about-badge {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(184, 134, 11, 0.08);
  border: 1px solid rgba(184, 134, 11, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
  display: inline-block;
}

.about-graphics-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tech-tag:hover {
  background: rgba(229, 193, 88, 0.08);
  border-color: var(--primary);
  color: var(--text-primary);
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

.about-point {
  display: flex;
  gap: 16px;
}

.about-point-icon {
  width: 40px;
  height: 40px;
  background: rgba(184, 134, 11, 0.06);
  border: 1px solid rgba(184, 134, 11, 0.15);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}

.about-point-content h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.about-point-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== PORTFOLIO SECTION ========== */
#portfolio {
  background-color: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 134, 11, 0.3);
  box-shadow: 0 20px 40px rgba(184, 134, 11, 0.1);
}

.portfolio-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
}

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

.portfolio-card:hover .portfolio-img-box img {
  transform: scale(1.05);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 19, 0.8), transparent);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

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

.portfolio-category-tag {
  background: var(--secondary);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.portfolio-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-card-content h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.portfolio-card-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ========== INTERACTIVE CALCULATOR SECTION ========== */
.calculator-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: start;
}

.calc-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.calc-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.calc-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-step-group {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
}

.calc-step-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calc-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-step-title span {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.calc-option-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  text-align: center;
}

.calc-option-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(229, 193, 88, 0.4);
}

.calc-option-card.selected {
  background: rgba(229, 193, 88, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(229, 193, 88, 0.15);
}

.calc-option-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.calc-option-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.calc-option-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Slider and count styling */
.calc-range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-range-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.calc-range-val {
  font-family: var(--font-title);
  color: var(--secondary);
  font-weight: 700;
}

.calc-range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 5px;
  outline: none;
  transition: opacity .2s;
}

.calc-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--secondary-glow);
  transition: transform 0.1s;
}

.calc-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Result panel sidebar styling */
.calc-sidebar {
  position: sticky;
  top: 100px;
  background: linear-gradient(135deg, rgba(13, 17, 39, 0.9), rgba(20, 27, 61, 0.9));
  border: 1px solid rgba(229, 193, 88, 0.25);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 15px 40px rgba(229, 193, 88, 0.1);
  backdrop-filter: blur(12px);
}

.calc-sidebar-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.calc-sidebar-header h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-sidebar-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-result-box {
  background: rgba(229, 193, 88, 0.05);
  border: 1px solid rgba(229, 193, 88, 0.15);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.calc-result-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.calc-result-price {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 10px 0;
  text-shadow: 0 0 15px var(--secondary-glow);
}

.calc-result-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.calc-submit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-submit-form .btn {
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

/* ========== BLOG ARTICLES GRID SECTION ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 193, 88, 0.3);
  box-shadow: 0 20px 40px rgba(229, 193, 88, 0.1);
}

.blog-img-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
}

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

.blog-card:hover .blog-img-box img {
  transform: scale(1.06);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-category-label {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
}

.blog-card-content h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  /* Line clamp for 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
  /* Line clamp for 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-readmore {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card:hover .blog-readmore {
  text-decoration: underline;
}

/* ========== DYNAMIC BLOG DETAIL VIEW ========== */
#blog-detail-view {
  padding-top: 140px;
  padding-bottom: 100px;
  display: none; /* controlled by JS */
  flex-direction: column;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.blog-detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 32px;
  cursor: pointer;
}

.blog-detail-back:hover {
  color: var(--primary);
}

.blog-detail-header {
  margin-bottom: 32px;
}

.blog-detail-category {
  font-family: var(--font-title);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.blog-detail-title {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.blog-detail-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 20px;
}

.blog-detail-cover {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border-light);
}

.blog-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-detail-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.blog-detail-body h3 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 16px 0;
}

.blog-detail-body p {
  margin-bottom: 24px;
}

.blog-detail-body ul, 
.blog-detail-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.blog-detail-body li {
  margin-bottom: 10px;
}

.blog-detail-body strong {
  color: var(--text-primary);
}

.blog-detail-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(229, 193, 88, 0.06);
  border: 1px solid rgba(229, 193, 88, 0.2);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-info-detail h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-info-detail p,
.contact-info-detail a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-info-detail a:hover {
  color: var(--primary);
}

.map-wrapper {
  margin-top: 24px;
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(1.2); /* matches dark mode! */
}

/* Contact Message Form */
.contact-form-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-form-panel h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-form-panel p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-form-el {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form-el textarea {
  min-height: 120px;
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 30px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo-container {
  margin-bottom: 20px;
}

.footer-brand p {
  margin-bottom: 24px;
  line-height: 1.5;
  color: var(--text-secondary);
}

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

.footer-social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

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

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

.footer-links-col h4 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.footer-links-col a {
  color: var(--text-muted);
}

.footer-links-col a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

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


/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-badge {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .booking-widget-wrapper {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-graphics {
    order: 2;
  }
  
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-sidebar {
    position: static;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-title-sub {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: 40px 24px;
    align-items: flex-start;
    gap: 24px;
    transition: var(--transition-normal);
    border-top: 1px solid var(--border-light);
    z-index: 999;
  }
  
  .nav-links.open {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-cta {
    display: none; /* hide hotline btn on header, rely on floating btn and nav links */
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .form-row.split {
    grid-template-columns: 1fr;
  }
  
  .calc-options-grid {
    grid-template-columns: 1fr;
  }
}
