/* ==========================================================================
   BUILDRIGHT CONSTRUCTION SINGAPORE - MAIN STYLESHEET
   Design Tokens, Color System, Glassmorphism, Theme Switcher & Animations
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme Default */
  --bg-primary: #0A1128;
  --bg-secondary: #101B3B;
  --bg-card: rgba(16, 27, 59, 0.7);
  --bg-card-hover: rgba(26, 42, 86, 0.9);
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-heading: #FFFFFF;
  
  --accent-gold: #F59E0B;
  --accent-gold-hover: #D97706;
  --accent-amber: #FF6B00;
  --accent-navy: #0047AB;
  --accent-green: #10B981;
  --accent-blue: #38BDF8;

  --border-color: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(245, 158, 11, 0.4);

  --glass-bg: rgba(16, 27, 59, 0.65);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --text-main: #334155;
  --text-muted: #64748B;
  --text-heading: #0F172A;

  --border-color: #E2E8F0;
  --border-highlight: rgba(245, 158, 11, 0.6);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

.container {
  width: 94%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #0052CC 0%, #003785 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 82, 204, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 100%);
  color: #0A1128;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #FFB020 0%, #FF7B1A 100%);
}

.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

/* Utility Helpers */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #FFB020 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }
.dark-bg { background-color: var(--bg-secondary); }

.section {
  padding: 5rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
}

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

.text-center .section-desc {
  margin: 0 auto;
}

/* Top Announcement Bar */
.top-bar {
  background: #060B18;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.badge-bca {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

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

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--accent-gold);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--accent-gold);
  color: #0A1128;
}

/* Header & Sticky Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 17, 40, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.92);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0A1128;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.brand-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 3px;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6);
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.logo-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-heading);
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-gold);
  white-space: nowrap;
  margin-top: 2px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-main);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) contrast(1.1);
  transform: scale(1.05);
  animation: heroZoom 25s infinite alternate ease-in-out;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.7) 0%, rgba(10, 17, 40, 0.95) 100%);
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #CBD5E1;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Floating Card */
.hero-card {
  padding: 2rem;
  border-left: 4px solid var(--accent-gold);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.hero-card-header h4 {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.card-metric:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.metric-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

/* Stats Bar Overlay */
.stats-bar {
  position: relative;
  z-index: 5;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-text h3 {
  font-size: 1.8rem;
  display: inline-block;
  line-height: 1;
}

.stat-text .plus {
  font-size: 1.5rem;
  color: var(--accent-gold);
  font-weight: 800;
}

.stat-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.about-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-item i {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-top: 0.2rem;
}

.highlight-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.highlight-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.phone-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-icon {
  width: 46px;
  height: 46px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.phone-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.phone-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-heading);
}

/* Group Companies Showcase Section */
.group-companies-section {
  position: relative;
}

.group-companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.group-company-card {
  padding: 2rem 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.group-company-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.2);
}

.company-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.company-badge-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.company-type-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

.company-header h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.3;
}

.company-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.company-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.company-features li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* 4 Feature Cards Grid */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
}

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

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

.card-badge-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: var(--accent-gold);
  color: #0A1128;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.feature-card-content {
  padding: 1.2rem;
}

.feature-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link:hover {
  gap: 0.8rem;
}

/* Calculator Section */
.calculator-wrapper {
  padding: 3rem;
  margin-top: 2rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-heading);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea,
.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(10, 17, 40, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: var(--radius-md);
  color: #FFFFFF !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] input[type="number"],
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .form-control {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
  outline: none;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

input::placeholder,
textarea::placeholder {
  color: #94A3B8;
  opacity: 0.8;
}

select option {
  background: #0A1128;
  color: #FFFFFF;
  padding: 0.8rem;
}


.label-with-val {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.val-display {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  outline: none;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.grade-selector {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.radio-card:hover, .radio-card.active {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
}

.radio-content {
  display: flex;
  flex-direction: column;
}

.grade-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
}

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

/* Calculator Results Card */
.results-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.res-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(255, 107, 0, 0.2) 100%);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.res-header h3 {
  font-size: 1.1rem;
}

.badge-sgd {
  background: var(--accent-gold);
  color: #0A1128;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.res-body {
  padding: 2rem;
}

.res-main-price {
  text-align: center;
  margin-bottom: 2rem;
}

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

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-top: 0.3rem;
}

.res-metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.res-metric {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.m-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.m-val {
  font-weight: 700;
}

.res-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Core Services Section Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.service-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.08);
}

.service-icon-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 17, 40, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-heading);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Filterable Project Portfolio Section */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.portfolio-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gold);
  color: #0A1128;
  border-color: var(--accent-gold);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
}

.project-card.hide {
  display: none;
}

.project-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.2) 0%, rgba(10, 17, 40, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-normal);
}

.project-card:hover .project-overlay, .project-card:active .project-overlay {
  opacity: 1;
}

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

.proj-badge {
  background: var(--accent-gold);
  color: #0A1128;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  margin-bottom: 0.5rem;
}

.project-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #FFFFFF;
}

.project-overlay p {
  font-size: 0.85rem;
  color: #CBD5E1;
  margin-bottom: 1rem;
}

.project-info {
  padding: 1.2rem 1.5rem;
}

.project-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.proj-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Why Choose Us & Safety */
.why-us-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.reasons-checklist {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.check-item i {
  font-size: 1.8rem;
  margin-top: 0.2rem;
}

.check-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.check-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.media-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.media-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.media-overlay-box {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: -60px;
  position: relative;
  z-index: 2;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.quote-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.media-quote {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.media-author strong {
  display: block;
  color: var(--text-heading);
}

.media-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Testimonials Carousel Section */
.testimonial-slider-wrap {
  max-width: 850px;
  margin: 3rem auto 0 auto;
}

.testimonial-cards {
  position: relative;
  min-height: 220px;
}

.testimonial-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-card.active {
  display: block;
  opacity: 1;
}

.stars {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.3rem;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

.client-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #0A1128;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background: var(--accent-gold);
  color: #0A1128;
}

.slider-dots {
  display: flex;
  gap: 0.6rem;
}

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

.dot.active {
  background: var(--accent-gold);
  width: 24px;
  border-radius: var(--radius-full);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0A1128 0%, #002244 100%);
  border-top: 2px solid var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  padding: 3.5rem 0;
}

.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta-text {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-icon-box {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-md);
  background: var(--accent-gold);
  color: #0A1128;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.cta-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.cta-text p {
  color: #CBD5E1;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form-wrap {
  padding: 2.5rem;
}

.contact-form-wrap h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-feedback {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Footer */
.footer {
  background: #040812;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-desc {
  font-size: 0.9rem;
  margin: 1.2rem 0;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  background: var(--accent-gold);
  color: #0A1128;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-size: 0.85rem;
}

.newsletter-note {
  font-size: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

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

.footer-legal {
  display: flex;
  gap: 0.8rem;
}

/* Sticky Floating Contact Hub Bar */
.floating-contact-bar {
  position: fixed;
  right: 0;
  top: 45%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.8rem 1rem;
  background: #0A1128;
  color: #FFFFFF;
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-right: none;
  cursor: pointer;
  transition: var(--transition-normal);
  width: 56px;
  overflow: hidden;
  white-space: nowrap;
}

.float-btn i {
  font-size: 1.4rem;
  min-width: 26px;
  text-align: center;
  display: inline-block;
}

.float-whatsapp { background: #128C7E; color: #FFFFFF; }
.float-whatsapp:hover { background: #25D366; color: #0A1128; }

.float-phone { background: #0052CC; color: #FFFFFF; }
.float-phone:hover { background: #0066FF; color: #FFFFFF; }

.float-quote { background: var(--accent-gold); color: #0A1128; }
.float-quote:hover { background: #FFB020; color: #0A1128; }

.float-location { background: #8B5CF6; color: #FFFFFF; }
.float-location:hover { background: #A78BFA; color: #FFFFFF; }

.float-btn:hover {
  width: 160px;
}

.float-btn:hover .float-label {
  opacity: 1;
  margin-left: 0.8rem;
}

.float-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease, margin 0.2s ease;
}

/* Call & Location Modal Styles */
.call-options-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.call-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  gap: 1rem;
}

.call-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.call-details {
  flex: 1;
}

.call-details h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.call-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.phone-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-gold);
  display: block;
  margin-top: 0.2rem;
}

.location-modal-dialog {
  max-width: 750px;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.location-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}


/* Modals Backdrop & Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.modal-backdrop.show .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: auto;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: #EF4444;
  color: #FFF;
}

.modal-title-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-title-wrap i {
  font-size: 2.2rem;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Project Lightbox Modal Styling */
.proj-modal-dialog {
  max-width: 900px;
}

.proj-lightbox-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.proj-lightbox-img {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.proj-lightbox-img img#proj-modal-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.proj-gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.proj-thumb-item {
  width: 65px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  cursor: pointer;
  opacity: 0.65;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.proj-thumb-item:hover, .proj-thumb-item.active {
  opacity: 1;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.proj-specs-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.proj-specs-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.proj-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .about-grid, .calculator-grid, .why-us-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-left .top-info {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: 3rem;
    gap: 2rem;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about-cards-grid, .form-row, .modal-form-grid, .proj-lightbox-body {
    grid-template-columns: 1fr;
  }

  .cta-flex {
    flex-direction: column;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  /* Floating Touch Bar at Bottom for Mobile */
  .floating-contact-bar {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    width: 100%;
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-highlight);
    padding: 0.5rem;
    justify-content: space-around;
    z-index: 2500;
    border-radius: 0;
  }

  .float-btn {
    border-radius: var(--radius-sm);
    width: 48px;
    height: 48px;
  }

  .float-label {
    display: none;
  }

  body {
    padding-bottom: 60px;
  }

  .modal-dialog {
    width: 94%;
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

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

  .top-bar-content {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .projects-grid, .services-grid, .group-companies-grid {
    grid-template-columns: 1fr;
  }
}
