/* ==========================================================================
   2EM İÇ MİMARLIK VE MOBİLYA - Design System & Custom CSS
   Luxury Architectural & Bespoke Furniture Aesthetic (Archidecors Inspired)
   ========================================================================== */

:root {
  --bg-dark: #09090b;
  --bg-card: #121215;
  --bg-card-hover: #1a1a1f;
  --bg-light: #f7f7f8;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dark: #18181b;
  --accent-gold: #c5a059;
  --accent-gold-hover: #d4af66;
  --accent-amber: #b45309;
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: rgba(0, 0, 0, 0.1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.bg-dark { background-color: var(--bg-dark); }
.bg-card { background-color: var(--bg-card); }
.bg-light { background-color: var(--bg-light); color: var(--text-dark); }

/* Typography */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Simple Modern Minimalist Ampersand */
.amp {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  color: var(--accent-gold);
  padding: 0 0.12em;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.hero .section-tag {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-tag::before {
  content: '';
  width: 2rem;
  height: 1px;
  background-color: var(--accent-gold);
}

.hero .section-tag::before {
  width: 2.2rem;
  height: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-title span {
  color: var(--text-muted);
  font-weight: 400;
}

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

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-fast);
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0.8), rgba(9, 9, 11, 0));
}

.site-header.scrolled {
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  z-index: 1001;
}

.brand-logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  transition: var(--transition-fast);
}

.site-header.scrolled .brand-logo img {
  height: 56px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-dark);
}

.lang-switch {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switch:hover {
  color: #fff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #fff;
  color: var(--text-dark);
  padding: 0.75rem 1.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: transparent;
  color: #fff;
  padding: 0.75rem 1.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,9,11,0.4) 0%, rgba(9,9,11,0.75) 70%, rgba(9,9,11,1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: block;
  max-width: 760px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.hero-motto {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 5.25rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

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

.hero-card {
  background: rgba(18, 18, 21, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  padding: 2rem;
  border-radius: 4px;
}

.hero-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Stats Counter Bar */
.stats-bar {
  background-color: #050507;
  border-y: 1px solid var(--border-dark);
  padding: 2.25rem 0;
}

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--border-dark);
  padding-right: 1rem;
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* Design Studio Section */
.design-studio {
  padding: 7rem 0;
  position: relative;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .studio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.studio-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.studio-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.studio-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.studio-feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.studio-image-box {
  position: relative;
}

.studio-img-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
  filter: brightness(0.9);
  transition: var(--transition-smooth);
}

.studio-img-badge {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 2rem;
  max-width: 280px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.projects-header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.project-filter-btn {
  background: rgba(18, 18, 21, 0.8);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  padding: 0.65rem 1.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.project-filter-btn:hover {
  border-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
}

.project-filter-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #09090b;
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.4);
}

/* Projects Section & 3x3 Grid Layout */
.projects-section {
  padding: 7rem 0;
  background-color: #0d0d10;
  border-top: 1px solid var(--border-dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Categorized Section Blocks (Puli Yapi Style) */
.project-section-block {
  margin-bottom: 3.5rem;
}

.project-section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-dark);
}

.project-section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-section-count {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(197, 160, 89, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

/* Puli Yapi Style Project Cards */
.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(9,9,11,0.96) 0%, rgba(9,9,11,0.7) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.3s ease;
  z-index: 5;
}

.project-cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.35;
}

.project-view-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  margin-top: 0.25rem;
}

.project-card:hover .project-view-badge {
  opacity: 1;
  transform: translateY(0);
  color: var(--accent-gold);
}

.project-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.project-thumb {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-overlay-icon {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.project-overlay-icon i {
  font-size: 2.2rem;
  color: var(--accent-gold);
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

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

.project-card:hover .project-overlay-icon i {
  transform: scale(1);
}

.project-tag-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  padding: 0.35rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 2px;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.project-info {
  padding: 1.75rem;
}

.project-title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.project-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  transition: var(--transition-fast);
}

.project-card:hover .project-link {
  color: #fff;
}

/* Products & Collection Tabs */
.collection-section {
  padding: 7rem 0;
  background-color: var(--bg-dark);
}

.tab-nav {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.75rem 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
  color: #fff;
}

.tab-btn.active::after {
  width: 100%;
}

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

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

.product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-body {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Process Section (Dark Luxury Aesthetic) */
section.process-section {
  padding: 7rem 0;
  background-color: var(--bg-dark) !important;
  color: var(--text-main) !important;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

section.process-section .section-title {
  color: #ffffff !important;
}

section.process-section .section-title span {
  color: var(--accent-gold) !important;
}

section.process-section .section-desc {
  color: var(--text-muted) !important;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 992px) {
  .process-grid {
    grid-template-columns: 0.4fr 0.6fr;
  }
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.process-step-item {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-dark) !important;
  border-radius: 4px;
  padding: 2.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.process-step-item:hover {
  border-color: var(--accent-gold) !important;
  transform: translateX(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1;
}

section.process-section .step-title {
  font-size: 1.2rem;
  color: #ffffff !important;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

section.process-section .step-desc {
  font-size: 0.92rem;
  color: var(--text-muted) !important;
  line-height: 1.65;
}

section.process-section .btn-primary {
  background-color: var(--accent-gold) !important;
  color: #ffffff !important;
  border-color: var(--accent-gold) !important;
}

section.process-section .btn-primary:hover {
  background-color: #a88344 !important;
  border-color: #a88344 !important;
  color: #ffffff !important;
}

/* References Section */
.references-section {
  padding: 6rem 0;
  background-color: var(--bg-dark);
  border-t: 1px solid var(--border-dark);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.ref-card {
  border: 1px solid var(--border-dark);
  padding: 2.5rem;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(18,18,21,0.6) 0%, rgba(9,9,11,0.9) 100%);
  transition: var(--transition-fast);
}

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

.ref-name {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.ref-sub {
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.ref-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Team Section */
.team-section {
  padding: 7rem 0;
  background-color: #f7f7f8;
  color: var(--text-dark);
}

.team-section .section-tag {
  color: var(--accent-amber);
}

.team-section .section-tag::before {
  background-color: var(--accent-amber);
}

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

.team-section .section-title span {
  color: #71717a;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition-fast);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.team-avatar {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: grayscale(80%);
  transition: var(--transition-smooth);
}

.team-card:hover .team-avatar {
  filter: grayscale(0%);
}

.team-info {
  padding: 1.75rem;
}

.team-name {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.team-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-amber);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.88rem;
  color: #52525b;
  line-height: 1.6;
}

/* Contact / Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  padding: 1.5rem;
}

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

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  width: 100%;
  max-width: 680px;
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: #fff;
}

/* Project Lightbox Modal & Carousel Styling */
.modal-content-project {
  max-width: 860px;
  padding: 2rem;
}

.modal-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}

.modal-project-title {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.modal-project-counter {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
  background: rgba(197, 160, 89, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  white-space: nowrap;
}

.modal-img-wrapper {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background-color: #000;
  user-select: none;
}

#modalProjectImg {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: opacity 0.25s ease;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(18, 18, 21, 0.85);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.modal-nav:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #09090b;
  box-shadow: 0 0 25px rgba(197, 160, 89, 0.7);
  transform: translateY(-50%) scale(1.12);
}

.modal-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.modal-prev {
  left: 1rem;
}

.modal-next {
  right: 1rem;
}

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

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: #09090b;
  border: 1px solid var(--border-dark);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

/* Footer */
.site-footer {
  background-color: #050507;
  border-t: 1px solid var(--border-dark);
  padding: 5rem 0 2rem;
  color: var(--text-muted);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 64px;
  background-color: var(--bg-card);
  border: 1px solid var(--accent-gold);
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: var(--transition-fast);
}

.footer-brand img:hover {
  border-color: var(--accent-gold-hover);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

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

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

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-bottom a:hover {
  transform: scale(1.18);
  color: var(--accent-gold-hover) !important;
}

.footer-brand-link {
  color: var(--accent-gold);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0 2px;
  display: inline-block;
}

.footer-brand-link:hover {
  color: #fff !important;
  text-shadow: 0 0 12px rgba(197, 160, 89, 0.8);
  transform: translateY(-1px) !important;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 380px;
    height: 100vh;
    background-color: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2.5rem;
    transition: right 0.4s ease;
    z-index: 999;
  }

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

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-actions {
    border-left: none;
    padding-left: 0;
    margin-top: 1.5rem;
  }
}

/* Comprehensive Mobile Responsiveness (< 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .site-header {
    padding: 0.75rem 0;
  }

  .brand-logo img {
    height: 48px;
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.3 !important;
  }

  .hero-desc {
    font-size: 0.95rem !important;
    margin-bottom: 1.75rem !important;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Section Padding & Headers */
  section {
    padding: 4rem 0 !important;
  }

  .section-title {
    font-size: 1.8rem !important;
  }

  .section-desc {
    font-size: 0.9rem !important;
  }

  /* Stats Bar */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem 1rem !important;
  }

  .stat-num {
    font-size: 2.1rem !important;
  }

  .stat-label {
    font-size: 0.75rem !important;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .project-thumb {
    height: 300px !important;
  }

  /* Factory Showcase Card Mobile */
  .factory-card {
    display: block !important;
  }

  .factory-img {
    height: auto !important;
    max-height: none !important;
  }

  .factory-overlay {
    display: none !important;
  }

  /* Studio & Process */
  .studio-grid,
  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .process-steps {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .process-step-item {
    padding: 1.5rem !important;
  }

  /* Team Grid */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .team-avatar {
    height: 320px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2.5rem !important;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 1.25rem;
  }

  /* Modals */
  .modal-content {
    padding: 1.5rem 1.25rem !important;
    width: 94% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .modal-nav {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }

  .modal-prev {
    left: 0.5rem !important;
  }

  .modal-next {
    right: 0.5rem !important;
  }

  #modalProjectImg {
    max-height: 320px !important;
  }
}

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

  .stats-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .brand-logo img {
    height: 42px;
  }
}
