.services-hero {
  background: url("images/iklimlendirme_ship.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 80px;
}

.services-h1 {
  justify-content: center;
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  color: #333;
  margin: 60px 0 40px;
  padding: 0 20px;
  position: relative;
}

.services-h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2em;
  opacity: 0.9;
}

.services-grid {
  padding: 80px 0;
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1800px;
  margin: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding: 40px;
  justify-content: center;
}

.service-card {
  position: relative;
  height: 550px;
  width: 115%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hizmet kartları için arka plan resimleri */
.service-card:nth-child(1) {
  background: url("images/kabin.jpg");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(2) {
  background: url("images/termostat.jpeg");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(3) {
  background: url("images/tuzla_gemi_sogutma.jpeg");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(4) {
  background: url("images/nitrojen.jpg");
  background-size: cover;
  background-position: center;
}
.service-card:nth-child(5) {
  background: url("images/dedektor.jpg");
  background-size: cover;
  background-position: center;
}
.service-card:nth-child(6) {
  background: url("images/kompresor_bakim.jpg");
  background-size: cover;
  background-position: center;
}
.service-card:nth-child(7) {
  background: url("images/tuzlagemisogutma.jpg");
  background-size: cover;
  background-position: center;
}
.service-card:nth-child(8) {
  background: url("images/kompresor_yerinde.jpg");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(9) {
  background: url("images/nitrojen_yikama.jpeg");
  background-size: cover;
  background-position: center;
}
.service-card:nth-child(10) {
  background: url("images/kondanser.jpeg");
  background-size: cover;
  background-position: center;
}
.service-card:nth-child(11) {
  background: url("images/kapi_kilit.jpg");
  background-size: cover;
  background-position: center;
}
.service-card:nth-child(12) {
  background: url("images/icoda_evaparator.jpg");
  background-size: cover;
  background-position: center;
}
.service-card:nth-child(13) {
  background: url("images/denizsuyukondanser.jpg");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(14) {
  background: url("images/gemikompressorbakim.png");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(15) {
  background: url("images/refrigarent_system.jpeg");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(16) {
  background: url("images/marine_chiller.jpeg");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(17) {
  background: url("images/ship_ac_air.webp");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(18) {
  background: url("images/residence_heating.jpg");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(19) {
  background: url("images/cooling_system.png");
  background-size: cover;
  background-position: center;
}

.service-card:nth-child(20) {
  background: url("images/ship_ac_air.webp");
  background-size: cover;
  background-position: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.8)
  );
  opacity: 1;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 0.95;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.95)
  );
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 50px;
  color: white;
  z-index: 1;
  transition: all 0.4s ease;
}

.service-card:hover .card-content {
  transform: translateY(-20px);
}

.service-icon {
  background: rgba(255, 255, 255, 0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  border-color: transparent;
}

.service-icon i {
  font-size: 1.8em;
  color: white;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
  color: #004d99;
}

.card-content h3 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  color: white;
}

.card-content p {
  font-size: 18px;
  margin-bottom: 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Tasarım */
@media (max-width: 1600px) {
  .container {
    width: 95%;
    gap: 50px;
  }

  .service-card {
    height: 480px;
  }

  .card-content {
    padding: 40px;
  }
}

@media (max-width: 1200px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .service-card {
    height: 400px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }

  .service-icon i {
    font-size: 1.5em;
  }

  .card-content h3 {
    font-size: 28px;
  }

  .card-content p {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 90%;
    gap: 30px;
    padding: 20px;
  }

  .service-card {
    height: 380px;
  }

  .card-content {
    padding: 30px;
  }

  .service-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
  }

  .card-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .card-content p {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 576px) {
  .container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .service-card {
    height: 400px;
  }
}

@media (max-width: 400px) {
  .container {
    width: 100%;
    padding: 15px;
    gap: 20px;
  }

  .service-card {
    height: 350px;
  }

  .card-content {
    padding: 25px;
  }

  .card-content h3 {
    font-size: 22px;
  }

  .card-content p {
    font-size: 15px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .service-icon i {
    font-size: 1.2em;
  }
}

@media (max-width: 1200px) {
  .services-hero {
    height: 300px;
    margin-top: 70px;
    background-attachment: scroll;
  }

  .hero-content h1 {
    font-size: 2em;
  }

  .hero-content p {
    font-size: 1em;
    padding: 0 10px;
  }
}

@media (max-width: 992px) {
  .services-hero {
    height: 280px;
  }

  .services-h1 {
    font-size: 36px;
    margin: 50px 0 35px;
  }
}

@media (max-width: 768px) {
  .services-hero {
    height: 250px;
  }

  .services-h1 {
    font-size: 32px;
    margin: 40px 0 30px;
  }
}

@media (max-width: 576px) {
  .services-hero {
    height: 220px;
  }

  .services-h1 {
    font-size: 28px;
    margin: 30px 0 25px;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.8em;
  }
}

.language-selector {
  position: relative;
  margin-left: auto;
  z-index: 50;
}

.language-selector select {
  padding: 0.5rem;
  border-radius: 4px;
  background-color: #444;
  color: white;
  border: 1px solid #666;
}

@media screen and (max-width: 768px) {
  .services-container {
    padding: 1rem;
  }

  .service-card {
    width: 100%;
    margin: 1rem 0;
  }
}

.logo {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo a {
  display: block;
  text-decoration: none;
}

.logo img {
  max-height: 60px;
  width: auto;
}
