* {
  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: #000; /* Siyah zemin */
  color: #fff; /* Beyaz metin */
  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 yüksekliği kadar 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.3rem 0.5rem; /* Daha sıkı padding */
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  background: #333; /* Koyu gri arka plan */
  color: #fff; /* Beyaz metin */
  letter-spacing: 0.01em; /* Daha doğal metin akışı */
  display: inline; /* Doğal yazı akışı */
}

.typewriter {
  position: relative;
  display: inline-block;
  margin-right: 0.1rem; /* Boşluğu dengele */
}

.typewriter::before {
  content: '|';
  position: absolute;
  left: -0.1rem; /* İmleç kelimenin başında */
  color: #fff; /* Beyaz imleç */
  animation: blink 0.7s infinite;
}

.no-cursor::before {
  content: none; /* Son kelimede imleci kaldır */
}

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

.logo-text {
  font-size: 3.5rem;
  font-weight: 400;
  color: #fff;
  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: #fff; /* Beyaz metin */
  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 #333; /* Koyu gri çerçeve */
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-link .icon.material-icons {
  font-size: 24px;
  color: #fff; /* Beyaz ikon */
}

.contact-link:hover {
  color: #ccc; /* Açık gri hover efekti */
  transform: scale(1.05);
}

.contact-link:hover .icon {
  border-color: #ccc; /* Açık gri çerçeve */
  background: #333; /* Koyu 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: #fff; /* Beyaz arka plan */
  color: #000; /* Siyah metin */
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  transition: background 0.3s ease, transform 0.3s ease;
}

.phone-link:hover {
  background: #ccc; /* Açık gri hover efekti */
  transform: translateY(-2px);
}

.phone-icon.material-icons {
  font-size: 20px;
  margin-right: 0.5rem;
  color: #000; /* Siyah ikon */
}

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

.footer {
  flex-shrink: 0;
  width: 100%;
  background: #000; /* Siyah zemin */
  padding: 1rem 0;
  text-align: center;
  color: #ccc; /* Açık gri metin */
  font-size: 0.9rem;
  font-weight: 400;
  border-top: 1px solid #333; /* Koyu gri kenarlık */
  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.2rem 0.4rem; /* 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;
  }

  .contact-link .icon.material-icons {
    font-size: 22px; /* Daha büyük ikon fontu */
  }

  .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.1rem 0.3rem; /* 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;
  }

  .contact-link .icon.material-icons {
    font-size: 20px;
  }

  .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);
  }
}