:root {
  --primary-black: #121212;
  --secondary-black: #1E1E1E;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --accent-gray: #E0E0E0;
  --primary-color: #007bff;
}

body {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light-gray);
  color: var(--primary-black);
  line-height: 1.6;
}

header {
  background-color: var(--primary-black);
  color: var(--white);
  width: 100%; /* Header'ı tam genişlik yap */
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between; /* Logo sola, menü sağa */
  align-items: center;
  max-width: 1200px; /* İçeriği sınırlamak için */
  width: 100%;
  margin: 0 auto; /* Ortaya hizala */
  padding: 0 20px; /* Kenarlardan boşluk bırak */
  box-sizing: border-box; /* Taşmayı önle */
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}
nav ul li {
  margin: 0;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 300;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--white);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
  color: var(--white);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 200;
}

.hero p {
  font-weight: 300;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary-black);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: var(--accent-gray);
  transform: translateY(-3px);
}

.services {
  display: flex;
  justify-content: space-around;
  padding: 4rem 2rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  gap: 20px;
}

.company-service {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 400px;
  border: 1px solid var(--accent-gray);
}

.company-service:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.company-service-image-container {
  width: 100%;
  height: 300px;
  overflow-x: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1.5rem;
  background-color: var(--light-gray);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.company-service-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  flex: none;
  width: 100%;
  scroll-snap-align: start;
}

.company-service h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-black);
  font-weight: 500;
}

.company-service p {
  color: #666;
  font-weight: 300;
}

.service-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.service-buttons button {
  background-color: var(--primary-black);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.service-buttons button:hover {
  background-color: var(--secondary-black);
  transform: translateY(-3px);
}

/* Contact Page Styles */
.contact-page {
  background-color: var(--light-gray);
  padding: 4rem 2rem;
  min-height: 70vh;
}

.contact-page .contact-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 3rem;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.contact-page h1 {
  text-align: center;
  color: var(--primary-black);
  margin-bottom: 2rem;
  font-weight: 300;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-black);
}

.contact-info i {
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--accent-gray);
  border-radius: 4px;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form .submit-button {
  width: 100%;
}

.submit-button {
  background-color: var(--primary-black);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
  background-color: var(--secondary-black);
  transform: translateY(-3px);
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  color: var(--white);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  gap: 10px;
  margin-top: 1rem;
}

.whatsapp-button:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
}

.whatsapp-button i {
  font-size: 1.5rem;
}

footer {
  background-color: var(--primary-black);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
  font-weight: 300;
}

/* About Us Page Styles */
.about-hero {
  background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.our-story {
  background-color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.previous-work {
  background-color: var(--light-gray);
  padding: 4rem 2rem;
  text-align: center;
}

.work-gallery {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 2rem;
}

.work-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.work-image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  background-color: var(--light-gray);
}

.work-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* Construction and Logistics Page Styles */
.company-services {
  display: flex;
  justify-content: space-around;
  padding: 4rem 2rem;
  text-align: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
}

/* Map Container Styles */
.map-container {
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* Media queries for responsiveness */

/* For tablets and larger phones */
@media (max-width: 768px) {
  nav {
    padding: 0 10px; /* Reduce padding */
  }

  nav ul {
    gap: 10px; /* Reduce gap between nav items */
    justify-content: space-around;
  }

  nav ul li a {
    font-size: 0.9rem; /* Reduce font size on nav links */
  }

  .hero h1 {
    font-size: 2rem; /* Further reduce font size */
  }
}

/* For smaller phones */
@media (max-width: 480px) {
  nav ul {
    gap: 5px; /* Further reduce gap */
  }

  nav ul li a {
    font-size: 0.9rem; /* Reduce font size on nav links */
  }

  .hero h1 {
    font-size: 2rem; /* Further reduce font size */
  }

  .services {
    flex-direction: column;
    align-items: center; /* Center items horizontally */
  }

  .company-service {
    width: 90%; /* Adjust width for smaller screens */
    margin-bottom: 20px; /* Add spacing between items */
  }
}

/* General adjustments for small screens */
@media only screen and (max-width: 600px) {
  .admin-panel .admin-container {
    padding: 1rem;
  }

  .admin-panel .admin-container h1,
  .admin-panel .admin-container h2,
  .admin-panel .admin-container h3 {
    font-size: 1.2em;
  }

  .admin-panel .admin-container input[type="file"],
  .admin-panel .admin-container button {
    margin-bottom: 0.5rem;
  }

  .image-upload-section img {
    max-width: 100px;
    max-height: 100px;
  }
}