/* Cebeci Finans — Custom Styles */

/* ── Smooth scroll ─────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Material Symbols ──────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Mobile Nav Overlay ────────────────────────────── */
#mobile-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobile-menu.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── Hamburger icon animation ──────────────────────── */
#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A3A6B;
  transition: all 0.3s ease;
  transform-origin: center;
}
#hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Testimonial slider ────────────────────────────── */
.testimonial-slide {
  transition: opacity 0.5s ease;
}

/* ── Sector icon cards ─────────────────────────────── */
.sector-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.sector-card:hover {
  transform: translateY(-3px);
}

/* ── Insight card image zoom ───────────────────────── */
.insight-img-wrap { overflow: hidden; }
.insight-img-wrap img {
  transition: transform 0.5s ease;
}
.insight-card:hover .insight-img-wrap img {
  transform: scale(1.05);
}

/* ── Stats counter ─────────────────────────────────── */
.stat-item { border-left: 2px solid #edeeef; }

/* ── Form focus ────────────────────────────────────── */
.cf-input:focus {
  outline: none;
  border-color: #C8A74B;
}


/* ── Article body prose — base styles (analiz.php overrides these inline) ── */
.prose-article { color: #43474f; font-size: 1.0625rem; line-height: 1.85; }

/* ── Back to top ───────────────────────────────────── */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#back-to-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* ── Scroll reveal ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 767px) {
  .reveal { transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Parallax GPU katmanı ──────────────────────────── */
.hero-img,
.hero-parallax {
  will-change: transform;
  backface-visibility: hidden;
}
/* Parallax image üstte boşluk bırakmaması için buffer */
.hero-parallax {
  top: -20% !important;
  bottom: auto !important;
  height: 120% !important;
}

/* ── Hero tagline cycling ──────────────────────────── */
#hero-tagline {
  display: inline-block;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

/* ── Hero entrance animation ──────────────────────── */
@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0);  }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.hero-img {
  animation: hero-zoom 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-fade {
  opacity: 0;
  animation: hero-fade-up 0.65s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero-img  { animation: none; }
  .hero-fade { opacity: 1; animation: none; }
}

/* ── Hero CTA shine efekti ─────────────────────────── */
@keyframes cf-shine {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%)  skewX(-20deg); }
}

.cf-border-btn {
  display: inline-flex;
}

.cf-border-beam { display: none; }

.cf-border-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  background: #C47A1E;
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
}

.cf-border-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-20deg);
  animation: cf-shine 3.5s ease-in-out infinite;
}

.cf-border-inner:hover {
  background: #a8651a;
}
