/* Yeni fontları içe aktarıyoruz: Montserrat ve Roboto */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #e0e0e0;
  background-color: #121212;
  line-height: 1.6;
  font-size: 16px;
  overflow: hidden; /* Ana gövdenin kaymasını engelle */
}

header {
  background: rgba(28, 28, 28, 0.85);
  color: #fff;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute; /* Sticky yerine absolute, çünkü kaydırma main'de olacak */
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  height: 80px;
}

header .logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1px;
}

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

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #5fa8d3;
}

main {
  /* Ana kaydırma alanı burası */
  height: 100vh;
  overflow-y: scroll;
  /* Header'ın üstüne binmemesi için scroll başlangıcını ayarlıyoruz */
  scroll-padding-top: 80px;
}

section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
  position: sticky;
  top: 0;
}

#hakkimizda, #hizmetler, #projeler {
    background: #1e1e1e;
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('background.jpeg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
}

section ul {
    list-style: none;
    padding: 0;
}

#hakkimizda p,
#hizmetler ul,
#projeler ul {
  font-size: 18px;
  line-height: 1.7;
}

.content-wrapper {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #5fa8d3;
}

.project-img {
  width: 100%;
  max-width: 600px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

footer {
  background: #121212;
  color: #a0a0a0;
  padding: 60px 40px;
  position: relative; /* Footer sticky değil */
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Footer'ın da tam ekran olması için */
  min-height: 50vh; 
  width: 100%;
}

footer a {
    color: #5fa8d3;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #81c3e7;
}

footer .copyright {
    margin-top: 40px;
    font-size: 14px;
    color: #6c757d;
}

/* --- MOBİL UYUMLULUK STİLLERİ --- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    overflow: auto; /* Mobilde normal kaydırma */
  }

  main {
    height: auto; /* Mobilde otomatik yükseklik */
    overflow-y: visible;
  }

  header {
    position: sticky; /* Mobilde header yine sticky */
    height: auto;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
  }

  header .logo {
    font-size: 20px;
    margin-bottom: 5px;
  }

  nav ul {
    gap: 15px;
  }
  
  nav ul li a {
    font-size: 14px;
  }

  section {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: 80px 15px 40px 15px;
  }

  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  h2 { font-size: 28px; }

  #hakkimizda p,
  #hizmetler ul,
  #projeler ul {
    font-size: 16px;
  }

  footer {
    padding: 40px 20px;
    min-height: auto;
  }
}
