* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100vh; /* Tam ekran yüksekliği */
  overflow: hidden; /* Kaydırmayı engelle */
  touch-action: none; /* Mobil dokunmatik kaydırmayı engelle */
  position: fixed; /* Sayfayı tamamen kilitle */
  width: 100%;
}

body {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 400;
  background: #fff;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4vh;
}

.main-container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  padding-bottom: 120px; /* Footer için boşluk */
  overflow: hidden; /* İçerik kaydırmasını engelle */
  max-height: calc(100vh - 60px); /* Footer yüksekliğini çıkar */
}

.hero-section {
  width: 100%;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 40px;
  overflow: hidden; /* İçerik kaydırmasını engelle */
  max-height: calc(100vh - 60px); /* Footer yüksekliğini çıkar */
}

.content-container {
  width: 100%;
}

.text-center {
  opacity: 0;
  transform: translateY(30px);
  animation: slideIn 0.8s ease-out forwards;
}

.intro-text {
  margin-bottom: 2.5rem;
  display: inline-block;
}

.intro-text span {
  padding: 0.4rem 0.8rem; /* Daha sıkı padding */
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  background: #e0e0e0;
  color: #333;
  letter-spacing: 0.03em;
  display: inline; /* Doğal yazı akışı */
}

.typewriter {
  position: relative;
}

.typewriter::after {
  content: '|';
  position: absolute;
  right: -0.2rem; /* İmleç metne daha yakın */
  color: #333;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.logo-text {
  font-size: 3.5rem;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  font-family: 'Courier New', Courier, monospace;
  animation: slideIn 0.8s ease-out 0.2s forwards;
}

.contact-section {
  margin-top: 3rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideIn 0.8s ease-out 0.4s forwards;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  font-weight: 400;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-link .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: #333;
}

.contact-link:hover {
  color: #000; /* Siyah hover efekti */
  transform: scale(1.05);
}

.contact-link:hover .icon {
  border-color: #333; /* Gri tonu çerçeve */
  background: #e0e0e0; /* Gri arka plan */
}

.contact-link span {
  text-align: center;
  max-width: 80px;
}

.phone-container {
  opacity: 0;
  animation: slideIn 0.8s ease-out 0.6s forwards;
  margin-top: 4rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  background: #000; /* Siyah arka plan */
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  transition: background 0.3s ease, transform 0.3s ease;
}

.phone-link:hover {
  background: #333; /* Koyu gri hover efekti */
  transform: translateY(-2px);
}

.phone-icon {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  margin-right: 0.75rem; /* İkon ile yazı arasındaki boşluk */
  color: #fff;
}

.phone-text {
  font-size: 1.1rem;
}

.footer {
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  padding: 1rem 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  font-weight: 400;
  border-top: 1px solid #e0e0e0;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2000; /* Footer'ı üstte tut */
}

/* Mobil için 2 satır 4 sütun düzeni ve footer ayarları */
@media (max-width: 768px) {
  .main-container {
    padding-bottom: 140px; /* Footer için daha fazla boşluk */
    max-height: calc(100vh - 80px); /* Mobil footer yüksekliği */
  }

  .hero-section {
    max-height: calc(100vh - 80px); /* Mobil footer yüksekliği */
  }

  .logo-text {
    font-size: 2.8rem;
  }

  .intro-text span {
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem; /* Mobil için daha sıkı padding */
  }

  .contact-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 sütun */
    grid-template-rows: repeat(2, auto); /* 2 satır */
    gap: 1rem; /* Daha sıkı boşluk */
    justify-items: center;
    width: 100%;
  }

  .contact-link {
    font-size: 0.8rem;
  }

  .contact-link .icon {
    width: 44px; /* Daha büyük ikonlar */
    height: 44px;
    font-size: 22px; /* Font Awesome için ikon boyutu */
    line-height: 1;
  }

  .contact-link span {
    max-width: 70px;
  }

  .phone-link {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }

  .phone-container {
    margin-top: 3.5rem;
  }

  .footer {
    padding: 0.75rem 0;
    font-size: 0.8rem;
  }
}

/* Daha küçük ekranlar için ayarlar */
@media (max-width: 480px) {
  .main-container {
    padding-bottom: 120px; /* Footer için yeterli boşluk */
    max-height: calc(100vh - 70px); /* Mobil footer yüksekliği */
  }

  .hero-section {
    max-height: calc(100vh - 70px); /* Mobil footer yüksekliği */
  }

  .logo-text {
    font-size: 2.2rem;
  }

  .intro-text span {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem; /* Daha küçük ekranlar için padding */
  }

  .contact-links {
    gap: 0.8rem; /* Daha sıkı boşluk */
  }

  .contact-link {
    font-size: 0.7rem;
  }

  .contact-link .icon {
    width: 40px; /* Biraz daha büyük ikonlar */
    height: 40px;
    font-size: 20px; /* Font Awesome için ikon boyutu */
    line-height: 1;
  }

  .contact-link span {
    max-width: 60px;
  }

  .phone-link {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }

  .phone-container {
    margin-top: 3rem;
  }

  .footer {
    padding: 0.5rem 0;
    font-size: 0.7rem;
  }
}

/* slideIn animasyonu */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}