/* ==========================================================================
   Industrial Grow Design - Main Stylesheet
   ========================================================================== */

:root, [data-theme="dark"] {
  --bg-primary: #0f1115;
  --bg-surface: #181b22;
  --bg-surface-elevated: #222630;
  --text-primary: #f0f2f5;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --heading-color: #ffffff;
  --nav-link-color: #f8fafc;
  --nav-link-hover: #ffffff;
  --accent: #ffda82;
  --accent-light: #ffda82;
  --accent-glow: rgba(255, 218, 130, 0.25);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --header-bg: rgba(15, 17, 21, 0.92);
  --mobile-drawer-bg: rgba(18, 20, 26, 0.97);
  --header-frosted: rgba(15, 17, 21, 0.28);
  --header-hero-border: rgba(255, 255, 255, 0.12);
  --header-hero-link-color: #ffffff;
  --header-hero-btn-bg: rgba(15, 17, 21, 0.4);
  --header-hero-btn-color: #ffffff;
  --header-hero-btn-border: rgba(255, 255, 255, 0.2);
  --hero-fade-base: 15, 17, 21;
  --hero-fade-top: rgba(15, 17, 21, 0.55);
  --hero-fade-top-subtle: rgba(15, 17, 21, 0.25);
  --hero-fade-clear: rgba(15, 17, 21, 0);
  --hero-fade-bottom: var(--bg-primary);
  --hero-title-color: #ffffff;
  --hero-title-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.95);
  --hero-breadcrumb-color: #d1d5db;
  --hero-breadcrumb-link: #ffffff;
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --brand-gradient: linear-gradient(135deg, #ffffff 40%, #ffda82);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --heading-color: #0f172a;
  --nav-link-color: #0f172a;
  --nav-link-hover: #c27803;
  --accent: #c27803;
  --accent-light: #d97706;
  --accent-glow: rgba(194, 120, 3, 0.18);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  --header-bg: rgba(248, 250, 252, 0.92);
  --mobile-drawer-bg: rgba(255, 255, 255, 0.97);
  --header-frosted: rgba(248, 250, 252, 0.4);
  --header-hero-border: rgba(0, 0, 0, 0.08);
  --header-hero-link-color: #0f172a;
  --header-hero-btn-bg: rgba(255, 255, 255, 0.65);
  --header-hero-btn-color: #0f172a;
  --header-hero-btn-border: rgba(0, 0, 0, 0.12);
  --hero-fade-base: 248, 250, 252;
  --hero-fade-top: rgba(248, 250, 252, 0.85);
  --hero-fade-top-subtle: rgba(248, 250, 252, 0.45);
  --hero-fade-clear: rgba(248, 250, 252, 0);
  --hero-fade-bottom: var(--bg-primary);
  --hero-title-color: #0f172a;
  --hero-title-shadow: 0 2px 16px rgba(255, 255, 255, 0.95), 0 1px 4px rgba(255, 255, 255, 0.9);
  --hero-breadcrumb-color: #475569;
  --hero-breadcrumb-link: #0f172a;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
  --brand-gradient: linear-gradient(135deg, #0f172a 40%, #c27803);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 800px;
}

.container.wide {
  max-width: 1440px;
}

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

/* ==========================================================================
   Typography & Links
   ========================================================================== */

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

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

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999999 !important;
  background-color: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition:
    background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  border-bottom-color: var(--border-hover);
}

[data-theme="light"] .site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 2px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-full-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.desktop-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-item a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nav-link-color);
  padding: 8px 0;
  position: relative;
  transition: color 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: var(--transition);
}

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

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

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

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition:
    background-color 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon-btn:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-light);
  color: var(--text-primary);
}

.social-svg {
  display: block;
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   Day / Night Theme Toggle Button
   ========================================================================== */

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background-color 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-light);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dark mode (Night) active: show Sun icon to switch to Day */
[data-theme="dark"] .moon-icon,
:root:not([data-theme="light"]) .moon-icon {
  display: none !important;
}

[data-theme="dark"] .sun-icon,
:root:not([data-theme="light"]) .sun-icon {
  display: inline-flex !important;
  color: #fbbf24; /* Warm sun gold */
}

/* Light mode (Day) active: show Moon icon to switch to Night */
[data-theme="light"] .sun-icon {
  display: none !important;
}

[data-theme="light"] .moon-icon {
  display: inline-flex !important;
  color: #4f46e5; /* Deep night indigo */
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.mobile-toggle:hover {
  background-color: var(--bg-surface-elevated);
}

.mobile-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
  transform-origin: center;
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay: fixed right beneath header, starting directly from top of screen */
.mobile-drawer {
  position: fixed;
  top: var(--header-offset, 72px);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - var(--header-offset, 72px));
  height: calc(100dvh - var(--header-offset, 72px));
  max-height: calc(100vh - var(--header-offset, 72px));
  max-height: calc(100dvh - var(--header-offset, 72px));
  z-index: 999998;
  background: var(--mobile-drawer-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  padding: 16px 20px 60px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

[data-theme="light"] .mobile-drawer {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Ensure header bar background becomes solid while mobile menu is open */
.site-header.menu-open,
.site-header:has(.mobile-drawer.open) {
  background-color: var(--header-bg) !important;
  border-bottom-color: var(--border-color) !important;
}

/* Body scroll lock when mobile menu is active */
body.mobile-menu-active {
  overflow: hidden !important;
  touch-action: none;
}

/* Mobile Drawer Content & Navigation */
.mobile-drawer-content {
  max-width: 680px;
  margin: 0 auto;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .mobile-nav-item {
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}

.mobile-nav-link {
  flex: 1;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--nav-link-color);
  padding: 13px 4px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

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

[data-theme="light"] .mobile-nav-link:hover,
[data-theme="light"] .mobile-nav-link.active {
  color: #c27803;
}

/* High-accessibility, large touch-target + / − toggle button */
.mobile-toggle-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  width: 54px;
  height: 50px;
  min-width: 54px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--nav-link-color);
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  padding: 0;
  margin: 0;
  touch-action: manipulation;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.mobile-toggle-btn:hover {
  color: var(--accent-light);
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-toggle-btn:active {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .mobile-toggle-btn:hover {
  color: #c27803;
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mobile-toggle-btn:active {
  background-color: rgba(0, 0, 0, 0.09);
}

.toggle-icon {
  display: inline-block;
  font-style: normal;
  pointer-events: none;
  line-height: 1;
}

/* Subnavigation (Level 1 Submenu) */
.mobile-subnav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-left: 2px solid rgba(255, 218, 130, 0.22);
  margin-left: 6px;
  margin-bottom: 6px;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

[data-theme="light"] .mobile-subnav-list {
  border-left-color: rgba(194, 120, 3, 0.25);
}

.has-subitems.is-open > .mobile-subnav-list {
  max-height: 1400px;
  opacity: 1;
}

.mobile-subnav-list > li {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .mobile-subnav-list > li {
  border-top-color: rgba(0, 0, 0, 0.04);
}

.mobile-subnav-list > li > a {
  display: flex;
  align-items: center;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.35px;
  color: var(--text-secondary);
  padding: 10px 4px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-subnav-list > li > a:hover,
.mobile-subnav-list > li > a.active {
  color: var(--accent-light);
  padding-left: 6px;
}

[data-theme="light"] .mobile-subnav-list > li > a:hover,
[data-theme="light"] .mobile-subnav-list > li > a.active {
  color: #c27803;
}

/* Nested Submenu (Level 2 Submenu: Interior designs & Residential houses) */
.mobile-subnav-item .nested-row {
  min-height: 44px;
}

.mobile-subnav-item .mobile-subnav-link {
  flex: 1;
  display: flex;
  align-items: center;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.35px;
  color: var(--text-secondary);
  padding: 10px 4px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-subnav-item .mobile-subnav-link:hover,
.mobile-subnav-item .mobile-subnav-link.active {
  color: var(--accent-light);
  padding-left: 6px;
}

[data-theme="light"] .mobile-subnav-item .mobile-subnav-link:hover,
[data-theme="light"] .mobile-subnav-item .mobile-subnav-link.active {
  color: #c27803;
}

.nested-toggle {
  width: 50px;
  height: 44px;
  min-width: 50px;
  min-height: 44px;
  font-size: 1.35rem;
}

.mobile-subsubnav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 6px 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-left: 1.5px solid rgba(255, 255, 255, 0.1);
  margin-left: 8px;
  margin-bottom: 6px;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

[data-theme="light"] .mobile-subsubnav-list {
  border-left-color: rgba(0, 0, 0, 0.12);
}

.has-nested-subitems.is-open > .mobile-subsubnav-list {
  max-height: 600px;
  opacity: 1;
}

.mobile-subsubnav-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .mobile-subsubnav-list li {
  border-top-color: rgba(0, 0, 0, 0.03);
}

.mobile-subsubnav-list li a {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 8px 4px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-subsubnav-list li a:hover,
.mobile-subsubnav-list li a.active {
  color: var(--accent-light);
  padding-left: 6px;
}

[data-theme="light"] .mobile-subsubnav-list li a:hover,
[data-theme="light"] .mobile-subsubnav-list li a.active {
  color: #c27803;
}

/* Mobile Social Bar */
.mobile-social-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 24px 4px 16px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .mobile-social-bar {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.mobile-social-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-social-bar a:hover {
  color: var(--accent-light);
}

[data-theme="light"] .mobile-social-bar a:hover {
  color: #c27803;
}

/* ==========================================================================
   Hero & Page Headers
   ========================================================================== */

.hero-title,
.page-title,
.section-title {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  line-height: 1.25;
  color: var(--heading-color);
}

.hero-section {
  padding: 70px 0 50px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

.page-header-section {
  padding: 60px 0 40px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
}

/* ==========================================================================
   Projects Grid & Cards
   ========================================================================== */

:root {
  --grid-gap: 32px;
  --header-offset: 72px;
  --header-height: 72px;
}

@media (max-width: 768px) {
  :root {
    --grid-gap: 24px;
    --header-offset: 72px;
    --header-height: 72px;
  }
}

/* Category Hero Header & Snippet */
.category-hero-section {
  padding-top: calc(var(--header-offset) + 36px);
  padding-bottom: 32px;
}

.category-hero-section.no-snippet {
  padding-top: calc(var(--header-offset) + 36px);
  padding-bottom: 32px;
}

.category-hero-content {
  max-width: 960px;
}

.category-hero-title {
  font-family: 'Montserrat', var(--font-heading), -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--heading-color);
  line-height: 1.25;
  margin: 0 0 16px;
}

.category-hero-section.no-snippet .category-hero-title {
  margin-bottom: 0;
}

.category-hero-snippet {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

[data-theme="light"] .category-hero-snippet {
  color: #475569;
}

@media (max-width: 768px) {
  .category-hero-section,
  .category-hero-section.no-snippet {
    padding-top: calc(var(--header-offset) + 24px);
    padding-bottom: 24px;
  }

  .category-hero-title {
    font-size: 1.35rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }
}

/* Portfolio & Category Grid Pages: padding between header and 1st row equals gap between items */
.portfolio-section,
.category-portfolio-section {
  padding-top: calc(var(--header-offset) + var(--grid-gap));
  padding-bottom: 80px;
}

.portfolio-section .card-meta {
  display: none !important;
}

.category-hero-section + .category-portfolio-section {
  padding-top: 0 !important;
}

.category-portfolio-section .container,
.portfolio-section .container {
  max-width: 1440px;
}

.home-hero-section,
.team-hero-section {
  padding-top: calc(var(--header-offset) + 36px);
}

.home-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.projects-section {
  padding: 30px 0 80px;
}

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

.project-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 218, 130, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .project-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(194, 120, 3, 0.4);
}

.project-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-surface-elevated);
}

.card-thumb-wrap .project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb {
  transform: scale(1.05);
}

/* Card Hover Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 25, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

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

.view-project-pill {
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.project-card:hover .view-project-pill {
  transform: translateY(0);
}

/* Media Indicators */
.card-media-indicators {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.media-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.video-indicator {
  color: #ffda82;
}

/* Text Padding in Project Card Body */
.card-content {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.category-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffda82;
}

[data-theme="light"] .category-badge {
  color: #c27803;
}

.region-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

[data-theme="light"] .region-badge {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--heading-color);
  margin: 0;
  text-transform: none;
  transition: color 0.2s ease;
}

.project-card:hover .card-title {
  color: #ffda82;
}

[data-theme="light"] .project-card:hover .card-title {
  color: #c27803;
}

.project-card-body {
  padding: 22px 24px 26px;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--heading-color);
  transition: color 0.25s ease;
}

.project-card:hover .project-title {
  color: #ffda82;
}

[data-theme="light"] .project-card:hover .project-title {
  color: #c27803;
}

.project-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.read-more {
  display: inline-block;
  color: #ffda82;
  font-weight: 600;
  font-size: 0.9rem;
}

[data-theme="light"] .read-more {
  color: #c27803;
}

/* ==========================================================================
   ME & PARTNERS (Team)
   ========================================================================== */

.team-section,
.team-members-section {
  padding: 20px 0 80px;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 880px;
  margin: 0 auto;
}

.team-card {
  display: flex;
  gap: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  align-items: center;
}

.team-avatar-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-color, rgba(255, 255, 255, 0.15));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  background: var(--bg-surface-elevated, #1a1a1a);
}

.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light, #ffd700);
  background: var(--bg-surface-elevated, #222);
}

.team-name {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent-light);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Revit & 3D Model Viewers
   ========================================================================== */

.revit-section, .configurator-section {
  padding: 30px 0 80px;
}

.revit-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.revit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 28px;
}

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

.model-viewer-frame {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.model-viewer-frame iframe {
  border: none;
  display: block;
}

/* Project Video Walkthrough / Fly-Through */
.project-video-container {
  width: 100%;
  max-width: 800px;
  margin: 32px auto 44px auto;
  padding: 0 24px;
}

.project-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
}

.project-video-frame:last-child {
  margin-bottom: 0;
}

.project-video-frame iframe,
.project-video-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.revit-body {
  color: var(--text-secondary);
  font-size: 1rem;
}

.revit-footer {
  margin-top: 14px;
}

/* ==========================================================================
   Project Detail View
   ========================================================================== */

/* ==========================================================================
   Project Detail View & 50vh Parallax Hero
   ========================================================================== */

/* Frosted Glass Blur Header on Hero Pages (at top / unscrolled) & during Transition to/from Hero */
body.has-hero-banner .site-header:not(.is-scrolled),
body.transitioning-to-hero .site-header,
body.transitioning-from-hero .site-header,
.site-wrapper:has(.project-parallax-hero) .site-header:not(.is-scrolled) {
  background-color: var(--header-frosted);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--header-hero-border);
}

body.has-hero-banner .site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  margin-bottom: -72px;
  z-index: 999999 !important;
  transition:
    background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.has-hero-banner .site-header:not(.is-scrolled) .nav-item a,
body.transitioning-to-hero .nav-item a,
body.transitioning-from-hero .nav-item a {
  color: var(--header-hero-link-color);
}

body.has-hero-banner .site-header:not(.is-scrolled) .social-icon-btn,
body.transitioning-to-hero .social-icon-btn,
body.transitioning-from-hero .social-icon-btn,
body.has-hero-banner .site-header:not(.is-scrolled) .theme-toggle-btn,
body.transitioning-to-hero .theme-toggle-btn,
body.transitioning-from-hero .theme-toggle-btn {
  background-color: var(--header-hero-btn-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--header-hero-btn-color);
  border-color: var(--header-hero-btn-border);
}

/* Scrolled Sticky Header on Hero Pages */
body.has-hero-banner .site-header.is-scrolled {
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] body.has-hero-banner .site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-detail-article {
  padding-bottom: 60px;
  position: relative;
  overflow-x: hidden;
}

.project-parallax-hero {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  max-height: 580px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: 80px;
  padding-bottom: 50px;
  margin-bottom: 40px;
  background-color: var(--bg-primary);
  box-shadow: none;
}

[data-theme="light"] .project-parallax-hero {
  background-color: var(--bg-primary);
  box-shadow: none;
}

.parallax-bg-layer {
  position: absolute;
  top: -12.5%;
  left: 0;
  width: 100%;
  height: 125%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.parallax-bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  /* Top soft fade behind frosted menu bar, clear in middle, bottom fade into exact page background color */
  background: linear-gradient(
    180deg,
    var(--hero-fade-top) 0%,
    var(--hero-fade-top-subtle) 80px,
    var(--hero-fade-clear) 140px,
    var(--hero-fade-clear) 45%,
    rgba(var(--hero-fade-base), 0.6) 75%,
    rgba(var(--hero-fade-base), 0.9) 90%,
    var(--hero-fade-bottom) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.parallax-content {
  position: relative;
  z-index: 2;
  width: 100%;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0 24px;
}

.parallax-content .breadcrumb {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hero-breadcrumb-color);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  animation: heroBreadcrumbReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.parallax-content .breadcrumb a.project-back-link {
  color: var(--hero-breadcrumb-link);
  font-weight: 500;
  letter-spacing: 1.5px;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.82;
}

.parallax-content .breadcrumb a.project-back-link:hover {
  color: var(--accent);
  opacity: 1;
}

.parallax-content .breadcrumb .breadcrumb-separator {
  opacity: 0.5;
  font-weight: 400;
  padding: 0 2px;
}

.parallax-content .breadcrumb .breadcrumb-slug,
.parallax-content .breadcrumb span:not(.breadcrumb-separator) {
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--hero-title-color);
}

.project-hero-meta {
  margin-bottom: 12px;
}

.project-hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #0b0f19;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 218, 130, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: heroBadgeReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

[data-theme="light"] .project-hero-badge {
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(194, 120, 3, 0.25);
}

.project-tag-pill,
.project-date-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  margin-left: 6px;
  vertical-align: middle;
}

[data-theme="light"] .project-tag-pill,
[data-theme="light"] .project-date-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

.project-hero-title {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--hero-title-color);
  line-height: 1.25;
  text-shadow: var(--hero-title-shadow);
  width: 100%;
  max-width: 100%;
  margin: 0;
  animation: heroTitleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
  animation: heroTitleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

@keyframes heroBreadcrumbReveal {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBadgeReveal {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
    letter-spacing: 5px;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 3.5px;
  }
}

/* ==========================================================================
   Rollout from Behind Background
   ========================================================================== */

.project-rollout-container {
  position: relative;
  z-index: 5;
  will-change: transform, opacity, clip-path;
  animation: rolloutFromHero 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

@keyframes rolloutFromHero {
  0% {
    opacity: 0;
    transform: translateY(-80px);
    clip-path: inset(0 0 100% 0);
  }
  35% {
    opacity: 0.65;
    clip-path: inset(0 0 35% 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0% 0);
  }
}

.project-rollout-container .model-container,
.project-rollout-container .project-video-container {
  animation: rolloutItemFade 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.project-rollout-container .project-description p {
  animation: rolloutItemFade 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-rollout-container .project-description p:nth-child(1) { animation-delay: 0.38s; }
.project-rollout-container .project-description p:nth-child(2) { animation-delay: 0.48s; }
.project-rollout-container .project-description p:nth-child(3) { animation-delay: 0.58s; }
.project-rollout-container .project-description p:nth-child(4) { animation-delay: 0.68s; }
.project-rollout-container .project-description p:nth-child(n+5) { animation-delay: 0.78s; }

@keyframes rolloutItemFade {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-content {
  margin-top: 36px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.project-content p {
  margin-bottom: 20px;
}

.project-description-section {
  padding: 30px 0 16px;
}

.project-text-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.project-text-content p {
  margin: 0;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .project-text-content p {
  color: rgba(15, 23, 42, 0.88);
}

/* ==========================================================================
   Interactive 3D BIM Model Iframe Embed
   ========================================================================== */
.project-interactive-model-container {
  margin-top: 28px;
  margin-bottom: 24px;
  width: 100%;
}

.interactive-model-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ffda82;
  background: rgba(255, 218, 130, 0.1);
  border: 1px solid rgba(255, 218, 130, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
}

[data-theme="light"] .model-badge {
  color: #c27803;
  background: rgba(194, 120, 3, 0.08);
  border-color: rgba(194, 120, 3, 0.22);
}

.model-hint {
  font-size: 0.83rem;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.25px;
}

.interactive-model-wrapper {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #0b0f17;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .interactive-model-wrapper {
  background: #f8fafc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.interactive-model-iframe {
  width: 100%;
  height: 580px;
  display: block;
  border: none;
  background: transparent;
}

@media (max-width: 768px) {
  .interactive-model-iframe {
    height: 440px;
  }
  .interactive-model-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .interactive-model-iframe {
    height: 360px;
  }
}

.related-section,
.related-projects-section {
  padding: 40px 0 80px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

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

.form-row {
  display: flex;
  gap: 20px;
}

.form-group.half {
  flex: 1;
}

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

.form-group label .required {
  color: #ef5350;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

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

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

.btn-outline:hover {
  border-color: var(--accent-light);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-top: 16px;
}

.form-feedback.success {
  background: rgba(46, 125, 50, 0.2);
  color: #81c784;
  border: 1px solid #2e7d32;
}

.form-feedback.error {
  background: rgba(211, 47, 47, 0.2);
  color: #e57373;
  border: 1px solid #d32f2f;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 32px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-bar .copyright {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

.footer-bottom-bar .credits {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .desktop-nav, .header-social {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    margin-right: 8px;
  }

  .mobile-toggle {
    display: flex;
  }

  .brand-full-text {
    display: none;
  }

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

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

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
}

@media (min-width: 901px) {
  .mobile-drawer {
    display: none !important;
  }
}

/* ==========================================================================
   Project Transitions: Gallery <-> Hero Two-Way Animation
   ========================================================================== */

.project-transition-clone {
  position: fixed;
  z-index: 9000;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  overflow: hidden;
  will-change: top, left, width, height, border-radius;
  transition:
    top 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-transition-clone.expanding {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 50vh !important;
  min-height: 400px;
  max-height: 580px;
  border-radius: 0 !important;
  box-shadow: none !important;
}

[data-theme="light"] .project-transition-clone {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .project-transition-clone.expanding,
[data-theme="light"] .project-transition-clone.reverse {
  box-shadow: none !important;
}

.project-transition-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--hero-fade-top) 0%,
    var(--hero-fade-top-subtle) 80px,
    var(--hero-fade-clear) 140px,
    var(--hero-fade-clear) 45%,
    rgba(var(--hero-fade-base), 0.6) 75%,
    rgba(var(--hero-fade-base), 0.9) 90%,
    var(--hero-fade-bottom) 100%
  );
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-transition-clone.expanding .project-transition-overlay {
  opacity: 1;
}

/* Reverse transition: Hero to Gallery Card */
.project-transition-clone.reverse {
  border-radius: 0 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

.project-transition-clone.reverse .project-transition-overlay {
  opacity: 1;
}

.project-transition-clone.reverse.shrinking .project-transition-overlay {
  opacity: 0;
}

/* Roll-back animation when leaving project page */
.project-rollout-container.rolling-back {
  animation: rollBackToHero 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes rollBackToHero {
  0% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0% 0);
  }
  100% {
    opacity: 0;
    transform: translateY(-70px);
    clip-path: inset(0 0 100% 0);
  }
}

.parallax-content.fading-out {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
  transition: opacity 0.22s ease, transform 0.22s ease !important;
}

.gallery-entering {
  animation: galleryEnterFade 0.38s ease both;
}

@keyframes galleryEnterFade {
  0% {
    opacity: 0.75;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-bg-image,
  .project-rollout-container,
  .project-rollout-container .model-container,
  .project-rollout-container .project-video-container,
  .project-rollout-container .project-description p,
  .project-hero-badge,
  .project-hero-title,
  .parallax-content .breadcrumb {
    animation: none !important;
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }
  .project-transition-clone {
    transition: none !important;
  }
}

/* ==========================================================================
   Project Photo Gallery & Lightbox
   ========================================================================== */

.project-gallery-section {
  margin-top: 60px;
  margin-bottom: 56px;
}

.project-gallery-section .section-subtitle,
.gallery-heading {
  margin-bottom: 18px;
}

.project-gallery-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.project-gallery-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.project-gallery-grid {
  columns: 3 320px;
  column-gap: 20px;
}

@media (max-width: 900px) {
  .project-gallery-grid {
    columns: 2 240px;
    column-gap: 14px;
  }
}

@media (max-width: 520px) {
  .project-gallery-grid {
    columns: 1;
    column-gap: 0;
  }
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface-elevated, #161616);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  break-inside: avoid;
  margin-bottom: 20px;
  display: block;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
  outline: none;
}

.gallery-thumb-wrap,
.gallery-img-wrap {
  width: 100%;
  position: relative;
  display: block;
}

.gallery-thumb-wrap img,
.gallery-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-thumb-wrap img,
.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.025);
}

.gallery-overlay,
.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay,
.gallery-item:hover .gallery-hover-overlay,
.gallery-item:focus-visible .gallery-hover-overlay {
  opacity: 1;
}

.gallery-expand-icon,
.expand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-expand-icon,
.gallery-item:hover .expand-icon {
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   Fullscreen Lightbox Modal
   -------------------------------------------------------------------------- */

.igd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  user-select: none;
  touch-action: pan-y;
}

.igd-lightbox.active {
  opacity: 1;
  visibility: visible;
}

body.lightbox-open {
  overflow: hidden !important;
  touch-action: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-stage {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-image {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  pointer-events: auto;
}

.lightbox-image.is-loaded {
  transform: scale(1);
  opacity: 1;
}

/* Spinner while loading photo */
.lightbox-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: #ffda82;
  border-radius: 50%;
  animation: lightboxSpin 0.7s linear infinite;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox-stage.is-loading .lightbox-spinner {
  opacity: 1;
  visibility: visible;
}

@keyframes lightboxSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.lightbox-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Lightbox Navigation & Close Buttons */
.lightbox-btn {
  position: absolute;
  z-index: 10;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Close Button: Pure White Cross */
.lightbox-close {
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 38px;
  line-height: 1;
  font-family: inherit;
  font-weight: 300;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

/* Prev / Next Arrows */
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .lightbox-image {
    max-width: 94vw;
    max-height: 75vh;
  }
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 32px;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}


/* ==========================================================================
   DROPDOWN & SUB-DROPDOWN NAVIGATION (ZERO-GAP HOVER & HIGHEST Z-INDEX)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999 !important;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 44px;
    max-width: 130px;
  }
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.04);
  opacity: 0.95;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-amp {
  color: #ffda82;
}

.desktop-nav {
  height: 72px;
}

.desktop-nav .nav-list {
  display: flex;
  align-items: stretch;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.desktop-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.desktop-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active,
.has-dropdown:hover > .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .desktop-nav .nav-link {
  color: #1e293b;
}

[data-theme="light"] .desktop-nav .nav-link:hover,
[data-theme="light"] .desktop-nav .nav-link.active,
[data-theme="light"] .has-dropdown:hover > .nav-link {
  color: #c27803;
  background: rgba(194, 120, 3, 0.08);
}

.nav-arrow {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s, opacity 0.2s;
}

[data-theme="light"] .nav-arrow {
  color: #64748b;
}

.has-dropdown:hover > .nav-link .nav-arrow {
  opacity: 1;
  transform: rotate(180deg);
  color: #ffda82;
}

[data-theme="light"] .has-dropdown:hover > .nav-link .nav-arrow {
  color: #c27803;
}

/* Primary Dropdown Menu (Flush with header, zero gap, semitransparent & blurred) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, visibility 0.2s 0.12s;
  pointer-events: none;
  z-index: 1000000 !important;
}

/* Invisible bridge above dropdown so cursor moving slowly NEVER drops hover */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 18px;
  background: transparent;
}

.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.dropdown-menu li {
  position: relative;
  list-style: none;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu li a:hover,
.has-subdropdown:hover > .subdropdown-trigger {
  background: rgba(255, 218, 130, 0.12);
  color: #ffda82;
}

/* Nested Sub-Dropdown Menu (Flyout to the right) */
.has-subdropdown {
  position: relative;
}

.subdropdown-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sub-arrow {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 14px;
  transition: transform 0.2s, opacity 0.2s, color 0.2s;
}

.has-subdropdown:hover > .subdropdown-trigger .sub-arrow {
  opacity: 1;
  transform: translateX(3px);
  color: #ffda82;
}

.sub-dropdown-menu {
  position: absolute;
  top: -6px;
  left: 100%;
  min-width: 270px;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, visibility 0.2s 0.12s;
  pointer-events: none;
  z-index: 1000005 !important;
}

/* Invisible bridge to the left of the flyout menu so moving slowly diagonally NEVER drops hover */
.sub-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -20px;
  width: 25px;
  bottom: -10px;
  background: transparent;
}

.has-subdropdown:hover > .sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.sub-dropdown-menu li {
  list-style: none;
}

.sub-dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.sub-dropdown-menu li a:hover {
  background: rgba(255, 218, 130, 0.12);
  color: #ffda82;
}

/* Light Theme Dropdown Blurring */
[data-theme="light"] .dropdown-menu,
[data-theme="light"] .sub-dropdown-menu {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .dropdown-menu li a,
[data-theme="light"] .sub-dropdown-menu li a {
  color: #1e293b;
}

[data-theme="light"] .dropdown-menu li a:hover,
[data-theme="light"] .sub-dropdown-menu li a:hover,
[data-theme="light"] .has-subdropdown:hover > .subdropdown-trigger {
  background: rgba(194, 120, 3, 0.10);
  color: #c27803;
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.search-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 218, 130, 0.45);
}

[data-theme="light"] .search-trigger-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #475569;
}

[data-theme="light"] .search-trigger-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
  border-color: rgba(194, 120, 3, 0.4);
}

.search-key-hint {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #cbd5e1;
}

[data-theme="light"] .search-key-hint {
  background: rgba(0, 0, 0, 0.06);
  color: #475569;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-socials a {
  color: #94a3b8;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  transition: color 0.2s, background 0.2s;
}

.header-socials a:hover {
  color: #ffda82;
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .header-socials a {
  color: #64748b;
}

[data-theme="light"] .header-socials a:hover {
  color: #c27803;
  background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}

[data-theme="light"] .mobile-menu-btn span {
  background: #1e293b;
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header-socials {
    display: none !important;
  }
}

/* ==========================================================================
   REAL-TIME SEARCH & MULTI-FILTER MODAL WINDOW
   ========================================================================== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.search-modal-box {
  position: relative;
  z-index: 2;
  background: #151b28;
  border: 1px solid #283347;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.search-header-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #232d42;
  background: #111622;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.search-input-icon {
  color: #ffda82;
  flex-shrink: 0;
}

[data-theme="light"] .search-input-icon {
  color: #c27803;
}

#liveSearchInput {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 17px;
  outline: none;
  font-family: inherit;
}

.clear-search-btn, .close-search-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.clear-search-btn:hover, .close-search-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.search-filters-bar {
  display: flex;
  gap: 16px;
  padding: 12px 20px;
  background: #171f2e;
  border-bottom: 1px solid #232d42;
}

.filter-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.filter-col label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.filter-select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  background: #0b0f19;
  border: 1px solid #283347;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.search-results-area {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.search-results-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.search-result-item:hover, .search-result-item.selected {
  background: rgba(255, 218, 130, 0.08);
  border-color: rgba(255, 218, 130, 0.3);
}

[data-theme="light"] .search-result-item:hover,
[data-theme="light"] .search-result-item.selected {
  background: rgba(194, 120, 3, 0.08);
  border-color: rgba(194, 120, 3, 0.3);
}

.search-item-thumb {
  width: 60px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.search-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item-info {
  flex: 1;
}

.search-item-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.search-item-badges {
  display: flex;
  gap: 6px;
}

.search-cat-badge {
  font-size: 11px;
  background: rgba(255, 218, 130, 0.12);
  color: #ffda82;
  padding: 2px 6px;
  border-radius: 4px;
}

[data-theme="light"] .search-cat-badge {
  background: rgba(194, 120, 3, 0.1);
  color: #c27803;
}

.search-tag-badge {
  font-size: 11px;
  background: #1e293b;
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 4px;
}

.search-item-arrow {
  color: #64748b;
  font-size: 16px;
}

/* ==========================================================================
   STRICT 16:9 VIDEO PRESENTATION (Desktop & Mobile)
   ========================================================================== */
.project-video-section {
  margin: 48px 0 64px 0;
}

.project-video-grid {
  display: flex;
  flex-direction: column;
  gap: 42px;
  margin-top: 24px;
}

.video-wrapper-16-9 {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper-16-9 iframe,
.video-wrapper-16-9 video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .project-video-section {
    margin: 32px 0 44px 0;
  }
  .project-video-grid {
    gap: 28px;
    margin-top: 18px;
  }
}

/* ==========================================================================
   CATEGORY PILLS (Homepage Filter)
   ========================================================================== */
.category-pills-wrapper {
  margin: 20px 0 35px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-pill {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.category-pill.active {
  background: #ffda82;
  color: #0b0f19;
  border-color: #ffda82;
  font-weight: 700;
}

[data-theme="light"] .category-pill.active {
  background: #c27803;
  color: #ffffff;
  border-color: #c27803;
}

/* ==========================================================================
   ADMIN TOP BAR & DIRECT EDIT BUTTON (VISIBLE ONLY FOR LOGGED-IN ADMIN)
   ========================================================================== */
.admin-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  background-color: #12161f;
  border-bottom: 1px solid rgba(255, 218, 130, 0.35);
  z-index: 10000000;
  display: flex;
  align-items: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.admin-top-bar-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-top-bar-left,
.admin-top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-bar-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #94a3b8;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.admin-bar-brand:hover {
  color: #fff;
}

.admin-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  display: inline-block;
}

.admin-top-btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffda82;
  color: #12161f !important;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 12px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(255, 218, 130, 0.3);
  transition: all 0.2s ease;
}

.admin-top-btn-edit:hover {
  background-color: #ffe6a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 218, 130, 0.45);
}

.admin-external-icon {
  opacity: 0.7;
}

.admin-bar-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.admin-bar-link:hover {
  color: #ffda82;
}

.admin-logout-link {
  color: #f87171;
  margin-left: 6px;
}

.admin-logout-link:hover {
  color: #ef4444;
}

/* Adjust header and body offset when admin bar is present */
body.is-admin-logged-in {
  padding-top: 34px !important;
}

body.is-admin-logged-in .site-header {
  top: 34px !important;
}

body.is-admin-logged-in .mobile-drawer {
  top: calc(var(--header-offset, 72px) + 34px) !important;
  height: calc(100vh - var(--header-offset, 72px) - 34px) !important;
  height: calc(100dvh - var(--header-offset, 72px) - 34px) !important;
  max-height: calc(100vh - var(--header-offset, 72px) - 34px) !important;
  max-height: calc(100dvh - var(--header-offset, 72px) - 34px) !important;
}

/* Project detail breadcrumb admin edit link */
.breadcrumb-admin-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  background: rgba(255, 218, 130, 0.15);
  color: #ffda82 !important;
  border: 1px solid rgba(255, 218, 130, 0.35);
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.breadcrumb-admin-edit:hover {
  background: rgba(255, 218, 130, 0.3);
  border-color: #ffda82;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .admin-bar-link {
    display: none;
  }
  .admin-top-bar-inner {
    padding: 0 12px;
  }
}

/* ==========================================================================
   3D Configurator Dedicated Page Styles
   ========================================================================== */

.configurator-page-header {
  padding-top: calc(var(--header-offset) + 24px);
  padding-bottom: 20px;
}

.configurator-page-header .breadcrumb {
  margin-bottom: 14px;
}

.configurator-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.configurator-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--heading-color);
  margin: 6px 0 0;
  letter-spacing: -0.5px;
}

.configurator-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.configurator-stage-section {
  padding: 0 0 40px;
}

.configurator-stage-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 720px;
  max-height: 960px;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.configurator-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.configurator-notes-section {
  padding: 10px 0 60px;
}

.configurator-notes-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 36px;
}

.configurator-notes-card .notes-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 12px;
}

@media (max-width: 992px) {
  .configurator-stage-wrapper {
    height: 600px;
    min-height: 520px;
  }
}

@media (max-width: 768px) {
  .configurator-stage-wrapper {
    height: 480px;
    min-height: 420px;
    border-radius: 6px;
  }
}
