* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato TR", sans-serif;
  font-family: "Lato TR Hairline", sans-serif;
  font-family: "Lato TR Light", sans-serif;
  font-family: "Lato TR Black", sans-serif;
}
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}
.highlight {
  display: block;
  margin-top: 10px;
}
header {
  background-color: rgba(122, 172, 11);
  padding: 15px 0;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
  font-family: Lato;
  font-size: 24px;
  line-height: 28.8px;
  letter-spacing: -0.02em;
  width: 100%;
}

.logo {
  flex: 1;
  text-align: left;
}

.logo img {
  height: 40px;
}

.menu {
  display: flex;
  align-items: center;
}

.menu li {
  margin-left: 50px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-family: "Lato TR";
  font-weight: 300;
}

.btn-group {
  background-color: #0b1731;
  padding: 8px 16px;
  border-radius: 2px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #0b1731;
  padding: 10px 0;
  border-radius: 4px;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  display: block;
  width: auto;
}

.dropdown-menu li {
  margin: 0 !important;
}

.dropdown-menu li a {
  padding: 8px 16px;
  display: block;
  white-space: nowrap;
  text-align: center;
}

.menu .dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media screen and (max-width: 875px) {
  header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: block;
    order: 2;
  }

  .logo {
    order: 1;
  }

  .menu {
    display: block;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #0b1731;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .menu.active {
    right: 0;
  }

  .menu ul {
    flex-direction: column;
  }

  .menu li {
    margin: 15px 0;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu li {
    padding: 0;
  }

  .dropdown-menu li a {
    text-align: left;
  }

  .btn-group {
    background-color: rgb(122, 172, 11);
    color: white;
  }
}

footer {
  padding: 40px 20px;
  background-color: #81b214;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-about,
.footer-menu,
.footer-service,
.footer-social-media {
  padding: 20px;
  text-align: left;
}

.footer-about img {
  max-width: 100%;
  height: 50px;
}

.footer-about-text {
  margin-top: 15px;
  font-family: Lato TR Light;
  font-size: 15px;
  color: white;
}

.footer-menu-header,
.footer-service-header,
.footer-social-header {
  padding-bottom: 30px;
  padding-top: 10px;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.footer-menu a,
.footer-service-links a {
  text-decoration: none;
  color: white;
  font-family: "Lato TR Light", sans-serif;
  display: block;
  padding-top: 10px;
  font-size: 14px;
}

.footer-social-links {
  display: flex;
  gap: 10px;
  padding-top: 10px;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    justify-content: center;
    text-align: center;
  }
  .footer-about,
  .footer-menu,
  .footer-service,
  .footer-social-media {
    text-align: center;
    padding: 10px !important;
  }
  .footer-social-links {
    justify-content: center;
  }
  .footer-about-text,
  .footer-menu a,
  .footer-service-links a {
    font-size: 14px;
  }
  .footer-menu-header,
  .footer-service-header,
  .footer-social-header {
    font-size: 16px;
    padding-bottom: 0px !important;
  }
  footer {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: center;
    text-align: center;
  }
  .footer-about,
  .footer-menu,
  .footer-service,
  .footer-social-media {
    text-align: center;
    padding: 10px !important;
  }
  .footer-social-links {
    justify-content: center;
  }
  .footer-about-text,
  .footer-menu a,
  .footer-service-links a {
    font-size: 13px;
  }
  .footer-menu-header,
  .footer-service-header,
  .footer-social-header {
    font-size: 15px;
    padding-bottom: 0px !important;
  }

  footer {
    padding: 20px 10px;
  }
}

/* ---- referance section ---- */
.projects {
  height: auto;
  padding-bottom: 90px;
}
.project-header {
  color: #81b214;
  font-size: 24px;
  font-family: Lato TR;
  display: flex;
  justify-content: center;
  font-weight: 600;
  padding-top: 150px;
}
.project-text {
  font-size: 18px;
  font-family: Lato TR Light;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}
@media screen and (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
.project-card {
  position: relative;
  overflow: hidden;
  height: 300px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.project-info {
  width: 100%;
  height: 100%;
}
.project-info img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: grayscale(100%);
}
.project-card .project-info img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.project-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(9, 32, 68, 0) 0%,
    rgba(9, 32, 68, 0.5) 70%,
    rgba(7, 26, 44, 0.9) 100%
  );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #4d4d4d;
}

.project-card .project-text {
  opacity: 1;
}
.project-card:hover .project-text {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.project-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: whitesmoke;
}
.project-power {
  font-size: 18px;
  color: whitesmoke;
  font-family: Lato TR Light;
}
/* ---- about section ---- */
.about {
  margin: 20px auto;
  background-color: white;
  padding-top: 30px;
  margin-bottom: 70px;
}
.about-header {
  color: #81b214;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
  margin-top: 100px;
  font-family: Lato TR;
}
.about-header2 {
  font-size: 18px;
  font-family: Lato TR Light;
  text-align: center;
}
/* ---- services section ---- */
.content-wrapper {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 3rem;
  padding: 30px;
  align-items: stretch;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar img {
  width: 100%;
  height: calc(50% - 1rem);
  object-fit: cover;
  margin-bottom: 2rem;
  min-height: 400px;
}

.sidebar img:last-child {
  margin-bottom: 0;
}

.section {
  margin-bottom: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section:last-child {
  margin-bottom: 0;
}

.section-header {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-content {
  line-height: 1.6;
  font-family: Lato TR Light;
  flex: 1;
}

.mobile-image {
  display: none !important;
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin: 2rem 0;
}

@media (max-width: 992px) {
  .content-wrapper {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .sidebar {
    display: none !important;
  }

  /* Mobile görselleri göster */
  .mobile-image {
    display: block !important;
  }

  /* Mobilde section'lar arasındaki boşluğu ayarla */
  .section {
    margin-bottom: 1rem;
  }

  /* Son section'dan sonra boşluk olmasın */
  .section:last-child {
    margin-bottom: 0;
  }
}

/* Desktop için ek düzeltmeler */
@media (min-width: 769px) {
  .content,
  .sidebar {
    min-height: 100%; /* İçerikleri dikeyde eşit yükseklikte tutar */
  }

  .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .section {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}
.services-container {
  padding-top: 50px;
  margin-bottom: 40px;
}
/* header and text for 3 pages */
.contact-text {
  max-width: 730px;
  margin: 0 auto;
  margin-top: 10px;
  text-align: center;
}

.text-line {
  font-family: Lato TR Light;
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 1.2;
  color: #4d4d4d;
}

/* ---- contact section ---- */
.contact {
  padding: 40px 20px;
  background-color: #fff;
}

.contact-item {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.custom-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  gap: 20px;
  width: 100%;
}

.custom-form input,
.custom-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #092144;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.custom-form input:focus,
.custom-form textarea:focus {
  outline: none;
  border-color: #81b214;
  background-color: #fff;
}

.custom-form textarea {
  resize: vertical;
  min-height: 150px;
  resize: none;
}

/* Button Styles */
.custom-form button {
  align-self: flex-end;
  padding: 12px 30px;
  background-color: #002147;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.custom-form button:hover {
  background-color: #003166;
}

#formMessage {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  background-color: rgba(129, 178, 20, 0.1);
  text-align: center;
}

@media screen and (max-width: 768px) {
  .form-group {
    flex-direction: column;
    gap: 15px;
  }

  .custom-form button {
    width: 100%;
  }
}

.custom-form input::placeholder,
.custom-form textarea::placeholder {
  color: #bbc0c4;
}
.alert {
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
  display: none;
}
.alert-success {
  background-color: #d4edda;
  color: #155724;
}
.alert-error {
  background-color: #f8d7da;
  color: #721c24;
}

.map {
  display: flex;
  justify-content: center;
}
.map img {
  margin-top: 30px;
  max-width: 1000px;
}
.contact-map {
  position: relative;
  width: 90%;
  max-width: 1575px;
  margin: 0 auto;
  color: #092144;
  flex-wrap: wrap;
}
.map-text {
  position: absolute;
  left: 75px;
  bottom: 0px;
  font-family: Lato, sans-serif;
  font-size: 14px;
  color: #092144;
}

.tel-no,
.mail-address {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: Lato TR Light;
}

.adresses {
  margin-top: 20px;
}

.adresses h1 {
  font-size: 14px;
  margin: 0 0 5px;
}

.adresses p {
  margin: 0 0 15px;
  font-family: Lato TR Light;
}

.tr-adress,
.romania-adress,
.budapest-adress {
  margin-bottom: 10px;
}

.tr-adress h1,
.romania-adress h1,
.budapest-adress h1 {
  font-weight: bold;
  text-transform: uppercase;
}
.contact-form {
  height: 500px;
  background-color: #092144;
  padding-top: 20px;
  color: white;
  display: flex;
  justify-content: center;
  margin-bottom: 90px;
}
@media (max-width: 768px) {
  .contact {
    padding: 30px 0;
  }

  .contact-item {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .contact-header {
    font-size: 28px;
    text-align: center;
  }

  .contact-text {
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
  }

  .contact-form {
    width: 100%;
    margin-bottom: 50px;
    padding-top: 15px;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    margin-bottom: 15px;
    font-size: 12px !important;
  }
  button[type="submit"] {
    width: 20%;
    padding: 10px;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 20px 0;
  }

  .contact-item {
    width: 100%;
    gap: 15px;
  }

  .contact-header {
    font-size: 24px;
  }

  .contact-text {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .contact-form {
    padding: 10px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 12px;
  }

  button[type="submit"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
  }
}
@media screen and (max-width: 1080px) {
  .map img {
    width: 100%;
    max-width: 1000px;
  }
  .map-text {
    left: 0px;
    font-size: 12px !important;
  }
  .tel-no,
  .mail-address {
    font-size: 12px;
  }
  .contact-item {
    flex-direction: column;
    width: 95%;
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .map-text {
    font-size: 10px !important; /*burada kaldınnnnn ------------------------ */
    position: relative;
  }
  .adresses {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .map img {
    width: 100%;
    max-width: 500px;
  }
  .project-header {
    font-size: 22px !important;
    line-height: 1.4;
  }
  .contact-text .text-line {
    font-size: 16px !important;
  }
}

@media screen and (max-width: 480px) {
  .map img {
    max-width: 400px;
  }
}
/* 
@media screen and (max-width: 1400px) {
  .about {
    margin: 50px;
  }
} */
