/* ==========================================
   Construye Tu Sueno — Premium Construction Co.
   ========================================== */

:root {
  --gold: #B89B6E;
  --gold-light: #E0C79A;
  --gold-dark: #8A704D;
  --dark: #2c2c2c;
  --beige: #D4C7B4;
  --bg: #f7f5f2;
  --white: #FFFFFF;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --text: #1f2937;
  --text-muted: #6b7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ====== SECTION COMMON ====== */
section { padding: 100px 0; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
}
.section-tag::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
}
.section-header.centered .section-tag::after { margin: 8px auto 0; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}
.section-title .accent { color: var(--gold); }
.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 16px;
}
.section-header.centered .section-desc { margin: 16px auto 0; }

/* ====== NAVBAR ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(15, 13, 10, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  padding: 8px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.logo-img {
  height: 100px;
  width: auto;
  transition: height 0.3s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.scrolled .logo-img { height: 72px; filter: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
.scrolled .nav-link { color: var(--dark) !important; }
.btn-cta {
  padding: 10px 24px;
  background: var(--gold);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.btn-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.scrolled .nav-toggle span { background: var(--dark); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0f0d0a 0%, #1a1510 50%, #221b14 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg,
    rgba(15,13,10,0.88) 0%,
    rgba(15,13,10,0.85) 30%,
    rgba(15,13,10,0.3) 55%,
    rgba(15,13,10,0) 70%
  );
}

/* ====== HERO 3D WIREFRAME BACKGROUND ====== */
.hero-3d-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-3d-canvas canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}

.hero-3d-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(184, 155, 110, 0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 0;
}

/* ====== TOUR 3D VIRTUAL ====== */
.tour3d {
  padding: 100px 0;
  background: linear-gradient(160deg, #0f0d0a 0%, #1a1510 50%, #221b14 100%);
  position: relative;
  overflow: hidden;
}

.tour3d::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.06) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.tour3d-viewer {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(184, 155, 110, 0.15);
  background: #0a0806;
  margin-top: 48px;
}

/* ====== DESIGNS 3D (SKETCHFAB GRID) ====== */
.designs-3d {
  padding: 100px 0;
  background: linear-gradient(160deg, #0f0d0a 0%, #1a1510 50%, #221b14 100%);
  position: relative;
  overflow: hidden;
}

.designs-3d::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.06) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.sketchfab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
  margin-top: 48px;
}

.sketchfab-item {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(184,155,110,0.10);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(4px);
}

.sketchfab-item:hover {
  transform: translateY(-6px);
  border-color: rgba(184,155,110,0.30);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3), 0 0 30px rgba(184,155,110,0.05);
}

.sketchfab-embed {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  background: #0a0806;
  overflow: hidden;
}

.sketchfab-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sketchfab-info {
  padding: 18px 20px 22px;
}

.sketchfab-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.sketchfab-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .designs-3d { padding: 60px 0; }
  .sketchfab-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .sketchfab-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Floating icons on dark bg */
.float-icons {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.float-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(184, 155, 110, 0.25);
  border: 1px solid rgba(184, 155, 110, 0.08);
  border-radius: 12px;
  background: rgba(184, 155, 110, 0.03);
  backdrop-filter: blur(2px);
  will-change: transform;
}
.float-icon svg { width: 20px; height: 20px; }

/* Hero content on dark bg */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px 24px 0;
  max-width: 900px;
}
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gold);
  color: #fff;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}
.hero-title-line { display: block; }
.hero-title-line.accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184,155,110,0.3);
}
.btn-secondary {
  display: inline-block;
  padding: 16px 36px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  letter-spacing: 1px;
  animation: bounce 2s infinite;
  z-index: 3;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ====== ABOUT ====== */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.about-image-frame img { width: 100%; height: 500px; object-fit: cover; }
.about-experience-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--gold);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
}
.badge-number { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.badge-text { font-size: 0.85rem; opacity: 0.9; }
.about-content { padding-right: 24px; }
.about-text { color: var(--text-muted); margin-bottom: 16px; font-size: 1.05rem; line-height: 1.7; }
.about-features { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.about-feature { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; }

/* ====== SERVICES ====== */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 36px;
  border-radius: 16px;
  transition: all 0.4s;
  border: 1px solid rgba(0,0,0,0.05);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: var(--gold);
}
.service-card.featured {
  border: 2px solid var(--gold);
  position: relative;
}
.service-card.featured::before {
  content: 'Destacado';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--gold);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(184,155,110,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600; margin-bottom: 12px; color: var(--dark); }
.service-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ====== PROCESS ====== */
.process { background: var(--dark); color: #fff; }
.process .section-tag { color: var(--gold-light); }
.process .section-title { color: #fff; }
.process-steps { display: flex; justify-content: space-between; gap: 0; position: relative; flex-wrap: nowrap; }
.step { text-align: center; flex: 1; padding: 0 16px; position: relative; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--gold);
  margin: 0 auto 20px;
}
.step-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.step-connector { width: 60px; height: 2px; background: rgba(184,155,110,0.3); margin-top: 28px; flex-shrink: 0; }

/* ====== PROJECTS ====== */
.projects { background: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { border-radius: 16px; overflow: hidden; position: relative; cursor: pointer; }
.project-image { position: relative; overflow: hidden; }
.project-image img { width: 100%; height: 320px; object-fit: cover; transition: transform 0.6s; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff;
}
.project-cat { font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.project-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 600; }
.project-location { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ====== CONTACT ====== */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-text { color: var(--text-muted); font-size: 1.05rem; margin: 16px 0 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.contact-item p { color: var(--text-muted); font-size: 0.9rem; }
.contact-item a { color: var(--gold); }
.contact-form-wrapper {
  background: var(--white); padding: 40px; border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}
.form-row { margin-bottom: 16px; }
.form-input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--gray-200); border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; color: var(--text);
  background: var(--bg); transition: border-color 0.3s; outline: none;
}
.form-input:focus { border-color: var(--gold); }
textarea.form-input { resize: vertical; min-height: 100px; }
.form-btn { width: 100%; margin-top: 8px; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.active { display: block; }
.form-success h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--dark); margin: 16px 0 8px; }
.form-success p { color: var(--text-muted); }

/* ====== FOOTER ====== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(247, 245, 242, 0.95);
  border: 1px solid rgba(247, 245, 242, 0.2);
  margin-bottom: 16px;
  transition: background 0.3s, transform 0.3s;
}
.footer-logo-badge:hover {
  background: rgba(247, 245, 242, 1);
  transform: translateY(-1px);
}
.footer-logo { height: 80px; width: auto; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact a { color: var(--gold); }
.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  transition: color 0.3s ease;
}
.footer-legal a:hover {
  color: var(--gold);
}
.footer-legal-sep {
  color: rgba(255,255,255,0.15);
  font-size: 0.75rem;
}

/* ====== SKETCHFAB 3D PREMIUM ====== */
.designs-3d {
  background: linear-gradient(180deg, var(--bg) 0%, #ebe7e0 100%);
  position: relative;
  overflow: hidden;
}
.designs-3d::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(184,155,110,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(184,155,110,0.04) 0%, transparent 60%);
  pointer-events: none;
}
/* ====== BEFORE / AFTER SLIDER ====== */
.before-after {
  background: var(--dark);
  color: var(--white);
}
.before-after .section-title { color: var(--white); }
.before-after .section-desc { color: rgba(255,255,255,0.6); }
.ba-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.ba-img {
  display: block;
  width: 100%;
}
.ba-img img {
  display: block;
  width: 100%;
  height: auto;
}
.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.ba-after img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
  min-width: 200%;
}
.ba-label {
  position: absolute;
  bottom: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  pointer-events: none;
}
.ba-before .ba-label { left: 16px; }
.ba-after .ba-label { right: 16px; }
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}
.ba-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 3;
  pointer-events: none;
  line-height: 1;
}
.ba-arrow:first-child { left: 10px; }
.ba-arrow:last-child { right: 10px; }

/* ====== GALLERY (REDISEÑO PREMIUM) ====== */

/* Filters */
.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.gallery-filter {
  background: none;
  border: 1.5px solid var(--gold);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.gallery-filter:hover {
  background: rgba(184, 155, 110, 0.1);
  color: var(--gold);
}
.gallery-filter.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(184, 155, 110, 0.3);
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item.hidden {
  display: none;
}
/* Featured item spans 2 columns */
.gallery-item-featured {
  grid-column: span 2;
}

/* Card wrapper */
.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(184, 155, 110, 0.15);
}
.gallery-card:hover .gallery-card-img img {
  transform: scale(1.08);
}
.gallery-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-item-featured .gallery-card-img {
  aspect-ratio: 16 / 9;
}
.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Overlay — always visible subtle, premium on hover */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 40%,
    transparent 65%
  );
  opacity: 0.7;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

/* Gold border accent on hover */
.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: border-color 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.gallery-card:hover::after {
  border-color: var(--gold);
}

/* Category badge */
.gallery-cat-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(184, 155, 110, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  align-self: flex-start;
  border: 1px solid rgba(224, 199, 154, 0.2);
}
.gallery-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}
.gallery-item-featured .gallery-card-title {
  font-size: 1.4rem;
}
.gallery-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  display: none;
}
.gallery-card:hover .gallery-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Completion date */
.gallery-card-date {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.gallery-card:hover .gallery-card-date {
  opacity: 1;
}

/* ====== LIGHTBOX PREMIUM ====== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxFadeIn 0.3s ease;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-img-wrapper img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

/* Lightbox meta panel */
.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 90vw;
  margin-top: 20px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.lightbox-meta-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lightbox-meta-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.lightbox-meta-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.lightbox-meta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}
.lightbox-meta-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  max-width: 500px;
}
.lightbox-meta-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 6px 0;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10000;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* Nav buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Lightbox close on click outside */
.lightbox-close-area {
  position: fixed;
  inset: 0;
  z-index: 9998;
  cursor: zoom-out;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
  .float-icon { width: 36px; height: 36px; }
  .float-icon svg { width: 16px; height: 16px; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .section-title { font-size: 2rem; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--white); flex-direction: column; padding: 80px 32px 32px; gap: 24px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1); transition: right 0.3s; align-items: flex-start;
  }
  .nav-links.active { right: 0; }
  .nav-link { color: var(--dark) !important; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 2rem; }
  .float-icons { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-content { padding-right: 0; }
  .about-image-frame img { height: 280px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }
  .process-steps { flex-direction: column; align-items: center; gap: 32px; }
  .step-connector { width: 2px; height: 40px; margin: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-image img { height: 240px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrapper { padding: 24px; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .logo-img { height: 72px; }
  .scrolled .logo-img { height: 56px; }
  .footer-logo { height: 64px; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .gallery-item-featured {
    grid-column: span 2;
  }
  .gallery-filters {
    gap: 8px;
  }
  .gallery-filter {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
  .gallery-card-overlay {
    padding: 20px;
  }
  .gallery-card-title {
    font-size: 1rem;
  }
  .gallery-item-featured .gallery-card-title {
    font-size: 1.2rem;
  }
  .lightbox-meta {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }
  .ba-container {
    max-width: 100%;
  }
  .sketchfab-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item-featured {
    grid-column: span 1;
  }
  .gallery-filters {
    flex-wrap: wrap;
    justify-content: center;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close {
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .sketchfab-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
