:root {
  --bg: #f5f5f3;
  --bg-card: #fdfdf9;
  --bg-dark: #10141a;
  --primary: #155e3a;
  --primary-soft: #dff1e4;
  --accent: #c9a15a;
  --text: #20252b;
  --muted: #7b838c;
  --radius: 14px;
  --shadow: 0 14px 36px rgba(0,0,0,0.08);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #f5f5f3 20%, #e3e2dd 80%);
  color: var(--text);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(16,20,26,0.9);
  color: #e5e7eb;
  border-bottom: 1px solid rgba(148,163,184,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand span {
  display: block;
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
}

nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}

nav a {
  color: #cbd5f5;
}

nav a:hover {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #f9fafb;
  box-shadow: 0 10px 28px rgba(16,185,129,0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid #9ca3af;
  color: #e5e7eb;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(16,185,129,0.45);
  filter: brightness(1.04);
}

.btn-outline:hover {
  background: rgba(148,163,184,0.25);
}

.header-call {
  display: none;
}

section {
  padding: 32px 0 40px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.section-sub {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 18px;
  max-width: 780px;
}

#modeller {
  padding: 16px 0 40px;
  margin-top: 18px;
  background: transparent;
}

#modeller .section-title,
#modeller .section-sub {
  text-align: left;
  max-width: 100%;
}

.models-shell {
  margin-top: 18px;
}

.models-card {
  background: #020617;
  border-radius: 26px;
  padding: 18px 18px 22px;
  box-shadow: var(--shadow);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.models-head .section-title {
  color: #f9fafb;
}

.models-head .section-sub {
  color: #9ca3af;
}

.models-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  grid-auto-rows: auto;
  column-gap: 20px;
  row-gap: 18px;
  align-items: stretch;
}

.models-head {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.model-view {
  background: var(--bg-dark);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-view-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
}

.model-view-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #4b5563, #020617);
  box-shadow: 0 12px 32px rgba(15,23,42,0.7);
}

.model-3d-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
}

.model-3d-wrapper model-viewer,
.model-3d-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: radial-gradient(circle at top left, #4b5563, #020617);
}

.model-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15,23,42,0.8);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(148,163,184,0.7);
}

.model-tag span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.model-name-big {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 1.02rem;
  font-weight: 600;
  text-shadow: 0 8px 18px rgba(0,0,0,0.75);
}

.model-view-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
}

.model-view-line {
  color: #9ca3af;
}

.model-view-line strong {
  color: #e5e7eb;
}

.model-view-cta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-ghost-light {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: transparent;
  color: #e5e7eb;
  padding: 7px 14px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-ghost-light:hover {
  background: rgba(148,163,184,0.18);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15,23,42,0.6);
}

.models-panel {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d4d4d8;
  background: #f9fafb;
  font-size: 0.78rem;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.model-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px 6px 10px;
  padding-right: 10px;
  scrollbar-width: thin;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  position: relative;
}

.model-list::before {
  content: "MEZAR MODELLERİ LİSTESİ";
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 2px 6px;
}

.model-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  align-items: center;
  background: #ffffff;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.model-item-thumb {
  border-radius: 10px;
  overflow: hidden;
  background: #e5e7eb;
  height: 60px;
}

.model-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-item-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #111827;
}

.model-item-meta {
  font-size: 0.77rem;
  color: var(--muted);
}

.model-item-type {
  font-size: 0.75rem;
  color: var(--primary);
}

.model-item:hover {
  background: #f3f4f6;
  border-color: #d4d4d8;
  transform: translateY(-1px);
}

.model-item.active {
  background: #ecfdf3;
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(16,185,129,0.2);
  transform: translateY(-1px);
}

.model-item.active .model-item-name {
  color: #166534;
}

.model-item.active .model-item-meta,
.model-item.active .model-item-type {
  color: #14532d;
}

.panel-small-text {
  font-size: 0.8rem;
  color: #4b5563;
}

.models-panel .panel-small-text:last-of-type {
  margin-top: 8px;
}

.services-shell {
  margin-top: 8px;
}

.services-marquee-shell {
  background: #020617;
  border-radius: 24px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow);
  color: #f9fafb;
}

.services-head-inline {
  margin-bottom: 12px;
}

.services-head-inline .section-title {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: #f9fafb;
}

.services-head-inline .section-sub {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0;
  max-width: 900px;
}

/* marquee viewport – masaüstü */
.services-marquee-viewport {
  position: relative;
  overflow: hidden;
}

/* kayan track – masaüstü */
.services-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 6px 0 4px;
  animation: services-scroll 45s linear infinite;
}

.services-marquee-viewport:hover .services-marquee-track {
  animation-play-state: paused;
}

.service-card-link {
  display: block;
  min-width: 0;
}

.service-card {
  position: relative;
  min-width: 260px;
  max-width: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.6);
}

.service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  z-index: -2;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.45)
  );
  z-index: -1;
}

.service-card-body {
  position: relative;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.95);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: lowercase;
}

.service-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.service-card-text {
  font-size: 0.84rem;
  margin: 0;
  color: #e5e7eb;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

@keyframes services-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.floating-contact {
  position: fixed;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
}

.floating-contact a {
  background: #111827;
  color: #f9fafb;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.6);
  border: 1px solid #1e293b;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.floating-contact a:hover {
  transform: translateX(-1px);
  background: #020617;
  box-shadow: 0 16px 40px rgba(15,23,42,0.9);
}

.cta-band {
  background: linear-gradient(135deg, #155e3a, #16a34a);
  color: #f9fafb;
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow);
}

.cta-text-main {
  font-size: 0.97rem;
  font-weight: 600;
}

.cta-text-sub {
  font-size: 0.84rem;
  opacity: 0.95;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-light {
  background: #f9fafb;
  color: #14532d;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 22px rgba(15,23,42,0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15,23,42,0.36);
  filter: brightness(0.98);
}

footer {
  padding: 16px 0 26px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid rgba(148,163,184,0.5);
  margin-top: 18px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 880px) {
  nav {
    display: none;
  }

  .model-3d-wrapper {
    height: 300px;
  }

  .header-call {
    display: inline-flex;
  }

  .models-layout {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }

  .models-card {
    border-radius: 20px;
    padding: 14px 14px 18px;
  }

  .floating-contact {
    top: auto;
    bottom: 12px;
    right: 12px;
    transform: none;
    flex-direction: row;
  }

  .services-marquee-shell {
    border-radius: 20px;
    padding: 14px 12px 16px;
  }

  .services-head-inline .section-title {
    font-size: 1.2rem;
  }

  .services-head-inline .section-sub {
    font-size: 0.86rem;
  }

  /* mobilde side scroll + animasyonu kapat */
  .services-marquee-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .services-marquee-track {
    animation: none;
    width: auto;
  }

  .service-card-link {
    scroll-snap-align: start;
    flex: 0 0 85%;
    max-width: 85%;
  }

  .service-card {
    min-width: auto;
    max-width: none;
  }

  .service-card-title {
    font-size: 0.9rem;
  }

  .service-card-text {
    font-size: 0.8rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --max-width: 1360px;
  }
}