/* ==========================================================================
   MARVIE Nordmalerbetrieb GmbH - Premium Dark Theme
   ========================================================================== */

:root {
  --bg-primary: #0e1825;
  --bg-deep: #0a1018;
  --bg-card: rgba(255, 255, 255, 0.02);
  --color-gold: #fbb042;
  --color-gold-hover: #e2ae5f;
  --color-gold-light: rgba(205, 160, 82, 0.15);
  --color-gold-border: rgba(205, 160, 82, 0.3);
  --text-white: #ffffff;
  --text-gray: #aebad1;
  --text-light-gray: #b0bfd0;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --font-heading: "Outfit", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --transition: all 0.3s ease;
  --transition-nav: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
}

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

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

.text-gold {
  color: var(--color-gold) !important;
}

.bg-deep {
  background-color: var(--bg-deep);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(205, 160, 82, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(14, 24, 37, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-nav);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(10, 16, 24, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

/* Logo Styling */
.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 120px;
  display: block;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

/* Lucide Icon styling overrides */
.service-icon i,
.why-icon i,
.ci-icon i {
  stroke: var(--color-gold);
  stroke-width: 1.5px;
}

.service-icon i {
  width: 44px;
  height: 44px;
}

.why-icon i {
  width: 48px;
  height: 48px;
}

.ci-icon i {
  width: 20px;
  height: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-white);
  padding: 0.5rem 0.9rem;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--color-gold);
}

.nav-cta {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 6px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  /* Paint-like background color slide from left to right */
  background: linear-gradient(to right, transparent 50%, var(--color-gold) 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  transition:
    background-position 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.4s ease,
    border-color 0.4s ease;
}

.nav-cta:hover {
  background-position: right bottom;
  color: var(--bg-primary);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  z-index: 1001;
  outline: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  margin: 5px auto;
  transition: var(--transition-nav);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--color-gold);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--color-gold);
}

@media (max-width: 991px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100vh;
    background: rgba(10, 16, 24, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 7rem 2rem 2rem;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border-subtle);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translate3d(0, 0, 0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  /* Cascade Animation Effect for Mobile Menu Links */
  .nav-menu .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translate3d(20px, 0, 0);
    transition:
      opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.open .nav-links li {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .nav-menu.open .nav-links li:nth-child(1) {
    transition-delay: 0.08s;
  }

  .nav-menu.open .nav-links li:nth-child(2) {
    transition-delay: 0.14s;
  }

  .nav-menu.open .nav-links li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-menu.open .nav-links li:nth-child(4) {
    transition-delay: 0.26s;
  }

  .nav-menu.open .nav-links li:nth-child(5) {
    transition-delay: 0.32s;
  }

  .nav-links a {
    padding: 0.8rem 0;
    font-size: 0.85rem;
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
    display: block;
  }

  .nav-links a.active::after {
    left: 0;
    right: auto;
    width: 24px;
    height: 2px;
    bottom: -1px;
  }

  .nav-cta {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translate3d(20px, 0, 0);
    transition:
      opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.open .nav-cta {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.38s;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 12, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0e1825 0%, #162234 50%, #1a2a3f 100%);
  background-image: url("banner-img.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.impressum .hero {
  position: relative;
}
.impressum .hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(16 26 39 / 62%);
    z-index: 1;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  flex: 1.2;
  min-width: 0;
  text-align: left;
}

/* Desktop layout: alignment aligned to the left of the content card */
.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.hero-content__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-logo-mark {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 1rem;
}

.hero-logo-m svg {
  height: 110px;
  /* Default height on desktop viewports */
  width: auto;
  display: block;
}

.hero-brand-name {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-brand-sub {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-brand-sub::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-gold);
}

.hero-brand-sub::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-gold);
}
.impressum .hero-tagline {
  font-size: 2.5rem;
}


.hero-tagline {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.hero-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--color-gold);
  border-radius: 6px;
  cursor: pointer;
  /* Paint-like background color slide from left to right */
  background: linear-gradient(to right,
      var(--color-gold) 50%,
      var(--color-gold-hover) 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  transition:
    background-position 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.4s ease,
    border-color 0.4s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-gold:hover {
  background-position: right bottom;
  border-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(205, 160, 82, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--text-white);
  border-radius: 6px;
  cursor: pointer;
  /* Paint-like background color slide from left to right */
  background: linear-gradient(to right, transparent 50%, var(--color-gold) 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  transition:
    background-position 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.4s ease,
    border-color 0.4s ease,
    transform 0.3s ease;
}

.btn-outline:hover {
  background-position: right bottom;
  border-color: var(--color-gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* Image container */
.hero-image {
  flex: 0 0 45%;
  max-width: 45%;
  position: relative;
  border-radius: 4px;
  overflow: visible;
  /* Allows textured dry-brush overlay details to bleed slightly past edges */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero-image img {
  width: 100%;
  height: 75vh;
  max-height: 600px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  display: block;
}

/* Position and scale of gold dry-brush diagonal stroke directly over the card */
.hero-brush {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 60%;
  /* Proportional scale relative to parent container size */
  pointer-events: none;
  z-index: 5;
  /* Sits above main painting image layer */
  line-height: 0;
}

.brush-stroke {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content__logo {
    align-items: center;
    text-align: center;
  }

  .hero-logo-m svg {
    height: 70px;
  }

  .hero-logo-mark {
    justify-content: center;
  }

  .hero-brand-name {
    font-size: 3rem;
  }

  .hero-brand-sub::after,
  .hero-brand-sub::before {
    display: none;
  }

  .hero-tagline {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .hero-desc {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    /* Prevent bleed bugs inside stacked viewports */
  }

  .hero-image img {
    height: 45vh;
    max-height: 400px;
  }

  .hero-brush {
    bottom: -1px;
    right: -1px;
    width: 45%;
    /* Slices diagonally on mobile stack frames */
  }
}

@media (max-width: 575px) {
  .hero-brand-name {
    font-size: 2.2rem;
    letter-spacing: 0.1em;
  }

  .hero-logo-m svg {
    height: 80px;
  }

  .hero-tagline {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .impressum .hero-tagline {
  font-size: 2rem;
  }

  .hero-brand-sub {
    margin-bottom: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-gold,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ========== SECTION COMMON ========== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  display: inline-block;
  position: relative;
  padding: 0 2rem;
  background: var(--bg-primary);
  z-index: 1;
}

.section.bg-deep .section-header h2 {
  background: var(--bg-deep);
}

.section-header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--color-gold-border);
  transform: translateY(-50%);
  z-index: 0;
}

/* ========== LEISTUNGEN (SERVICES) ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.service-card {
  border: 1px solid var(--color-gold-border);
  padding: 3rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border-radius: 4px;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(205, 160, 82, 0.04);
}

.service-icon {
  margin-bottom: 1.5rem;
  color: var(--color-gold);
  height: 64px;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.hero-logo-m svg {
  height: 55px;
}

.service-icon svg {
  width: 52px;
  height: 52px;
  stroke: var(--color-gold);
  stroke-width: 1.2;
}

.service-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  color: var(--text-white);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.78rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* Detailed Accordion Styling */
.detailed-services-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.detailed-services-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s ease,
    margin 0.4s ease;
}

.detailed-services-drawer.open {
  max-height: 1500px;
  opacity: 1;
  margin-top: 3rem;
}

.detailed-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.detailed-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  border-radius: 4px;
}

.detailed-box h4 {
  font-size: 0.9rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detailed-box p {
  font-size: 0.78rem;
  color: var(--text-gray);
  margin-bottom: 1.2rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  font-size: 0.78rem;
  color: var(--text-light-gray);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

#toggle-detailed-services span {
  display: inline-block;
  transition: transform 0.3s ease;
}

#toggle-detailed-services.active span {
  transform: rotate(90deg);
}

@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detailed-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detailed-services-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero-brand-sub::after,
  .hero-brand-sub::before {
    display: none;
  }
}

/* ========== WARUM MARVIE ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.why-item {
  text-align: center;
  transition: var(--transition);
}

.why-item:hover {
  transform: translateY(-4px);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

.why-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-gold);
  stroke-width: 1.3;
}

.why-item h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  color: var(--text-white);
}

.why-item p {
  font-size: 0.78rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========== PROJEKTE & BEFORE-AFTER SLIDER ========== */
.projects-section {
  padding-bottom: 4rem;
}

.projects-slider-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -10px;
  padding-bottom: 1rem;
}

.projects-slider {
  display: flex;
  gap: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-slide {
  flex: 0 0 33.3333%;
  min-width: 33.3333%;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Before/After Draggable Slider */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 4px;
}

/* Absolute position with z-indexes to allow standard scaling of both overlays */
.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-image-after {
  display: block;
  z-index: 1;
}

/* "Before" image rests strictly over the "After" image, using clip-path to render */
.ba-image-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  /* Initial state: clipped exactly at 50% from the right */
  will-change: clip-path;
}

/* Slider Handle and Divider Bar */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--text-white);
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
  will-change: left;
}

.ba-handle::after {
  content: "‹›";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(10, 16, 24, 0.9);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition:
    background 0.2s,
    color 0.2s;
}

.ba-slider:hover .ba-handle::after {
  background: var(--color-gold);
  color: var(--bg-primary);
}

/* Labels on Sliders */
.ba-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  z-index: 11;
  pointer-events: none;
}

.ba-label.vorher {
  left: 12px;
  background: rgba(10, 16, 24, 0.85);
  color: var(--text-white);
}

.ba-label.nachher {
  right: 12px;
  background: var(--color-gold);
  color: var(--bg-primary);
}

.slide-details {
  padding: 1.5rem 0.5rem;
  text-align: left;
}

.slide-details h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-white);
  letter-spacing: 0.05em;
}

.slide-details p {
  font-size: 0.78rem;
  color: var(--text-gray);
  margin: 0;
}

/* Slider Controls */
.slider-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 16, 24, 0.8);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition);
  font-size: 1.5rem;
}

.slider-nav:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--bg-deep);
}

.slider-prev {
  left: 1rem;
}

.slider-next {
  right: 1rem;
}

/* Show Slider Nav when slider has elements to scroll on mobile/tablet */
@media (max-width: 991px) {
  .slider-nav {
    display: flex;
  }

  .project-slide {
    flex: 0 0 50%;
    min-width: 50%;
  }
}

@media (max-width: 575px) {
  .project-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

/* Additional Projects Drawer */
.extra-projects {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.5s ease,
    margin 0.5s ease;
}

.extra-projects.visible {
  max-height: 2000px;
  opacity: 1;
  margin-top: 3rem;
}

.extra-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.extra-project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
}

.extra-project-card .card-info {
  padding: 1.2rem;
  text-align: left;
}

.extra-project-card .card-info h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  color: var(--text-white);
}

.extra-project-card .card-info p {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin: 0;
}

.projects-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.8rem 2rem;
  border: 1px solid var(--color-gold-border);
  border-radius: 6px;
  cursor: pointer;
  /* Paint-like background color slide from left to right */
  background: linear-gradient(to right, transparent 50%, var(--color-gold) 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  transition:
    background-position 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.4s ease,
    border-color 0.4s ease,
    transform 0.3s ease;
}

.btn-outline-gold:hover {
  background-position: right bottom;
  border-color: var(--color-gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .extra-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .extra-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== KONTAKT ========== */
.contact-section {
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr;
  gap: 3rem;
}

.contact-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.8rem;
  color: var(--color-gold);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.contact-item .ci-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-item .ci-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-gold);
  stroke-width: 1.5;
}

.contact-item a,
.contact-item span {
  font-size: 0.85rem;
  color: var(--text-light-gray);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--color-gold);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
  transition: var(--transition);
  outline: none;
  border-radius: 2px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #4a5a70;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.02);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 2rem;
  border: 1px solid var(--color-gold);
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  /* Paint-like background color slide from left to right */
  background: linear-gradient(to right,
      var(--color-gold) 50%,
      var(--color-gold-hover) 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  transition:
    background-position 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.4s ease,
    border-color 0.4s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-submit:hover {
  background-position: right bottom;
  border-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(205, 160, 82, 0.3);
}

.map-wrapper {
  width: 100%;
  height: 180px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(110%);
}

.qr-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qr-code {
  width: 128px;
  height: 128px;
  background: white;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

.qr-text {
  font-size: 0.75rem;
  color: var(--text-gray);
  line-height: 1.4;
}

.form-success {
    display: none; /* İlk başta gizli olacak */
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    font-size: 0.9rem;
    text-align: center;
}

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

  .contact-grid>div:last-child {
    grid-column: 1 / -1;
  }
}

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

/* ========== FOOTER ========== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 120px;
}

.footer-links {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-gray);
  padding: 0.4rem 0.8rem;
  transition: var(--transition);
}

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

.footer-copy {
  font-size: 0.68rem;
  color: var(--text-gray);
}

/* Footer Decorative Brush Stroke (Bottom Right Placement) */
.footer-brush-stroke {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 250px;
  /* Scale horizontal dimension */
  height: 160px;
  /* Scale vertical dimension */
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  /* Set opacity for background contrast */
}

.footer-brush-stroke svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.stagger-children.visible>*:nth-child(1) {
  transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(3) {
  transition-delay: 0.15s;
}

.stagger-children.visible>*:nth-child(4) {
  transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(5) {
  transition-delay: 0.25s;
}

.stagger-children.visible>* {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brushStroke {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

.hero-brush svg path {
  animation: brushStroke 1.2s ease-out 0.5s both;
}

/* ========== DECORATIVE BRUSH EFFECTS ========== */

/* Hero Banner Brush Stroke Overlay */
.hero-image {
  position: relative;
  /* Establish relative stacking context for the overlay */
  flex: 0 0 45%;
  max-width: 45%;
  border-radius: 4px;
  overflow: visible;
  /* Allow the brush stroke to overlap edges if needed */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero-brush {
  position: absolute;
  bottom: -4px;
  /* Slightly overlap the bottom boundary to avoid subpixel lines */
  right: -4px;
  /* Align exactly with the card's right boundary */
  width: 60%;
  /* Proportional scale relative to parent container size */
  pointer-events: none;
  z-index: 5;
  /* Ensure brush rests above the picture container */
  line-height: 0;
}

.brush-stroke {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer Brush Stroke Overlay */
.footer {
  position: relative;
  /* Establish context for absolute position placement */
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  overflow: hidden;
  /* Prevent horizontal container stretch from elements extending past boundary */
}

.footer-brush-stroke {
  position: absolute;
  bottom: -2px;
  /* Anchor closely with baseline */
  right: -26px;
  width: 320px;
  /* Scale width matching design reference */
  max-width: 45vw;
  /* Maintain viewport scaling safety */
  height: auto;
  pointer-events: none;
  z-index: 1;
  /* Keep behind text links layer */
  opacity: 0.85;
  /* Maintain visual visibility */
  line-height: 0;
}

.footer-brush-stroke .brush-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure footer text sits reliably over the background elements */
.footer-inner {
  position: relative;
  z-index: 2;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .hero-image {
    overflow: hidden;
    /* Stack safely on narrow responsive viewports */
  }

  .hero-brush {
    bottom: -1px;
    right: -1px;
    width: 45%;
    /* Slices diagonally on mobile stack frames */
  }

  .footer-brush-stroke {
    width: 200px;
    /* Limit desktop sizing scale on narrow profiles */
  }
}