/* ===================================================
   CASE IH TRAKTÖR – ANA CSS DOSYASI (KIRIKKALE FİLİZLER CASE BAYİ)
   =================================================== */

/* --- Google Fonts İmport --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Değişkenleri (Case IH Kırmızı & Karbon Teması) --- */
:root {
  --primary: #E31B23; /* Case IH Vibrant Red */
  --primary-dark: #A81016;
  --primary-light: #FF4A51;
  --primary-glow: rgba(227, 27, 35, 0.3);
  --accent: #E5A93B; /* Gold/Bronze for Premium badges */
  --accent-glow: rgba(229, 169, 59, 0.2);

  --bg-dark: #0A0808; /* Carbony Pure Black */
  --bg-card: #151111; /* Dark Grey with a touch of red */
  --bg-surface: #1F1919;
  --bg-border: rgba(255, 255, 255, 0.06);

  --text-primary: #FFFFFF;
  --text-secondary: #EBE4E4;
  --text-muted: #AFA0A0;

  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 20px 60px rgba(227, 27, 35, 0.18);
  --radius: 20px;
  --radius-sm: 10px;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 76px;
  background: rgba(10, 8, 8, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bg-border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 8, 8, 0.98);
  box-shadow: 0 2px 30px rgba(0,0,0,0.6);
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

.nav-logo span {
  font-weight: 900;
  text-transform: uppercase;
}
.nav-logo .red-text { color: var(--primary); }
.nav-logo .white-text { color: #FFFFFF; font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.btn-nav-admin {
  background: rgba(227, 27, 35, 0.1) !important;
  color: var(--primary-light) !important;
  border: 1px solid rgba(227, 27, 35, 0.4) !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: var(--transition) !important;
}

.btn-nav-admin:hover {
  background: var(--primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 15px var(--primary-glow);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
  display: block;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 76px; right: -100%;
    width: 260px; height: calc(100vh - 76px);
    background: rgba(10, 8, 8, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--bg-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 30px;
    transition: var(--transition);
  }
  .nav-links.open { right: 0; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 5% 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(227,27,35,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 82%, rgba(227,27,35,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, #0c0909 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(227,27,35,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,27,35,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
}

.hero-glow-1 {
  position: absolute;
  top: -10%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  animation: float 20s infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  animation: float 15s infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 30px); }
}

.hero-badge-wrapper {
  animation: fadeInDown 1s cubic-bezier(0.25, 1, 0.3, 1) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(227, 27, 35, 0.05);
  border: 1px solid rgba(227, 27, 35, 0.25);
  backdrop-filter: blur(10px);
  color: var(--primary-light);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 28px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.3, 1) 0.2s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #FFFFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(227, 27, 35, 0.4));
}

.hero p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.65;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.3, 1) 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.3, 1) 0.6s both;
}

.hero-stats-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 60px;
  padding: 24px 50px;
  background: rgba(21, 17, 17, 0.55);
  border: 1px solid var(--bg-border);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.3, 1) 0.8s both;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-card);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 25px var(--primary-glow);
  font-family: 'Outfit', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(227, 27, 35, 0.55);
  filter: brightness(1.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--bg-border);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(227, 27, 35, 0.05);
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===== SECTIONS ===== */
section { padding: 90px 5%; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  background: rgba(227, 27, 35, 0.08);
  border: 1px solid rgba(227, 27, 35, 0.2);
  color: var(--primary-light);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* ===== PRODUCTS AREA ===== */
#products { background: var(--bg-dark); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.product-visual-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-visual {
  position: relative;
  overflow: hidden;
  height: 230px;
  background: var(--bg-surface);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .card-image {
  transform: scale(1.05);
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-surface), #120e0e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 3rem;
}

.card-img-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 8, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.product-card:hover .card-overlay {
  opacity: 1;
}

.view-details {
  background: rgba(227, 27, 35, 0.95);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transform: translateY(15px);
  transition: var(--transition);
}

.product-card:hover .view-details {
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(227, 27, 35, 0.4);
  box-shadow: var(--shadow-hover);
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-title a:hover {
  color: var(--primary-light);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-badge {
  display: inline-block;
  background: rgba(227, 27, 35, 0.12);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-power {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 0.92rem;
  color: #d1c5c5;
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.7em;
}

.card-footer-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--bg-border);
  margin-top: auto;
}

.price-wrapper {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-light);
}

.btn-card-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-cta:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Loading & Empty state */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 80px;
  color: var(--text-muted);
  grid-column: 1/-1;
}

.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--bg-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FEATURES SECTION ===== */
.features-section { background: var(--bg-surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  border-color: rgba(227, 27, 35, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(227, 27, 35, 0.15), rgba(227, 27, 35, 0.05));
  border: 1px solid rgba(227, 27, 35, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CTA BANNER ===== */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-dark));
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== ABOUT PAGE ===== */
.page-hero {
  padding: 150px 5% 70px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(227, 27, 35, 0.12) 0%, transparent 70%),
    var(--bg-dark);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-visual {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card)), url('/css/pattern.png');
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(227,27,35,0.1), transparent 70%);
}

.about-text h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.milestones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.milestone {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.milestone:hover {
  border-color: rgba(227, 27, 35, 0.25);
  background: var(--bg-card);
}

.milestone-number {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--primary-light);
}

.milestone-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition);
}

.contact-info-item:hover {
  border-color: rgba(227, 27, 35, 0.35);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.info-icon {
  width: 48px; height: 48px;
  background: rgba(227, 27, 35, 0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(227, 27, 35, 0.2);
}

.info-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 700; text-transform: uppercase; }
.info-value { font-weight: 600; font-size: 0.95rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.contact-form h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea { min-height: 130px; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}

.btn-submit:hover {
  filter: brightness(1.1);
  box-shadow: 0 5px 15px var(--primary-glow);
}

/* Contact form response messages */
.contact-success-msg {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2ecc71;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 8px;
}

.contact-error-msg {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ff4d4d;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 8px;
}

/* ===== FOOTER ===== */
footer {
  background: #060505;
  border-top: 1px solid var(--bg-border);
  padding: 80px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-logo span { font-weight: 900; }
.footer-logo .red-text { color: var(--primary); }
.footer-logo .white-text { color: #FFFFFF; font-weight: 300; }

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 400px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--bg-border);
  padding-top: 30px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom span {
  color: var(--text-primary);
  font-weight: 600;
}

/* Animations Scroll Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.3, 1), transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TRACTOR AD DETAIL PAGE ===== */

.tractor-ad-page {
  padding: 96px 5% 70px;
  max-width: 680px;
  margin: 0 auto;
}

.tractor-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.tractor-back-link:hover {
  color: var(--primary-light);
}

.tractor-ad-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Fotoğraf — ana sayfa ilanı boyutunda */
.tractor-ad-media {
  padding: 16px 16px 0;
}

.tractor-ad-photo {
  position: relative;
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  cursor: zoom-in;
}

.tractor-ad-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

.tractor-ad-photo:hover img {
  transform: scale(1.03);
}

.tractor-ad-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
}

.tractor-ad-photo-empty span { font-size: 2.5rem; opacity: 0.4; }
.tractor-ad-photo-empty small { font-size: 0.82rem; font-weight: 600; }

.tractor-ad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(227, 27, 35, 0.9);
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.tractor-ad-photo-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10, 8, 8, 0.7);
  backdrop-filter: blur(6px);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tractor-ad-zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--bg-border);
  background: rgba(10, 8, 8, 0.65);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.tractor-ad-zoom:hover {
  background: rgba(227, 27, 35, 0.85);
  color: #fff;
  border-color: var(--primary);
}

.tractor-ad-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tractor-ad-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--bg-surface);
  cursor: pointer;
  transition: var(--transition);
}

.tractor-ad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tractor-ad-thumb:hover,
.tractor-ad-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Bilgi alanı */
.tractor-ad-body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tractor-ad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-brand {
  background: rgba(227, 27, 35, 0.12);
  border: 1px solid rgba(227, 27, 35, 0.28);
  color: var(--primary-light);
  padding: 4px 11px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tag-power {
  background: rgba(229, 169, 59, 0.1);
  border: 1px solid rgba(229, 169, 59, 0.28);
  color: var(--accent);
  padding: 4px 11px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
}

.tractor-ad-title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 0;
}

.tractor-ad-price-row {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(227, 27, 35, 0.08), rgba(227, 27, 35, 0.02));
  border: 1px solid rgba(227, 27, 35, 0.18);
  border-radius: var(--radius-sm);
}

.tractor-ad-price-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.tractor-ad-price {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--primary-light);
  letter-spacing: -0.5px;
}

.tractor-ad-desc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 0 10px;
}

.tractor-ad-desc p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.75;
  margin: 0;
}

.tractor-ad-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tractor-ad-spec {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
}

.tractor-ad-spec .spec-icon {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 27, 35, 0.08);
  border-radius: 8px;
  flex-shrink: 0;
}

.tractor-ad-spec .spec-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.tractor-ad-spec .spec-value {
  font-size: 1rem;
  font-weight: 700;
}

.tractor-ad-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.tractor-ad-btn-main {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  text-align: center;
}

.tractor-ad-btn-secondary {
  flex: 0 0 auto;
  padding: 12px 18px !important;
  font-size: 0.88rem !important;
}

@media (max-width: 480px) {
  .tractor-ad-page { padding-top: 88px; }
  .tractor-ad-photo { height: 210px; }
  .tractor-ad-body { padding: 18px 16px 24px; }
  .tractor-ad-actions { flex-direction: column; }
  .tractor-ad-btn-main,
  .tractor-ad-btn-secondary { width: 100%; justify-content: center; text-align: center; }
}

/* ===== TRACTOR DETAIL PAGE (legacy - kept for lightbox) ===== */

/* Breadcrumb */
.breadcrumb {
  padding: 100px 5% 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
}
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .bc-current { color: var(--text-secondary); font-weight: 600; }

/* Tractor Detail Layout */
.tractor-detail-section {
  padding: 40px 5% 90px;
  max-width: 1200px;
  margin: 0 auto;
}

.tractor-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

@media (max-width: 900px) {
  .tractor-detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Gallery Side --- */
.tractor-gallery { position: relative; }

.gallery-cover {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  border: 1px solid var(--bg-border);
}

.gallery-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}

.gallery-cover:hover img { transform: scale(1.04); }

.gallery-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 4rem;
  color: var(--text-muted);
}
.gallery-cover-placeholder span {
  font-size: 0.95rem;
  font-weight: 600;
}

.gallery-cover-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(227, 27, 35, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gallery-cover-zoom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(10, 8, 8, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.gallery-cover:hover .gallery-cover-zoom {
  background: rgba(227, 27, 35, 0.7);
  color: #fff;
}

/* Thumbnail strip */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  background: var(--bg-surface);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.gallery-thumb:hover img { transform: scale(1.08); }

.gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Photo count badge on cover */
.gallery-photo-count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(10, 8, 8, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- Info Side --- */
.tractor-info { display: flex; flex-direction: column; gap: 24px; }

.tractor-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tractor-info-badge .badge-red {
  background: rgba(227, 27, 35, 0.12);
  border: 1px solid rgba(227, 27, 35, 0.3);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tractor-info-badge .badge-power {
  background: rgba(229, 169, 59, 0.1);
  border: 1px solid rgba(229, 169, 59, 0.3);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tractor-info h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
}

.tractor-price-block {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tractor-price-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.tractor-price-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-light);
  letter-spacing: -1px;
}

.tractor-desc {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.8;
  border-left: 3px solid var(--primary);
  padding-left: 18px;
}

.tractor-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tractor-spec-item {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: var(--transition);
}
.tractor-spec-item:hover {
  border-color: rgba(227, 27, 35, 0.25);
}
.tractor-spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}
.tractor-spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tractor-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tractor-cta-row .btn-primary { flex: 1; justify-content: center; }
.tractor-cta-row .btn-outline { flex: 0 0 auto; }

/* Navigator (prev / next) */
.tractor-navigator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 80px;
  gap: 16px;
}

.tractor-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  max-width: 280px;
}
.tractor-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(227, 27, 35, 0.05);
}
.tractor-nav-btn .nav-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.tractor-nav-btn .nav-name { font-weight: 700; font-size: 0.92rem; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  user-select: none;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(30, 25, 25, 0.8);
  border: 1px solid var(--bg-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}
.lightbox-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 25, 25, 0.75);
  border: 1px solid var(--bg-border);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
  user-select: none;
}
.lightbox-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }

.lightbox-counter {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .lightbox-arrow.prev { left: 8px; }
  .lightbox-arrow.next { right: 8px; }
  .tractor-specs-grid { grid-template-columns: 1fr; }
  .tractor-price-block { flex-direction: column; align-items: flex-start; }
}

/* WhatsApp Redirect Button styling */
.btn-whatsapp-redirect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
  border: none;
  cursor: pointer;
}

.btn-whatsapp-redirect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #128C7E, #25D366);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

