/*
 * ASL Soğutma kurumsal web sitesi için stil dosyası.
 * Bu dosya sadece metin ve şekil odaklı, temiz ve modern bir tasarım sağlar.
 */

/* Temel renk paleti ve değişkenler */
:root {
  --primary-color: #0a74da; /* güven veren mavi tonu */
  --primary-dark: #084c9e;
  --secondary-color: #f5f7fa; /* yumuşak gri ton */
  --text-color: #2b2b2b; /* koyu metin rengi */
  --heading-color: #0e2f5a; /* koyu mavi ton */
  /* İkon renkleri – hepsi mavi paletin farklı tonları */
  --icon1-color: #0a74da;
  --icon2-color: #1976d2;
  --icon3-color: #1565c0;
  --icon4-color: #0d47a1;
  --icon5-color: #0a60c0;
  --icon6-color: #084c9e;
}

/* Genel düzen ayarları */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.6;
}

/* Hero bölümü */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Hero içerik animasyonu başlangıç durumda gizli */
.hero-content {
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* JavaScript ile eklenen animate sınıfı görünür hale getirir */
.hero-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.hero-tagline {
  margin: 1rem 0 2rem;
  font-size: 1.25rem;
  font-weight: 300;
  color: #f0f4f8;
}

.cta-button {
  display: inline-block;
  background-color: #ffffff;
  color: var(--primary-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 3rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.cta-button:hover,
.cta-button:focus {
  background-color: var(--secondary-color);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.cta-button:focus {
  outline: 2px dashed #ffffff;
  outline-offset: 4px;
}

/* Hizmetler bölümü */
.services {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--heading-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-item {
  background-color: var(--secondary-color);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem 2.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
  position: relative;
  /* Başlangıçta hizmet kartları hafif aşağıda ve opak olmayan şekilde görünür; scroll animasyonuyla gelecektir */
  opacity: 0;
  transform: translateY(15px);
}

.service-item:hover,
.service-item:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  position: relative;
}

/* İş yeri ikonunun kare şekli */
.icon-business::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--icon1-color);
  border-radius: 8px;
}

/* Ev ikonunun dairesel şekli */
.icon-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--icon2-color);
  border-radius: 50%;
}

/* Merkezi ikonunun elmas şekli */
.icon-central::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--icon3-color);
  transform: rotate(45deg);
  /* Köşeleri yumuşatmak için köşe yarıçapı */
  border-radius: 6px;
}

/* Taşıma ikonunun üçgen şekli */
.icon-transport::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 48px solid var(--icon4-color);
}

/* Endüstriyel ikonunun altıgen şekli */
.icon-industrial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--icon5-color);
  clip-path: polygon(
    25% 6%,
    75% 6%,
    100% 50%,
    75% 94%,
    25% 94%,
    0% 50%
  );
}

/* Bakım ikonunun artı şekli */
.icon-maintenance::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--icon6-color);
  clip-path: polygon(
    45% 0%,
    55% 0%,
    55% 45%,
    100% 45%,
    100% 55%,
    55% 55%,
    55% 100%,
    45% 100%,
    45% 55%,
    0% 55%,
    0% 45%,
    45% 45%
  );
}

/* Hizmet başlıkları ve paragrafları */
.service-item h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--heading-color);
}

.service-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Scroll esnasında görünür olduğunda uygulanacak sınıf */
.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* İletişim bölümü */
.contact {
  padding: 3rem 1rem;
  background-color: var(--primary-dark);
  color: #ffffff;
  text-align: center;
}

.contact h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  color: #ffffff;
}

.contact-email {
  font-size: 1.1rem;
  margin: 0;
}

.contact-email a {
  color: #ffffff;
  text-decoration: underline;
}

.contact-email a:hover,
.contact-email a:focus {
  text-decoration: none;
}

/* Footer stil */
.footer {
  background-color: var(--secondary-color);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-color);
}

/* Responsif ayarlar */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .services-grid {
    gap: 1.5rem;
  }

  .service-item {
    padding: 1.5rem;
  }
}