/* ===== Genel Ayarlar ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Menü ===== */
#menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
     background: linear-gradient(to right, #000000, #282727);
    background-color: #000000;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

#logo {
    display: flex;
    align-items: center;
}

.logo-image img {
    width: 50px;
    height: 50px;
    margin-right: 20px;
}

.logo-text {
    font-size: 28px; 
    font-weight: 500;
}

#menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

#nav-links a {
    margin-left: 10px;
    font-weight: 300;
    transition: color 0.3s;
    font-size: 18px;
}

#nav-links a:hover {
    color: #e41111;
}

/* ===== Ana Sayfa / Hero ===== */
#anasayfa {
    position: relative;
    background: url('Arkaplan.png') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

#black {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
}

#icerik {
    position: relative;
    z-index: 1;
}

#icerik h2 {
    font-size: 45px;
    margin-bottom: -10px;
}

#icerik p {
    font-size: 22px;
    margin-bottom: 15px;
}

#icerik hr {
    width: 35%;        /* Çizgiyi kısalttık */
    height: 2px;
    background-color: white;
    border: none;
    margin: 10px auto 10px auto;
}

.ara-buton {
    display: inline-block;
    padding: 10px 40px;
    background-color: #df1212;
    color: #fff;
    font-weight: 550;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 1px solid white;
    transition: 0.3s;      
}

.ara-buton:hover {
    background-color: #090909;
}

/* ===== Kayan Yazı ===== */
.kayan-yazi {
    margin-top: 30px;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.kayan-yazi p {
    display: inline-block;
    padding-left: 100%;
    animation: kaydir 25s linear infinite;
    font-weight: 400; 
    font-size: 40px;  
}

@keyframes kaydir {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* ===== Footer ===== */
footer {
    background-color: #000000;
    color: #fff;
    padding: 10px 10%;
    text-align: center;
    position: relative;
}

#socialfooter h4 {
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 18px;
}

#socialfooter a {
    color: #ffffff;
    font-size: 28px;
    margin: 0 10px;
    transition: color 0.3s;
}

#socialfooter a:hover {
    color: #f21e1e;
}

#up {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 24px;
    color: #d41515;
    cursor: pointer;
    transition: transform 0.3s;
}

#up:hover {
    transform: translateY(-5px);
}

#copyright {
    margin-top: 10px;
    font-size: 16px;
    color: #a09e9e;          /* Hafif gri yapabilirsiniz */
    font-weight: 400;
}

/* ===== Blog Bölümü ===== */
#blog {
    padding: 60px 10%;
    text-align: center;
    background-color: #111; /* index ile uyumlu koyu arka plan */
    color: #fff;
}

#blog h2 {
    font-size: 36px;
    color: #ff1919;
    margin-bottom: 40px;
    font-weight: 600;
}

.blog-grid {
    display: grid;
    gap: 20px;
}

.blog-kutu {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.blog-kutu:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

.blog-kutu h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ef3737;
    font-weight: 400;
}

.blog-kutu p {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
}

.iletisim-section {
    padding: 60px 20px;
    background: #f8f9fa;
    text-align: center;
}

.iletisim-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.iletisim-section p {
    font-size: 18px;
    margin-bottom: 40px;
}

.iletisim-kartlar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.kart {
    background: #fff;
    padding: 25px;
    width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.863);
    text-align: center;
    transition: transform 0.3s ease;
}

.kart:hover {
    transform: translateY(-8px);
}

.kart i {
    font-size: 30px;
    color: #ff3b3b;
    margin-bottom: 15px;
}

.kart h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #e41111;
}

.kart p a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

/* Harita kutusu için */
.kart .map-container {
    width: 100%;
    height: 200px; /* Kart boyutuna uygun */
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.kart .map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Hizmetlerimiz sayfası */
.hizmetler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.hizmet-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hizmet-card:hover {
    transform: translateY(-8px);
}

.hizmet-card img {
    width: 68%;
    height: 300px;
    object-fit: cover;
}

.hizmet-card h3 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
    color: #333;
}

.hizmet-card p {
    padding: 0 15px 20px;
    color: #555;
    font-size: 0.95rem;
}

/* Hizmetlerimiz başlık ve açıklama ortalama */
#hizmetlerimiz h2,
#hizmetlerimiz p {
    text-align: center;
}

#hizmetlerimiz h2{
    font-size: 36px;
    color: #ff1919;
    margin-bottom: 10px;
    margin-top: 30px;
    font-weight: 600;
}

/* Hizmetlerimiz başlığı altındaki çizgi */
#hizmetlerimiz hr {
    margin: 10px auto;   /* çizgiyi ortalar */
    width: 35%;         /* çizgiyi kısaltır */
    border: 1px solid #f00; /* kırmızı renk (istersen değiştirebilirsin) */
}

/* Ürün grid */
.urun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.urun-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.urun-card:hover {
  transform: translateY(-5px);
}

.urun-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.urun-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}

.urun-card p {
  font-size: 0.95rem;
  color: #555;
}




/* ===== TÜM MOBİL UYUM KODLARI ===== */
@media (max-width: 768px) {

  /* Genel düzeltmeler */
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
  }

  * {
    box-sizing: border-box;
    max-width: 100%;
  }

  /* Menü düzeni */
  #menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  #menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #000;
    text-align: center;
    margin-top: 50px;
  }

  .menu.show {
    display: flex;
  }

  .menu a {
    padding: 12px 0;
    display: block;
    width: 100%;
    border-top: 1px solid #222;
  }

  #logo {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
  }

  #logo img {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    font-size: 1.15rem;
    margin-left: 10px;
  }

  /* Anasayfa içerik */
  #icerik h2 {
    font-size: 1.8rem;
  }

  #icerik p {
    font-size: 1.2rem;
  }

  .ara-buton {
    padding: 5px 30px;
    font-size: 1rem;
  }

  .kayan-yazi {
    font-size: 1rem;
    margin-top: 15px;
  }

.kayan-yazi p {
    display: inline-block;
    padding-left: 0; /* Başlangıçta boşluk sıfır */
    animation: kaydir-mobile 10s linear infinite; /* Mobilde hızlı animasyon */
    font-weight: 400; 
    font-size: 1.2rem; /* Mobil yazı boyutu */
}

   /* Mobil için özel animasyon */
@keyframes kaydir-mobile {
    0% { transform: translateX(100%); }   /* Sağdan başlasın */
    100% { transform: translateX(-200%); } /* Soldan çıksın */
}

  /* Footer */
  footer {
    padding: 15px 10px;
  }

  #socialfooter h4 {
    font-size: 1rem;
  }

  .social {
    font-size: 2rem;
  }

  #copyright {
    font-size: 0.9rem;
  }

  #up {
    font-size: 1.2rem;
    bottom: 15px;
    right: 15px;
    padding: 8px;
  }

  /* Blog sayfası */
  #blog {
    padding: 40px 20px;
  }

  #blog h2 {
    font-size: 22px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-kutu h3 {
    font-size: 22px;
  }

  .blog-kutu p {
    font-size: 16px;
  }

/* Hizmetlerimiz */

  #hizmetlerimiz p {
    padding: 0 20px;     /* Sağ ve soldan 20px boşluk */
    font-size: 0.95rem;  /* Yazı boyutu biraz küçüldü */
    margin-bottom: 15px; /* Alt boşluk */
}

  #hizmetlerimiz h2 {
    font-size: 22px;
  }

  .hizmetler-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hizmet-card img {
    width: 90%;
    height: auto;
  }

  .hizmet-card h3 {
    font-size: 1rem;
  }

  .hizmet-card p {
    font-size: 0.9rem;
  }

  /* Ürün kartları */
  .urun-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .urun-card {
    padding: 10px;
  }

  .urun-card h3 {
    font-size: 1rem;
  }

  .urun-card p {
    font-size: 0.9rem;
  }

  /* İletişim sayfası */
  .iletisim-section {
    padding: 12px 5px;
  }

  .iletisim-section h2 {
    font-size: 25px;
  }

  .iletisim-section p {
    font-size: 16px;
  }

  .iletisim-kartlar {
    flex-direction: column;
    align-items: center;
  }

  .kart {
    width: 80%;
    margin-bottom: 0px;
    padding: 10px;
  }

  .kart i {
    font-size: 22px;
  }

  .kart h3 {
    font-size: 25px;
  }

  .kart p {
    font-size: 18px;
  }
}
