/* Genel Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Genel Ayarlar */
body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #fff;
  background-image: url('../img/background.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

/* Başlıklar, Menü ve Footer Font */
h1, h2, h3, nav a, footer {
  font-family: 'Tektur', sans-serif;
}

.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  margin: 20px 0 20px 0; /* Çizgi sebebini kaldır */
  padding: 10px 0;

  border-bottom: none;

  position: relative;
  z-index: 999;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: block;
  max-height: 40px;
}

/* Menü */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
}

/* SLIDER */
.slider {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 0px;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
}

.slide.active {
  display: block;
}

/* FOOTER */
footer {
  background-color: rgba(0, 0, 0, 0);
  color: #ccc;
  padding: 40px 0;
  text-align: center;
}

/* BAŞLIK */
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: red;
}

/* SERVİSLER */
.services {
  padding: 60px 0;
}

.service-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.card {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 25px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  color: white;
  transition: transform 0.3s ease;
  border: 1px solid #333;
}

.card:hover {
  transform: scale(1.05);
  border-color: red;
}

.card h3 {
  margin-bottom: 10px;
  font-family: 'Barlow Semi Condensed', sans-serif;
}

/* MARKA GALERİ */
.brand-gallery {
  padding: 40px 0;
  text-align: center;
}

.brand-gallery h2 {
  font-size: 24px;
  margin-bottom: 30px;
  font-family: 'Barlow Semi Condensed', sans-serif;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  justify-items: center;
}

.brand img {
  max-width: 100px;
  height: auto;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.brand img:hover {
  transform: scale(1.1);
}

/* TABLOLAR */
table {
  width: 100%;
  background-color: #1e1e1e;
  color: #fff;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  text-align: center;
  border: 1px solid #333;
}

/* TIKLAR KALDIRILDI */
ul {
  list-style: none;
  padding-left: 0;
}
ul li::before {
  content: none;
}

/* BOX */
.box {
  background-color: #1a1a1a;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* AÇIKLAMA */
.aciklama {
  background-color: #1c1c1c;
  border-left: 5px solid red;
  padding: 20px;
  font-size: 15px;
  color: #ccc;
  margin-top: 20px;
}

/* PERFORMANS GRAFİĞİ */
.performance-graph {
  box-shadow: 0 0 15px rgba(255,0,0,0.2);
  margin-top: 15px;
  max-width: 100%;
}

/* MENÜ BUTONU */
.menu-toggle {
  display: none;
  background: #c00;
  color: white;
  border: none;
  padding: 8px 15px;
  font-size: 16px;
  cursor: pointer;
}

/* --- MOBİL DÜZENLEMELER --- */

/* Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 10px;
  }
  .brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

/* Mobil */
@media (max-width: 768px) {
  /* Menü Butonu */
  .menu-toggle {
    display: block;
  }

  /* Blur ve animasyonlu menü */
  nav ul {
    flex-direction: column;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 0;
    border-top: 1px solid #333;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  nav ul.active {
    max-height: 500px;
  }

  nav ul li {
    padding: 10px 0;
    text-align: center;
  }

  nav ul li a {
    font-size: 18px;
    display: block;
  }

  /* Slider */
  .slider {
    height: 220px;
  }

  /* Kartlar */
  .service-cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }

  /* Form & Araç listesi */
  .container-flex {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .tuning-form, .recent-cars {
    width: 100%;
  }
  .car-grid {
    grid-template-columns: 1fr;
  }
}

/* Küçük Telefonlar */
@media (max-width: 480px) {
  nav ul li a {
    font-size: 16px;
  }
  .section-title {
    font-size: 20px;
  }
  .card h3 {
    font-size: 16px;
  }
  .slider {
    height: 180px;
  }
}
