/* ===== ALAPBEÁLLÍTÁSOK ===== */
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: #303135; /* alapértelmezett sötét szöveg */
  background: #fff;
}

main {
  margin-top: 70px;
}

h2 {
  font-size: 2.5rem;
  margin-top: 0px;
  margin-bottom: 50px;
  font-weight: 900;
  color: #7eb234;
}
/* ===== SZEKCIÓK ===== */
.section,
.hero {
  padding: 50px 0px;
  text-align: center;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HERO SZEKCIÓ */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  color: #303135;
  text-align: center;
  background: url("../images/hero.jpg") center/cover no-repeat;
  padding: 160px 0px;
  overflow: hidden; /* Keeps the pseudo-element contained */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/hero.png") center/cover no-repeat;
  background-attachment: scroll; /* Works better here */
  z-index: -1; /* Puts it behind your text */

  /* The Magic Sauce for iOS */
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin: auto;
  margin-top: 30vh;
  padding: 0 20px;
}

.hero-content img {
  width: 600px;
  max-width: 90%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 1000;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #ffffff;
}

.btn-about {
  background: #7eb234;
  margin-right: 10px;
}

/* RÓLUNK SZEKCIÓ */

.container-about {
  max-width: 1400px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  padding: 40px;
  gap: 30px;
  margin: auto;
  text-align: left;
  overflow: hidden;
  position: relative;
}

.image-container img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.container-about img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 8px 8px 15px 0px rgba(0, 0, 0, 0.3);
}

.container-about h2 {
  width: fit-content;
  font-size: 2.5rem;
  font-weight: 900;
  margin-top: 0px;
  margin-bottom: 0px;
  letter-spacing: 1px;
  color: #7eb234;
}

.container p {
  width: fit-content;
  font-size: 1.2rem;
  line-height: 1.6;
}

.container-about div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container-about div a {
  width: fit-content;
  margin-bottom: 10px;
}

.container-about div a:visited {
  color: #303135;
}

.container-about div a:active {
  color: #303135;
}

.container-about div a:hover {
  color: #303135;
}

@media (max-width: 768px) {
  .container-about {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .left h2 {
    font-size: 1.3rem;
  }
  .left p {
    font-size: 1rem;
  }

  .right p {
    font-size: 0.9rem;
  }
}

@media (pointer: coarse) {
  .hero {
    background-attachment: scroll;
  }
}

/* TECHNOLÓGIÁK SZEKCIÓ */

#technologies {
  background-color: #e5e5e5;
}

#technologies h2,
#technologies h3 {
  color: #7eb234;
}

.container-technologies {
  margin: 0 auto;
  width: 90%;
  max-width: 1600px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 1. The Container for the Image and Hidden Text */
.image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

/* Ensure the image fills the 16:9 box without distorting */
.image-container img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover; /* Crops slightly if the source isn't exactly 16:9 */
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

/* 2. The Text that appears on Hover */
.hover-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  opacity: 0;
  transition: opacity 0.5s ease;
  box-sizing: border-box;
  /* Added overflow-y in case text is too long for the 16:9 box on small screens */
  overflow-y: auto;
}

.hover-text p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 10px;
}

/* 3. The Hover State */
.service-card:hover .hover-text {
  opacity: 1;
}

.service-card:hover img {
  transform: scale(1.1); /* Subtle zoom effect */
  opacity: 0.3;
}

/* 4. The Title (Always Visible) */
.service-card h3 {
  margin: 0;
  padding: 15px 0 0 0;
  text-align: center;
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .hover-text p {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .hover-text p {
    font-size: 1rem;
  }
}

@media (max-width: 425px) {
  .hover-text {
    padding: 10px;
  }
  .hover-text p {
    font-size: 0.8rem;
    line-height: 1;
    margin: 3px;
  }
}

/* FACT SZEKCIÓ */

/* Main wrapper to center everything and put them in a line */
.facts-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
  font-family: sans-serif; /* Use your site's font here */
}

/* Flex container for the number and label side-by-side */
.fact-item {
  display: flex;
  align-items: baseline; /* Aligns label text to the bottom of the number */
  gap: 10px;
}

/* Large Number Styling */
.counter {
  font-size: 80px;
  font-weight: 300; /* Light weight for that modern look */
  line-height: 1;
}

@media (max-width: 425px) {
  .counter {
    font-size: 50px;
  }
}

/* Small Text Styling */
.fact-label {
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap; /* This prevents the text from wrapping to a second line */
  max-width: none; /* Removes the 100px limit we set earlier */
}

/* The Green Vertical Line */
.vertical-divider {
  width: 2px;
  height: 90px;
  background-color: #82b440; /* Approximate green from your image */
}

/* Mobile Responsive: Stacks them vertically on small screens */
@media (max-width: 768px) {
  .facts-wrapper {
    flex-direction: column;
    padding: 0;
  }
  .vertical-divider {
    width: 100px;
    height: 2px;
  }
}

/*REFERENCIAK SZEKCIO*/

.carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  overflow: hidden;
}

.carousel-container {
  width: fit-content;
  max-width: 90%;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: auto;
}

.carousel-prev,
.carousel-next {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  width: 47px;
  height: 47px;
  border-radius: 50%;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0 10px;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.3);
}

.carousel-slide h4 {
  color: #7eb234;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 10px 0 15px 0;
}

.carousel-slide p {
  text-align: left;
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 50%; /* Tablet: 2 per row */
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 100%; /* Mobile: 1 per row */
    padding: 5px;
  }
  .carousel-slide img {
    box-shadow: unset;
  }
  .carousel-container {
    gap: 10px;
  }
}

/* Style for the images to show they are clickable */
.carousel-slide img {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.carousel-slide img:hover {
  opacity: 0.9;
}

/* The Lightbox Background */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* The Image inside the Lightbox */
.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Caption Text */
#lightboxCaption {
  margin-top: 15px;
  color: #ccc;
  font-family: sans-serif;
}

/* Close Button */
.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* KAPCSOLAT SZEKCIÓ */
#contact {
  padding: unset;
}

.contact-section {
  background-color: #e6e6e6; /* Light gray background from image */
  padding: 50px 30px;
  overflow: hidden;
  max-width: unset;
}

.contact-section h2 {
  font-size: 3rem;
  margin: 30px 0;
}

.contact-section p {
  font-size: 1.5rem;
  color: #303135;
  margin: 0;
}

.contact-container {
  display: flex;
  min-height: 600px;
}

/* Left Image Side */
.contact-image {
  flex: 1;
  background-color: #e6e6e6; /* The light gray from the design */

  /* Flexbox to center the <img> tag */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Horizontal center */
  align-items: center; /* Vertical center */

  padding: 20px; /* Prevents the logo from touching the edges on small screens */
}

.contact-image img {
  max-width: 80%; /* Adjust this based on how large you want the logo to appear */
  height: auto; /* Maintains aspect ratio */
  display: block;
  margin-top: 20px;
}

.contact-image h3 {
  color: #7eb234;
  font-size: 1.8rem;
  margin: 10px 0;
}

.contact-image p {
  font-size: 1.2rem;
  margin: 0;
}

/* Right Content Side */
.contact-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Form Layout */
.contact-form {
  align-items: left;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 5px;
  color: #303135;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid #303135;
  background: #fff;
  border-radius: 0; /* Square edges like image */
}

.privacy-row {
  display: flex;
  flex-direction: row;
}

.privacy-row a {
  color: #303135;
}

/* Button Styling */
.button-wrapper {
  text-align: left;
  margin-top: 20px;
}

.send-btn {
  background: white;
  color: #303135;
  border: 1px solid #303135;
  padding: 10px 40px;
  cursor: pointer;
  transition: 0.3s;
}

.send-btn:hover {
  background: #303135;
  color: white;
}

/* Responsive for mobile */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }
  .contact-image {
    height: 300px;
  }
  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 425px) {
  .contact-section h2 {
    font-size: 2rem;
    margin: 30px 0;
  }

  .contact-section p {
    font-size: 1.2rem;
  }

  .contact-image h3 {
    font-size: 1.3rem;
  }

  .contact-image p {
    font-size: 1rem;
  }
}

/* ABOUT OLDAL */
.about-page {
  width: 1200px;
  max-width: 90%;
  margin-top: 120px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.about-page h2 {
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 2rem;
}

.message {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 22px;
  font-weight: 600;
  max-width: 900px;
}
.message.success {
  background: #1bb75a;
  color: #04210f;
}
.message.error {
  background: #e05b5b;
  color: #330a0a;
}

@media (max-width: 425px) {
  .about-page {
    margin-top: 80px;
  }
  .about-page h2 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 2rem;
    font-weight: 700;
  }
}
