/*
Theme Name: Dijitallab
Theme URI: https://dijitallab.io
Author: Dijitallab
Author URI: https://dijitallab.io
Description: Dijitallab — dijital pazarlama ve yapay zeka hizmetleri için modern, GSAP scroll animasyonlu WordPress teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dijitallab
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --dark: #0e0f11;
  --text: #17181b;
  --muted: #6b6f76;
  --line: #e6e4dd;
  --accent: #7c4dff;
  --accent-ink: #ffffff;
  --accent-deep: #6d28d9;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(16, 18, 22, 0.05);
  --shadow-md: 0 18px 50px rgba(16, 18, 22, 0.10);
  --shadow-lg: 0 30px 80px rgba(16, 18, 22, 0.16);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

section { position: relative; }

.sec-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-align: center;
  margin-bottom: 14px;
}

.sec-h {
  font-size: clamp(20px, 4vw, 44px);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

/* ==========================================================================
   Site header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 245, 241, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo span { color: var(--accent-deep); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.nav-menu a:hover { color: var(--accent-deep); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s var(--ease), background 0.2s;
}

.nav-cta:hover { transform: translateY(-2px); background: #000; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) 24px clamp(50px, 7vw, 100px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-left h1 {
  font-size: clamp(28px, 5.2vw, 64px);
  margin-bottom: 22px;
}

.hero-left h1 em {
  font-style: normal;
  position: relative;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0 0.12em;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  color: #fff;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  box-shadow: var(--shadow-md);
}

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

.btn-hero-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transition: transform 0.25s var(--ease);
}

.btn-hero:hover .btn-hero-icon { transform: translateX(4px) rotate(-8deg); }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.hero-avatars { display: flex; }

.hero-avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  object-fit: cover;
  margin-left: -12px;
  box-shadow: var(--shadow-sm);
}

.hero-avatars img:first-child { margin-left: 0; }

.hero-proof-text { font-size: 14px; color: var(--muted); }
.hero-proof-text strong { color: var(--text); }

/* Hero visual */
.hero-right {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.hero-circle,
.hero-circle2 {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero-circle {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
  opacity: 0.55;
  filter: blur(6px);
  top: 6%;
  right: 4%;
}

.hero-circle2 {
  width: 220px;
  height: 220px;
  border: 2px dashed var(--line);
  bottom: 4%;
  left: 2%;
  animation: spin 26s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-images-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  z-index: 1;
}

.stacked-img {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--surface);
}

.stacked-img img { width: 100%; height: 100%; object-fit: cover; }

.img-back {
  width: 46%;
  aspect-ratio: 3/4;
  top: 2%;
  right: 4%;
  transform: rotate(5deg);
  z-index: 1;
  opacity: 0.96;
}

.img-middle {
  width: 44%;
  aspect-ratio: 3/4;
  bottom: 2%;
  left: 2%;
  transform: rotate(-6deg);
  z-index: 2;
}

.img-front {
  width: 52%;
  aspect-ratio: 4/5;
  top: 26%;
  left: 24%;
  z-index: 3;
  transform: rotate(-1deg);
}

.hero-badge {
  position: absolute;
  top: 8%;
  left: 6%;
  z-index: 4;
  background: var(--dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Brands marquee
   ========================================================================== */
.brands-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brands-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brands-sep { width: 1px; height: 26px; background: var(--line); flex: 0 0 auto; }

.brands-track {
  flex: 1 1 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brands-inner {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.brands-track:hover .brands-inner { animation-play-state: paused; }

.brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.brand:hover { color: var(--text); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) 24px;
}

.intro-inner { max-width: 860px; margin: 0 auto; }

.intro-inner > h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 22px;
}

.intro-inner > p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 18px;
}

.intro-inner > p strong { color: var(--text); }

.intro-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 40px 0 28px;
  perspective: 1200px;
}

.intro-point {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  transform-style: preserve-3d;
  transition: transform 0.2s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

/* Not: 3D eğim (tilt) transform'u JS ile uygulanır (assets/js/main.js). */
.intro-point:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.intro-point h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.intro-point p { font-size: 14px; color: var(--muted); }

.updated {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ==========================================================================
   Trust / stats
   ========================================================================== */
.trust {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 6vw, 80px) 24px;
}

.trust-h { font-size: clamp(28px, 4vw, 44px); }

.stat-num { font-variant-numeric: tabular-nums; }

.btn-discover {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn-discover:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(124, 77, 255, 0.42); }

.btn-disc-icon { transition: transform 0.25s var(--ease); }
.btn-discover:hover .btn-disc-icon { transform: translateX(4px); }

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 90px) 24px;
}

.services .sec-h { margin-bottom: 48px; }

.svcs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  perspective: 1200px;
}

.svc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.2s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

/* Not: 3D eğim (tilt) transform'u JS ile uygulanır (assets/js/main.js). */
.svc:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.svc-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.svc:hover .svc-img { transform: scale(1.06); }

.svc-body { padding: 24px; display: flex; flex-direction: column; height: 100%; }

.svc-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  font-size: 22px;
  margin-bottom: 16px;
}

.svc-name { font-size: 21px; margin-bottom: 10px; }

.svc-desc { font-size: 15px; color: var(--muted); margin-bottom: 20px; flex: 1; }

.svc-cta {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-deep);
  transition: transform 0.2s var(--ease);
}

.svc:hover .svc-cta { transform: translateX(5px); }

/* ==========================================================================
   Events (dark)
   ========================================================================== */
.events {
  background: var(--dark);
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 24px;
  margin: clamp(30px, 5vw, 60px) 0;
}

.events .sec-h { margin-bottom: 48px; }

.events-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.event-card {
  background: #16181c;
  border: 1px solid #26282e;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.event-card:hover { transform: translateY(-6px); border-color: var(--accent); }

.event-img-wrap { aspect-ratio: 4/3; overflow: hidden; }

.event-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.event-card:hover .event-img-wrap img { transform: scale(1.07); }

.event-card h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 16px 18px 20px;
  line-height: 1.3;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testis {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 90px) 24px;
}

.testis .sec-h { margin-bottom: 48px; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}

.testi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.testi-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

.testi-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  flex: 0 0 auto;
}

.testi-name { font-weight: 700; font-size: 16px; }
.testi-role { font-size: 13px; color: var(--muted); }
.testi-stars { margin-left: auto; color: #f5a623; font-size: 15px; letter-spacing: 1px; }

.testi-q { font-size: 17px; color: var(--text); line-height: 1.55; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 90px) 24px;
}

.faq .sec-h { margin-bottom: 40px; }

.faq-inner { max-width: 780px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 400;
  color: var(--accent-deep);
  transition: transform 0.3s var(--ease);
  flex: 0 0 auto;
  line-height: 1;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-a {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  max-width: var(--maxw);
  margin: 0 auto clamp(40px, 6vw, 80px);
  padding: clamp(50px, 7vw, 90px) 32px;
  text-align: center;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  opacity: 0.28;
  top: -180px;
  right: -120px;
  pointer-events: none;
}

.cta-h {
  font-size: clamp(28px, 4.4vw, 48px);
  max-width: 760px;
  margin: 0 auto 30px;
  position: relative;
}

.cta-h em { font-style: normal; color: var(--accent); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 17px 34px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(124, 77, 255, 0.5); }

/* ==========================================================================
   Site footer
   ========================================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-logo { font-size: 24px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 320px; }

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-deep); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ==========================================================================
   Scroll animations (GSAP-driven; graceful no-JS fallback)
   ========================================================================== */
/* Başlangıç durumu yalnızca opacity ile gizlenir; başlangıç offset'ini GSAP
   (gsap.set) uygular ve animasyon bitince temizler. Böylece açılan transform,
   kart hover / 3D eğim transform'u ile çakışmaz. */
.js .fade-up,
.js .fade-left,
.js .fade-right,
.js .fade-zoom { opacity: 0; will-change: transform, opacity; }

.is-inview { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .fade-up,
  .js .fade-left,
  .js .fade-right,
  .js .fade-zoom { opacity: 1 !important; transform: none !important; }
  .brands-inner,
  .hero-circle2 { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { min-height: 400px; order: -1; }
  .intro-points { grid-template-columns: repeat(2, 1fr); }
  .svcs { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .nav-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px;
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .nav-cta { display: inline-flex; margin-top: 8px; }
  .svcs { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 28px !important; }
  .brands-bar { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .intro-points { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stat-num { font-size: 40px !important; }
}
