/* ==========================================================================
   M MODA TEKSTİL — Minimalist HTML5 + ReactBits Architecture (TR / EN)
   Typography: Thin Poppins (200 / 300 / 400) Everywhere
   ========================================================================== */

:root {
  --bg-primary: #0a0912;
  --bg-secondary: #121020;
  --bg-card: rgba(24, 20, 42, 0.65);
  --bg-card-hover: rgba(36, 30, 62, 0.85);
  --bg-glass: rgba(14, 12, 26, 0.82);
  --text-primary: #f6f5fa;
  --text-secondary: #b8b2cc;
  --text-muted: #7e7796;
  --accent-primary: #6d55ab;
  --accent-bright: #a58fff;
  --accent-secondary: #5856d6;
  --border-subtle: rgba(165, 143, 255, 0.14);
  --border-strong: rgba(165, 143, 255, 0.34);
  --sidebar-width: 260px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-glow: 0 18px 44px -14px rgba(109, 85, 171, 0.32);
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg-primary: #f9f8fc;
  --bg-secondary: #f0ecf8;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.88);
  --text-primary: #181428;
  --text-secondary: #4e4668;
  --text-muted: #7a7296;
  --accent-primary: #6d55ab;
  --accent-bright: #5a419e;
  --border-subtle: rgba(109, 85, 171, 0.16);
  --border-strong: rgba(109, 85, 171, 0.38);
  --shadow-glow: 0 16px 38px -12px rgba(109, 85, 171, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-weight: 300;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(109, 85, 171, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(76, 29, 149, 0.22) 0%, transparent 50%),
    linear-gradient(125deg, #06040b 0%, #120924 38%, #070510 72%, #1a0b33 100%);
  background-size: 200% 200%;
  animation: deepVioletShift 16s ease-in-out infinite alternate;
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@keyframes deepVioletShift {
  0% {
    background-position: 0% 20%;
  }
  50% {
    background-position: 100% 80%;
  }
  100% {
    background-position: 30% 100%;
  }
}

/* Monochrome SVG Icon Base */
.mono-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* ==========================================================================
   ReactBits Canvas & Dynamic Deep Purple-Black Aurora Glow
   ========================================================================== */
#silk-threads-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.rb-cursor-blob {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.24) 0%,
    rgba(109, 85, 171, 0.12) 42%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  filter: blur(42px);
}

/* ==========================================================================
   Left Sidebar Masthead (Clean Buttons Only)
   ========================================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.side-masthead {
  width: var(--sidebar-width);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(139, 92, 246, 0.05) 42%,
    rgba(12, 8, 24, 0.24) 100%
  );
  backdrop-filter: blur(16px) saturate(165%);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    12px 0 38px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 22px;
  z-index: 900;
  transition: transform 0.35s var(--transition-spring), background 0.3s ease;
}

[data-theme="light"] .side-masthead {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(240, 234, 255, 0.35) 100%
  );
  border-right: 1px solid rgba(109, 85, 171, 0.2);
}

.brand-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-wrap {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  padding: 8px;
  background: rgba(109, 85, 171, 0.12);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.brand-logo-wrap:hover {
  transform: scale(1.03);
}
.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.sidebar-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.lang-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 300;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.75), rgba(109, 85, 171, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}

.theme-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.theme-btn:hover {
  border-color: var(--accent-bright);
}

/* Sidebar Navigation — Pure Minimal Buttons Only */
.side-nav {
  margin: 24px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-nav-link {
  display: block;
  text-align: center;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.side-nav-link:hover,
.side-nav-link.active {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.68) 0%,
    rgba(109, 85, 171, 0.48) 100%
  );
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 22px rgba(109, 85, 171, 0.38);
}

/* Sidebar Footer Social + Email Only */
.side-mini-widgets {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.soc-ico-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.soc-link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}
.soc-link:hover {
  color: #fff;
  background: var(--accent-primary);
  border-color: var(--accent-bright);
}

.mini-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mini-contact-item:hover {
  color: var(--text-primary);
}

/* Mobile Topbar */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 950;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}
.mobile-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.mobile-menu-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Main Stage & Clean Sections
   ========================================================================== */
.main-stage {
  flex: 1;
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
}

.section-block {
  padding: 72px 5%;
  border-bottom: 1px solid var(--border-subtle);
}

.container-max {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.section-heading {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.section-lead {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 680px;
}

/* ReactBits SplitBlurText */
.rb-split-char {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px);
  animation: rbBlurReveal 0.55s var(--transition-spring) forwards;
}
@keyframes rbBlurReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* ReactBits Spotlight & Tilt Card */
.rb-spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--transition-spring);
  --mouse-x: 50%;
  --mouse-y: 50%;
}
.rb-spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mouse-x) var(--mouse-y), rgba(165, 143, 255, 0.15), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.rb-spotlight-card:hover::before {
  opacity: 1;
}
.rb-spotlight-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.rb-spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   1. ANASAYFA — Clean Full-Bleed Slider
   ========================================================================== */
.hero-section {
  padding: 32px 5% 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-slider-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 540px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.9s ease, transform 7s ease-out;
  opacity: 0;
  transform: scale(1.06);
}
.hero-slide-bg.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10, 9, 18, 0.86) 0%, rgba(18, 16, 32, 0.65) 55%, rgba(88, 86, 214, 0.32) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
}

.hero-fabric-box {
  background: rgba(88, 86, 214, 0.26);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(165, 143, 255, 0.38);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  max-width: 720px;
}

.hero-fabric-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-fabric-pill {
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.slide-controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-dot-btn {
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2dcff;
  font-size: 0.8rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.25s ease;
}
.slide-dot-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-bright);
  color: #fff;
}

/* ==========================================================================
   2. HAKKIMIZDA — Clean Text + Showroom Mosaic
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  margin-top: 24px;
  align-items: center;
}

.about-text-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.about-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mosaic-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}
.mosaic-card.tall {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.mosaic-card:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   3. KUMAŞ - ÜRETİM — Clean Headings Only + Visual Gallery
   ========================================================================== */
.fabric-titles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 12px;
  margin: 24px 0 36px;
}

.fabric-title-pill {
  padding: 16px 18px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.rb-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.masonry-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.masonry-item:hover img {
  transform: scale(1.07);
}

/* ==========================================================================
   4. KUMAŞ TEKNİK BİLGİ — 3 Clean Article Cards
   ========================================================================== */
.tech-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.tech-article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.tech-article-title {
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--text-primary);
}

.tech-article-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.clean-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}
.clean-link-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-bright);
  color: #fff;
}

/* ==========================================================================
   5. MARKALAR - MAĞAZALAR — Clean Store Logo Grid
   ========================================================================== */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.store-logo-frame {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 14px;
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-logo-frame img {
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
}

.store-name {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
}

/* ==========================================================================
   6. İLETİŞİM — Mobile Contacts + Address + Google Map (No Form)
   ========================================================================== */
.contact-grid-clean {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dept-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.dept-person {
  font-size: 0.98rem;
  font-weight: 400;
  display: block;
}
.dept-role {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.dept-phone {
  font-size: 0.92rem;
  color: var(--accent-bright);
  text-decoration: none;
}

.map-frame-wrap {
  margin-top: 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 360px;
}
.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 14, 0.86);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px;
}
.modal-close-btn {
  float: right;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
}

/* Footer */
.site-footer {
  padding: 32px 5%;
  background: var(--bg-secondary);
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 1024px) {
  .about-grid,
  .tech-articles-grid,
  .contact-grid-clean {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .mobile-topbar {
    display: flex;
  }
  .side-masthead {
    transform: translateX(-100%);
  }
  .side-masthead.open {
    transform: translateX(0);
  }
  .main-stage {
    margin-left: 0;
    width: 100%;
    padding-top: 60px;
  }
  .hero-inner {
    padding: 28px 20px;
  }
}

@media (max-width: 768px) {
  .section-block {
    padding: 48px 4%;
  }
  .rb-masonry-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .masonry-item {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }
  .fabric-titles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 18px 0 24px;
  }
  .fabric-title-pill {
    padding: 12px 10px;
    font-size: 0.82rem;
  }
  .stores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .store-logo-frame {
    height: 84px;
    padding: 10px;
  }
}
