/* ============================================
   ARCHITECTURAL BACKGROUND SYSTEM
   Subtle blueprint-inspired background elements
   ============================================ */

/* Base architectural background container */
.architectural-bg {
  position: relative;
  overflow: hidden;
}

/* SVG Background Overlay */
.architectural-bg svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   BLUEPRINT LINES ANIMATION
   ============================================ */

.blueprint-lines {
  opacity: 0.05;
}

.blueprint-line {
  stroke: var(--color-charcoal);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s ease forwards;
}

.blueprint-line:nth-child(2) {
  animation-delay: 0.5s;
}

.blueprint-line:nth-child(3) {
  animation-delay: 1s;
}

.blueprint-line:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* ============================================
   GRID BACKGROUND
   ============================================ */

.grid-bg {
  opacity: 0.03;
}

.grid-line {
  stroke: var(--color-charcoal);
  stroke-width: 0.5;
}

/* ============================================
   GEOMETRIC SQUARES
   ============================================ */

.geo-square {
  stroke: var(--color-bronze);
  stroke-width: 1;
  fill: none;
  opacity: 0.15;
  transition: all var(--transition-smooth);
}

.geo-square-animated {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawSquare 2s ease forwards;
}

@keyframes drawSquare {
  to {
    stroke-dashoffset: 0;
  }
}

.geo-square-subtle {
  animation: subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.02);
  }
}

/* ============================================
   BUILDING OUTLINE
   ============================================ */

.building-outline {
  stroke: var(--color-charcoal);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.08;
}

.building-outline-animated {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawBuilding 4s ease forwards;
}

@keyframes drawBuilding {
  to {
    stroke-dashoffset: 0;
  }
}

/* ============================================
   MEASUREMENT MARKS
   ============================================ */

.measure-mark {
  stroke: var(--color-bronze);
  stroke-width: 1;
  opacity: 0.1;
}

/* ============================================
   FLOOR PLAN ELEMENTS
   ============================================ */

.floor-plan {
  stroke: var(--color-charcoal);
  stroke-width: 1;
  fill: none;
  opacity: 0.05;
}

.floor-plan-wall {
  stroke-width: 2;
}

/* ============================================
   DIMENSION ARROWS
   ============================================ */

.dimension-arrow {
  stroke: var(--color-bronze);
  stroke-width: 1;
  fill: var(--color-bronze);
  opacity: 0.1;
}

/* ============================================
   DARK BACKGROUND VARIANTS
   ============================================ */

.bg-charcoal .blueprint-line,
.bg-charcoal .grid-line,
.bg-charcoal .building-outline,
.bg-charcoal .floor-plan {
  stroke: var(--color-white);
}

.bg-charcoal .geo-square,
.bg-charcoal .measure-mark,
.bg-charcoal .dimension-arrow {
  stroke: var(--color-bronze);
}

/* ============================================
   SCROLL-REVEAL CLASSES
   ============================================ */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.stagger-1 {
  transition-delay: 0.1s;
}

.reveal-on-scroll.stagger-2 {
  transition-delay: 0.2s;
}

.reveal-on-scroll.stagger-3 {
  transition-delay: 0.3s;
}

.reveal-on-scroll.stagger-4 {
  transition-delay: 0.4s;
}

/* ============================================
   IMAGE REVEAL MASK
   ============================================ */

.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-charcoal);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.image-reveal.revealed::before {
  transform: translateX(100%);
}

.image-reveal img {
  transition: transform 0.6s ease;
}

.image-reveal:hover img {
  transform: scale(1.05);
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .blueprint-line,
  .geo-square-animated,
  .building-outline-animated,
  .geo-square-subtle {
    animation: none;
    stroke-dashoffset: 0;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }

  .image-reveal::before {
    transform: translateX(100%);
    transition: none;
  }
}
