/* --------------------
   GENEL AYARLAR
-------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}
body {
  background: #f5f5f5;
  color: #333;
  scroll-behavior: smooth;
}

/* --------------------
   LOADER
-------------------- */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.spinner {
  width: 60px; height: 60px;
  border: 6px solid #eee;
  border-top: 6px solid #b30000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* --------------------
   NAVBAR
-------------------- */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8%;
}
.logo img {
  max-width: 160px;
  height: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #b30000;
}
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8em;
  color: #b30000;
}

/* --------------------
   HERO (ANA SAYFA)
-------------------- */
.hero {
  background: url('test.png') center/cover no-repeat; /* arkaplan resmi */
  height: 100vh;                /* tüm ekran yüksekliği */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45); /* overlay, yazı okunaklı */
  z-index: 0;
}

.hero-content {
  z-index: 1;
  max-width: 650px;
  padding: 0 15px;
}

.hero h2 {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #fff;
}
.hero p {
  font-size: 1.1em;
  margin-bottom: 25px;
}
.btn {
  background: #b30000;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.btn:hover {
  background: #ff4444;
}

/* --------------------
   ÜRÜNLER
-------------------- */
.section {
  padding: 80px 10%;
  text-align: center;
}
h2 {
  font-size: 2em;
  color: #222;
  margin-bottom: 40px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card .info {
  padding: 20px;
}

/* --------------------
   HAKKIMIZDA
-------------------- */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.about-text {
  flex: 1;
  min-width: 280px;
}
.about-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.about-img {
  flex: 1;
  min-width: 280px;
}
.about-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --------------------
   BİZE ULAŞIN
-------------------- */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.contact-form {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  resize: none;
}
.contact-form button {
  align-self: flex-start;
}
.map {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}
.map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 12px;
}

/* --------------------
   FOOTER
-------------------- */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 25px 10px;
  font-size: 0.9em;
}

/* --------------------
   MOBİL UYUMLULUK
-------------------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    background: rgba(255,255,255,0.97);
    display: none;
    margin-top: 10px;
    border-radius: 0 0 10px 10px;
  }
  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }

  .hero h2 { font-size: 2em; }
  .hero p { font-size: 1em; }

  .about { flex-direction: column; text-align: center; }
  .contact-wrapper { flex-direction: column; align-items: center; }
  .map iframe { height: 250px; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
