/* --- LOGO SABITLEME --- */
.site-logo {
  position: absolute;
  top: 30px;
  left: 40px;
  z-index: 9999;
}

.site-logo img {
  height: 100px;
  width: auto;
  display: block;
}

.site-logo-right {
  position: absolute;
  top: 15px;
  right: 10px;
  z-index: 9999;
}

.site-logo-right img {
  height: 100px;
  width: auto;
  display: block;
}

/* --- TEMEL AYARLAR --- */
:root {
  --bg-gradient: linear-gradient(135deg, #4f00bc, #a239a7);
  --bg-white: #ffffff;
  --text-white: #ffffff;
  --text-dark: #333;
  --bar-bg: rgba(255, 255, 255, 0.3);
  --bar-segment-1: #3b008a;
  --bar-segment-2: #ffffff;
  --bar-segment-3: #d8459c;
  --accent: #ce6b61;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: rgb(244, 240, 240);
  display: block;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Scrollbar (WebKit) */
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
}

body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #b55b54;
}

/* Scrollbar (Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(0, 0, 0, 0.08);
}

/* --- ANA KONTEYNER --- */
.page-container {
  display: grid;
  grid-template-columns: 52% 48%;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  position: relative;
  padding: 0 20px 0 0;
  margin: 0 auto;
}

/* --- SOL İÇERİK PANELİ --- */
.content-panel {
  background: #ce6b61;
  color: var(--text-white);
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 100vh;
}

.vertical-text {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.6;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.left-text {
  left: 20px;
  bottom: 40px;
}

.right-text {
  left: 40px;
  top: 40px;
}

.right-text::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.content-header .subtitle {
  color: #ffffff;
  text-shadow: 0 0 5px #ffffff, 0 0 10px #222121, 0 0 20px #ffffff, 0 0 30px #222121, 0 0 40px #ffffff, 0 0 55px #222121, 0 0 75px #ffffff;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 110px;
  border-bottom: 3px solid #ffffff;
  padding-bottom: 10px;
  display: inline-block;
}

.content-header .title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 40px;
}

/* --- GRAFİK BÖLÜMÜ --- */
.chart-container {
  width: 100%;
}

.chart-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.chart-label {
  flex: 0 0 120px;
  font-size: 0.8rem;
  opacity: 0.8;
  padding-right: 15px;
  text-align: right;
}

.chart-bar-wrapper {
  flex-grow: 1;
  background-color: var(--bar-bg);
  border-radius: 5px;
  overflow: hidden;
  animation: growBar 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  transform-origin: left;
  transform: scaleX(0);
}

.chart-bar {
  display: flex;
  height: 20px;
}

/* Animasyon Gecikmeleri */
.chart-row:nth-child(1) .chart-bar-wrapper {
  animation-delay: 0.2s;
}

.chart-row:nth-child(2) .chart-bar-wrapper {
  animation-delay: 0.3s;
}

.chart-row:nth-child(3) .chart-bar-wrapper {
  animation-delay: 0.4s;
}

.chart-row:nth-child(4) .chart-bar-wrapper {
  animation-delay: 0.5s;
}

.segment-1 {
  background-color: var(--bar-segment-1);
}

.segment-2 {
  background-color: var(--bar-segment-2);
}

.segment-3 {
  background-color: var(--bar-segment-3);
}

.chart-axis {
  display: flex;
  margin-left: 120px;
  margin-top: 10px;
}

.chart-axis span {
  flex: 1;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* --- SAĞ GÖRSEL PANELİ --- */
.image-panel {
  position: absolute;
  right: -175px;
  top: 50%;
  transform: translateY(-50%);
  width: 65%;
  z-index: 10;
}

.image-panel img {
  width: 70%;
  height: auto;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.2));
  transform: scale(1.15);
}

/* --- DİĞER HİZMETLER GEZİNME --- */
.service-switcher {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  display: flex;
  gap: 14px;
  z-index: 9999;
  padding: 0 4px;
  background: transparent;
}

.service-switcher span {
  display: none;
}

.service-switcher a {
  position: relative;
  width: 160px;
  height: 72px;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px 12px;
  color: #000000;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: .2px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.service-switcher a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.05));
  pointer-events: none;
  /* yazının tıklanmasını engellemez */
  border-radius: 4px;
  /* istersen köşeleri yuvarla */
}

.service-switcher a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  filter: saturate(1.08);
}

.service-switcher a:active {
  transform: translateY(-2px);
}

/* Aktif bağlantı: parlak kenarlık ve hafif zoom */
.service-switcher a[href="grafik-tasarim.html"] {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -2px;
}

/* Kart görsel önizlemeleri: */
.service-switcher a[href="sosyal-medya-yonetimi.html"] {
  background-image: url("../CreativeImage/SosyalMedyaYonetimi.png");
}

.service-switcher a[href="grafik-tasarim.html"] {
  background-image: url("../CreativeImage/GrafikTasarim.png");
}

.service-switcher a[href="drone-cekimi.html"] {
  background-image: url("../CreativeImage/DroneCekimi.png");
}

.service-switcher a[href="web-sitesi.html"] {
  background-image: url("../CreativeImage/WebSite.png");
}

.service-switcher a[href="kurumsal-kimlik.html"] {
  background-image: url("../CreativeImage/KurumsalKimlik.png");
}

/* --- ANİMASYON --- */
@keyframes growBar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* TELEFON (max-width: 700px) */
@media (max-width: 700px) {
  body {
    overflow-y: auto;
    /* Dikey kaydırmaya izin ver */
  }

  /* Logoları mobil için yeniden boyutlandır ve konumlandır */
  .site-logo {
    top: 16px;
    left: 14px;
  }

  .site-logo img {
    height: 64px;
  }

  .site-logo-right {
    top: 12px;
    right: 8px;
  }

  .site-logo-right img {
    height: 60px;
  }

  /* Ana konteyneri dikey akış için ayarla */
  .page-container {
    display: flex;
    /* Grid yerine Flex kullan */
    flex-direction: column;
    /* Elemanları alt alta sırala */
    padding: 100px 20px 100px 20px;
    /* Üst ve alt boşlukları ayarla */
    width: 100%;
    min-height: auto;
  }

  /* Görseli üstte konumlandır */
  .image-panel {
    order: -1;
    /* Görseli metin kutusunun üzerine al */
    position: static;
    /* Absolute pozisyonu sıfırla */
    transform: none;
    /* Transform'u sıfırla */
    width: 70%;
    /* Genişliği ayarla */
    max-width: 280px;
    /* Maksimum genişliği belirle */
    margin: 0 auto 30px auto;
    /* Üst, alt boşluk ve yatayda ortala */
  }

  .image-panel img {
    width: 100%;
    transform: none;
    /* Transform'u sıfırla */
  }

  /* İçerik panelini düzenle */
  .content-panel {
    position: static;
    /* Absolute pozisyonu sıfırla */
    transform: none;
    /* Transform'u sıfırla */
    width: 100%;
    /* Tam genişlik */
    padding: 24px;
    /* İç boşluk */
    border-radius: 18px;
    min-height: auto;
  }

  /* Yazı boyutlarını mobil için ayarla */
  .content-header .subtitle {
    font-size: 2.2rem;
    margin-bottom: 24px;
  }

  .content-header .title {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .service-switcher {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 220px;
    max-width: 98vw;
    box-sizing: border-box;
    border-radius: 16px 16px 16px 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 8px 12px;
    gap: 8px;
    z-index: 1001;
    overflow-x: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .service-switcher a {
    min-width: 54px;
    height: 48px;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    border-radius: 10px;
    color: #222;
    text-decoration: none;
    transition: background 0.2s;
  }

  .service-switcher a img {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
  }

  .service-switcher a.active,
  .service-switcher a:hover {
    background: #f2f2f2;
    color: #e25042;
  }

  .service-switcher span {
    display: none;
  }
}

/* TABLET DİKEY (701-1366px, portrait) */
@media (min-width: 701px) and (max-width: 1366px) and (orientation: portrait) {

  body {
    overflow-y: auto;
    /* Dikey kaydırmayı bu ekran boyutu için AÇAR */
  }

  /* ======================================= */

  html {
    overflow-x: hidden;
  }

  /* GÜNCELLENDİ: Tüm sayfanın kaydırılabilmesi için eklendi */
  body,
  html {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .site-logo img {
    height: 80px;
  }

  /* GÜNCELLENDİ: Logo konumu ayarlandı */
  .site-logo-right img {
    height: 80px;
  }

  /* GÜNCELLENDİ: Ana konteyner mobildeki gibi dikey hale getirildi */
  .page-container {
    display: flex;
    flex-direction: column;
    /* Elemanları alt alta dizer */
    align-items: center;
    /* Yatayda ortalar */
    padding: 120px 20px 40px 20px;
    /* Üst/alt boşluklar ayarlandı */
    width: 100%;
    min-height: auto;
    gap: 10px;
    /* Resim ve içerik arasına boşluk koyar */
    box-sizing: border-box;
  }

  /* GÜNCELLENDİ: Görsel panel mobildeki gibi üste alındı */
  .image-panel {
    order: -1;
    /* Görseli metinden önce gösterir */
    position: static;
    /* Sabit pozisyonu kaldırır */
    transform: none;
    /* Dönüşümü sıfırlar */
    width: 80%;
    max-width: 500px;
    margin-top: -10px;
    /* Marjinleri sıfırlar, ortalamayı page-container yapar */
  }

  .image-panel img {
    width: 100%;
    height: auto;
  }

  /* GÜNCELLENDİ: İçerik paneli mobildeki gibi ayarlandı */
  .content-panel {
    position: static;
    /* Sabit pozisyonu kaldırır */
    transform: none;
    /* Dönüşümü ve pozisyonu sıfırlar */
    left: auto;
    width: 90%;
    max-width: 600px;
    height: auto;
    /* Yüksekliği içeriğe göre ayarlar */
    max-height: none;
    /* Yükseklik limitini kaldırır */
    overflow-y: visible;
    /* İç kaydırma çubuğunu kaldırır */
    margin-top: -130px;
    padding: -60px 30px;
    border-radius: 20px;
  }

  .content-header .subtitle {
    font-size: 3.5rem;
    margin-bottom: 100px;
  }

  .content-header .title {
    font-size: 1.5em;
    line-height: 1.6;
    margin-bottom: 300px;
  }

  /* Alt menü için bir değişiklik gerekmiyor, mevcut haliyle kalabilir */
  .service-switcher {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 220px;
    max-width: 98vw;
    box-sizing: border-box;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 16px;
    gap: 10px;
    z-index: 1001;
    overflow-x: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* TABLET YATAY (701-1366px, landscape) */
@media (min-width: 701px) and (max-width: 1366px) and (orientation: landscape) {
  html {
    overflow-x: hidden;
  }

  .site-logo img {
    height: 90px;
  }

  .site-logo-right img {
    height: 200px;
  }

  .page-container {
    display: grid;
    grid-template-columns: 52% 48%;
    width: 100vw;
    max-width: 1200px;
    min-height: 100vh;
    position: relative;
    padding: 0 20px 0 0;
    margin: 0 auto;
    box-sizing: border-box;
    align-items: center;
  }

  .image-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .image-panel img {
    width: 90%;
    height: auto;
    display: block;
  }

  .content-panel {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin: 0;
    padding: 40px 40px;
    border-radius: 22px;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    height: auto;
    min-height: 400px;
    overflow-y: auto;
    position: relative;
    left: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .service-switcher {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 220px;
    max-width: 98vw;
    box-sizing: border-box;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 16px;
    gap: 10px;
    z-index: 1001;
    overflow-x: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}