/* ═══════════════════════════════════════════
   KodLab Premium — Canlı Site Efektleri
═══════════════════════════════════════════ */

/* ── SMOOTH SCROLL ── */
html { scroll-behavior: smooth; }

/* ── HERO SECTION — navbar altı boşluk sıfırla ── */
/* Navbar fixed olduğu için body'ye padding-top eklenir,
   hero slider bu padding'i kendi içinde yönetir */
body { padding-top: 0 !important; }
.hero-swiper-section { margin-top: 0 !important; }

/* ── GLOBAL BACKGROUND — gradient + noise ── */
body {
  background-color: #020617;
  background-image:
    /* Üstten mor radial glow */
    radial-gradient(circle at 50% -5%, rgba(79,70,229,.22) 0%, transparent 55%),
    /* Sol alt yeşil glow */
    radial-gradient(ellipse 70% 50% at -10% 100%, rgba(16,185,129,.14) 0%, transparent 60%),
    /* Sağ orta cyan glow */
    radial-gradient(ellipse 50% 40% at 110% 50%, rgba(6,182,212,.1) 0%, transparent 60%),
    /* Ana radial derinlik */
    radial-gradient(circle at top, #0f172a 0%, #020617 100%),
    /* Noise texture */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  background-attachment: fixed;
  min-height: 100vh;
}

/* ── NAVBAR BLUR ── */
.navbar {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 0 !important;
  background: rgba(10,15,25,.6) !important;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease, backdrop-filter .4s ease;
}
/* Scroll'da blur yoğunlaşır */
.navbar.scrolled {
  background: rgba(10,15,25,.88) !important;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(79,70,229,.15);
  box-shadow: 0 4px 32px rgba(0,0,0,.45), 0 1px 0 rgba(79,70,229,.1);
  padding: 8px 0 !important;
}

/* ── NAVBAR LOGO — KESİN ÇÖZÜM ── */
.navbar .navbar-brand,
nav .navbar-brand {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin-right: 24px !important;
  min-width: 140px !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}
.navbar .navbar-brand img,
nav .navbar-brand img {
  height: 60px !important;
  max-height: 60px !important;
  width: auto !important;
  max-width: 220px !important;
  min-width: 80px !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  position: static !important;
}
.navbar .navbar-brand:hover img,
nav .navbar-brand:hover img {
  filter: drop-shadow(0 0 8px rgba(79,70,229,.6)) !important;
  transform: scale(1.05) !important;
}
/* Navbar padding */
.navbar {
  padding: 15px 0 !important;
}

/* ── FOOTER LOGO — KESİN ÇÖZÜM ── */
footer .footer-about a img,
footer a img[alt="KodLab"],
footer img[alt="KodLab"] {
  height: 50px !important;
  width: auto !important;
  max-width: 200px !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  mix-blend-mode: normal !important;
  margin-bottom: 15px !important;
}
.navbar-nav .nav-link {
  position: relative;
  transition: color .3s ease !important;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, #4F46E5, #10B981);
  border-radius: 2px;
  transition: left .3s ease, right .3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  left: 0; right: 0;
}

/* ── NAVBAR BRAND LOGO ── */
.navbar-brand img {
  transition: transform .3s ease, filter .3s ease;
}
.navbar-brand:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(79,70,229,.5));
}

/* ── SCROLL PROGRESS BAR ── */
#kl-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #4F46E5, #10B981, #06B6D4);
  z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 0 10px rgba(79,70,229,.6);
}

/* ── CURSOR GLOW (desktop only) ── */
#kl-cursor {
  position: fixed;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(79,70,229,.35);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .08s ease, width .2s ease, height .2s ease, background .2s ease;
  mix-blend-mode: screen;
}
#kl-cursor.hover {
  width: 40px; height: 40px;
  background: rgba(16,185,129,.3);
}
@media (max-width: 991px) { #kl-cursor { display: none; } }

/* ── SECTION DIVIDER — subtle gradient line ── */
.kl-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,.3), rgba(16,185,129,.3), transparent);
  margin: 0;
  border: none;
}

/* ── LINK HOVER — tüm text linkleri ── */
a { transition: color .25s ease, opacity .25s ease; }

/* ── FOOTER LOGO ── */
footer .footer-about a img,
footer .footer-about img,
footer img[alt="KodLab"] {
  height: 50px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;
  filter: brightness(1.3) !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-bottom: 15px;
}

/* Global img reset — tema bozmasın */
img {
  max-width: 100%;
  height: auto;
}

/* ── FOOTER LOGO HOVER ── */
footer a img { transition: transform .3s ease; }
footer a:hover img { transform: scale(1.04); }

/* ── SOCIAL ICON HOVER ── */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  transition: all .3s ease;
  text-decoration: none;
}
.social-icons a:hover {
  background: linear-gradient(135deg, #4F46E5, #10B981);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(79,70,229,.4);
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #4F46E5, #10B981);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: all .35s ease;
  box-shadow: 0 6px 20px rgba(79,70,229,.4);
  z-index: 900;
}
.back-to-top.show {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(79,70,229,.6);
  color: #fff;
}

/* ── RESPONSIVE FIXES ── */
@media (max-width: 991px) {
  .kl-wwd .wwd-grid { grid-template-columns: repeat(2,1fr); }
  .kl-counter .row { gap: 16px; }
  .hs-title { font-size: 2.2rem; }
  .hs-stats { gap: 18px; }
}
@media (max-width: 767px) {
  .kl-wwd { padding: 70px 0; }
  .kl-projects { padding: 70px 0; }
  .kl-cta { padding: 70px 0; }
  .kl-counter { padding: 60px 0; }
  .hs-title { font-size: 1.9rem; }
  .hs-sub { font-size: .92rem; }
  .hs-actions { flex-direction: column; align-items: flex-start; }
  .hs-btn-p, .hs-btn-wa { width: 100%; justify-content: center; }
  .cta-box { padding: 50px 24px; }
  .cta-title { font-size: 1.8rem; }
  .wwd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .sec-title { font-size: 1.6rem; }
  .counter-num { font-size: 2.4rem; }
  .pf-bar { gap: 8px; }
  .pf-btn { padding: 7px 16px; font-size: .78rem; }
}

/* ── SELECTION COLOR ── */
::selection { background: rgba(79,70,229,.35); color: #fff; }

/* ═══════════════════════════════════════════
   PREMIUM BUTONLAR
═══════════════════════════════════════════ */

/* Temel gradient buton — tüm primary CTA'lar */
.btn-gradient,
.btn-p, .btn-kl-p,
.hs-btn-p, .sl-btn-p,
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(45deg, #4F46E5, #10B981, #06B6D4);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 0 20px rgba(79,70,229,.35), 0 4px 15px rgba(0,0,0,.3);
  transition: transform .3s ease, box-shadow .3s ease, background-position .5s ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer efekti */
.btn-gradient::after,
.btn-p::after, .btn-kl-p::after,
.hs-btn-p::after, .sl-btn-p::after,
.cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}

.btn-gradient:hover::after,
.btn-p:hover::after, .btn-kl-p:hover::after,
.hs-btn-p:hover::after, .sl-btn-p:hover::after,
.cta-btn:hover::after {
  left: 150%;
}

.btn-gradient:hover,
.btn-p:hover, .btn-kl-p:hover,
.hs-btn-p:hover, .sl-btn-p:hover,
.cta-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 0 30px rgba(79,70,229,.55), 0 8px 25px rgba(0,0,0,.35);
  background-position: 100% 50%;
  color: #fff !important;
}

/* WhatsApp butonu — ayrı renk */
.hs-btn-wa, .sl-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  color: #fff !important;
  background: #25D366;
  box-shadow: 0 0 20px rgba(37,211,102,.3), 0 4px 15px rgba(0,0,0,.25);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.hs-btn-wa:hover, .sl-btn-wa:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 0 30px rgba(37,211,102,.5), 0 8px 25px rgba(0,0,0,.3);
  color: #fff !important;
}

/* Outline buton */
.btn-o, .btn-kl-o, .sl-btn-o {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: all .3s ease;
}
.btn-o:hover, .btn-kl-o:hover, .sl-btn-o:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
  transform: scale(1.04) translateY(-2px);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0B0F19; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#4F46E5,#10B981); border-radius: 3px; }
