/* =========================================
   Modern Design - Main Stylesheet
   ========================================= */



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

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --primary: #1a1a1a;
  --primary-fg: #f8f8f8;
  --secondary: #f5f5f5;
  --muted: #737373;
  --border: #e5e5e5;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); }

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

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color var(--transition), opacity var(--transition);
}
.navbar.scrolled .navbar-logo { color: var(--primary); }
.navbar-logo:hover { opacity: 0.75; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
}
.navbar.scrolled .navbar-links a { color: rgba(26,26,26,0.8); }
.navbar-links a:hover { color: #fff; }
.navbar.scrolled .navbar-links a:hover { color: var(--primary); }
.navbar-links a.active {
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.navbar-Contact-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #fff;
  color: #fff;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.navbar.scrolled .navbar-Contact-btn {
  border-color: var(--primary);
  color: var(--primary);
}
.navbar-Contact-btn:hover {
  background: #fff;
  color: var(--primary);
}
.navbar.scrolled .navbar-Contact-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--primary); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); }
.mobile-menu-Contact {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 8px;
  transition: opacity var(--transition);
}
.mobile-menu-Contact:hover { opacity: 0.85; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.30);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.125rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  padding: 16px 32px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 14px 28px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Arrow icon SVG inline */
.icon-arrow {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* =========================================
   INTRO SECTION
   ========================================= */
.intro-section {
  padding: 96px 0;
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.divider {
  width: 64px;
  height: 3px;
  background: var(--primary);
  margin-bottom: 32px;
}

.intro-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.intro-image {
  height: 500px;
  overflow: hidden;
}
.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.7s ease;
}
.intro-image img:hover { filter: grayscale(0%); }

/* =========================================
   FEATURED PROJECTS
   ========================================= */
.featured-section {
  padding: 96px 0;
  background: var(--secondary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.section-header p { color: var(--muted); }

.link-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 4px;
  transition: opacity var(--transition);
}
.link-all:hover { opacity: 0.6; }

.projects-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  cursor: pointer;
}

.project-card-thumb {
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 24px;
  position: relative;
}
.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.project-card:hover .project-card-thumb img { transform: scale(1.05); }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.project-card:hover .project-card-overlay { background: rgba(0,0,0,0.20); }
.project-card-overlay span {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #fff;
  padding: 8px 16px;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-card-overlay span { opacity: 1; }

.project-card h3 {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  margin-bottom: 4px;
}
.project-card-cat {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-card-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================
   EXPERTISE SECTION
   ========================================= */
.expertise-section {
  padding: 96px 0;
  background: var(--primary);
  color: #fff;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.expertise-left h2 {
  font-size: 2.5rem;
  margin-bottom: 32px;
}
.expertise-left p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 400px;
  line-height: 1.8;
}

.expertise-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.expertise-card {
  display: block;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
  cursor: pointer;
}
.expertise-card:hover { background: rgba(255,255,255,0.05); }

.expertise-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #fff;
}
.expertise-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.expertise-card .explore-link {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--transition), transform var(--transition);
}
.expertise-card:hover .explore-link { opacity: 1; transform: translateX(0); }

/* =========================================
   CATEGORY HERO
   ========================================= */
.cat-hero {
  position: relative;
  height: 60vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.40);
  z-index: 1;
}
.cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.cat-hero-content h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: capitalize;
}
.cat-hero-content p {
  font-size: 1.125rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}

/* =========================================
   PROJECTS GRID (2 col)
   ========================================= */
.projects-section {
  padding: 96px 0;
}

.projects-grid-2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 320px));
  justify-content: center;
  gap: 24px;
}

.project-card-2 {
  width: 100%;
  cursor: pointer;
}
.project-card-2-thumb {
  overflow: hidden;
  aspect-ratio: 5/4;
  margin-bottom: 14px;
  position: relative;
}
.project-card-2-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.project-card-2:hover .project-card-2-thumb img { transform: scale(1.05); }
.project-card-2-thumb .project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.project-card-2:hover .project-card-2-thumb .project-card-overlay { background: rgba(0,0,0,0.20); }
.project-card-2:hover .project-card-overlay span { opacity: 1; }

.project-card-2-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.project-card-2-info h3 { font-size: 1.08rem; }
.project-card-2-info span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-card-2 p {
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 1200px) {
  .projects-grid-2 {
    grid-template-columns: repeat(2, minmax(240px, 360px));
    gap: 22px;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-size: 1.125rem;
}

/* =========================================
   EXTRA / MAP SECTION
   ========================================= */
.map-section {
  padding: 96px 0;
  background: var(--secondary);
}
.map-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 48px;
}
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.map-info {
  background: #fff;
  padding: 40px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.map-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.map-info-item:last-child { margin-bottom: 0; }
.map-icon {
  width: 24px; height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}
.map-info-item h4 {
  font-size: 1.125rem;
  margin-bottom: 4px;
  font-family: var(--font-serif);
}
.map-info-item p { color: var(--muted); }
.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--border);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.map-placeholder svg {
  width: 48px; height: 48px;
  opacity: 0.2;
  margin-bottom: 16px;
}

/* =========================================
   Contact PAGE
   ========================================= */
.Contact-hero {
  position: relative;
  height: 50vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
}
.Contact-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.Contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
  z-index: 1;
}
.Contact-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.Contact-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.Contact-hero-content p {
  font-size: 1.125rem;
  font-weight: 300;
  opacity: 0.8;
}

.Contact-section {
  padding: 96px 0;
}
.Contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.Contact-info h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}
.Contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.Contact-info-icon {
  width: 48px; height: 48px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.Contact-info-icon svg { width: 22px; height: 22px; color: var(--primary); }
.Contact-info-item h3 { font-size: 1rem; font-weight: 500; margin-bottom: 4px; }
.Contact-info-item p { color: var(--muted); font-size: 0.9rem; }

.Contact-form {
  background: var(--secondary);
  padding: 48px;
}
.Contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  outline: none;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity var(--transition);
}
.btn-submit:hover { opacity: 0.85; }

/* =========================================
   MODAL
   ========================================= */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: #fff;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-inner { padding: 40px; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--fg);
  transition: opacity var(--transition);
}
.modal-close:hover { opacity: 0.6; }
.modal-close svg { width: 24px; height: 24px; }

.modal h2 { font-size: 2rem; margin-bottom: 8px; }
.modal-desc { color: var(--muted); margin-bottom: 32px; }

.modal-video {
  aspect-ratio: 16/9;
  width: 100%;
  background: #000;
  margin-bottom: 24px;
}
.modal-video iframe {
  width: 100%; height: 100%;
  border: none;
}

.modal-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.modal-images img { width: 100%; height: auto; object-fit: cover; }

.modal-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.btn-edit, .btn-save {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity var(--transition);
}
.btn-edit:hover, .btn-save:hover { opacity: 0.85; }

.modal-image-wrapper {
  position: relative;
}
.modal-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.btn-delete-image {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 12px;
  background: rgba(255, 0, 0, 0.8);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-delete-image:hover {
  background: rgba(255, 0, 0, 1);
}

.modal-add-image, .modal-add-video {
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: 4px;
  background: var(--secondary);
  margin-top: 16px;
}

.modal-add-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-upload-label {
  cursor: pointer;
}

.file-upload-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: opacity var(--transition);
}

.file-upload-btn:hover {
  opacity: 0.85;
}

.modal-add-image input[type="text"],
.modal-add-video input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  outline: none;
  font-size: 0.875rem;
}

.modal-add-image input[type="text"]:focus,
.modal-add-video input[type="text"]:focus {
  border-color: var(--primary);
}

.btn-add-image, .btn-add-video {
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--transition);
}

.btn-add-image:hover, .btn-add-video:hover { 
  opacity: 0.85; 
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-video-wrapper iframe,
.modal-video-wrapper video {
  width: 100%;
  height: 100%;
}

.btn-delete-video {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 12px;
  background: rgba(255, 0, 0, 0.8);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-delete-video:hover {
  background: rgba(255, 0, 0, 1);
}

.modal-video-placeholder {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Password Modal */
.password-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.password-modal-backdrop.open { display: flex; }

.password-modal {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  min-width: 320px;
  max-width: 400px;
  width: 90%;
}
.password-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  font-family: var(--font-serif);
}
.password-modal input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  outline: none;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: border-color var(--transition);
}
.password-modal input:focus {
  border-color: var(--primary);
}

.password-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.btn-cancel, .btn-confirm {
  padding: 10px 20px;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--transition);
}
.btn-cancel {
  background: var(--secondary);
  color: var(--fg);
}
.btn-confirm {
  background: var(--primary);
  color: #fff;
}
.btn-cancel:hover, .btn-confirm:hover { opacity: 0.85; }

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: start;
}
.footer-brand a {
  display: inline-block;
  line-height: 0;
  margin-bottom: 20px;
}
.footer-logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 400px;
  margin-top: 12px;
}
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-col address {
  font-style: normal;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin: 0;
}
.footer-contact-list {
  display: grid;
  gap: 10px;
}
.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-emoji-icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-contact-text {
  flex: 1;
}

.newsletter-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
  margin-top: 16px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.875rem;
  padding: 8px 4px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  transition: color var(--transition);
}
.newsletter-form button:hover { color: #fff; }
.newsletter-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom-links a:hover { color: #fff; }

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.mds-animate .fade-in-up {
  opacity: 0;
  transform: translateY(30px);
}
html.mds-animate .fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .navbar-right { display: none; }
  .hamburger { display: flex; }

  .intro-grid,
  .expertise-grid,
  .map-grid,
  .Contact-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .intro-image { height: 320px; }

  .projects-grid-3,
  .projects-grid-2 { 
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 14px;
  }

  .project-card-2-thumb {
    aspect-ratio: 4/3;
  }

  .expertise-cards { grid-template-columns: 1fr 1fr; }

  .modal-images { grid-template-columns: 1fr; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .link-all { display: none; }

  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 32px;
  }
  .footer-brand { 
    grid-column: 1 / -1; 
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-logo-img {
    height: 34px;
  }

  .form-row { grid-template-columns: 1fr; }

  .Contact-form { padding: 32px 24px; }

  #admin-banner {
    padding: 8px 10px !important;
    gap: 8px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    max-height: 34vh;
    overflow-y: auto;
  }

  #admin-banner > span {
    font-size: 0.72rem !important;
    line-height: 1.25;
  }

  #admin-banner > div {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px !important;
  }

  #admin-banner button {
    width: 100%;
    font-size: 0.74rem !important;
    padding: 7px 6px !important;
  }

  .cms-dialog {
    width: 96vw !important;
    max-height: 86vh;
    overflow-y: auto;
    padding: 16px !important;
    gap: 12px !important;
  }

  .cms-dialog h3 {
    font-size: 1.05rem;
  }

  .cms-dialog label {
    font-size: 0.8rem;
    gap: 6px;
  }

  .cms-dialog input[type="text"] {
    font-size: 16px;
    padding: 11px 10px;
  }

  .cms-file-row {
    gap: 8px;
  }

  .cms-dialog-actions {
    position: sticky;
    bottom: -1px;
    background: #fff;
    padding-top: 8px;
    margin-top: 8px;
    justify-content: space-between;
  }

  .cms-btn-cancel,
  .cms-btn-confirm {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

html.mds-hydrating .projects-grid-2,
html.mds-hydrating .projects-grid-3,
html.mds-hydrating .hero-slides-wrap {
  visibility: hidden;
}

/* =========================================
   NAVBAR LOGO IMAGE
   ========================================= */
.navbar-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* =========================================
   HERO SPLIT (index 전용)
   ========================================= */
.hero-split {
  height: 100vh;
  align-items: stretch;
}

.hero-split-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  width: 100%;
  height: 100%;
  padding-top: 80px;
}

/* 왼쪽 텍스트 패널 */
.hero-split .hero-content {
  flex: 1 1 auto;
  max-width: 480px;
}

/* h1 한 줄 처리 */
.hero-split .hero-content h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  white-space: nowrap;
  line-height: 1.15;
  margin-bottom: 20px;
}

/* p 크게 */
.hero-split .hero-content p {
  font-size: 1.35rem;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

/* 오른쪽 슬라이더 패널 */
.hero-slider-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* 탭 버튼 */
.hero-tabs {
  display: flex;
  gap: 0;
  z-index: 10;
  position: relative;
  pointer-events: auto;
}
.hero-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 22px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  position: relative;
  z-index: 10;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}
.hero-tab:hover { 
  color: rgba(255,255,255,0.85); 
  border-bottom-color: rgba(255,255,255,0.5);
}
.hero-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* 슬라이드 래퍼 */
.hero-slides-wrap {
  position: relative;
  width: 500px;
  height: 320px;
}

/* 그룹 (탭마다 하나) */
.hero-slide-group {
  display: none;
  width: 100%;
  height: 100%;
}
.hero-slide-group.active { display: block; }

/* 트랙 */
.hero-slide-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 개별 슬라이드 */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-slide.selected { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 도트 */
.hero-dots {
  display: flex;
  gap: 10px;
  padding-left: 2px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.35);
}

/* 모바일 */
@media (max-width: 900px) {
  .hero-split-inner {
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding-top: 100px;
  }
  .hero-split .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-split .hero-content h1 {
    white-space: normal;
    font-size: clamp(1.8rem, 5vw, 3rem);
  }
  .hero-slider-panel {
    align-items: center;
    width: 100%;
  }
  .hero-slides-wrap {
    width: 200px;
    height: 250px;
  }
}

/* ===========================================
   ADMIN / CMS STYLES
   =========================================== */

/* 관리자 편집 가능 요소 */
.admin-editable {
  outline: 2px dashed rgba(93,173,226,0.7) !important;
  outline-offset: 3px;
  border-radius: 2px;
  cursor: text !important;
  transition: outline-color 0.2s;
}
.admin-editable:focus {
  outline-color: #5dade2 !important;
  background: rgba(93,173,226,0.06);
}

/* 카드 썸네일 이미지 변경 버튼 */
.card-thumb-edit-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.72rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 3px;
  user-select: none;
  transition: background 0.2s;
}
.card-thumb-edit-btn:hover { background: rgba(0,0,0,0.92); }

/* 카드 삭제 버튼 */
.btn-delete-card {
  margin-top: 12px;
  padding: 6px 14px;
  background: #e74c3c;
  color: #fff;
  border: none;
  font-size: 0.78rem;
  cursor: pointer;
  border-radius: 3px;
  display: block;
  transition: opacity 0.2s;
}
.btn-delete-card:hover { opacity: 0.82; }

/* 새 프로젝트 추가 자리 */
.add-card-btn {
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  cursor: pointer;
  color: #aaa;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.add-card-btn:hover { border-color: #1a1a1a; color: #1a1a1a; }

/* 배경/hero 이미지 변경 버튼 */
.admin-hero-bg-btn {
  position: absolute;
  bottom: 28px; right: 28px;
  z-index: 10;
  background: rgba(0,0,0,0.72);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  user-select: none;
}
.admin-hero-bg-btn:hover { background: rgba(0,0,0,0.92); }

/* 대표 이미지 배지 */
.thumb-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #154360;
  color: #fff;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

/* 모달 수정 버튼들 */
.btn-set-thumb {
  position: absolute;
  bottom: 8px; left: 8px;
  padding: 4px 10px;
  background: rgba(21,67,96,0.88);
  color: #fff;
  border: none;
  font-size: 0.68rem;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.btn-set-thumb:hover { opacity: 0.82; }

/* CMS 다이얼로그 오버레이 */
.cms-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cms-dialog {
  background: #fff;
  padding: 36px;
  max-width: 480px;
  width: 92%;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cms-dialog h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0;
}
.cms-dialog label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}
.cms-dialog input[type="text"] {
  padding: 10px 13px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.cms-dialog input[type="text"]:focus { border-color: var(--primary); }
.cms-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cms-file-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
}
.cms-file-btn:hover { opacity: 0.85; }
#nc-fn {
  font-size: 0.78rem;
  color: var(--muted);
}
.cms-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}
.cms-btn-cancel {
  padding: 9px 20px;
  background: var(--secondary);
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 3px;
  transition: opacity 0.2s;
}
.cms-btn-confirm {
  padding: 9px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 3px;
  transition: opacity 0.2s;
}
.cms-btn-cancel:hover, .cms-btn-confirm:hover { opacity: 0.85; }

/* =========================================
   PERFORMANCE & SEO ENHANCEMENTS
   ========================================= */

/* 이미지 레이아웃 안정화 (CLS 방지) */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.navbar-logo-img {
  width: auto;
  max-height: 44px;
  object-fit: contain;
}

.footer-logo-img {
  width: auto;
  max-height: 36px;
  object-fit: contain;
}

/* hero 이미지 - LCP 최적화 */
.hero-bg,
.cat-hero-bg {
  content-visibility: auto;
}

/* 카드 이미지 aspect-ratio 고정 (CLS 방지) */
.project-card-thumb,
.project-card-2-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}

.project-card-thumb img,
.project-card-2-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* footer 이모지 아이콘 크기 고정 */
.footer-emoji-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 폰트 fallback 스택 개선 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* will-change: 실제 애니메이션 요소만 */
.fade-in-up {
  will-change: opacity, transform;
}
.fade-in-up.visible {
  will-change: auto;
}

/* 모바일 터치 최적화 */
.hero-tab,
.hamburger,
.navbar-Contact-btn,
.btn-primary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 스크롤 성능 */
.hero,
.cat-hero {
  contain: layout style;
}