/* ============================================
   FUTURISTIC LIBRARY CURATION WEBSITE
   Glassmorphism Design System
   ============================================ */

:root {
  /* Color Palette - The Transparent Archive */
  --color-void: #0A0B10;
  --color-data-blue: #00F0FF;
  --color-oxidized-gold: #C5A059;
  --color-surface-glass: rgba(255, 255, 255, 0.05);
  --color-surface-glass-hover: rgba(255, 255, 255, 0.1);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);
  
  /* Typography */
  --font-serif: 'Bodoni Moda', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows & Effects */
  --shadow-glass: 0 8px 32px 0 rgba(0, 240, 255, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.3);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --max-width: 1400px;
  --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-sans);
  background: var(--color-void);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-data-blue);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(1.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.2rem, 4vw, 3rem);
}

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

h4 {
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
}

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

.mono-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-surface-glass);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--color-text-primary);
}

.main-nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

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

.nav-link {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-data-blue);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1000001;
  padding: var(--space-sm);
  background: var(--color-surface-glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-surface-glass-hover);
  cursor: pointer;
  transition: all var(--transition-base);
}

.burger-btn:hover {
  background: var(--color-surface-glass-hover);
  border-color: var(--color-data-blue);
}

.burger-line {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
}

.burger-btn.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 11, 16, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-surface-glass);
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-md);
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-link {
  font-size: 1rem;
  color: var(--color-text-secondary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-surface-glass);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-data-blue);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  min-height: calc(100vh - 200px);
}

/* ============================================
   HERO BANNER (Full Width)
   ============================================ */

.hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 16, 0.7) 0%,
    rgba(10, 11, 16, 0.5) 50%,
    rgba(10, 11, 16, 0.8) 100%
  );
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-data-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.content-section {
  padding: var(--space-3xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-container {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ============================================
   GLASS CARDS
   ============================================ */

.glass-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-surface-glass-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 240, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.glass-card:hover {
  background: var(--color-surface-glass-hover);
  border-color: var(--color-data-blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glass);
}

.glass-card:hover::before {
  left: 100%;
}

.card-image {
  width: 100%;
  max-width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-md) auto;
  opacity: 0.8;
  transition: opacity var(--transition-base);
  display: block;
}

.glass-card:hover .card-image {
  opacity: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.card-text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   BANNER SECTIONS
   ============================================ */

.banner-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: var(--space-3xl) 0;
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.25;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 16, 0.8) 0%,
    rgba(10, 11, 16, 0.6) 50%,
    rgba(10, 11, 16, 0.8) 100%
  );
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--color-surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-surface-glass-hover);
  border-radius: var(--radius-lg);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-surface-glass-hover);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-base);
}

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

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

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

.form-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-data-blue);
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.btn-primary {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-data-blue) 0%, #0099CC 100%);
  color: var(--color-void);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  width: 100%;
  margin-top: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   PRODUCTS
   ============================================ */

.product-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-surface-glass-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-data-blue);
  box-shadow: var(--shadow-glass);
}

.product-price {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-oxidized-gold);
  margin-top: var(--space-md);
  font-weight: 700;
}

/* ============================================
   MAPS
   ============================================ */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-xl);
  border: 1px solid var(--color-surface-glass-hover);
}

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

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-xl) var(--space-lg);
  background: rgba(10, 11, 16, 0.9);
  border-top: 1px solid var(--color-surface-glass);
}

.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 {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.footer-link {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-data-blue);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-surface-glass);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.date {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  
  .burger-btn {
    display: flex;
  }
  
  .hero-banner {
    min-height: 500px;
  }
  
  .banner-section {
    min-height: 350px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .content-section {
    padding: var(--space-2xl) var(--space-md);
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }
  
  .site-header {
    padding: var(--space-md);
  }
  
  .hero-banner {
    min-height: 400px;
  }
  
  .banner-section {
    min-height: 300px;
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .nav-link {
    font-size: 0.875rem;
  }
  
  .hero-banner {
    min-height: 350px;
  }
  
  .banner-section {
    min-height: 250px;
  }
  
  .glass-card {
    padding: var(--space-lg);
  }
}

@media (max-width: 320px) {
  .site-header {
    padding: var(--space-sm);
  }
  
  .content-section {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .hero-content,
  .banner-content {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   PRIVACY POPUP
   ============================================ */

.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 16, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

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

.popup-content {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-surface-glass-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-glass-hover);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
}

.popup-close:hover {
  background: var(--color-data-blue);
  transform: rotate(90deg);
}

.popup-title {
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.popup-text {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.popup-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.btn-accept {
  flex: 1;
  padding: var(--space-md);
  background: var(--color-data-blue);
  color: var(--color-void);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-decline {
  flex: 1;
  padding: var(--space-md);
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-surface-glass-hover);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-decline:hover {
  border-color: var(--color-data-blue);
  color: var(--color-data-blue);
}

