:root {
  /* Colors */
  --primary: #01344f;
  --primary-dark: #012638;
  --accent: #0d6efd;
  --accent-light: #2e8dd6;
  --hero-title: #0a5f8a;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --border-light: #e9ecef;
  --white: #fff;

  /* Typography scale (standardized) */
  --base-font-size: 15px;            /* desktop base (slightly reduced) */
  --base-line-height: 1.6;
  --font-size-small: 0.8125rem;      /* 13px */
  --font-size-regular: 1rem;         /* 16px */
  --font-size-lead: 1.0625rem;       /* 17px */
  --font-size-h6: 0.875rem;          /* 14px */
  --font-size-h5: 0.95rem;           /* 15px */
  --font-size-h4: 1.05rem;           /* 17px */
  --font-size-h3: 1.25rem;           /* 20px */
  --font-size-h2: 1.6rem;            /* 25.6px */
  --font-size-h1: 2.25rem;           /* 36px */
  --heading-line-height: 1.15;

  /* Responsive typography breakpoints */
  --scale-lg: 1.125; /* multiplier for large screens */
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  overflow-x: hidden;
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Default link style: remove underlines across the site (override where needed) */
a, a:link, a:visited {
  text-decoration: none;
  color: inherit;
}
a:hover, a:focus {
  text-decoration: none;
}

/* Global typography rules to keep sizes consistent */
html {
  font-size: var(--base-font-size);
  /* Enable native smooth scrolling for in-page anchors and programmatic scrolls */
  scroll-behavior: smooth;
}
p, .card-text, li { font-size: var(--font-size-regular); line-height: var(--base-line-height); }
.section-lead { font-size: var(--font-size-lead); line-height: 1.65; }
small, .small, .text-small { font-size: var(--font-size-small); }
h1 { font-size: var(--font-size-h1); line-height: var(--heading-line-height); }
h2 { font-size: var(--font-size-h2); line-height: var(--heading-line-height); }
h3 { font-size: var(--font-size-h3); line-height: var(--heading-line-height); }
h4 { font-size: var(--font-size-h4); line-height: 1.25; }
h5 { font-size: var(--font-size-h5); line-height: 1.25; }
h6 { font-size: var(--font-size-h6); line-height: 1.25; }
.hero-title { font-size: clamp(2rem, 5.5vw, 3.2rem); }

/* Slightly larger type on large screens for readability */
@media (min-width: 1200px) {
  html { font-size: calc(var(--base-font-size) * var(--scale-lg)); }
}

/* Respect reduced motion and prefer-accessibility */
@media (prefers-reduced-motion: reduce) {
  /* Respect user's reduced motion preference: disable animations/transitions
     and fall back to instant scrolling. */
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto !important; }
}

.header-top {
  background: var(--white);
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-brand-link {
  text-decoration: none;
  color: inherit;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.header-logo {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.header-center {
  gap: 1rem;
}

.header-contact-item {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.header-contact-item:hover {
  color: var(--primary);
}

.header-contact-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
}

.header-sep {
  width: 1px;
  height: 1.25rem;
  background: var(--border-light);
}

.header-tools {
  display: flex;
  align-items: center;
}

.header-tools .dropdown {
  margin-left: 50px;
}

.header-experience {
  font-family: "Nothing You Could Do", cursive;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--primary);
  white-space: nowrap;
  /* tighten character spacing for compact look */
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.header-experience-text {
  font-size: 0.82em;
  vertical-align: baseline;
}

.header-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0.4rem 1rem;
  background: #f0f2f5;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s;
}

.header-lang:hover {
  background: #e5e8ec;
}

.header-lang::after {
  margin-left: 0.35rem;
}

.header-lang:focus,
.header-lang:focus-visible {
  outline: none;
  box-shadow: none;
}

button:focus,
button:focus-visible,
.dropdown-toggle:focus,
.dropdown-toggle:focus-visible,
.navbar-toggler:focus,
.navbar-toggler:focus-visible,
a:focus,
a:focus-visible {
  outline: none;
  box-shadow: none;
}

.header-lang-menu {
  min-width: 10rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: none;
  font-weight: 400;
}

.header-lang-menu .dropdown-item {
  font-weight: 400;
}

.header-lang-item.active {
  background: rgba(1, 52, 79, 0.08);
  color: var(--primary);
  font-weight: 500;
}

.header-nav-wrap {
  border-top: 1px solid rgba(1, 52, 79, 0.15);
  border-bottom: 1px solid rgba(1, 52, 79, 0.15);
  background: transparent;
  padding: 0.5rem 0;
}

.navbar-main {
  background: transparent !important;
  padding: 0;
  box-shadow: none;
}

.navbar-main .navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 400;
  padding: 0.5rem 1.5rem;
  transition: color 0.2s;
}

.navbar-main .navbar-nav .nav-link:hover {
  color: var(--primary);
}

.navbar-main .navbar-nav .nav-link.active {
  color: var(--primary);
  font-weight: 500;
  position: relative;
}

.navbar-main .navbar-nav .nav-link.active::after {
  /* Ensure active link underline is visible and matches hover style */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 40%;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
  border-radius: 1px;
  opacity: 1;
}

/* Simple, modern hover underline for navbar links */
.navbar-main .navbar-nav .nav-link {
  position: relative;
  transition: color 0.18s ease;
  text-decoration: none;
}
.navbar-main .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 40%;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
  border-radius: 1px;
  opacity: 0.95;
}
.navbar-main .navbar-nav .nav-link:hover::after,
.navbar-main .navbar-nav .nav-link:focus::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar-toggler {
  border-color: var(--border-light);
  padding: 0.5rem 0.6rem;
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  outline: none;
  box-shadow: none;
}

.hero {
  width: 100%;
  max-width: 100vw;
  min-height: 82vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* background images handled by pseudo-elements to allow smooth fade transitions */
}

/* Background image layers for fade transition */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: 100% 100%, cover;
  background-position: left top, center center;
  background-repeat: no-repeat, no-repeat;
  will-change: opacity;
  transition: opacity 700ms ease;
}
.hero::before {
  /* default first slide */
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.75) 40%, rgba(255, 255, 255, 0.35) 65%, transparent 85%),
    url("../images/slider.jpg");
  opacity: 1;
}
.hero::after {
  /* second slide */
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.75) 40%, rgba(255, 255, 255, 0.35) 65%, transparent 85%),
    url("../images/slider-2.jpg");
  opacity: 0;
}

/* when slide-2 is active, fade to the second image */
.hero.slide-2::after { opacity: 1; }
.hero.slide-2::before { opacity: 0; }

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  min-height: 520px;
  width: 100%;
  max-width: 100%;
}

.hero-content-wrap {
  flex: 0 1 60%;
  min-width: 320px;
  max-width: 760px;
  padding: 4.5rem clamp(1.5rem, 6vw, calc((100vw - 1140px) / 2 + 1.5rem)) 4rem clamp(1.5rem, 5vw, 2.5rem);
  box-sizing: border-box;
}

.hero-visual-wrap {
  flex: 1 1 50%;
  min-width: 280px;
  min-height: 340px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-size: 30px !important;
  line-height: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  text-transform: capitalize;
  word-wrap: break-word;
  max-width: 100%;
}
.hero-title p {
  font-size: 40px !important;
  line-height: 40px;
}

.hero-accent {
  color: var(--accent-light);
  font-weight: 800;
}

.hero-strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Keep hero-content positioning but remove decorative pseudo-element */
.hero-content-wrap {
  position: relative;
  margin-top:-15vh;
}
.hero-content-wrap > * {
  position: relative;
  z-index: 2;
}

/* Slide content fade */
.hero-slide {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms ease, transform 420ms ease;
  position: absolute;
  inset: 0;
  z-index: 2;
  /* ensure slides overlap without affecting layout height */
  display: block;
}
.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  position: absolute;
}

.hero-lead {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  max-width: 100%;
  word-wrap: break-word;
}

@media (min-width: 992px) {
  .hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
  }
}

.hero-lead-first {
  margin-bottom: 0.5rem;
}

.btn-cta {
  background: #00344f;
  color: var(--white);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-cta:hover {
  background: #075a73;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-cta:focus,
.btn-cta:focus-visible {
  outline: none;
  box-shadow: none;
}

.btn-cta-arrow {
  font-size: 1.1rem;
}

/* Corporate control style: use this class on buttons and form controls
   to give a consistent, professional look across the project */
.corp-control {
  padding: 0.9rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

/* Button variants when using corp-control */
.corp-control.btn-cta {
  background: #00344f;
  color: var(--white);
  border: none;
}

.corp-control.btn-outline-primary,
.btn-outline-primary.corp-control {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(1, 52, 79, 0.12);
}

.corp-control:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.corp-control:focus,
.corp-control:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Form controls */
input.corp-control,
textarea.corp-control,
select.corp-control,
.form-control.corp-control {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--white);
  box-shadow: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  font-weight: 400;
}

input.corp-control:focus,
textarea.corp-control:focus,
select.corp-control:focus,
.form-control.corp-control:focus {
  border-color: var(--primary);
  box-shadow: none;
  outline: none;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-figures {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-figure {
  font-size: clamp(7rem, 18vw, 13rem);
  font-weight: 800;
  user-select: none;
}

.hero-figure-accent {
  color: var(--accent-light);
}

.hero-figure-dark {
  color: var(--primary);
  margin-left: -0.04em;
}

.hero-visual-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-chassis {
  width: 88%;
  max-width: 380px;
  height: 200px;
  background: linear-gradient(145deg, rgba(1, 52, 79, 0.08) 0%, rgba(46, 141, 214, 0.06) 100%);
  border-radius: 12px;
  border: 2px dashed rgba(1, 52, 79, 0.18);
}

.hero-dots-wrap {
  /* place dots visually lower and centered over the hero */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3.25rem; /* lower on the hero */
  width: auto;
  display: flex;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  z-index: 4;
  pointer-events: auto;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.12s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  margin: 0 6px;
}

.hero-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.15);
  box-shadow: 0 8px 22px rgba(1,52,79,0.18);
}

.hero-scroll-hint {
  position: absolute;
  right: 1.5rem;
  top: 62%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.hero-scroll-hint:hover {
  opacity: 0.85;
  color: var(--primary);
}

.hero-scroll-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  line-height: 1.4;
}

.hero-scroll-arrow {
  display: flex;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

.hero-scroll-arrow svg {
  width: 28px;
  height: 28px;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.7; }
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Increase default vertical spacing for sections (overrides bootstrap .py-5) */
section.py-5 {
  padding-top: 4.5rem; /* ~72px */
  padding-bottom: 4.5rem;
}

@media (min-width: 992px) {
  section.py-5 {
    padding-top: 6rem; /* ~96px on larger screens */
    padding-bottom: 6rem;
  }
}
#kurumsal-heading {
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  line-height: 1.05;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.98);
  letter-spacing: -1px;
  text-transform: none;
  margin-top: 40px;
  text-align: center;
}

.section-lead {
  font-weight: 400;
  color: var(--text-muted);
  max-width: 100%;
  margin-bottom: 2rem;
}

/* Dark section variant for prominent blocks */
.section-dark {
  background: linear-gradient(180deg, rgba(1,52,79,0.95) 0%, rgba(1,52,79,0.92) 100%);
  color: #fff;
}
.section-dark .section-heading {
  color: #fff;
}
.section-dark .section-lead {
  color: rgba(255,255,255,0.9);
}

/* Corporate panel: simple, padded, aesthetic */
.corporate-panel {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 2.25rem;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.04);
}
.corporate-panel-copy {
  color: rgba(255,255,255,0.95);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}
.section-dark .btn-cta {
  box-shadow: none;
}
.section-dark .btn-outline-primary.corp-control {
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}

/* Ensure all textual content in dark section appears white and left-aligned */
.section-dark,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark a,
.section-dark .card-text,
.section-dark .card-title,
.section-dark .corporate-panel-copy {
  color: rgba(255,255,255,0.98) !important;
  text-align: left;
}

/* Kurumsal — modern outline heading + short decorative dash beneath */
#kurumsal-heading {
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  line-height: 1.05;
  margin-bottom: 0;
  font-weight: 300;
  /* subtle outline effect */
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.98);
  letter-spacing: -1px;
  text-transform: none;
  position: relative;
  text-align: center;
}

#kurumsal-heading::after {
  content: "";
  display: block;
  width: clamp(22px, 12vw, 64px); /* daha ince ve kısa */
  height: 1px; /* daha ince */
  margin: 15px auto; /* üst ve alt boşluk; yatay ortala */
  border-radius: 0;
  background: rgba(255, 255, 255, 0.312); /* daha az belirgin */
  box-shadow: none;
}

@media (max-width: 576px) {
  #kurumsal-heading::after { height: 1px; width: 48px; margin: 12px auto 8px auto; }
}

.kurumsal-art {
  display: block;
  width: 100%;
  max-width: none;
  font-size: 1rem;
  line-height: 1.9;
  padding: 0.5rem 0;
  margin-top: 0.6rem;
  background: transparent;
  border-radius: 0;
  border-left: none;
  box-shadow: none;
}
.kurumsal-art p {
  margin-bottom: 1rem;
  text-align: center;
}
.section-dark .kurumsal-art {
  /* override global left-align for this specific block and center content */
  text-align: center !important;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.kurumsal-art .kurumsal-accent {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: rgba(255,255,255,0.98);
}
.kurumsal-art .kurumsal-sub {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  opacity: 0.95;
  color: rgba(255,255,255,0.95);
}
/* remove decorative drop-cap for a cleaner look */
.kurumsal-art::first-letter {
  font-size: inherit;
  font-weight: inherit;
  float: none;
  margin: 0;
  color: inherit;
}

/* Make sure links inside the block remain white on dark backgrounds */
.section-dark .kurumsal-art a {
  color: #fff;
}

/* Signature style */
.signature {
  margin-top: 1.15rem;
}
.signature-name {
  font-family: "Nothing You Could Do", cursive;
  font-size: 1.45rem;
  color: rgba(255,255,255,0.98);
  display: inline-block;
  line-height: 1;
}

/* Dark variant for sections (e.g. Kurumsal) */
.section-dark {
  background: linear-gradient(180deg, var(--primary-dark), var(--primary));
  color: #fff;
}

/* Double vertical padding for the Kurumsal section */
#kurumsal {
  padding-top: 14rem;
  padding-bottom: 10rem;
}

.section-dark .section-heading {
  color: #fff;
}

.section-dark .section-lead {
  color: rgba(255,255,255,0.9);
}

.card-service.card-service-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
}

.card-service.card-service-dark .card-title {
  color: #fff;
  font-weight: 700;
}

.card-service.card-service-dark .card-text {
  color: rgba(255,255,255,0.85);
}

.section-dark .btn-cta {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: none;
}

.section-dark .btn-outline-primary.corp-control {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}

@media (max-width: 991.98px) {
  .section-dark .section-heading {
    font-size: 1.5rem;
  }
}

.card-service {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  height: 100%;
}

.card-service:hover {
  box-shadow: none;
  border-color: rgba(1, 52, 79, 0.03);
}

.card-service .card-body {
  padding: 1.5rem;
}

/* Minimal service list (used in Kalıp Üretimi) */
.service-list { width: 100%; }
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0;
  background: transparent;
  border: none;
}
.service-icon {
  width: 52px;
  height: 52px;
  color: var(--primary);
  flex-shrink: 0;
}
.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.service-desc {
  font-size: var(--font-size-regular);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .service-item { align-items: flex-start; padding: 0.5rem 0; }
  .service-icon { width: 44px; height: 44px; }
  .service-title { font-size: 1rem; }
}

/* Center layout for main content sections */
section#kurumsal.section-dark,
section#parca-uretim {
  text-align: center;
}

/* Kalıp üretimi içeriğini sola hizala */
section#kalip-uretim {
  text-align: left;
}

section#kurumsal.section-dark .section-heading,
section#parca-uretim .section-heading {
  margin-left: auto;
  margin-right: auto;
}

/* Kalıp üretimi başlıklarını sola hizala ve genişliği varsayılan bırak */
section#kalip-uretim .section-heading {
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

section#kurumsal.section-dark .section-lead,
section#parca-uretim .section-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 920px;
  text-align: center;
}

/* Kalıp üretimi giriş metnini sola hizala, genişliği sınırlı */
section#kalip-uretim .section-lead {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  text-align: center;
}

.service-list .service-item {
  align-items: center;
  text-align: center;
}

@media (max-width: 767.98px) {
  .service-list .service-item { align-items: center; text-align: center; }
}

/* Force light-theme headings/lead for specific sections on light background */
section#kalip-uretim .section-heading,
section#parca-uretim .section-heading {
  color: var(--primary);
  font-weight: 700;
}

section#kalip-uretim .section-lead,
section#parca-uretim .section-lead {
  color: var(--text-muted);
}

/* Center CTA buttons inside Parça Üretimi section */
section#parca-uretim .d-flex.gap-3.mt-4,
section#parca-uretim .d-flex.gap-3 {
  justify-content: center;
}

/* Subtle divider under each section */
section {
  border-bottom: 1px solid var(--border-light);
}

/* Dark sections need a lighter divider for contrast */
section.section-dark {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.card-service .card-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card-service .card-text {
  font-weight: 400;
}

.footer {
  /* fallback background color then a subtle diagonal gradient using brand colors */
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: rgba(255, 255, 255, 0.95);
  padding: 3rem 0 2rem;
  /* slightly reduced base font-size for footer for a more compact look */
  font-size: 0.9rem;
  padding-top:6rem;
  padding-bottom: 3rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--white);
}

.footer .footer-brand img {
  max-height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

/* Social icon buttons in footer */
.footer .social-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.5rem;
}
.footer .social-links .list-inline-item {
  margin: 0;
}
.footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: none; /* remove outer border for cleaner look */
  color: rgba(255,255,255,0.95);
  transition: background 0.15s, transform 0.12s;
  text-decoration: none;
}
.footer .social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
}
.footer .social-link:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* Contact list: keep icon and text on same line and vertically centered */
.footer .contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}
.footer .contact-list svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke: currentColor;
}
@media (min-width: 768px) {
  .footer .contact-list li { white-space: nowrap; }
}

/* Allow the address to wrap (move to next line) when it doesn't fit */
.footer .contact-list li:first-child a {
 
  max-width: 100%; /* slightly increased to reduce wrapping */
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer link hover: subtle accent and lift */
.footer .list-unstyled a {
  transition: color 0.18s ease, transform 0.12s ease;
}
.footer .list-unstyled a:hover,
.footer .footer-bottom a:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Keep logo visually higher than neighboring column content on large screens */
@media (min-width: 992px) {
  .footer .footer-brand {
    margin-top: -0.6rem;
    margin-bottom: 0.6rem;
    align-self: flex-start;
  }
}

.footer .footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 2rem;
  /* make copyright same size as KVKK (.small) */
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991.98px) {
  .hero-scroll-hint {
    display: none;
  }

  .header-center {
    gap: 0.75rem;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-content-wrap {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .hero-visual-wrap {
    min-height: 260px;
  }

  .hero-visual {
    min-height: 240px;
  }

  .navbar-main .navbar-nav .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .header-experience {
    font-size: 1.2rem;
  }

  .hero-figure {
    font-size: clamp(5rem, 22vw, 7rem);
  }
}

.brand-slider-wrap {
  /* full-bleed transparent strip for logos (arkplansız, tam genişlik) */
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: transparent;
  padding: 0.6rem 0;
  margin-top: 1.25rem;
}
.brand-slider {
  /* full-width, transparent slider — logos sit directly on the page */
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent;
  border-radius: 0;
  padding: 0.4rem 0;
  overflow: hidden;
  outline: none;
  padding-bottom: 80px !important;
}
.brand-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 8vw, 6rem); /* increased spacing between logos */
  will-change: transform;
  /* duplicated items in HTML -> move by 50% for seamless loop */
  animation: brand-scroll 22s linear infinite;
}
.brand-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  min-width: 100px; /* slightly smaller logos */
}
.brand-item svg {
  height: 36px; /* reduced */
  width: auto;
  display: block;
  filter: none;
  opacity: 0.95;
  color: var(--text-dark); /* SVG text uses currentColor */
}
/* Brand logo images (when using raster images) */
.brand-item .brand-logo {
  height: 60px; /* reduced */
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.95;
}
/* Mobile: make brand logos slightly smaller so two fit per row comfortably */
@media (max-width: 576px) {
  .brand-item .brand-logo {
    height: 48px;
    max-width: 120px;
  }
  .partners-grid .col {
    padding: 0.25rem !important;
  }
}
/* Fix for partners grid on small screens: reduce row gap and limit image width so two fit per row */
@media (max-width: 576px) {
  .partners-grid .row {
    gap: 0rem !important;
  }
  .partners-grid .img-fluid {
    max-width: 60% !important;
    height: auto !important;
  }
}

/* Gallery styles */
.gallery-grid .gallery-item {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  /* thumbnails: black & white and slightly transparent */
  filter: grayscale(100%);
  opacity: 0.85;
}
.gallery-grid .gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  filter: none;
  opacity: 1;
}
.gallery-grid a { display: block; }
.gallery-grid .col-6 { padding-left: 0.35rem; padding-right: 0.35rem; }
.gallery-grid .col-6 img { border-radius: 10px; }

@media (min-width: 992px) {
  .gallery-grid .gallery-item { height: 280px; }
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.9);
  z-index: 3200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}
.lightbox.show {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 92%;
  max-height: 86%;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
  opacity: 0.95;
}
.lightbox-close { top: 18px; right: 22px; font-size: 34px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); font-size: 42px; }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); font-size: 42px; }
.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus { outline: none; box-shadow: none; }

/* Pause on hover/focus for accessibility */
.brand-slider:hover .brand-track,
.brand-slider:focus .brand-track {
  animation-play-state: paused;
}

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

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; }
}

@media (max-width: 767.98px) {
  .brand-item { min-width: 64px; }
  .brand-item svg { height: 28px; }
  .brand-slider { padding: 0.75rem 0.5rem; border-radius: 10px; }
  .partner-logo { max-height: 28px; }
}

/* Mobile hero adjustments */
@media (max-width: 767.98px) {
  .hero-content-wrap {
    position: relative;
    margin-top: -20vh;
  }

  .hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    text-transform: capitalize;
    word-wrap: break-word;
    max-width: 100%;
  }
  .hero-title p {
    font-size: 1.5rem !important;
    line-height: 1.35;
  }

  .hero-lead {
    font-size: 0.9rem;
    line-height: 1.5 !important;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    max-width: 100%;
    word-wrap: break-word;
  }
}

/* Partners grid (fixed, colorful cards) */
.partners-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.partners-grid .row {
  gap: clamp(1.5rem, 3.5vw, 3rem); /* increase grid gaps between logo columns/rows */
}
.partner-card {
  border-radius: 12px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(2,32,50,0.14);
}
.partner-logo {
  max-height: 36px;
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.12));
  background: transparent;
}

/* A small set of friendly brand background palettes */
.partner-card.bg-1 { background: linear-gradient(135deg, #ff7a7a 0%, #ffb199 100%); }
.partner-card.bg-2 { background: linear-gradient(135deg, #7ad1ff 0%, #9be6ff 100%); color: #012634; }
.partner-card.bg-3 { background: linear-gradient(135deg, #ffd86b 0%, #ffb86b 100%); color: #2b2b2b; }
.partner-card.bg-4 { background: linear-gradient(135deg, #b98cff 0%, #8fb1ff 100%); }
.partner-card.bg-5 { background: linear-gradient(135deg, #7ef2b8 0%, #4fd39a 100%); color: #0b2b1f; }

@media (max-width: 575.98px) {
  .partner-card { min-height: 68px; border-radius: 10px; padding: 0.6rem; }
  .partner-logo { max-height: 46px; }
}

/* Parça Üretimi hero — dark overlay overrides to ensure readable text on image */
section#parca-uretim.parca-hero {
  color: #fff;
  text-align: center;
  position: relative;
}
section#parca-uretim.parca-hero .section-heading,
section#parca-uretim.parca-hero .section-lead {
  color: rgba(255,255,255,0.95) !important;
}
section#parca-uretim.parca-hero .service-title {
  color: rgba(255,255,255,0.98) !important;
}
section#parca-uretim.parca-hero .service-desc {
  color: rgba(255,255,255,0.9) !important;
}
section#parca-uretim.parca-hero .service-icon {
  color: rgba(255,255,255,0.92) !important;
  stroke: rgba(255,255,255,0.92);
}
/* Slight vertical padding so hero content sits lower on very large screens */
@media (min-width: 992px) {
  section#parca-uretim.parca-hero .container { padding-top: 6rem; padding-bottom: 4rem; }
}

/* Center alignment for specific informational sections */
#uretim-sureci,
#hizmetler {
  text-align: center;
}
#uretim-sureci .section-heading,
#hizmetler .section-heading {
  margin-left: auto;
  margin-right: auto;
}
#uretim-sureci .section-lead,
#hizmetler .section-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}

/* Process step icons */
.process-icon {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 0.75rem auto;
  color: var(--primary);
}
.corporate-panel .process-icon { margin-top: 0.25rem; }
/* Emphasize service titles in production & services sections */
#hizmetler .corporate-panel h5,
#uretim-sureci .corporate-panel h5 {
  font-size: 1.125rem; /* slightly larger */
  font-weight: 700;    /* bolder */
  color: var(--primary);
  margin-bottom: 0.5rem;
}
@media (max-width: 767.98px) {
  #hizmetler .corporate-panel h5,
  #uretim-sureci .corporate-panel h5 {
    font-size: 1rem;
  }
}

/* Mobile fix: hide duplicate header logo and tighten header spacing */
@media (max-width: 991.98px) {
  /* Hide the larger header-brand at small screens; navbar-brand (d-lg-none) will show */
  .header-brand { display: none !important; }
  /* Reduce top header padding so header doesn't stack too tall */
  .header-top { padding: 0.38rem 0; }
  /* Ensure navbar toggler has comfortable touch target */
  .navbar-toggler { min-width: 44px; min-height: 44px; padding: 0.5rem; }

  /* Shrink the visible navbar logo on mobile for a tighter header */
  .navbar-brand img {
    height: 36px !important;
    width: auto !important;
    max-height: 36px !important;
    display: block;
  }

  /* Cap any remaining header-logo size if it appears */
  .header-logo {
    max-height: 42px !important;
    width: auto;
  }
 
  /* Mobile topbar spacing: distribute items evenly */
  .header-top-inner {
    justify-content: space-around;
  }
}

/* Mobile: make collapsed navbar act like a full-width dropdown panel */
@media (max-width: 991.98px) {
  .navbar-main { position: relative; }
  .navbar-main .navbar-collapse {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    padding: 0.9rem 1rem 1.25rem;
    box-shadow: 0 12px 32px rgba(2,32,50,0.06);
    border-top: 1px solid var(--border-light);
    z-index: 1050;
    border-radius: 0 0 10px 10px;
  }
  .navbar-main .navbar-collapse.show {
    display: block !important;
  }
  .navbar-main .navbar-nav {
    flex-direction: column;
    gap: 0.35rem;
    padding-left: 0;
    margin: 0;
  }
  .navbar-main .navbar-nav .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: 8px;
    color: var(--text-dark);
  }
  .navbar-main .navbar-nav .nav-link:hover,
  .navbar-main .navbar-nav .nav-link:focus {
    background: rgba(0, 0, 0, 0.03);
    color: var(--primary);
    text-decoration: none;
  }
}
