@import url("https://fonts.cdnfonts.com/css/pp-neue-montreal");
@import url("https://fonts.cdnfonts.com/css/thegoodmonolith");

:root {
  --grid-columns: 12;
  --grid-padding: 2rem;
  --grid-gutter: 1rem;

  /* Font variables */
  --font-primary: "PP Neue Montreal", sans-serif;
  --font-mono: "TheGoodMonolith", sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 800;
  --letter-spacing-tight: -0.02em;
  
  /* Colors */
  --text-color: rgba(238, 238, 238, 0.9);
  --bg-dark: #111;
  --bg-black: #000;
}

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

html {
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-color);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-black);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  font-weight: var(--font-weight-bold);
}

.loading-content {
  position: relative;
  width: min(90vw, 650px);
  height: min(60vh, 400px);
  overflow: hidden;
  filter: contrast(1.2) brightness(0.9);
}

.loading-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 0.5rem;
  z-index: 1002;
  color: var(--bg-black);
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-primary);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
  will-change: transform, filter;
  mix-blend-mode: difference;
}

.loading-text-primary,
.loading-text-secondary {
  will-change: transform, color;
  color: var(--text-color);
}

.loading-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.05);
  transform-origin: center center;
  filter: grayscale(1) contrast(1.5) brightness(0.8);
}

.loading-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1001;
  pointer-events: none;
}

/* Debug info */
.debug-info {
  position: fixed;
  bottom: 20px;
  left: 20px;
  color: var(--text-color);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  opacity: 0;
  z-index: 100;
}

/* Scroll container */
.scroll-container {
  position: relative;
  background-color: var(--bg-dark);
}

.fixed-section {
  height: 1100vh;
  position: relative;
  background-color: var(--bg-dark);
}

.fixed-container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  will-change: transform, height;
  transform-origin: top center;
  background-color: var(--bg-dark);
}

/* Grid layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gutter);
  padding: 1rem 2rem;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Header */
.header {
  grid-column: 1 / 13;
  align-self: start;
  padding-top: 0;
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  color: var(--text-color);
  will-change: transform, filter, opacity;
}

.header-row {
  display: inline-block;
}

.header-word-left {
  text-align: left;
}

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

.header-word-right {
  text-align: right;
}

/* Content area */
.content {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 2fr minmax(150px, 1fr);
  gap: 0;
  align-items: center;
  flex: 1;
  will-change: transform, filter, opacity;
  padding: 0 2rem;
  margin: 0 -2rem;
  width: calc(100% + 4rem);
  position: relative;
  overflow: hidden;
}

/* Left and right columns */
.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 2rem;
  position: relative;
  z-index: 20;
  transition: pointer-events 0.3s ease;
}

/* When cards are visible, allow clicks to pass through column containers */
.cards-visible .left-column,
.cards-visible .right-column {
  pointer-events: none;
}

.left-column {
  align-items: flex-start;
  text-align: left;
}

.right-column {
  align-items: flex-end;
  text-align: right;
}

.artist,
.category {
  font-size: 0.9rem;
  color: rgba(238, 238, 238, 0.4);
  transition: color 0.6s cubic-bezier(0.86, 0, 0.07, 1), 
              transform 0.6s cubic-bezier(0.86, 0, 0.07, 1),
              opacity 0.6s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, color, opacity;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  pointer-events: auto;
  width: fit-content;
}

.artist.loaded,
.category.loaded {
  opacity: 1;
  transform: translateY(0);
}

.artist.active,
.category.active {
  color: rgba(238, 238, 238, 0.9);
  transform: scale(1.05) translateX(0);
}

.artist.active {
  transform: scale(1.05) translateX(5px);
}

.category.active {
  transform: scale(1.05) translateX(-5px);
}

.artist:hover,
.category:hover {
  color: rgba(238, 238, 238, 0.7);
}

/* Featured content */
.featured {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 4rem;
  z-index: 1;
}

.canvas-container {
  width: min(91%, 650px);
  height: 650px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  transform-origin: center center;
}

.canvas-container.visible {
  opacity: 1;
}

canvas {
  width: 100%;
  height: 100%;
  background: black;
  touch-action: none;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s steps(1);
}

canvas:hover {
  animation: canvas-glitch 0.3s steps(2) infinite;
}

/* Glitch animation for canvas */
@keyframes canvas-glitch {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2px, 1px);
  }
  50% {
    transform: translate(2px, -1px);
  }
  75% {
    transform: translate(-1px, -2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.featured-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.86, 0, 0.07, 1), 
              transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
  text-align: center;
  width: min(70%, 500px);
  padding: 2rem;
  box-sizing: border-box;
  pointer-events: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.featured-content.active {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.featured-content h3 {
  font-size: clamp(1rem, 0.75rem + 1.5vw, 1.5rem);
  line-height: 1.3;
  font-weight: var(--font-weight-normal);
  color: var(--text-color);
  margin: 0;
  text-transform: none;
  font-family: 'Courier New', Courier, monospace;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hacking-character {
  animation: type 500ms linear;
  color: #00ff00;
  display: inline;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

@keyframes type {
  0% {
    background: #fff;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1);
  }
  5% {
    background: transparent;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  }
  100% {
    background: transparent;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  }
}

/* Expanding Cards Styles */
.cards-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 500px;
  width: 50%;
  gap: 10px;
  padding: 10px 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 5;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 60px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.cards-container::-webkit-scrollbar {
  display: none;
}

.cards-container.dragging {
  cursor: grabbing;
}

/* Gradient masks for fade effect */
.cards-container::before,
.cards-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.cards-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}

.cards-container::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-dark) 0%, transparent 100%);
}

.expanding-card {
  position: relative;
  overflow: hidden;
  min-width: 100px;
  flex: 0 0 auto;
  width: 120px;
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
  border: 1px solid rgba(238, 238, 238, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  will-change: width, transform;
}

.expanding-card:hover {
  border-color: rgba(238, 238, 238, 0.2);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  transform: scale(1.02);
}

.expanding-card.active {
  width: 300px;
  min-width: 300px;
  border-color: rgba(238, 238, 238, 0.3);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
}

.card-phase-label {
  position: absolute;
  bottom: 100px;
  left: 40px;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.2em;
  color: rgba(238, 238, 238, 0.4);
  white-space: nowrap;
  transition: all 0.3s ease;
  pointer-events: none;
  text-transform: uppercase;
}

.expanding-card:hover .card-phase-label {
  color: rgba(238, 238, 238, 0.6);
  letter-spacing: 0.3em;
}

.expanding-card.active .card-phase-label {
  opacity: 0;
  transform: translateX(-50%) rotate(-90deg) scale(0.8);
}

.card-header {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
}

.card-icon {
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(238, 238, 238, 0.05);
  border: 1px solid rgba(238, 238, 238, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card-symbol {
  font-size: 1.2rem;
  color: rgba(238, 238, 238, 0.5);
  font-family: var(--font-mono);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.expanding-card:hover .card-icon {
  background: rgba(238, 238, 238, 0.08);
  border-color: rgba(238, 238, 238, 0.25);
  transform: scale(1.05);
}

.expanding-card:hover .card-symbol {
  color: rgba(238, 238, 238, 0.7);
}

.expanding-card.active .card-icon {
  background: rgba(238, 238, 238, 0.1);
  border-color: rgba(238, 238, 238, 0.3);
}

.expanding-card.active .card-symbol {
  color: rgba(238, 238, 238, 0.8);
}

.card-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.expanding-card:not(.active) .card-title {
  opacity: 0;
}

.card-content {
  position: absolute;
  top: 40px;
  left: 20px;
  right: 20px;
  bottom: 100px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.86, 0, 0.07, 1);
  pointer-events: none;
}

.expanding-card.active .card-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.card-description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  justify-content: flex-start;
  padding-top: 1rem;
}

.card-description p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(238, 238, 238, 0.8);
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(238, 238, 238, 0.05);
  transition: color 0.3s ease;
}

.card-description p:last-child {
  border-bottom: none;
}

.card-description p:hover {
  color: var(--text-color);
}

/* Card background effects */
.expanding-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(238, 238, 238, 0.02) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.expanding-card:hover::before {
  opacity: 1;
}

/* Glitch effect for cards */
.expanding-card.active {
  animation: card-glitch 2s ease-in-out infinite;
}

@keyframes card-glitch {
  0%, 100% {
    transform: translateX(0);
  }
  2% {
    transform: translateX(1px);
  }
  4% {
    transform: translateX(-1px);
  }
  6% {
    transform: translateX(0);
  }
}

/* Footer */
.footer {
  grid-column: 1 / 13;
  align-self: end;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
  will-change: transform, filter, opacity;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.coordinates {
  text-align: left;
}

.company-tagline {
  text-align: right;
}

.progress-indicator {
  width: 160px;
  height: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(245, 245, 245, 0.3);
}

.progress-numbers {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  font-size: 0.65rem;
}

.progress-numbers span:first-child::after {
  content: " / ";
  margin-left: 0.25rem;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--text-color);
  transition: width 0.8s cubic-bezier(0.86, 0, 0.07, 1);
  will-change: width;
}

/* End section / Contact */
.end-section {
  font-size: 2rem;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-black);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  overflow: hidden;
  padding: 4rem 2rem;
}

.keyhole-container {
  flex: 1;
  max-width: 600px;
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#keyhole-canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeInKeyhole 2s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInKeyhole {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Contact Form Styles */
.contact-form-container {
  position: relative;
  flex: 1;
  max-width: 800px;
  z-index: 10;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(238, 238, 238, 0.1);
  padding: 3rem;
  animation: formSlideIn 1s ease-out forwards;
  animation-delay: 1.5s;
  opacity: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-title {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
}

.contact-subtitle {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: rgba(238, 238, 238, 0.5);
  letter-spacing: 0.2em;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

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

.form-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: rgba(238, 238, 238, 0.6);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.form-input {
  background: rgba(238, 238, 238, 0.05);
  border: 1px solid rgba(238, 238, 238, 0.2);
  color: var(--text-color);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  background: rgba(238, 238, 238, 0.08);
  border-color: rgba(238, 238, 238, 0.5);
  box-shadow: 0 0 0 1px rgba(238, 238, 238, 0.1);
}

.form-input::placeholder {
  color: rgba(238, 238, 238, 0.3);
  font-size: 0.75rem;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23eeeeee' opacity='0.5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: none;
  min-height: 120px;
  flex: 1;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.form-submit {
  background: rgba(238, 238, 238, 0.1);
  border: 1px solid rgba(238, 238, 238, 0.3);
  color: var(--text-color);
  padding: 1rem 3rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(238, 238, 238, 0.2), transparent);
  transition: left 0.5s ease;
}

.form-submit:hover {
  background: rgba(238, 238, 238, 0.15);
  border-color: rgba(238, 238, 238, 0.5);
  transform: translateY(-1px);
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:active {
  transform: translateY(0);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(238, 238, 238, 0.6);
}

.form-status.success {
  color: rgba(0, 255, 0, 0.8);
}

.form-status.error {
  color: rgba(255, 0, 0, 0.8);
}

.contact-coordinates {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(238, 238, 238, 0.4);
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contact-coordinates .separator {
  opacity: 0.3;
}

/* Responsive design */
@media (max-width: 1024px) {
  .content {
    grid-template-columns: minmax(120px, 1fr) 2fr minmax(120px, 1fr);
    padding: 0 1rem;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
  }
  
  .canvas-container {
    width: min(80%, 400px);
    height: 400px;
  }
  
  .cards-container {
    height: 400px;
    padding: 1rem;
  }
  
  .expanding-card {
    height: 100%;
  }
  
  .end-section {
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 3rem;
  }
  
  .keyhole-container {
    flex: none;
    width: 100%;
    height: 40vh;
    min-height: 350px;
    max-width: 500px;
  }
  
  #keyhole-canvas {
    max-width: 500px;
    max-height: 500px;
  }
  
  .contact-form-container {
    flex: none;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
  }
  
  .form-grid {
    gap: 1.5rem;
  }
  
  .left-column,
  .right-column {
    padding: 0 1rem;
  }
  
  .artist,
  .category {
    font-size: 0.8rem;
  }
  
  .featured-content h3 {
    font-size: clamp(0.9rem, 0.75rem + 1.2vw, 1.3rem);
    font-family: 'Courier New', Courier, monospace;
  }
}

/* Mid-size screens */
@media (max-width: 900px) {
  .canvas-container {
    max-width: 450px;
    transform: scale(1.1);
  }
  
  .company-tagline {
    font-size: 0.65rem;
    max-width: 300px;
  }
  
  .footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .coordinates {
    position: static;
    text-align: center;
  }
  
  .progress-indicator {
    position: static;
    transform: none;
  }
  
  .company-tagline {
    position: static;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  
  .content.cards-visible .featured {
    transform: none !important;
  }
  
  .canvas-container {
    width: 90%;
    height: 350px;
  }
  
  .cards-container {
    position: relative;
    transform: none !important;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin-top: 2rem;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    display: none;
  }
  
  .content.cards-visible .cards-container {
    display: flex;
  }
  
  .expanding-card {
    width: 100% !important;
    height: 100px;
    min-width: 100%;
  }
  
  .expanding-card.active {
    height: 200px;
  }
  
  .card-header {
    bottom: 10px;
    left: 15px;
    right: 15px;
  }
  
  .card-content {
    top: 20px;
    bottom: 60px;
    left: 15px;
    right: 15px;
  }
  
  .card-description {
    gap: 0.5rem;
  }
  
  .card-description p {
    font-size: 0.75rem;
    padding: 0.3rem 0;
  }
  
  .left-column,
  .right-column {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
  
  .artist,
  .category {
    font-size: 0.7rem;
  }
  
  .artist.active,
  .category.active {
    transform: scale(1.05);
  }
  
  .featured {
    padding: 2rem;
  }
  
  .footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    position: relative;
    padding: 1rem 1rem 0.5rem 1rem;
  }
  
  .coordinates {
    position: static;
    text-align: center;
    order: 1;
  }
  
  .progress-indicator {
    position: static;
    transform: none;
    order: 2;
  }
  
  .company-tagline {
    position: static;
    text-align: center;
    order: 3;
    font-size: 0.65rem;
  }
  
  .end-section {
    flex-direction: column;
    padding: 2rem 1rem;
    min-height: auto;
    gap: 2rem;
  }
  
  .keyhole-container {
    flex: none;
    width: 100%;
    height: 35vh;
    min-height: 300px;
    max-width: none;
  }
  
  #keyhole-canvas {
    max-width: 90vw;
    max-height: 400px;
  }
  
  .contact-form-container {
    flex: none;
    width: 95%;
    max-width: none;
    padding: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-title {
    font-size: 1.5rem;
  }
  
  .form-input {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }
  
  .form-submit {
    padding: 0.85rem 2rem;
    font-size: 0.85rem;
  }
  
  .contact-coordinates {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .contact-coordinates .separator {
    display: none;
  }
}

/* Site Footer Styles */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-black) 0%, #050505 100%);
  color: var(--text-color);
  font-family: var(--font-mono);
  border-top: 1px solid rgba(238, 238, 238, 0.05);
  overflow: hidden;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column {
  opacity: 0.9;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  color: rgba(238, 238, 238, 0.7);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background: rgba(238, 238, 238, 0.3);
}

.footer-legal p,
.footer-info p {
  font-size: 0.65rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: rgba(238, 238, 238, 0.5);
  letter-spacing: 0.05em;
}

.company-name {
  font-size: 0.75rem !important;
  font-weight: var(--font-weight-bold);
  color: rgba(238, 238, 238, 0.7) !important;
  margin-bottom: 0.75rem !important;
}

.registered-address {
  margin-top: 1rem;
}

.address-label {
  color: rgba(238, 238, 238, 0.6) !important;
  margin-bottom: 0.25rem !important;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.65rem;
  color: rgba(238, 238, 238, 0.5);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-link:hover {
  color: rgba(238, 238, 238, 0.9);
  transform: translateX(5px);
}

.footer-link::before {
  content: '>';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-link:hover::before {
  opacity: 1;
}

.hours {
  color: rgba(238, 238, 238, 0.4) !important;
  font-size: 0.6rem !important;
}

.contact-methods {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(238, 238, 238, 0.1);
}

.footer-badges p {
  font-size: 0.6rem;
  color: rgba(238, 238, 238, 0.4);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.footer-badges p::before {
  content: '◈';
  position: absolute;
  left: 0;
  color: rgba(238, 238, 238, 0.3);
}

/* Footer Bottom Bar */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(238, 238, 238, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(238, 238, 238, 0.4);
  font-weight: var(--font-weight-bold);
}

.footer-copyright {
  font-size: 0.6rem;
  color: rgba(238, 238, 238, 0.3);
  letter-spacing: 0.05em;
}

.copyright-symbol {
  font-size: 0.7rem;
  margin-right: 0.25rem;
}

/* Decorative Elements */
.footer-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(238, 238, 238, 0.1) 50%, 
    transparent 100%);
  animation: footerScan 8s linear infinite;
}

@keyframes footerScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

.footer-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, 
      transparent, 
      transparent 50px, 
      rgba(238, 238, 238, 0.01) 50px, 
      rgba(238, 238, 238, 0.01) 51px),
    repeating-linear-gradient(90deg, 
      transparent, 
      transparent 50px, 
      rgba(238, 238, 238, 0.01) 50px, 
      rgba(238, 238, 238, 0.01) 51px);
  opacity: 0.5;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    padding: 3rem 1.5rem 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-tagline {
    font-size: 0.6rem;
  }
  
  .footer-link:hover {
    transform: none;
  }
  
  .footer-heading {
    font-size: 0.7rem;
  }
  
  .footer-legal p,
  .footer-info p {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 2rem 1rem 1rem;
  }
  
  .footer-heading {
    margin-bottom: 1rem;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-tagline {
    font-size: 0.55rem;
    line-height: 1.4;
  }
  
  .footer-copyright {
    font-size: 0.55rem;
  }
}