:root {
  --bg: #101214;
  --surface: rgba(255, 255, 255, 0.05);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --walnut: #5A3E2B;
  --brass: #C9A227;
  --brass-hover: #E3BC43;
  --charcoal: #1E293B;
  --ivory: #F8F6F2;
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ivory);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glassShimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--brass);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: var(--brass-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--glass);
  color: var(--ivory);
  border: 1px solid var(--brass);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.15);
}

/* Header */
.case-file-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(16, 18, 20, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass);
}

.top-disclaimer-banner {
  background-color: #000000;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.7rem;
  padding: 8px 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--glass);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brass);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--brass);
}

/* Background Image Classes */
.bg-luxury-detective-office-night {
  background-image: linear-gradient(to bottom, rgba(16,18,20,0.4), rgba(16,18,20,1)), url('assets/images/luxury-detective-office-night.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-premium-detective-library-walnut {
  background-image: linear-gradient(to right, rgba(16,18,20,0.95), rgba(16,18,20,0.85)), url('assets/images/premium-detective-library-walnut.jpg');
  background-size: cover;
  background-position: center;
}

.bg-panoramic-nighttime-city-skyline {
  background-image: linear-gradient(to top, rgba(16,18,20,1), rgba(16,18,20,0.85)), url('assets/images/panoramic-nighttime-city-skyline.jpg');
  background-size: cover;
  background-position: center;
}

/* Case Board Layout */
.case-board {
  padding-top: 120px;
  position: relative;
}

/* Pins for Case Board aesthetic */
.brass-pin {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #FDE48C, var(--brass), #8A6D15);
  border-radius: 50%;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.6);
  position: absolute;
  z-index: 5;
}

.pin-tl { top: 15px; left: 15px; }
.pin-tr { top: 15px; right: 15px; }
.pin-bl { bottom: 15px; left: 15px; }
.pin-br { bottom: 15px; right: 15px; }
.pin-tc { top: 10px; left: 50%; transform: translateX(-50%); }

/* Hero Section */
.hero-section {
  padding: 6rem 2rem 2rem;
  text-align: center;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--brass);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease forwards;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--ivory);
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeIn 1s ease forwards 0.2s;
  opacity: 0;
}

/* Evidence Table Container */
.evidence-table-container {
  max-width: 1400px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.evidence-visuals {
  width: 100%;
  max-width: 1200px;
  margin-bottom: -50px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.evidence-visuals img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  opacity: 0.6;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.evidence-desk {
  width: 100%;
  max-width: 1000px;
  background: var(--charcoal);
  border: 12px solid var(--walnut);
  border-radius: 20px;
  box-shadow: 
    inset 0 0 0 2px var(--brass),
    inset 0 0 50px rgba(0,0,0,0.8),
    0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
  padding: 4px;
}

.leather-inlay {
  background: #111417;
  border-radius: 8px;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.game-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

.desk-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(16,18,20,0.8);
  border-radius: 0 0 10px 10px;
  border-top: 1px solid var(--glass);
}

/* Clue Panels */
.clue-panels-container {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.clue-panels {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 2rem;
  position: relative;
}

.clue-panels::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 1px;
  background: rgba(201, 162, 39, 0.3);
  z-index: 0;
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.2);
}

.panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--glass);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.4s ease;
}

.panel:hover {
  transform: translateY(-5px);
}

.panel-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brass);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass);
  padding-bottom: 0.5rem;
}

.folder-left {
  border-radius: 15px 5px 5px 15px;
  border-left: 4px solid var(--walnut);
}

.folder-right {
  border-radius: 5px 15px 15px 5px;
  border-right: 4px solid var(--walnut);
}

.board-center {
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px dashed var(--brass);
}

.clue-list li {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
}

.clue-list li::before {
  content: '■';
  color: var(--brass);
  margin-right: 10px;
  font-size: 0.6rem;
  margin-top: 5px;
}

.blueprint-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.spec-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--ivory);
  margin-top: 0.25rem;
}

/* Case Report */
.case-report-container {
  padding: 6rem 0;
  margin: 4rem 0;
  border-top: 1px solid var(--glass);
  border-bottom: 1px solid var(--glass);
}

.case-report-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.report-document {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass);
  padding: 4rem 6rem;
  border-radius: 4px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.report-document p {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.8;
  color: var(--ivory);
  margin-bottom: 2rem;
  font-style: italic;
}

.report-document p:last-child {
  margin-bottom: 0;
}

/* Investigation Office */
.investigation-office {
  padding: 6rem 0;
}

.office-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
}

.office-image-wrapper {
  grid-column: 1 / -1;
  margin-bottom: 3rem;
}

.office-image-wrapper img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--glass);
}

.office-col {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--glass);
  height: 100%;
}

.office-col-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--brass);
}

.support-info {
  margin-bottom: 2rem;
}

.support-info h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.support-info p {
  font-size: 1.1rem;
  color: var(--ivory);
}

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

.faq-item h5 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass);
  padding: 12px 15px;
  border-radius: 4px;
  color: var(--ivory);
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Legal Pages */
.legal-main {
  padding: 160px 2rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-document {
  background: var(--surface);
  border: 1px solid var(--glass);
  padding: 4rem;
  border-radius: 8px;
}

.legal-document h1 {
  font-size: 2.5rem;
  color: var(--brass);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--glass);
  padding-bottom: 1rem;
}

.legal-document h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--ivory);
}

.legal-document p, 
.legal-document ul {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.legal-document ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-document li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass);
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--brass);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--brass);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  border-top: 1px solid var(--glass);
  padding-top: 2rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .clue-panels {
    grid-template-columns: 1fr 1fr;
  }
  .board-center {
    grid-column: 1 / -1;
    order: -1;
  }
  .clue-panels::before {
    display: none;
  }
}

@media (max-width: 992px) {
  .office-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .report-document {
    padding: 3rem;
  }
  
  .report-document p {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none; /* Mobile menu would typically go here, keeping simple per prompt */
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .evidence-desk {
    border-width: 6px;
  }
  
  .desk-controls {
    flex-direction: column;
  }
  
  .clue-panels {
    grid-template-columns: 1fr;
  }
  
  .folder-left, .folder-right {
    border-radius: 8px;
    border: 1px solid var(--glass);
  }
  
  .report-document {
    padding: 2rem;
  }
  
  .legal-document {
    padding: 2rem;
  }
  
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}