/* DOSYANIN EN BAŞINA BUNU EKLE */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  /* Mobildeki tıklama kutusunu kaldırır */
}

/* Seçilmesi gerekmeyen etkileşimli elemanlar */
.social-icon-btn,
.link-btn,
.back-btn-custom,
.profile-img,
i,
button {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

:root {
  --primary-blur: blur(16px);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.1);
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: #020617;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GLOBAL PREMIUM TYPOGRAPHY OVERRIDE */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

body {
  margin: 0;
  padding: 20px;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
  z-index: -1;
  pointer-events: none;
  /* Performans: Tıklama olaylarını yoksayarak tarayıcıyı rahatlatır */
}

.container {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--primary-blur);
  -webkit-backdrop-filter: var(--primary-blur);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 25px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* LOGO FIX - Ekranı kaplamasını engeller */
.profile {
  text-align: center;
  margin-bottom: 20px;
}

.profile-img {
  width: 90px !important;
  height: 90px !important;
  border-radius: 24px;
  border: 2px solid var(--glass-border);
  object-fit: cover;
  margin-bottom: 10px;
  pointer-events: none;
}

/* SOSYAL MEDYA GRID */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  font-size: 1.3rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  /* Performans: Sadece değişen özellikleri canlandır */
  will-change: transform;
  /* Performans: Animasyonu GPU hızlandırmasına alır */
}

@media (hover: hover) {
  .social-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }
}

/* BUTONLAR */
.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  will-change: transform;
}

@media (hover: hover) {
  .link-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
  }
}

.link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* İkonların mobilde veya uzun yazılarda basıklaşmasını engeller */
}

.text h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* Tüm sayfalardaki alt yazı (Copyright) stili */
.footer-text {
  text-align: center;
  margin-top: 25px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* style.css dosyanın en altına eklenecek (HTML'lerden sildikten sonra) */
.back-btn-custom {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  backdrop-filter: var(--primary-blur);
  -webkit-backdrop-filter: var(--primary-blur);
  /* Safari Uyumluluğu */
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  will-change: transform;
  z-index: 100;
}

@media (hover: hover) {
  .back-btn-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
  }
}

/* HİZMETLER TABS (SEÇİM PANELİ) */
.services-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 25px;
  position: relative;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

@media (hover: hover) {
  .tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
  }
}

.tab-btn.active {
  color: white;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* GEÇİŞ ANİMASYONLARI */
.service-card {
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.service-card.fade-out {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.service-card.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mobil Duyarlılık (Responsiveness) İyileştirmeleri */
@media (max-width: 768px) {

  /* Geri butonu olan alt sayfalarda kartların butonla çakışmasını engellemek için dinamik üst boşluk */
  .back-btn-custom~.container {
    margin-top: 80px !important;
  }
}

/* Küçük Ekranlı Mobil Cihazlar İçin Yerleşim ve Proposyonel Optimizasyonlar */
@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .glass-card {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .profile-img {
    width: 80px !important;
    height: 80px !important;
  }


  .link-btn {
    padding: 12px;
    border-radius: 15px;
  }
}

/* ==========================================================================
   PREMIUM DOKUNSAL (TACTILE) VE SAYFA GİRİŞ ANİMASYONLARI
   ========================================================================== */

/* 1. Dokunsal Tıklama Efektleri (Haptic Click Scaling) */
.link-btn:active,
.social-icon-btn:active,
.back-btn-custom:active,
.tab-btn:active {
  transform: scale(0.97) !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 2. Süzülerek Sayfa Giriş Animasyonu */
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ana Elemanların Giriş Kuralı */
.glass-card {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.back-btn-custom {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.05s;
}

.header-section {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portfolio-grid {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

/* 3. Kademeli (Staggered) Sıralı Yüklenme Gecikmeleri */
.profile {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.about-content {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

.social-grid {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

.services-tabs {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

/* Link listesi altındaki butonların kademeli süzülerek gelmesi */
.links>*:nth-child(1) {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

.links>*:nth-child(2) {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}

.links>*:nth-child(3) {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.25s;
}

.links>*:nth-child(4) {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}

.links>*:nth-child(5) {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.35s;
}

.links>*:nth-child(6) {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.4s;
}

.links>*:nth-child(7) {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.45s;
}

.links>*:nth-child(8) {
  animation: floatUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.5s;
}

/* 4. İletişim / Randevu Formu Açılış Animasyonu (Slide Down & Fade In) */
#randevu-formu {
  animation: slideDownFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 5. Buton Ok Animasyonu (Arrow Rotation) */
.link-btn .arrow i {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.link-btn.open .arrow i {
  transform: rotate(90deg);
}