/* Landing page — clean, image-focused */

:root {
  --bg: #06060a;
  --text: #c8c8d0;
  --text-muted: #5a5a6e;
  --heading: #ededf0;
  --accent: #a78bfa;
  --accent-dim: rgba(124, 58, 237, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: relative;
  z-index: 20;
}

.nav-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-title:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.nav-links a:hover { color: var(--heading); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0.8rem;
  }
  .nav-links.open { display: flex; }
}

/* Main content — centered */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 2rem;
}

.title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--heading);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
  text-align: center;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 200;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  text-align: center;
}

/* Mac Mini container */
.mac-container {
  position: relative;
  width: min(800px, 92vw);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(167, 139, 250, 0.04);
  cursor: pointer;
}

.mac-interior {
  width: 100%;
  height: auto;
  display: block;
}

.mac-exterior {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s var(--ease);
  z-index: 5;
  pointer-events: none;
}

/* Desktop: hover to reveal interior */
.mac-container:hover .mac-exterior {
  opacity: 0;
}

/* Mobile: tap toggles .revealed class */
.mac-container.revealed .mac-exterior {
  opacity: 0;
}

/* Hotspot grid */
.hotspot-grid {
  position: absolute;
  top: 6%;
  left: 5%;
  right: 5%;
  bottom: 26%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  z-index: 6;
}

.hotspot {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.hotspot-label {
  font-family: var(--font-sans);
  font-size: 0;
  color: transparent;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  transition: all 0.3s var(--ease);
  pointer-events: none;
}

/* Show labels only when interior is visible and room is hovered */
.mac-container:hover .hotspot:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.mac-container:hover .hotspot:hover .hotspot-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.95);
}

/* Room accent colors on hover */
.mac-container:hover .hotspot[data-room="study"]:hover { border-color: #a78bfa; }
.mac-container:hover .hotspot[data-room="study"]:hover .hotspot-label { color: #a78bfa; }
.mac-container:hover .hotspot[data-room="library"]:hover { border-color: #818cf8; }
.mac-container:hover .hotspot[data-room="library"]:hover .hotspot-label { color: #818cf8; }
.mac-container:hover .hotspot[data-room="gallery"]:hover { border-color: #f472b6; }
.mac-container:hover .hotspot[data-room="gallery"]:hover .hotspot-label { color: #f472b6; }
.mac-container:hover .hotspot[data-room="living"]:hover { border-color: #fbbf24; }
.mac-container:hover .hotspot[data-room="living"]:hover .hotspot-label { color: #fbbf24; }
.mac-container:hover .hotspot[data-room="nerve"]:hover { border-color: #34d399; }
.mac-container:hover .hotspot[data-room="nerve"]:hover .hotspot-label { color: #34d399; }
.mac-container:hover .hotspot[data-room="workshop"]:hover { border-color: #60a5fa; }
.mac-container:hover .hotspot[data-room="workshop"]:hover .hotspot-label { color: #60a5fa; }
.mac-container:hover .hotspot[data-room="bedroom"]:hover { border-color: #c084fc; }
.mac-container:hover .hotspot[data-room="bedroom"]:hover .hotspot-label { color: #c084fc; }
.mac-container:hover .hotspot[data-room="door"]:hover { border-color: #fb923c; }
.mac-container:hover .hotspot[data-room="door"]:hover .hotspot-label { color: #fb923c; }
.mac-container:hover .hotspot[data-room="garden"]:hover { border-color: #4ade80; }
.mac-container:hover .hotspot[data-room="garden"]:hover .hotspot-label { color: #4ade80; }

.hotspot:active { transform: scale(0.97); }

/* Mobile: show labels when tapped open */
.mac-container.revealed .hotspot-label {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
}
.mac-container.revealed .hotspot:active .hotspot-label {
  color: rgba(255, 255, 255, 0.95);
}

@media (hover: none) {
  .hotspot-label {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .mac-container { border-radius: 10px; }
  .hotspot-grid { top: 5%; left: 4%; right: 4%; bottom: 22%; }
  main { padding: 0.5rem 1rem 1.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, 0.15); border-radius: 3px; }

::selection {
  background: var(--accent-dim);
  color: var(--heading);
}
