.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 700px;
  background-image: url('../img/wizualizacja oilva-03.png') !important;
  background-size: cover !important; 
  background-position: center center !important; 
  background-repeat: no-repeat !important; 
  overflow: hidden;
  display: flex;
  z-index: 10;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  height: 100%;
  background: rgba(28, 35, 39, 0.6);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  z-index: 3;
  text-align: center;
}

.hero-text {
  max-width: 900px;
  padding: 0 20px;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-color);
  text-transform: uppercase;
  margin-bottom: 5px;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

.hero-label::before, .hero-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 1px;
  background-color: var(--text-color);
  animation: growWidth 0.8s ease-out forwards;
  animation-delay: 0.6s;
}

.hero-label::before {
  right: 100%;
  margin-right: 15px;
}

.hero-label::after {
  left: 100%;
  margin-left: 15px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  color: var(--text-color);
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.title-line {
  display: block;
  font-size: 120px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.6s ease-out forwards;
}

#title-line-1 {
  animation-delay: 0.3s;
}

#title-line-2 {
  animation-delay: 0.4s;
}

#title-line-3 {
  animation-delay: 0.5s;
}

.hero-italic {
  font-style: italic;
	font-family: 'Qwigley', cursive; padding-top: 15px; font-size:95px;
	font-weight: 200;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary-dark);
  background-color: var(--accent-color);
  text-decoration: none;
  text-transform: uppercase;
  padding: 15px 30px;
  transition: all var(--transition-medium);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 0.7s;
}

.hero-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--text-color);
  transition: left var(--transition-medium);
  z-index: -1;
}

.hero-button:hover::before {
  left: 0;
}

.hero-button:hover {
  color: var(--primary-dark);
}

.arrow-icon {
  margin-left: 10px;
  transition: transform var(--transition-fast);
}

.hero-button:hover .arrow-icon {
  transform: translateX(5px);
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.5s;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
  z-index: 4;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  animation-delay: 1s;
  background-color: transparent; 
}

.scroll-text {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  background-color: transparent;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background-color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  animation: scrollDown 2s ease-in-out infinite;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px; 
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s ease, height 0.3s ease;
}

.site-header.scrolled {
  background-color: var(--primary-dark);
  height: 70px;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes growWidth {
  from {
    width: 0;
  }
  to {
    width: 30px;
  }
}

@keyframes scrollDown {
  0% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(300%);
  }
}

@media (max-width: 1200px) {
  .title-line {
    font-size: 80px;
  }
  .hero {
    background-size: inherit !important; 

  }
}

@media (max-width: 2024px) {
  .title-line {
    font-size: 95px;
  }
  .hero {
    background-size: inherit !important; 

  }
  .hero-image {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .hero {
    background-size: inherit !important; 

  }
	.hero-italic {
  font-style: italic;
	font-family: 'Qwigley', cursive; padding-top: 15px; font-size:65px;
}
  .hero-bg-image{
    position: absolute;
    top: -25%;
    left: 0;
    width: 100%;
    height: 170%;
    z-index: 0
  }
  .hero-content {
    padding: 80px 20px 40px; 
    height: 100%; 
    align-items: center;
    justify-content: center;
  }
  
  .title-line {
    font-size: 55px;
  }
  
  .hero-image {
    display: none; 
  }
  
  .hero-scroll-indicator {
    bottom: 15px;
    background: transparent; 
  }
  
  .scroll-text {
    font-size: 11px;
    background: transparent; 
  }
  
  .scroll-line {
    height: 40px; 
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px; 
  }
  .hero-italic {
  font-style: italic;
	font-family: 'Qwigley', cursive; padding-top: 15px; font-size:55px;
}

  .title-line {
    font-size: 46px;
	  padding-bottom: 5px;
  }
  
  .hero-label {
    font-size: 12px;
  }
  
  .hero-label::before, .hero-label::after {
    display: none;
  }
  
  .hero-button {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
  }
  
  .hero-scroll-indicator {
    bottom: 10px; 
  }
  
  .scroll-text {
    font-size: 10px;
  }
  
  .scroll-line {
    height: 30px; 
  }
}

.hero * {
  box-sizing: border-box;
}

.hero-scroll-indicator * {
  background-color: transparent !important;
  box-shadow: none !important;
}

.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
}