/* ============================================
   THE MACROVERSE - Surreal Depth-Morphism Design System
   Miniature Diorama & Book Nook Artistry Website
   ============================================ */

/* CSS Variables */
:root {
  /* Colors */
  --color-primary: #2B1B17;
  --color-secondary: #4E4E4E;
  --color-accent: #FFD700;
  --color-highlight: #F5F5DC;
  --color-dark: #1a1412;
  --color-light: #ffffff;
  
  /* Typography */
  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-highlight);
  background-color: var(--color-dark);
  overflow-x: hidden;
  position: relative;
}

/* Flashlight Cursor Effect */
body::before {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity var(--transition-base);
  transform: translate(-50%, -50%);
}

body.flashlight-active::before {
  opacity: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-highlight);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-highlight);
}

/* Header */
.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(43, 27, 23, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-header .brand-name {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--color-highlight);
  font-weight: 300;
}

.site-nav {
  display: flex;
  gap: 15px;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-highlight);
  font-size: 0.95rem;
  padding: var(--space-sm) var(--space-md);
  transition: color var(--transition-base);
}

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

/* Burger Menu */
.burger-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-highlight);
  font-size: 1.5rem;
  z-index: 10001;
}

.burger-toggle:hover {
  color: var(--color-accent);
}

@media (max-width: 1023px) {
  .burger-toggle {
    display: block;
  }
  
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(43, 27, 23, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 3px;
    gap: var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
    width: 100%;
    z-index: 1000;
  }
  .footer-bottom p{color: white}
  
  .site-nav.active {
    max-height: 500px;
  }
  
  .site-nav a {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(245, 245, 220, 0.1);
  }
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
}

/* Hero Banner - Full Width with Tilt-Shift Effect */
.hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 20, 18, 0.7) 0%,
    transparent 20%,
    transparent 80%,
    rgba(26, 20, 18, 0.7) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-xl);
  max-width: 800px;
}

.hero-content h1 {
  color: var(--color-highlight);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: var(--space-lg);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-highlight);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Section Styles */
.content-section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.section-item {
  background: rgba(78, 78, 78, 0.3);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.section-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.section-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  filter: brightness(0.85);
}

.section-item h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* Banner Section with Background Image */
.banner-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: var(--space-xxl) var(--space-lg);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.4) blur(2px);
  z-index: 1;
}

.banner-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 20, 18, 0.6);
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  width: 100%;
  text-align: center;
}

.banner-content h2,
.banner-content p {
  color: var(--color-highlight);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* Portal Scroll Effect */
.portal-section {
  position: relative;
  padding: var(--space-xxl) var(--space-lg);
  overflow: hidden;
}

.portal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(26, 20, 18, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.portal-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  margin-top: 10px;
}

.btn:hover {
  background: var(--color-highlight);
  color: black;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: var(--space-xl) auto;
  background: rgba(78, 78, 78, 0.3);
  backdrop-filter: blur(10px);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-highlight);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: rgba(245, 245, 220, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-highlight);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Google Maps */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.product-card {
  background: rgba(78, 78, 78, 0.3);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.product-price {
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: var(--space-md) 0;
}

/* Footer */
.site-footer {
  background: rgba(43, 27, 23, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.footer-section h4 {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--color-highlight);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(245, 245, 220, 0.1);
  color: var(--color-secondary);
  font-size: 0.9rem;
}

/* Privacy Policy Popup */
.privacy-popup {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: rgba(43, 27, 23, 0.98);
  backdrop-filter: blur(15px);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  border: 1px solid rgba(255, 215, 0, 0.3);
  display: none;
}

.privacy-popup.active {
  display: block;
}

.privacy-popup p {
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-highlight);
}

.privacy-popup .btn {
  width: 100%;
  text-align: center;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.error-page p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: var(--space-xl);
}

/* Thank You Page */
.thank-you-page {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.thank-you-page h1 {
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.thank-you-page p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

/* Legal Pages */
.legal-page {
  max-width: 800px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl) var(--space-lg);
}

.legal-page h1 {
  margin-bottom: var(--space-xl);
  color: var(--color-accent);
}

.legal-page h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-highlight);
}

.legal-page .date {
  color: var(--color-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.legal-page ul {
  margin-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-page li {
  margin-bottom: var(--space-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  
  .content-section,
  .banner-section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .hero-banner {
    height: 50vh;
    min-height: 300px;
  }
  
  .section-grid,
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .privacy-popup {
    bottom: var(--space-md);
    right: var(--space-md);
    left: var(--space-md);
    max-width: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .hero-content {
    padding: var(--space-lg);
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
}

/* Night Mode */
body.night-mode {
  background-color: #0a0807;
}

body.night-mode .hero-banner::before,
body.night-mode .banner-section::after {
  background: rgba(10, 8, 7, 0.8);
}

body.night-mode .section-item,
body.night-mode .product-card,
body.night-mode .contact-form {
  background: rgba(78, 78, 78, 0.2);
}

body.night-mode .site-header,
body.night-mode .site-footer {
  background: rgba(43, 27, 23, 0.98);
}

body.night-mode img {
  filter: brightness(0.7);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

