/* ============================================
   CINEMATIC VOID - Ultra-Minimalist Dark Tech
   Professional Photography Portfolio
   ============================================ */

:root {
  /* Color Palette */
  --color-primary: #121212;
  --color-secondary: #FFFFFF;
  --color-accent: #FF0000;
  --color-highlight: #1E1E1E;
  --color-glass: rgba(30, 30, 30, 0.85);
  
  /* Typography */
  --font-primary: 'Oswald', sans-serif;
  --font-secondary: 'Roboto Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  
  /* Borders & Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  
  /* Z-index layers */
  --z-base: 1;
  --z-overlay: 10;
  --z-modal: 100;
  --z-shutter: 1000;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

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

body {
  font-family: var(--font-secondary);
  background-color: var(--color-primary);
  color: var(--color-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
  font-size: clamp(0.875rem, 2vw, 1rem);
  margin-bottom: var(--space-md);
}

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.site-header > nav:first-of-type {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.site-header.hidden {
  opacity: 0.1;
  pointer-events: none;
}

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

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

.nav-link {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  position: relative;
}

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

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

/* Burger Menu */
.burger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: calc(var(--z-overlay) + 10);
  position: relative;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: space-around;
  order: 999;
}

.burger-line {
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  transition: all var(--transition-base);
  transform-origin: center;
}

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

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

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

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--color-highlight);
  z-index: calc(var(--z-modal) + 10);
  padding: var(--space-xxl) var(--space-lg);
  padding-top: calc(var(--space-xxl) + 80px);
  transition: right var(--transition-slow);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
  right: 0;
}

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

.mobile-nav-link {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

@media (max-width: 1023px) {
  .nav-menu {
    display: none;
  }
  
  .burger-toggle {
    display: flex;
    margin-left: auto;
    order: 999;
  }
  
  .site-header > nav:first-of-type {
    display: none;
  }
  
  .site-header {
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

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

main {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

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

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

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: var(--z-base);
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: calc(var(--z-base) + 1);
  text-align: center;
  padding: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero-subtitle {
  font-family: var(--font-secondary);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.9;
}

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

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

.content-section > * {
  width: 100%;
}

.content-section .section-title {
  text-align: center;
  width: 100%;
}

.content-section .section-grid {
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-accent);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .section-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (min-width: 1024px) {
  .section-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 1400px;
  }
}

.section-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-base), border-color var(--transition-base);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.section-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.section-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.section-item:hover .section-image {
  transform: scale(1.05);
}

.section-content {
  padding: var(--space-lg);
  background: var(--color-highlight);
}

.section-item-title {
  margin-bottom: var(--space-md);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

/* ============================================
   HORIZONTAL FILMSTRIP SCROLLING
   ============================================ */

.filmstrip-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-xl) 0;
  margin: var(--space-xl) 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-primary);
}

.filmstrip-container::-webkit-scrollbar {
  height: 4px;
}

.filmstrip-container::-webkit-scrollbar-track {
  background: var(--color-primary);
}

.filmstrip-container::-webkit-scrollbar-thumb {
  background: var(--color-accent);
}

.filmstrip-gallery {
  display: flex;
  gap: var(--space-lg);
  padding: 0 var(--space-lg);
  width: max-content;
}

.filmstrip-item {
  flex-shrink: 0;
  width: 400px;
  height: 500px;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.filmstrip-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.filmstrip-item:hover .filmstrip-image {
  transform: scale(1.1);
}

/* EXIF Data Toggle */
.exif-toggle {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: calc(var(--z-base) + 1);
  transition: all var(--transition-base);
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  color: var(--color-secondary);
}

.exif-toggle:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.1);
}

.exif-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  padding: var(--space-lg);
  display: none;
  flex-direction: column;
  justify-content: center;
  z-index: calc(var(--z-base) + 2);
  border: 2px solid var(--color-accent);
}

.exif-hud.active {
  display: flex;
}

.exif-data {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  line-height: 2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.exif-label {
  color: var(--color-accent);
  margin-right: var(--space-md);
}

.exif-value {
  color: var(--color-secondary);
}

.heat-map {
  margin-top: var(--space-lg);
  width: 100%;
  height: 100px;
  background: linear-gradient(90deg, 
    rgba(255, 0, 0, 0.1) 0%,
    rgba(255, 0, 0, 0.3) 30%,
    rgba(255, 0, 0, 0.5) 50%,
    rgba(255, 0, 0, 0.3) 70%,
    rgba(255, 0, 0, 0.1) 100%
  );
  border: 1px solid var(--color-accent);
}

/* ============================================
   DYNAMIC VIEWPORT (Adaptive Cropping)
   ============================================ */

.viewport-expand {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-modal);
  background: var(--color-primary);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.viewport-expand.active {
  display: flex;
}

.viewport-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.viewport-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  background: var(--color-glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.viewport-close:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================
   SHUTTER TRANSITION
   ============================================ */

.shutter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  z-index: var(--z-shutter);
  pointer-events: none;
  opacity: 0;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path var(--transition-fast);
}

.shutter-overlay.active {
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

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

.contact-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
}

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

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

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

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

.checkbox-input {
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-submit {
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-base);
  width: 100%;
}

.form-submit:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}


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

.map-container {
  width: 100%;
  height: 400px;
  margin: var(--space-xl) 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

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

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

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

.product-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-highlight);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: var(--space-lg);
}

.product-title {
  margin-bottom: var(--space-sm);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

.product-description {
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.6;
}

.product-price {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  color: var(--color-accent);
  font-weight: 600;
}

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

.site-footer {
  background: var(--color-highlight);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

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

.footer-section-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.footer-menu {
  list-style: none;
}

.footer-menu-item {
  margin-bottom: var(--space-sm);
}

.footer-link {
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-link:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer-contact {
  font-size: 0.875rem;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-copyright {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ============================================
   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); }

.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); }

/* Legal page content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-date {
  text-align: center;
  margin-bottom: var(--space-xl);
  opacity: 0.8;
}

.legal-section {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-link {
  color: var(--color-accent);
}

.legal-link:hover {
  opacity: 0.8;
}

.error-text {
  max-width: 500px;
  margin: 0 auto var(--space-lg);
  opacity: 0.8;
}

.inline-submit {
  display: inline-block;
  width: auto;
  margin-top: var(--space-lg);
}

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

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-xxl: 4rem;
  }
  
  .content-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .section-grid {
    grid-template-columns: 1fr;
  }
  
  .filmstrip-item {
    width: 300px;
    height: 400px;
  }
  
  .hero-banner {
    min-height: 500px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .hero-content {
    padding: var(--space-lg);
  }
  
  .filmstrip-item {
    width: 250px;
    height: 350px;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 14px;
  }
  
  .content-section {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* ============================================
   THANK YOU PAGE
   ============================================ */

.thank-you-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xxl);
}

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

.thank-you-note {
  font-size: clamp(0.875rem, 2vw, 1rem);
  max-width: 600px;
  margin-bottom: var(--space-xl);
  opacity: 0.8;
}

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

.privacy-popup {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  max-width: 600px;
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-lg);
  z-index: var(--z-modal);
  display: none;
}

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

.privacy-content {
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  line-height: 1.6;
}

.privacy-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-button {
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-base);
  flex: 1;
  min-width: 120px;
}

.privacy-button:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================
   PROOFING SELECTION
   ============================================ */

.proofing-select {
  background: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: var(--space-sm);
  font-family: inherit;
}

.proofing-select:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: scale(1.1);
}

.proofing-id {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ============================================
   GEAR SPECS
   ============================================ */

.gear-spec {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  color: var(--color-accent);
}

/* ============================================
   404 PAGE
   ============================================ */

.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl);
}

.error-code {
  font-size: clamp(4rem, 15vw, 8rem);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.error-message {
  font-size: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: var(--space-lg);
}

.error-link {
  padding: var(--space-md) var(--space-xl);
  border: 1px solid var(--color-secondary);
  display: inline-block;
  margin-top: var(--space-lg);
  transition: all var(--transition-base);
}

.error-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

