:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #0f172a;
  --accent: #22c55e;
  --background: #f8fafc;
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.desktop-banner {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.mobile-logo {
  display: none;
  width: 200px;
  margin: 1rem auto;
}

/* Hızlı İletişim Butonları */
.quick-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-btn:active {
  transform: translateY(0);
}

.call-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.website-btn {
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
}

.contact-btn .icon {
  font-size: 1.5rem;
}

/* Ana İçerik */
.content-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Sidebar */
.sidebar {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.service-nav ul {
  list-style: none;
}

.nav-item {
  display: block;
  padding: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid var(--gray-200);
}

.nav-item:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateX(5px);
}

/* Ana İçerik Alanı */
.main-content {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.info-card, .contact-card {
  margin-bottom: 2rem;
}

h1, h2 {
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.5rem;
}

.contact-info {
  background: var(--gray-100);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.phone-numbers {
  margin-bottom: 1rem;
}

.phone-numbers a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-right: 0.5rem;
}

.phone-numbers a:hover {
  color: var(--primary-dark);
}

.address {
  color: var(--text-light);
}

/* Galeri Bölümü - Modern Tasarım */
.section-title {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.gallery-intro {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.gallery-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-main {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.main-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.02);
}

.image-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-btn {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--primary-dark);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.nav-btn:hover {
  background-color: var(--white);
  transform: scale(1.1);
}

/* Yeni Galeri Thumbs Tasarımı */
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.thumb-item {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
  width: calc(25% - 10px);
  max-width: 120px;
  margin-bottom: 10px;
  flex-grow: 0;
  flex-shrink: 0;
}

.thumb-item:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

.thumb-item.active {
  border-color: var(--primary);
  opacity: 1;
}

.thumb-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* Modal (Büyük Görüntüleme) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--white);
  padding: 2rem 0;
  margin-top: 3rem;
  box-shadow: var(--shadow);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tag {
  background: var(--gray-100);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--primary);
  color: var(--white);
}

/* Responsive Tasarım - Mobil */
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .desktop-banner {
    height: 200px;
  }

  .mobile-logo {
    display: block;
  }

  .main-content {
    padding: 1.5rem;
  }

  .gallery-thumbs {
    gap: 8px;
  }
  
  .thumb-item {
    width: calc(50% - 8px);
    max-width: none;
  }
  
  .thumb-img {
    height: 70px;
  }
  
  .close-modal {
    top: 15px;
    right: 25px;
    font-size: 35px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .contact-info {
    padding: 1rem;
  }

  .tags {
    flex-direction: column;
    align-items: center;
  }
  
  .sidebar {
    position: relative;
    top: auto;
    z-index: 10;
    margin-bottom: 1.5rem;
  }

  /* Baskı için */
  @media print {
    .quick-contact,
    .gallery-section,
    .slider-controls {
      display: none;
    }
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 220px 1fr;
  }

  .container {
    padding: 0 1rem;
  }
}

/* Sayfa Yükleme Performans İyileştirmeleri */
@media print {
  .quick-contact,
  .gallery {
    display: none;
  }
}

/* Erişilebilirlik İyileştirmeleri */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Odaklanma Stilleri */
:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .gallery-modern {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .gallery-main {
    flex: 1;
  }
  
  .gallery-thumbs {
    display: flex;
    flex-direction: column;
    width: 150px;
    align-items: center;
    flex-wrap: nowrap;
  }
  
  .thumb-item {
    width: 100%;
    max-width: 150px;
    margin-bottom: 10px;
  }
}

@media (min-width: 1200px) {
  .slider-track {
    height: 450px;
  }
  
  .gallery-thumbnails {
    width: 180px;
    height: 450px;
  }
  
  .thumbnail {
    height: 100px;
  }
}

/* Scrollbar düzeltmeleri */
.gallery-thumbs::-webkit-scrollbar {
  width: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
  background: var(--gray-300);
}

/* Firefox için scrollbar düzenlemesi */
.gallery-thumbs {
  scrollbar-width: none;
}

@media (max-width: 768px) {
  .gallery-thumbs {
    max-height: 400px;
    overflow-y: auto;
    padding-bottom: 20px;
  }
}

