:root {
  --background: hsl(222, 47%, 11%);
  --foreground: #ffffff;
  --primary: #60a5fa;
  --secondary: #3b82f6;
  --destructive: #ef4444;
  --muted: #6b7280;
  --border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
  --heading-base: clamp(1.75rem, 4.5vw, 2.8rem);
}

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

html, body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* HEADER */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  padding: 20px 0;
  transition: var(--transition);
}

#main-header.scrolled {
  background: hsla(222, 47%, 11%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.header-content {

  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  transition: transform 0.3s;
}

.logo-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.logo-header:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
}

.main-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 768px) {
  .main-nav { 
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  
  .main-nav.mobile-menu-visible {
    display: flex;
  }
  
  .main-nav a {
    padding: 16px 20px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border);
  }
  
  .mobile-menu-btn { display: block; }
  #main-header { padding: 15px 20px; }
}

/* MAIN - margin dla fixed header */
main {
  
}

/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #000;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.background-video::-webkit-media-controls {
  display: none !important;
}

.background-video::-webkit-media-controls-panel {
  display: none !important;
}

.background-video::cue {
  display: none;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.video-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
  opacity: 0.9;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 4vw, 2rem);
}

.hero-header {
  flex-shrink: 0;
  margin-top: 80px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-container {
  flex-shrink: 0;
  width: clamp(3.5rem, 9vw, 14rem);
  height: clamp(3.5rem, 9vw, 14rem);
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text h1 {
  font-size: var(--heading-base);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  color: white;
}

.brand-text p {
  font-size: calc(var(--heading-base) * 0.51);
  opacity: 0.9;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}

.hero-footer {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: clamp(1rem, 5%, 5rem);
  gap: 30px;
}

.cta-text h2 {
  font-size: clamp(24px, 4vh, 72px);
  font-weight: 600;
  text-align: center;
  color: white;
}

.cta-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: white;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.5s;
}

.arrow-icon {
  width: clamp(1rem, 2vh, 1.25rem);
  height: clamp(1rem, 2vh, 1.25rem);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* PAGE HEADER */
.page-header {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 48px;
}

.video-overlay-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 10;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  width: 100%;
}

.page-header-content h1 {
  font-size: 5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* GRADIENT TRANSITION FROM VIDEO */
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--background));
  pointer-events: none;
  z-index: 5;
}

/* FOOTER */
#main-footer {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  margin-top: 80px;
}

#main-footer .background-video { z-index: 0; }
#main-footer .video-overlay { background: rgba(0, 0, 0, 0.5); }

.footer-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, hsl(222, 47%, 11%) 0%, hsla(222, 47%, 11%, 0.6) 20%, hsla(222, 47%, 11%, 0.4) 40%, hsla(222, 47%, 11%, 0.25) 60%, hsla(222, 47%, 11%, 0.1) 80%, rgba(0,0,0,0) 100%);
  z-index: 2;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 10;
  padding-bottom: 48px;
  padding-top: 128px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-end;
  margin-bottom: 48px;
}

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

.footer-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 1.125rem;
  color: #d1d5db;
  max-width: 448px;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-contact-grid h3 {
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

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

.footer-contact-list li {
  margin-bottom: 12px;
}

.footer-contact-list a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-list a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 32px;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}

/* SERVICES SECTION */
.services-section {
  padding: 80px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;

  margin: 0 auto;
}

.service-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 12px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  background: rgba(0, 0, 0, 0.5);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 8px;
}

.service-card:hover .service-icon { background: rgba(96, 165, 250, 0.3); }

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-card:hover .service-icon img { filter: brightness(1) invert(0); }

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 24px;
  line-height: 1.6;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.service-link:hover { color: #60a5fa; }

/* ABOUT/ONAS SECTION */
.about-section {
  padding: 96px 20px;

  margin: 0 auto;
}

.about-intro {
  text-align: center;
  margin-bottom: 64px;
}

.about-title {
  font-size: 1.25rem;
  color: #e5e7eb;
  font-weight: 500;
  margin-bottom: 16px;
}

.about-subtitle {
  font-size: 1rem;
  color: #9ca3af;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

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

.about-card {
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 12px;
}

.about-card p {
  font-size: 18px;
  color: #d1d5db;
  line-height: 1.8;
}

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

/* CONTACT SECTION */
.contact-section {
  padding: 80px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;

  margin: 0 auto;
}

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

.contact-form-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 48px;
  border-radius: 12px;
}

.contact-form-box h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e5e7eb;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

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

.submit-btn {
  background: var(--primary);
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
}

.submit-btn:hover {
  background: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(96, 165, 250, 0.3);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.contact-info p {
  color: #d1d5db;
  line-height: 1.6;
  font-size: 1rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.5rem;
  min-width: 32px;
  text-align: center;
  margin-top: 4px;
}

.info-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.info-item a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.info-item a:hover { color: #3b82f6; }

.info-item p {
  color: #d1d5db;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 8px 0;
}

/* ELECTRONICS SECTION */
.electronics-section {
  padding: 80px 20px;
}

.electronics-intro {
  max-width: 800px;
  margin: 0 auto 64px;
  text-align: center;
}

.electronics-intro h3 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.electronics-intro p {
  font-size: 1.125rem;
  color: #d1d5db;
  line-height: 1.8;
}

.electronics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;

  margin: 0 auto 64px;
}

.electronics-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

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

.electronics-video,
.electronics-image {
  width: 100%;
  height: 240px;
  background: #1a1a1a;
  overflow: hidden;
}

.electronics-video video,
.electronics-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.electronics-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  padding: 24px 24px 12px;
}

.electronics-card p {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 24px 24px;
}

.ntm-section {
  max-width: 900px;
  margin: 0 auto 64px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 48px;
  border-radius: 12px;
}

.ntm-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.ntm-section p {
  color: #d1d5db;
  line-height: 1.8;
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;

  margin: 0 auto;
}

.gallery-item {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 280px;
}

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

/* SYSTEMS SECTION */
.systems-section {
  padding: 80px 20px;
}

.systems-intro {
  max-width: 800px;
  margin: 0 auto 64px;
  text-align: center;
}

.systems-intro h3 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.systems-intro p {
  font-size: 1.125rem;
  color: #d1d5db;
  line-height: 1.8;
}

.systems-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;

  margin: 0 auto 64px;
}

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

.systems-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 12px;
  transition: all 0.3s;
}

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

.systems-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.systems-card p {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 0.95rem;
}

.systems-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;

  margin: 0 auto 64px;
}

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

.systems-image {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
  border: 1px solid var(--border);
}

.systems-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.washer-section {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 80px;
}

.washer-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 32px;
}

.washer-video {
  width: 100%;
  height: 400px;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--border);
}

.washer-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.washer-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.washer-feature h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.washer-feature p {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 0.95rem;
}

.washer-bottom-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.washer-media-item {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--border);
}

.washer-media-item video,
.washer-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Mobile specific styles moved from index.php */
@media screen and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .mobile-logo-link {
    transform: scale(0.8) translateX(-4rem);
    transform-origin: center center;
  }
  .mobile-landscape-cta-container {
    padding-bottom: 1rem !important;
    transform: translateY(1.5rem) !important;
    gap: 1rem !important;
  }
}
@media screen and (orientation: portrait) and (hover: none) and (pointer: coarse) {
  .mobile-header-container {
    margin-top: 3.5rem !important;
  }
  .mobile-logo-link {
    transform: scale(1.15);
    transform-origin: center top;
  }
}
