:root{ --green:#0a8f3a; --blue:#173b58; --text:#111; --muted:#666; }
*{ box-sizing:border-box; }
body{ margin:0; font-family:'Poppins',sans-serif; color:var(--text); }
.container{ width:min(1200px, 92%); margin:auto; }
.topbar{ background:var(--green); color:#fff; font-size:14px; }
.topbar .container{ display:flex; justify-content:space-between; padding:.4rem 0; }
.topbar a{ color:#fff; text-decoration:none; margin-right:.6rem; }
.navbar{ background:#fff; box-shadow:0 1px 8px rgba(0,0,0,.05); position:sticky; top:0; z-index:9; }
.navwrap{ display:flex; align-items:center; gap:1rem; padding:.8rem 0; }
.logo{ font-weight:800; color:var(--blue); text-decoration:none; }
.menu{ list-style:none; display:flex; gap:1rem; margin:0; padding:0; }
.menu a{ color:#000; text-decoration:none; font-weight:600; }
.menu .has-sub{ position:relative; }
.submenu{ position:absolute; top:100%; left:0; background:#fff; box-shadow:0 8px 20px rgba(0,0,0,.1); padding:.6rem; display:none; width:300px; }
.has-sub:hover .submenu{ display:block; }
.submenu li{ list-style:none; }
.submenu a{ display:block; padding:.5rem; background:#f2f2f2; margin:.4rem 0; border-radius:6px; }
.cta{ margin-left:auto; background:var(--blue); color:#fff; padding:.6rem 1rem; border-radius:30px; text-decoration:none; font-weight:700; }
.hero .slider{ position:relative; height:420px; overflow:hidden; border-radius:8px; }
.hero .slide{ position:absolute; inset:0; background-size:cover; background-position:center; display:flex; align-items:end; padding:2rem; }
.btn{ background:var(--blue); color:#fff; padding:.8rem 1.2rem; border-radius:30px; text-decoration:none; font-weight:700; }
.features{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; padding:2rem 0; }
.feat{ text-align:center; padding:1rem; }
.feat .icon{ font-size:36px; }
.about-preview{ padding:1rem 0 2rem; }
.services-grid h2{ text-align:center; }
.services-grid .grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:1rem; }
.card{ border:1px solid #eee; border-radius:12px; padding:1rem; text-decoration:none; color:inherit; background:#fff; }
.card img{ width:100%; height:180px; object-fit:cover; border-radius:12px; }
.section{ padding:2rem 0; }
.service-item img{ width:380px; height:240px; object-fit:cover; border-radius:16px; margin-right:1rem; }
.service-wrap{ display:flex; gap:1rem; align-items:flex-start; }
.map iframe{ width:100%; height:360px; border:0; border-radius:12px; }
.contact-grid{ display:grid; grid-template-columns:2fr 1fr; gap:1rem; margin-top:1rem; }
input, textarea, button{ width:100%; padding:.8rem; border:1px solid #ddd; border-radius:10px; font-family:inherit; }
button{ background:var(--green); color:#fff; font-weight:700; cursor:pointer; }
.footer{ background:#0a0f18; color:#fff; padding:2rem 0; }
.footer .container{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.copy{ text-align:center; color:#ccc; padding:.8rem 0; border-top:1px solid rgba(255,255,255,.1); margin-top:1rem; }
.alert{ background:#eaf7ea; border:1px solid #b8e6b8; padding:.8rem 1rem; border-radius:10px; color:#155724; }
.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:.8rem; }
.table{ width:100%; border-collapse:collapse; margin-top:1rem; }
.table th,.table td{ border:1px solid #eee; padding:.6rem; text-align:left; }
.btn-danger{ background:#b00020; color:#fff; padding:.3rem .6rem; border-radius:6px; text-decoration:none; }
.login-box{ width:min(420px, 92%); margin:6rem auto; border:1px solid #eee; padding:1.2rem; border-radius:12px; }
.adminbar{ background:#111; color:#fff; display:flex; gap:1rem; padding:.6rem 1rem; }
.adminbar a{ color:#fff; text-decoration:none; }
@media(max-width:900px){ .features{grid-template-columns:1fr;} .services-grid .grid{grid-template-columns:1fr;} .contact-grid{grid-template-columns:1fr;} .service-wrap{flex-direction:column;} }

/* --- Modern Index Tasarımı --- */

.hero-banner {
  position: relative;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  height: 85vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(27,39,49,0.75), rgba(59,178,115,0.75));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 700px;
  animation: fadeInUp 1.2s ease;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  color: #e8e8e8;
  margin-bottom: 2rem;
}

.btn-hero {
  background: linear-gradient(135deg, #3bb273, #1b2838);
  padding: 0.9rem 1.6rem;
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.btn-hero:hover {
  background: linear-gradient(135deg, #1b2838, #3bb273);
  transform: scale(1.05);
}

/* Özellik Kutuları */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
  margin: 4rem auto;
}

.feature-box {
  background: #fff;
  padding: 2rem 1.2rem;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.feature-box img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

/* Hakkımızda */
.about-modern {
  background: #f9fafb;
  padding: 4rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.about-text p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.btn-outline {
  border: 2px solid #3bb273;
  color: #3bb273;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}
.btn-outline:hover {
  background: #3bb273;
  color: #fff;
}

/* Görsel */
.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #3bb273, #1b2838);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.cta-content p {
  margin-bottom: 1.5rem;
}
.btn-cta {
  background: #fff;
  color: #1b2838;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: 700;
  transition: 0.3s;
}
.btn-cta:hover {
  background: #1b2838;
  color: #fff;
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 900px) {
  .hero-content h1 {font-size: 2rem;}
  .about-grid {grid-template-columns: 1fr;}
}
#themeToggle.theme-btn {
  all: unset;
  position: fixed;   /* 🔥 Bu satır en kritik */
  top: 20px;
  right: 25px;
  width: 42px;
  height: 42px;
  background-color: #ffffff;
  color: #222;
  border-radius: 50%;
  text-align: center;
  font-size: 1.2rem;
  line-height: 42px;
  cursor: pointer;
  z-index: 9999;     /* 🔥 Bu da menüden üste getirir */
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
/* === HERO ANİMASYONU === */
.hero-banner {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  animation: fadeInHero 1.5s ease-in forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInHero {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === TEMA GEÇİŞ BUTONU === */
#themeToggle.theme-btn {
  all: unset; /* Diğer button stillerini sıfırlar */
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  background-color: #ffffff;
  color: #222;
  border-radius: 50%;
  text-align: center;
  font-size: 1.2rem;
  line-height: 42px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#themeToggle.theme-btn:hover {
  transform: scale(1.1);
  background-color: #f0f0f0;
}

/* === DARK MODE === */
body.dark-mode {
  background: #121212;
  color: #eee;
  transition: background 0.4s, color 0.4s;
}

body.dark-mode .theme-btn {
  background-color: #222;
  color: #fff;
}
.scrap-prices-section {
  background-color: var(--section-bg, #f8f9fa);
  padding: 60px 0;
  text-align: center;
}

.scrap-prices-section .section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-color, #333);
}

.scrap-prices-section .section-subtitle {
  color: #666;
  margin-bottom: 30px;
}

.scrap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.scrap-table th {
  background: #333;
  color: #fff;
  padding: 12px;
}

.scrap-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.scrap-table tr:nth-child(even) {
  background: #f2f2f2;
}

@media (max-width: 768px) {
  .scrap-table th, .scrap-table td {
    font-size: 0.9rem;
    padding: 8px;
  }
}
.scrap-prices {
  padding: 80px 0;
  background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.scrap-prices .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}

.scrap-prices table {
  border-radius: 12px;
  overflow: hidden;
  font-size: 1.05rem;
}

.scrap-prices table thead th {
  background: #212529;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.scrap-prices table tbody tr {
  transition: all 0.2s ease;
}

.scrap-prices table tbody tr:hover {
  background: #f1f3f5;
  transform: scale(1.01);
}

.badge.bg-success {
  background: linear-gradient(90deg, #28a745, #4cd964);
  padding: 10px 16px;
  font-weight: 600;
}
/* === HURDA FİYATLARI (SCRAP PRICES) DÜZENLENMİŞ === */
.scrap-prices {
  padding: 80px 0;
  background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.scrap-prices .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2rem;
  position: relative;
}

.scrap-prices .section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3bb273, #1b2838);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.scrap-prices .table-responsive {
  max-width: 900px;
  margin: 0 auto;
}

.scrap-prices table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.scrap-prices table thead th {
  background: #212529;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px;
}

.scrap-prices table tbody td {
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.scrap-prices table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.scrap-prices table tbody tr:hover {
  background: #e9f7ef;
  transform: scale(1.005);
  transition: all 0.2s ease;
}

.scrap-prices .badge.bg-success {
  background: linear-gradient(90deg, #28a745, #4cd964);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .scrap-prices {
    padding: 60px 0;
  }
  .scrap-prices table thead {
    display: none;
  }
  .scrap-prices table,
  .scrap-prices table tbody,
  .scrap-prices table tr,
  .scrap-prices table td {
    display: block;
    width: 100%;
  }
  .scrap-prices table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
  }
  .scrap-prices table td {
    text-align: right;
    padding: 10px;
    position: relative;
  }
  .scrap-prices table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 50%;
    font-weight: 600;
    color: #333;
    text-align: left;
  }
}

