/*
 * Główny arkusz stylów dla strony ZERO STØ.
 * Utrzymuje minimalistyczny, luksusowy charakter poprzez stonowane kolory,
 * dużo wolnej przestrzeni i skupienie na najważniejszych elementach.
 */

/* Zmienna kolorów – łatwa zmiana w jednym miejscu */
:root {
  --bg-primary: #060606;         /* prawie czarne tło */
  --bg-secondary: #101010;       /* ciemniejszy panel */
  --color-text-main: #f5f5f5;    /* jasny tekst */
  --color-text-muted: #888;      /* zgaszony tekst */
  --color-accent-green: #00a86b; /* charakterystyczny zielony */
  --color-accent-red: #e30a17;   /* delikatny czerwony dla logo */
  --color-border: #0f402c;       /* zgaszony zielony na ramki */
  --font-family: 'Montserrat', 'Arial', sans-serif;
}

html, body {
  padding: 0;
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Nawigacja */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.nav-logo img {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: var(--color-accent-green);
}

/* Podkreślenie elementu nawigacji */
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-green);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Sekcja hero */
.hero {
  height: 100vh;
  background-image: url('hero_car.png');
  background-size: cover;
  background-position: 100% center;
  position: relative;
  color: var(--color-text-main);
  /* animacja przesuwająca tło samochodu, dająca wrażenie ruchu */
  animation: heroMove 30s linear infinite;
}

/* Ciemna nakładka zapewnia lepszy kontrast tekstu nad zdjęciem */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20vh 2rem 0;
  text-align: left;
}

.hero h1 {
  font-size: 4rem;
  margin: 0 0 1rem;
  letter-spacing: 0.1em;
}

.hero h2 {
  font-size: 2rem;
  margin: 0 0 1.5rem;
  line-height: 1.3;
  font-weight: 300;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-accent-green);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: #00c37d;
}

.btn-secondary {
  border: 1px solid var(--color-accent-green);
  color: var(--color-accent-green);
}

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

/* strzałka przewijania */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-down .arrow {
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--color-accent-green);
  border-bottom: 2px solid var(--color-accent-green);
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0) rotate(-45deg); }
  40% { transform: translateX(-50%) translateY(5px) rotate(-45deg); }
  60% { transform: translateX(-50%) translateY(3px) rotate(-45deg); }
}

/* Sekcja najnowszego filmu i informacji */
.latest-section {
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
}

.section-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.video-wrapper {
  flex: 2 1 600px;
}

.video-wrapper h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.video-container {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--color-accent-green);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.video-container iframe {
  width: 100%;
  height: 315px;
  display: block;
}

.video-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.video-caption a {
  color: var(--color-accent-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-caption a:hover {
  color: #00c37d;
}

.info-wrapper {
  flex: 1 1 300px;
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.info-wrapper h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: var(--color-accent-green);
}

.bio {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.social-title {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-list li {
  margin-bottom: 1rem;
}

.social-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-main);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.social-list a:hover {
  background-color: #0d251a;
}

.icon {
  width: 24px;
  height: 24px;
  margin-right: 0.6rem;
  display: inline-block;
}

/* Ikony platform – wykorzystujemy tło SVG zdefiniowane w CSS */
.icon.youtube {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="4" ry="4" fill="%2300a86b"/><polygon points="10,8 16,12 10,16" fill="%23060606"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

.icon.facebook {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="4" ry="4" fill="%2300a86b"/><path d="M15 8h-2c-.6 0-1 .4-1 1v2h3l-.5 3h-2.5v7h-3v-7h-2v-3h2v-2c0-1.7 1.3-3 3-3h2v3z" fill="%23060606"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

.icon.tiktok {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="4" ry="4" fill="%2300a86b"/><path d="M15.5 6.5c-1.2-.6-2-1.8-2-3.2h-2.8v12.8c0 1-.8 1.8-1.8 1.8s-1.8-.8-1.8-1.8c0-1 .8-1.8 1.8-1.8.3 0 .6.1.9.2v-3.5c-2.3-.4-4.5 1.2-4.9 3.5-.4 2.3 1.2 4.5 3.5 4.9 2.3.4 4.5-1.2 4.9-3.5V8.7c.7.6 1.6 1 2.6 1V6.5h-.4z" fill="%23060606"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Instagram icon */
.icon.instagram {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="4" ry="4" fill="%2300a86b"/><circle cx="12" cy="12" r="5" fill="%23060606"/><rect x="17" y="7" width="2" height="2" fill="%23060606"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

.social-name {
  font-size: 1rem;
  font-weight: 500;
}

/* Stopka */
.footer {
  background-color: var(--bg-secondary);
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  .section-inner {
    flex-direction: column;
  }
  .video-container iframe {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero h2 {
    font-size: 1.2rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*
 * Animacja przesuwania tła hero – powolny ruch w poziomie powoduje, że
 * samochód zdaje się jechać. Obraz przesuwa się od prawej do lewej. Im
 * dłuższy czas trwania, tym subtelniejszy efekt. Możesz zmienić czas
 * trwania, aby przyspieszyć lub spowolnić ruch.
 */
@keyframes heroMove {
  from {
    background-position: 100% center;
  }
  to {
    background-position: 0% center;
  }
}