/* ============ Temel Değişkenler ============ */
:root {
  /* Logo paleti */
  --brand-light: #fffaee;
  --brand-green: #aab978;
  --brand-green-deep: #93a560;

  --bg: #0b0d10;
  --bg-alt: #14171c;
  --text: #f0f2f5;
  --text-muted: #a0a6b0;
  --accent: var(--brand-light);
  --accent-2: #efe7cc;
  --on-accent: #3c4428;
  --border: #262b33;
  --card-bg: #161a21;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  --bg: var(--brand-light);
  --bg-alt: #f4efdd;
  --text: #2a2b26;
  --text-muted: #5c5f52;
  --accent: var(--brand-green);
  --accent-2: var(--brand-green-deep);
  --on-accent: #ffffff;
  --border: #e4e2d2;
  --card-bg: #ffffff;
  --shadow: 0 10px 30px rgba(60, 70, 40, 0.1);
}

/* Logolar: tema secimine gore goster/gizle */
.logo-dark { display: none; }
[data-theme="light"] .logo-dark { display: inline-block; }
[data-theme="light"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: inline-block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); transition: background 0.3s; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ============ Navbar ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.brand .logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }

.nav-list {
  display: flex;
  gap: 6px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: color-mix(in srgb, var(--border) 60%, transparent); }
.nav-link.active { color: var(--accent); }

.navbar-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s;
}
.theme-toggle:hover { background: var(--border); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Slider / Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-color: #000;
}
.slide-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.65);
  transform: scale(1.1);
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
}
.slide.active img {
  animation: kenburns 7s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.slider-overlay h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.slider-overlay p {
  margin-top: 10px;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  max-width: 760px;
  padding: 0 24px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.15rem, 5.2vw, 3.55rem);
  line-height: 1.5;
  color: var(--brand-light);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.slider-btn:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-50%) scale(1.06); }
.slider-btn.prev { left: 18px; }
.slider-btn.next { right: 18px; }

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s, transform 0.3s;
}
.slider-dots button.active { background: var(--accent); transform: scale(1.25); }

/* ============ Salonumuz ============ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.feature:hover { transform: translateY(-6px); }
.feature[data-gallery] { cursor: pointer; }
.feature[data-gallery]:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 1.5rem;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* ============ Eğitmenler ============ */
.subsection-title {
  font-size: 1.2rem;
  margin: 40px 0 20px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.team-card:hover { transform: translateY(-6px); }
.team-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }

.team-card img.trainer-photo {
  cursor: pointer;
  transition: filter 0.25s, transform 0.25s;
}
.team-card img.trainer-photo:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}
.team-card img.trainer-photo:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.team-info { padding: 18px; position: relative; }
.team-info h4 { margin-bottom: 4px; }
.team-info p { color: var(--text-muted); font-size: 0.92rem; }

.badge {
  position: absolute;
  top: -14px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ============ Hakkımızda ============ */
.about p {
  max-width: 720px;
  margin: 0 auto 16px;
  color: var(--text-muted);
}
.about ul {
  max-width: 720px;
  margin: 0 auto 26px;
  list-style: none;
  display: grid;
  gap: 10px;
}
.about li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
}
.about li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ============ İletişim ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: stretch;
}

.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 14px; }
.contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; }
.contact-list p { color: var(--text-muted); }
.contact-list a:hover { color: var(--accent); }

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 16px;
  filter: saturate(0.85);
}

/* ============ Eğitmen Popup (Modal) ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 560px;
  width: 100%;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow);
  animation: modalPop 0.3s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-photo {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid color-mix(in srgb, var(--accent) 60%, transparent);
}

.modal-content { min-width: 0; }
.modal-content h3 {
  font-size: 1.4rem;
  margin-bottom: 2px;
  padding-right: 24px;
}
.modal-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.modal-desc { color: var(--text-muted); font-size: 0.95rem; }

.modal-badge {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
}
.modal-badge[hidden] { display: none; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--border) 70%, transparent);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.modal-close:hover { background: var(--accent); color: var(--on-accent); transform: rotate(90deg); }
.modal-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ============ Salon Galeri Popup ============ */
.gallery-modal {
  position: relative;
  width: min(57vw, 967px);
  min-width: 518px;
  padding: 37px;
  border-radius: 35px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow);
  animation: modalPop 0.3s ease;
  text-align: center;
}
.gallery-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  padding-right: 30px;
}
.gallery-stage {
  position: relative;
  width: 100%;
  height: 65.6vh;
  min-height: 380px;
  max-height: 899px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.gallery-nav:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-50%) scale(1.06); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s, transform 0.3s;
}
.gallery-dots button.active { background: var(--accent); transform: scale(1.25); }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-alt);
  transition: background 0.3s;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { text-align: center; }
.footer-brand .logo-light { display: block; margin: 0 auto 10px; width: 44px; height: 44px; object-fit: contain; }
.footer-brand .logo-dark { display: none; }
[data-theme="light"] .footer-brand .logo-dark { display: block; margin: 0 auto 10px; width: 44px; height: 44px; object-fit: contain; }
[data-theme="light"] .footer-brand .logo-light { display: none; }
[data-theme="dark"] .footer-brand .logo-dark { display: none; }
[data-theme="dark"] .footer-brand .logo-light { display: block; margin: 0 auto 10px; width: 44px; height: 44px; object-fit: contain; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--accent); }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .menu-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 420px; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav-link { padding: 14px 5%; border-radius: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .slider-btn { width: 38px; height: 38px; font-size: 1.3rem; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
  .brand-text { display: none; }

  .modal { flex-direction: column; text-align: center; padding: 26px 20px; gap: 16px; }
  .modal-photo { width: 120px; height: 120px; }
  .modal-content h3 { padding-right: 0; }
}
