body {
  margin: 0px;
  padding: 0px;
  font-family: 'Lato', sans-serif;
  background-color: #fefefe ;
}

html {
  scroll-behavior: smooth;
}

header {
    width: 100%;
    height: 7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.header-container {
    max-width: 1440px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1000;
    gap: 6rem;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 120px;
    background-color: rgba(255, 255, 255, 0.2); /* priesvitné pozadie */
    backdrop-filter: blur(10px); /* rozmazanie pozadia */
    -webkit-backdrop-filter: blur(10px); /* pre Safari */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
}

.logo {
  font-family: '911 Porscha', sans-serif; 
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0px 35px;
  transition: all 1s ease;
  cursor: default;
}

.logo:hover {
    color: #C40000;
    scale: 1.05;
}

.navigation {
  padding: 0px 20px;
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0px 35px;
}

.navigation li {
    position: relative;
}

.navigation a {
    font-family: var(--text-font);
    font-size: 0.95rem;
    color: var(--hero-title-color);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
}

.navigation a:hover {
    color: #C40000;
    scale: 0.98;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C40000;
    transition: all 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

.ritght-section {
    display: flex;
    align-items: center; /* zaručí vertikálne centrovanie */
    height: 100%;
}

.ritght-section .navbar-button {
    background-color: #2B2B2B;
    color: #ffffff;
    font-family: var(--text-font);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.ritght-section .navbar-button:hover {
    background-color: #C40000;
    scale: 0.98;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hero {
    min-height: 100vh;
    background-image: url('../images/hero6.jpg'); /* odporúčam explicitne image property */
    background-size: cover; /* vyplní celý kontajner */
    background-position: center; /* obrázok zarovnaný na stred */
    background-repeat: no-repeat; /* aby sa neopakoval */
    color: var(--hero-text-color);
    text-align: center;
    display: flex;
    position: relative;
    overflow: hidden;
    margin-top: -7rem;
    z-index: 999;
    max-height: 1200px;
}

.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    cursor: default;
    flex-direction: column;
    justify-content: space-between;
}

.hero-content {
    margin-top: 8rem;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

/* CTA dole */
.hero-bottom {
  margin-bottom: 8%;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
}

.badge {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  font-size: 1.0rem;
  font-weight: 600;
  color: #ffffff;
  width: 100%;
  flex-direction: row;
}

.badge::before,
.badge::after {
  content: "⎯⎯⎯";
  border-bottom: 1px solid #49504a; 
  margin: 0 1rem; 
  width: 30px;
}

.hero-content h1{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2; /* nad overlay */
    font-family: '911 Porscha', sans-serif; 
    color: #C40000;
    font-size: clamp(2.5rem, 6vw, 5rem); /* responzívna veľkosť */
    text-shadow: 0 3px 8px rgba(0,0,0,0.6); /* zvýraznenie */
    margin: 20px auto; /* centrovanie */
    padding: 0 1rem; /* aby text na mobile neliezol na okraj */
}

.hero-bottom h2{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    max-width: 900px;
    margin: 10px auto;
}

.hero-bottom p{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    max-width: 900px;
    margin: 0 auto; 
    padding: 0 1rem;
}

.hero-button {
    background-color: #C40000;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 2rem;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.hero-button:hover {
    background-color: #2B2B2B;
    scale: 0.98;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* tmavý filter */
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2; /* text nad overlay */
}













/* ============================================ */
/* ========== SEKCIA 1 ======================== */
/* ============================================ */

.section {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem 1.5rem;
    z-index: 1000;
    gap: 6rem;
    color: #fefefe;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cars-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    max-width: 1440px;
}

.car-card {
    background-color: #fafafa;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.5s ease;
    max-width: 400px;
    text-align: center;
    padding-bottom: 1rem;
    position: relative;
    border: #2B2B2B 1px solid;
}

.car-card:hover {
    scale: 0.98;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #c7c7c7;
}

.car-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #C40000;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.car-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.car-title {
    font-family: '911 Porscha', sans-serif; 
    font-size: 1.2rem;
    color: #2B2B2B;
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
    text-align: start;
}
.car-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #555555;
    margin: 0;
    text-align: start;
    padding: 0rem 1rem 0.5rem 1rem;
    font-weight: 500;
    text-transform: uppercase;
}

.car-description {
    font-size: 0.9rem;
    color: #666;
    padding: 0.5rem 1rem;
    margin: 0;
    text-align: left;
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.car-specs {
    list-style: none;
    padding: 0.5rem 1rem;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #333;
    text-align: left;
}


.car-specs li {
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: #666;
    text-align: left;
    overflow: hidden; 
}

.car-specs span {
    color: #2B2B2B;
    font-family: '911 Porscha', sans-serif; 
    font-size: 1.4rem;
}

.car-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #C40000;
    margin-bottom: 0.5rem;
}

.car-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #2B2B2B;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.car-button:hover {
    background-color: #C40000;
}

@media (max-width: 1200px) {
  .navbar {
    gap: 5px;
  }
  .header-container {
    gap: 4rem;
    padding: 0 1rem;
  }
}

@media (max-width: 1000px) {
  .navbar {
    gap: 5px;
  }
  .header-container {
    gap: 4rem;
    padding: 0 1rem;
  }
}