
/* ============================================
   T.E.K.M. — TOWARZYSZE EJAJE KOMBINAT MYŚLI
   V1 — Industrial / Sci-Fi / Dark Theme
   ============================================ */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-hover: #1e1e1e;
  --text-primary: #e8e8e8;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-red: #991b1b;
  --accent-red-light: #dc2626;
  --accent-red-glow: rgba(220, 38, 38, 0.4);
  --accent-yellow: #fbbf24;
  --accent-yellow-dim: rgba(251, 191, 36, 0.15);
  --border: #27272a;
  --border-light: #3f3f46;
  --nav-width: 260px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-mono: 'Courier New', Courier, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

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

::selection {
  background: var(--accent-red);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* ============================================
   LAYOUT
   ============================================ */

.app-container {
  display: flex;
  min-height: 100vh;
}

/* Left Navigation */
.sidebar {
  width: var(--nav-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.logo-link {
  display: block;
  text-decoration: none;
}

.logo-link img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: var(--transition);
}

.logo-link:hover img {
  filter: brightness(1.1) drop-shadow(0 0 12px var(--accent-red-glow));
}

.logo-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.75rem;
  text-align: center;
}

.nav-menu {
  flex: 1;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.nav-item:hover svg,
.nav-item.active svg {
  opacity: 1;
  color: var(--accent-red-light);
}

.nav-item.active {
  border-left: 3px solid var(--accent-red-light);
}

/* Language Switcher */
.lang-switch {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

.lang-switch a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.lang-switch a.active {
  color: var(--accent-red-light);
  font-weight: 700;
}

.lang-switch .divider {
  color: var(--border-light);
}

/* Main Content */
.main-content {
  margin-left: var(--nav-width);
  flex: 1;
  min-height: 100vh;
  position: relative;
}

.section {
  display: none;
  padding: 0;
  animation: fadeIn 0.5s ease;
}

.section.active {
  display: block;
}

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

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

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.mobile-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.mobile-logo span {
  color: var(--accent-red-light);
}

.hamburger {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   HERO / HOME
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(153, 27, 27, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(251, 191, 36, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero-logo {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
  margin-bottom: 2rem;
}

.hero-logo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border);
  transition: var(--transition);
}

.hero-logo:hover img {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-red-glow);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

.hero-title strong {
  color: var(--accent-red-light);
  font-weight: 600;
}

.hero-desc {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.btn-primary:hover {
  background: var(--accent-red-light);
  border-color: var(--accent-red-light);
  box-shadow: 0 0 20px var(--accent-red-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent-red-light);
  color: var(--text-primary);
  background: rgba(220, 38, 38, 0.05);
}

.btn-yellow {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-yellow);
  border-color: var(--accent-yellow);
}

.btn-yellow:hover {
  background: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

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

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.5rem;
  background: var(--accent-red-light);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ============================================
   T.E.K.M. SECTION
   ============================================ */

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text p {
  margin-bottom: 1.25rem;
}

.about-text blockquote {
  border-left: 3px solid var(--accent-red);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-primary);
  font-style: italic;
  font-size: 1.1rem;
}

.about-text strong {
  color: var(--text-primary);
}

/* ============================================
   DUSTVERSUM EFFECT
   ============================================ */

.dustversum-link {
  color: var(--accent-red-light);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}

.dustversum-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red-light);
  transition: width 0.3s ease;
}

.dustversum-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--accent-red-glow), 0 0 20px var(--accent-red-glow);
  animation: dustversumPulse 2s infinite;
}

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

@keyframes dustversumPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Glitch effect on hover */
.dustversum-link:hover {
  animation: dustversumPulse 2s infinite, glitchText 0.3s infinite;
}

@keyframes glitchText {
  0% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

/* ============================================
   SHOP SECTION
   ============================================ */

.shop-intro {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.shop-brand {
  max-width: 200px;
  flex-shrink: 0;
}

.shop-brand img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  opacity: 0.9;
  transition: var(--transition);
}

.shop-brand img:hover {
  opacity: 1;
}

.shop-desc {
  flex: 1;
  min-width: 250px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.shop-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.shop-item:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(220, 38, 38, 0.2);
}

.shop-item-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-secondary);
  transition: var(--transition);
}

.shop-item:hover .shop-item-img {
  filter: brightness(1.1);
}

.shop-item-info {
  padding: 1rem;
}

.shop-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.shop-item-store {
  font-size: 0.75rem;
  color: var(--accent-yellow);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-card);
  aspect-ratio: 4/3;
  transition: var(--transition);
}

.gallery-item:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 20px var(--accent-red-glow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-red-light);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.email-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--accent-red-glow);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent-red-light);
  color: var(--accent-red-light);
  background: rgba(220, 38, 38, 0.05);
  transform: translateY(-2px);
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-red-light);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

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

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

/* ============================================
   MODAL / LIGHTBOX
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
}

.modal-caption {
  padding: 1.5rem 2rem;
  text-align: center;
}

.modal-caption h3 {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-caption p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* DustVersum specific modal */
.dustversum-modal .modal-content {
  border-color: var(--accent-red);
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.15), 0 25px 50px rgba(0, 0, 0, 0.8);
}

.dustversum-teaser-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

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

.site-footer {
  margin-top: auto;
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-red-light);
}

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

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-header {
    display: flex;
  }

  .hero,
  .section-inner {
    padding-top: 6rem;
  }

  .shop-intro {
    flex-direction: column;
    text-align: center;
  }

  .shop-brand {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 5rem 1.25rem 3rem;
    min-height: auto;
  }

  .section-inner {
    padding: 3rem 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-red { color: var(--accent-red-light); }
.text-yellow { color: var(--accent-yellow); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
