@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens (Dark Theme Default) --- */
:root {
  --bg-deep: #0a0a0c;
  --bg-surface: #121216;
  --bg-card: #1c1c22;
  --bg-glass: rgba(10, 10, 12, 0.88);
  --accent-gold: #d4af37;
  --accent-gold-light: #f5df8b;
  --accent-gold-glow: rgba(212, 175, 55, 0.25);
  --text-main: #ffffff;
  --text-muted: #a0a0b2;
  --border-light: rgba(212, 175, 55, 0.18);
  --cta-bg: linear-gradient(135deg, #1c1c22 0%, #0a0a0c 100%);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Anti-FOUC (Flash of Dark Theme) Transition Suppression --- */
html.theme-preload,
html.theme-preload *,
html.theme-preload *::before,
html.theme-preload *::after {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  -ms-transition: none !important;
  transition: none !important;
}

html.light-mode {
  color-scheme: light;
  background-color: #f4f5f9 !important;
}

:root[data-theme="light"] {
  color-scheme: light;
}

/* --- LIGHT MODE OVERRIDES --- */
:is(html.light-mode, body.light-mode) {
  --bg-deep: #f4f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --accent-gold: #b8860b;
  --accent-gold-light: #d4af37;
  --accent-gold-glow: rgba(184, 134, 11, 0.2);
  --text-main: #111116;
  --text-muted: #444455;
  --border-light: rgba(0, 0, 0, 0.12);
  --cta-bg: linear-gradient(135deg, #ffffff 0%, #f0f1f5 100%);
  background-color: #f4f5f9 !important;
  color: #111116 !important;
}

:is(html.light-mode, body.light-mode) .site-header {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

:is(html.light-mode, body.light-mode) .brand-name {
  color: #111116 !important;
}

:is(html.light-mode, body.light-mode) .nav-link {
  color: #555566 !important;
}

:is(html.light-mode, body.light-mode) .nav-link:hover {
  color: #111116 !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

:is(html.light-mode, body.light-mode) .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
  box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3) !important;
}

:is(html.light-mode, body.light-mode) .service-card,
:is(html.light-mode, body.light-mode) .contact-info-card,
:is(html.light-mode, body.light-mode) .form-card,
:is(html.light-mode, body.light-mode) .stat-card,
:is(html.light-mode, body.light-mode) .modal-container {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

:is(html.light-mode, body.light-mode) .service-body h3,
:is(html.light-mode, body.light-mode) .section-title,
:is(html.light-mode, body.light-mode) .contact-info-card h2,
:is(html.light-mode, body.light-mode) .form-card h2,
:is(html.light-mode, body.light-mode) h1,
:is(html.light-mode, body.light-mode) h2,
:is(html.light-mode, body.light-mode) h3,
:is(html.light-mode, body.light-mode) h4,
:is(html.light-mode, body.light-mode) .cta-banner h2,
:is(html.light-mode, body.light-mode) .modal-header h3 {
  color: #111116 !important;
}

:is(html.light-mode, body.light-mode) p,
:is(html.light-mode, body.light-mode) .service-body p,
:is(html.light-mode, body.light-mode) .hero-desc,
:is(html.light-mode, body.light-mode) .contact-detail p,
:is(html.light-mode, body.light-mode) .stat-card p,
:is(html.light-mode, body.light-mode) .cta-banner p {
  color: #444455 !important;
}

:is(html.light-mode, body.light-mode) .form-control {
  background-color: #f8f9fc !important;
  color: #111116 !important;
  border-color: #d1d5db !important;
}

:is(html.light-mode, body.light-mode) .hero-overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 55%, rgba(255, 255, 255, 0.5) 100%) !important;
}

:is(html.light-mode, body.light-mode) .stats-section,
:is(html.light-mode, body.light-mode) .section-alt {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

:is(html.light-mode, body.light-mode) .cta-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f1f5 100%) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

:is(html.light-mode, body.light-mode) .site-footer {
  background-color: #0f1117 !important;
  color: #a0a0b2 !important;
}

:is(html.light-mode, body.light-mode) .site-footer h4 {
  color: var(--accent-gold) !important;
}

:is(html.light-mode, body.light-mode) .site-footer p,
:is(html.light-mode, body.light-mode) .site-footer a,
:is(html.light-mode, body.light-mode) .footer-contact-item span {
  color: #a0a0b2 !important;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Container --- */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.3px;
  color: var(--text-main);
  font-weight: 700;
}

.gold-text {
  background: linear-gradient(135deg, #f5df8b 0%, #d4af37 60%, #b89018 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:is(html.light-mode, body.light-mode) .gold-text {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Header & Navigation --- */
/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 10px 0;
  transition: var(--transition);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

.brand-link:hover {
  opacity: 0.92;
}

.logo-img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-link:hover .logo-img {
  transform: scale(1.05);
}

.brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.1;
}

.brand-name .gold-text {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 4px 6px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  list-style: none;
  margin: 0;
}

:is(html.light-mode, body.light-mode) .main-nav {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 24px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #0a0a0c !important;
  background: linear-gradient(135deg, #f5df8b 0%, #d4af37 100%);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.nav-link::after {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-actions .btn {
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
  white-space: nowrap;
}

.header-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* --- Luxury Dual-State Theme Capsule Slider --- */
.theme-toggle-btn {
  position: relative;
  width: 66px;
  height: 34px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  padding: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

.theme-capsule-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.theme-capsule-icon {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.theme-capsule-icon.sun {
  color: rgba(255, 255, 255, 0.35);
}

.theme-capsule-icon.moon {
  color: rgba(255, 255, 255, 0.35);
}

.theme-capsule-icon.sun.active {
  color: #111116;
  transform: scale(1.05);
}

.theme-capsule-icon.moon.active {
  color: #d4af37;
  transform: scale(1.05);
}

.theme-capsule-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease, box-shadow 0.35s ease;
}

/* Dark mode active: thumb on right over Moon */
.theme-capsule-thumb.to-moon {
  transform: translateX(33px);
  background: linear-gradient(135deg, #1f1f2e 0%, #12121a 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

/* Light mode active: thumb on left over Sun */
.theme-capsule-thumb.to-sun {
  transform: translateX(0);
  background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
}

/* Light Mode Overrides for Theme Toggle */
:is(html.light-mode, body.light-mode) .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

:is(html.light-mode, body.light-mode) .theme-toggle-btn:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

:is(html.light-mode, body.light-mode) .theme-capsule-icon.moon {
  color: rgba(0, 0, 0, 0.35);
}

:is(html.light-mode, body.light-mode) .theme-capsule-icon.sun.active {
  color: #000;
}

/* Floating WhatsApp Badge */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: var(--transition);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  min-height: 44px;
  line-height: 1.2;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
  min-height: 38px;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
  color: #000;
  box-shadow: 0 4px 18px var(--accent-gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f5df8b 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
}

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

.btn-outline:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.96) 0%, rgba(10, 10, 12, 0.75) 55%, rgba(10, 10, 12, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.18;
  margin-bottom: 22px;
  font-weight: 800;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Stats Section --- */
.stats-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 45px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-card h3 {
  font-size: 3.2rem;
  color: var(--accent-gold);
  margin-bottom: 4px;
  font-weight: 800;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Section Formatting --- */
.section {
  padding: 80px 0;
}

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

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 45px auto;
}

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

.section-title {
  font-size: 2.6rem;
  line-height: 1.25;
  font-weight: 800;
}

/* --- CTA Banner Section --- */
.cta-banner {
  background: var(--cta-bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 80px 0;
  text-align: center;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

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

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2), 0 0 20px var(--accent-gold-glow);
}

.service-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}

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

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

.service-body {
  padding: 28px 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.service-body h3 {
  font-size: 1.65rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.service-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Portfolio Grid & Filter --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-height: 44px;
  backdrop-filter: blur(8px);
}

.filter-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #f5df8b 0%, #d4af37 100%);
  color: #0a0a0c !important;
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

:is(html.light-mode, body.light-mode) .filter-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:is(html.light-mode, body.light-mode) .filter-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--accent-gold);
  color: #000;
}

:is(html.light-mode, body.light-mode) .filter-btn.active {
  background: linear-gradient(135deg, #f5df8b 0%, #d4af37 100%);
  color: #0a0a0c !important;
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--border-light);
  transition: opacity 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: opacity, transform;
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.2) 0%, rgba(10, 10, 12, 0.95) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition);
}

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

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

.portfolio-cat {
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-overlay h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.walkthrough-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.walkthrough-badge-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

/* --- 3D Walkthrough SketchUp Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  width: 100%;
  max-width: 1050px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: var(--accent-gold);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.modal-body {
  position: relative;
  width: 100%;
  height: 580px;
  background: #000;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Contact Form --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 24px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-card {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

/* --- Footer & Footer Contact Alignment --- */
.site-footer {
  background: #050507;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 25px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
  margin-bottom: 45px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 14px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-gold);
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

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

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

/* Footer Social Media Buttons Fix */
.site-footer .social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.site-footer .social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none !important;
  transition: var(--transition);
}

.site-footer .social-icon-btn i {
  color: var(--text-main) !important;
}

.site-footer .social-icon-btn:hover {
  background: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.site-footer .social-icon-btn:hover i {
  color: #000000 !important;
}

/* Footer Contact Info Item Alignment Fix */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--accent-gold) !important;
  font-size: 1.05rem;
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.footer-contact-item span,
.footer-contact-item a {
  color: var(--text-muted) !important;
  text-decoration: none;
  word-break: break-word;
}

.footer-contact-item a:hover {
  color: var(--accent-gold) !important;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --- Service Detail Styles --- */
.service-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 45px 0;
}

.service-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.service-nav-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.service-nav-btn.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px var(--accent-gold-glow);
}

:is(html.light-mode, body.light-mode) .service-nav-btn {
  background: #ffffff;
  color: #111116;
  border-color: rgba(0, 0, 0, 0.12);
}

:is(html.light-mode, body.light-mode) .service-nav-btn.active {
  background: var(--accent-gold);
  color: #ffffff;
}

.service-detail-block {
  display: none;
  animation: fadeInDetail 0.4s ease forwards;
}

.service-detail-block.active {
  display: block;
}

@keyframes fadeInDetail {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.service-overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.service-overview-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scope-heading {
  font-size: 1.8rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.scope-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}

/* Step-by-Step Scope of Work Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.step-icon {
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.step-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.step-bullets {
  list-style: none;
  padding: 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

:is(html.light-mode, body.light-mode) .step-bullets {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.step-bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0 4px 20px;
  position: relative;
}

.step-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* Deliverables Grid */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.deliverable-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  transition: var(--transition);
}

.deliverable-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.deliverable-card i {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.deliverable-card h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

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

/* Service Card Link button */
.service-card {
  cursor: pointer;
}

.service-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.service-card:hover .service-link-btn {
  transform: translateX(5px);
  color: var(--accent-gold-light);
}

/* FAQ Accordion */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 60px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-question i {
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 22px 20px 22px;
}

:is(html.light-mode, body.light-mode) .step-card,
:is(html.light-mode, body.light-mode) .deliverable-card,
:is(html.light-mode, body.light-mode) .faq-item {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

:is(html.light-mode, body.light-mode) .step-card h4,
:is(html.light-mode, body.light-mode) .deliverable-card h5,
:is(html.light-mode, body.light-mode) .faq-question {
  color: #111116 !important;
}

:is(html.light-mode, body.light-mode) .step-card p,
:is(html.light-mode, body.light-mode) .deliverable-card p,
:is(html.light-mode, body.light-mode) .faq-answer,
:is(html.light-mode, body.light-mode) .step-bullets li {
  color: #444455 !important;
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .modal-body {
    height: 420px;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
  }

  :is(html.light-mode, body.light-mode) .nav-toggle {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #111116 !important;
  }

  .nav-toggle:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
  }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background: #0c0c10;
    flex-direction: column;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border-light);
    padding: 30px 24px;
    gap: 12px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 999;
  }

  :is(html.light-mode, body.light-mode) .main-nav {
    background: #ffffff !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  }

  .main-nav.active {
    display: flex;
    animation: mobileNavSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobileNavSlideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

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

  .main-nav .nav-link {
    width: 100%;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
  }

  :is(html.light-mode, body.light-mode) .main-nav .nav-link {
    background: #f4f5f8 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #111116 !important;
  }

  .main-nav .nav-link.active {
    background: linear-gradient(135deg, #f5df8b 0%, #d4af37 100%) !important;
    color: #0b0b0e !important;
  }

  :is(html.light-mode, body.light-mode) .main-nav .nav-link.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
    color: #ffffff !important;
  }
}

@media (max-width: 600px) {
  .header-actions .btn {
    display: none;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-name .gold-text {
    font-size: 0.62rem;
    letter-spacing: 1.6px;
  }

  .logo-img {
    height: 38px;
  }
}

@media (max-width: 768px) {
  .brand-name {
    font-size: 1.1rem;
  }

  .logo-img {
    height: 40px;
  }

  .hero-section {
    min-height: 70vh;
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

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

  .stat-card h3 {
    font-size: 2.4rem;
  }

  .stat-card p {
    font-size: 0.8rem;
  }

  .section {
    padding: 55px 0;
  }

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

  .section-title-wrap {
    margin-bottom: 35px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-img-wrap {
    height: 200px;
  }

  .service-body {
    padding: 22px 18px;
  }

  .service-body h3 {
    font-size: 1.45rem;
  }

  .portfolio-filters {
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-item {
    height: 250px;
  }

  .portfolio-overlay {
    padding: 18px;
  }

  .portfolio-overlay h4 {
    font-size: 1.25rem;
  }

  .contact-info-card,
  .form-card {
    padding: 25px 20px;
  }

  .contact-wrapper {
    gap: 25px;
  }

  .cta-banner {
    padding: 55px 0;
  }

  .cta-banner h2 {
    font-size: 1.9rem;
  }

  .cta-banner .btn {
    width: 100%;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}

/* --- Team Section & Luxury Architecture Cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 45px;
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.team-card {
  position: relative;
  background: linear-gradient(180deg, rgba(24, 24, 32, 0.85) 0%, rgba(14, 14, 18, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(212, 175, 55, 0.2);
}

.team-img-wrap {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: #0f0f14;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  display: block;
}

.team-card:hover .team-img-wrap img {
  transform: scale(1.06);
}

/* Soft gradient mask blending image into card body */
.team-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(14, 14, 18, 0.95) 0%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.team-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-badge-row {
  margin-bottom: 10px;
}

.team-designation {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.team-bio {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

/* Luxury Contact Bar at bottom of card */
.team-contacts-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.team-contact-btn:hover {
  background: var(--accent-gold);
  color: #0a0a0c;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* Light Mode Refinements for Team Cards */
:is(html.light-mode, body.light-mode) .team-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8f8fb 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
}

:is(html.light-mode, body.light-mode) .team-card:hover {
  border-color: rgba(212, 175, 55, 0.6) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 0 20px rgba(212, 175, 55, 0.2) !important;
}

:is(html.light-mode, body.light-mode) .team-img-wrap::after {
  background: linear-gradient(to top, #ffffff 0%, transparent 100%) !important;
}

:is(html.light-mode, body.light-mode) .team-name {
  color: #0f172a !important;
}

:is(html.light-mode, body.light-mode) .team-bio {
  color: #475569 !important;
}

:is(html.light-mode, body.light-mode) .team-designation {
  background: rgba(212, 175, 55, 0.14) !important;
  color: #997300 !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
}

:is(html.light-mode, body.light-mode) .team-contacts-bar {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

:is(html.light-mode, body.light-mode) .team-contact-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #475569 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

:is(html.light-mode, body.light-mode) .team-contact-btn:hover {
  background: var(--accent-gold) !important;
  color: #000 !important;
  border-color: var(--accent-gold) !important;
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.95rem;
    letter-spacing: 0;
  }

  .logo-img {
    height: 35px;
  }

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

  .container {
    width: 92%;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-img-wrap {
    height: 280px;
  }
}

/* --- Portfolio Action Buttons & Materials Badge --- */
.portfolio-action-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.materials-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(8px);
}

.materials-badge-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0a0a0c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* --- Project Materials & Specifications Modal --- */
.materials-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.materials-modal-box {
  background: linear-gradient(180deg, #181824 0%, #101016 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.15);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

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

.materials-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.materials-modal-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.materials-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.materials-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

.materials-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex-grow: 1;
}

.materials-project-summary {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.materials-project-img {
  width: 130px;
  height: 85px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.materials-project-info h4 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 6px 0;
}

.materials-project-meta {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.material-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.material-item-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.03);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.material-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.material-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.material-brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.material-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.material-specs {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.materials-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
  gap: 12px;
}

/* Light mode overrides for materials modal */
:is(html.light-mode, body.light-mode) .materials-modal-box {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2) !important;
}

:is(html.light-mode, body.light-mode) .materials-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  background: #f8fafc !important;
}

:is(html.light-mode, body.light-mode) .materials-modal-header h3 {
  color: #0f172a !important;
}

:is(html.light-mode, body.light-mode) .materials-modal-close {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #64748b !important;
}

:is(html.light-mode, body.light-mode) .materials-project-summary {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

:is(html.light-mode, body.light-mode) .materials-project-info h4 {
  color: #0f172a !important;
}

:is(html.light-mode, body.light-mode) .material-item-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

:is(html.light-mode, body.light-mode) .material-item-card:hover {
  border-color: var(--accent-gold) !important;
  background: #fffdf5 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

:is(html.light-mode, body.light-mode) .material-title {
  color: #0f172a !important;
}

:is(html.light-mode, body.light-mode) .material-specs {
  color: #475569 !important;
}

:is(html.light-mode, body.light-mode) .material-brand-tag {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

:is(html.light-mode, body.light-mode) .materials-modal-footer {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
  background: #f8fafc !important;
}

/* --- Trusted Brand & Material Partners Section (Homepage) --- */
.brands-section {
  padding: 85px 0;
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(14, 14, 20, 0.98) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.brands-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

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

@media (max-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }
}

.brand-partner-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.brand-partner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.brand-logo-frame {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.brand-partner-card:hover .brand-logo-frame {
  transform: scale(1.04);
}

.brand-logo-frame img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: contrast(105%);
}

.partner-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.brand-category-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.brand-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Light mode overrides for brand partners */
:is(html.light-mode, body.light-mode) .brands-section {
  background: #f8fafc !important;
}

:is(html.light-mode, body.light-mode) .brand-partner-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

:is(html.light-mode, body.light-mode) .brand-partner-card:hover {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.09), 0 0 20px rgba(212, 175, 55, 0.2) !important;
}

:is(html.light-mode, body.light-mode) .partner-brand-name {
  color: #0f172a !important;
}

:is(html.light-mode, body.light-mode) .brand-desc {
  color: #475569 !important;
}