/* Global Styles */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Navigation - All Pages */
.navbar {
  background-color: #2b2d42;
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.navbar img {
  height: 25px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links a {
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #2b2d42;
  background: #edf2f4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.footer {
  background-color: #2b2d42;
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  width: 100%;
  position: static;
  bottom: 0;
  left: 0;
  
}

.footer-link {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer_light {
  background-color: #8d99ae;
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  width: 100%;
  position: relative;
  bottom: 0;
  left: 0;
}

.footer-link_light {
  color: #2b2d42;
  text-decoration: none;
  font-size: 14px;
}

.footer-link_light:hover {
  text-decoration: underline;
}

/* Landing Page (index.html) */
.mainP {
  background-image: url('pipebg3.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: white;
  padding-top: 100px;
}

.mainP-text {
  padding: 0 5%;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}

.fade-text {
  height: 130px;
  position: relative;
  font-size: 2rem;
  font-size: 600;
  margin-bottom: 10px;
}

.fElement {
  position: absolute;
  width: 40vw;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fElement.active {
  opacity: 1;
}

/* Product Showcase (index.html) */
.scroll-container {
  margin-top: 3%;
  width: 100%;
  height: auto;
  min-height: 130px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  display: flex;
  background-color: #8d99ae;
  padding: 2rem 0;
  padding-bottom: 6rem;
  margin-bottom: -2rem;
}

.scroll-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  background: linear-gradient(to bottom, #8d99ae, #2b2d42);
}

.scroll-content {
  display: flex;
  height: 100%;
  animation: scroll 100s linear infinite;
  transition: animation-play-state 0.5s ease;
  align-items: center;
  gap: 2rem;
  z-index: 1;
}

.prod-itemMain {
  display: flex;
  width: 80%;
  max-height: fit-content;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.prod-itemMain img {
  max-width: 100%;
  object-fit: contain;
  max-height: 100px;
}

.prod-itemMain p {
  margin-top: 10px;
  color: #2b2d42;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.scroll-content a {
  height: 100px;
  width: 150px;
  margin: 0 20px;
  padding: 1rem;
  align-self: center;
  background: #edf2f4;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  object-fit: contain;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.scroll-content a:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  animation-play-state: paused;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.scroll-container:hover .scroll-content {
  animation-play-state: paused;
}

.allP {
  position: relative;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: white;
  background: transparent;
  border: 2px solid white;
  border-radius: 8px;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.allP:hover {
  color: black;
  background: #edf2f4;
  border: 2px solid #edf2f4;
}

/* Info Section (index.html) */
.info {
  margin-top: -2rem;
  background-color: #2b2d42;
  width: 100%;
  min-height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 4rem;
  text-align: center;
  min-height: calc(100vh - 400px); /* Adjust 200px based on other content heights */
  display: flex;
  flex-direction: column;
}

.hidden-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  padding-bottom: 10%;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden-text:nth-child(1) {
  transition-delay: 0.2s;
}

.hidden-text:nth-child(2) {
  transition-delay: 0.5s;
}

.hidden-text:nth-child(3) {
  transition-delay: 0.8s;
}


/* Products Page (termekek.html) */
.wrapper {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 20px;
  min-height: 90vh;
}

.logo{
  width: 20%;
  height: auto;
  border-radius: 8px;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  margin: 0 auto;
}

.prod-item {
  display: flex;
  width: 80%;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: #edf2f4;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.prod-item:hover {
  transform: scale(1.06);
}

.prod-grid a {
  text-decoration: none;
}

.prod-item img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 100px;
}

.prod-item p {
  margin-top: 10px;
  color: #2b2d42;
  font-size: 0.9rem;
  font-weight: 500;
}

.smallBox {
  flex: 1;
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #edf2f4;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
  position: relative;
  width: 40vw;
}


@media screen and (max-width: 768px) {
  .wrapper {
    flex-direction: column;
    align-items: center;
  }

  .smallBox {
    width: 84vw;
    margin: 15px auto;
  }

  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .prod-item {
    width: 80%;
  }

  .logo {
    width: 40%;
  }

  .prod-item img {
    max-height: 60px;
  }

  .prod-item p {
    font-size: 0.8rem;
  }
  
}

@media screen and (max-width: 480px) {
  
.smallBox h1 {
  font-size: 20px;
}

  .prod-grid {
    grid-template-columns: 1fr;
  }

  .h1{
    font-size: 10px;
  }

  .smallBox {
    width: 70vw;
    padding: 15px;
  }

  .logo {
    width: 60%;
  }
}


/* Certifications Page (minositesek.html) */
.pdf-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin-top: 5vh;
}

.pdfBox {
  width: 40vw;
  height: auto;
  margin: 10px auto;
  padding: 10px;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.minPic {
  width: 95%;
  height: auto;
}


@media screen and (max-width: 768px) {
  .pdf-container {
    flex-direction: column;
    align-items: center;
  }
  
  .pdfBox {
    width: 80%;
    margin-bottom: 20px;
  }
}

/* Contact Page (kapcsolat.html) */
.contact {
  min-height: 100vh;
  display: flex;
  width: 60vw;
  flex-direction: column;
  color: white;
  margin: 0 auto;
  margin-top: 5vh;
}


.region {
  width: 100%;
}

.region h2 {
  text-align: left;
  color: #2b2d42;
}

.region > div {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}


.mapBox {
  flex: 1;
  margin: 0;
  padding: 20px;
  background: #edf2f4;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mapBox iframe {
  width: 100%;
  height: 300px;
  border: none;
  margin: 20px 0 0 0;
}

.liner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.region h3 {
  color: #2b2d42;
  margin-bottom: auto;
}

.region p {
  color: #2b2d42;
  margin-bottom: 1rem;
  margin-block-start: 0.1em;
}

.region a {
  color: #2b2d42;
  text-decoration: none;
  transition: color 0.3s ease;
}


.kapcs_box{
  height: 10vh;
}

@media screen and (max-width: 768px) {
  .contact {
    width: 80vw;
    margin-top: 2vh;
  }
  
  .region > div {
    flex-direction: column;
    gap: 1rem;
  }
  
  .mapBox {
    padding: 15px;
  }
  
  .mapBox iframe {
    height: 250px;
  }
  
  .liner {
    flex-direction: column;
    align-items: center;
  }
  
  .liner .smallBox {
    margin: 10px 0;
    width: 70vw;
    padding: 15px;
  }
}

@media screen and (max-width: 480px) {
  .contact {
    width: 80vw;
  }
  
  .region h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .region h3 {
    font-size: 1.1rem;
  }
  
  .mapBox iframe {
    height: 200px;
  }
}

/* References Page (referenciak.html) */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 90vh;
}

.reference-item {
  display: flex;
  height: auto;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: #edf2f4;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.reference-item:hover {
  transform: scale(1.05);
}

.reference-item img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 100px;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 10px 3%;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .mainP {
    padding: 60px 0 0 0;
    width: 100vw;
    align-items: stretch;
  }

 

  .allP {
    font-size: 0.9rem;
    width: fit-content; /* Make button width fit content */
    min-width: 120px; /* Set minimum width */
    max-width: 80%; /* Prevent from getting too wide */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for centering */
    white-space: nowrap; /* Prevent text wrapping */
  }

  .fade-text {
    width: 100%;
    font-size: 1.5rem;
    
  }

  .fElement {
    position: absolute;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .scroll-container {
    width: 100vw;
    margin: 0;
    padding: 1rem 0;
    padding-bottom: 6rem; /* Increased from 5rem to match desktop */
    margin-bottom: -2rem; /* Added to match desktop */
    margin-bottom: -2rem;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    -webkit-overflow-scrolling: none; /* Disable momentum scrolling on iOS */
    touch-action: none; /* Disable touch interactions */
    pointer-events: none; /* Disable pointer events */
  }

  .scroll-content{
    -webkit-overflow-scrolling: none; /* Disable momentum scrolling on iOS */
    touch-action: none; /* Disable touch interactions */
    pointer-events: none; /* Disable pointer events */
  }

  .scroll-content a {
    pointer-events: auto;
  }

  .prod-itemMain {
    width: 100%;
  }

  .prod-itemMain img {
    max-height: 60px;
  }

  .prod-itemMain p {
    font-size: 0.8rem;
  }

  .info {
    width: 100vw;
    margin-top: -2rem; /* Added to maintain consistent spacing */
    padding: 4rem 15px 3rem; /* Adjusted padding */
    box-sizing: border-box;
    height: auto;
    text-align: center;
  }

  .info h2 {
    font-size: 1.2rem;
    margin: 15px 0;
  }

  .hidden-text {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .allP {
    font-size: 0.9rem;
  }

  .reference-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .reference-item {
    padding: 0.5rem;
  }

  .reference-item img {
    max-height: 50px;
  }
}

@media screen and (max-width: 480px) {
  .mainP h1 {
    font-size: 1.8rem;
  }

  .fade-text {
    font-size: 1.2rem;
  }


  .info h2 {
    font-size: 1rem;
  }
}

