/* =========================================
   BYALL AUTOMATION — PROJECTS PAGE STYLES
   projects.css
   ========================================= */
 
/* ── HERO ── */
 
.projects-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 24px;
  background: #020b1a;
}
 
/* Arka plan resmi */
.projects-hero-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/images/byallproject.png") center/cover no-repeat;
  opacity: 1;
  z-index: 0;
}
 
/* Koyu overlay — resmi görünür kılmak için hafifletildi */
.projects-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(2,11,26,.72)  0%,
    rgba(10,22,40,.65) 45%,
    rgba(13,27,62,.58) 75%,
    rgba(13,27,62,.52) 100%
  );
}
 
/* Grid çizgileri */
.projects-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(26,159,224,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,159,224,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
 
/* Üstten inen çizgi */
.projects-hero-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, #1a9fe0);
  z-index: 2;
}
 
/* İçerik */
.projects-hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 180px 0 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
 
/* Eyebrow rozeti */
.projects-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
  border: 1px solid rgba(26,159,224,.35);
  padding: 7px 17px;
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(2,11,26,.50);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
 
.projects-hero-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}
 
/* Başlık */
.projects-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.03;
  color: var(--gold);
  margin: 0 0 12px;
  letter-spacing: -1.5px;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-shadow: 0 4px 28px rgba(245,197,24,.35);
}
 
.projects-hero h1 em {
  font-style: normal;
  color: #ffffff;
}
 
/* Alt başlık */
.projects-hero-sub {
  font-size: 18px;
  line-height: 1.72;
  color: rgba(255,255,255,.80);
  margin: 22px auto 38px;
  max-width: 680px;
  font-weight: 300;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
 
/* ── HERO STATS ── */
 
.projects-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 20px 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
 
.projects-hero-stat {
  padding: 8px 32px;
  border-right: 1px solid rgba(255,255,255,.12);
}
 
.projects-hero-stat:last-child {
  border-right: none;
}
 
.projects-hero-stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  letter-spacing: -0.5px;
}
 
.projects-hero-stat-num em {
  font-style: normal;
  color: var(--blue);
}
 
.projects-hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.50);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}
 
/* ── SCROLL GÖSTERGESİ ── */
 
.projects-hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.30);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
}
 
.projects-hero-scroll-dot {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(26,159,224,.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
 
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}
 
/* ── PROJE GRID BÖLÜMÜ ── */
 
.projects-wrap {
  background: #f8fafc;
  padding: 90px 24px;
  color: #0f172a;
}
 
.projects-wrap .section-title {
  text-align: center;
  margin-bottom: 56px;
}
 
.projects-wrap .section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
  color: #0f172a;
}
 
.projects-wrap .section-title p {
  color: #64748b;
  font-size: 17px;
  font-weight: 300;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.72;
}
 
.projects-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
 
/* ── PROJE KUTUSU ── */
 
.project-box {
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(26,159,224,.16);
  box-shadow: 0 4px 20px rgba(15,23,42,.06);
  transition: transform var(--t-mid) var(--ease-spring),
              box-shadow var(--t-mid) var(--ease-out);
  position: relative;
}
 
.project-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 1;
}
 
.project-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px rgba(15,23,42,.14), 0 0 0 1px rgba(26,159,224,.2);
}
 
.project-box:hover::before {
  opacity: 1;
}
 
.project-logo {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  padding: 26px;
  overflow: hidden;
}
 
.project-logo img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
  transition: transform .5s var(--ease-out);
}
 
.project-box:hover .project-logo img {
  transform: scale(1.06);
}
 
.project-content {
  padding: 28px;
}
 
.project-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
 
.project-content h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #0f172a;
  letter-spacing: -0.3px;
}
 
.project-content p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.72;
}
 
/* ── TESTİMONYALLAR ── */
 
.ba-testi-section {
  margin-top: 90px;
  overflow: hidden;
}
 
.ba-testi-header {
  text-align: center;
  margin-bottom: 44px;
}
 
.ba-testi-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.8px;
}
 
.ba-testi-header p {
  color: #64748b;
  font-size: 17px;
  font-weight: 300;
}
 
.ba-testi-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
 
.ba-testi-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: testiScroll 68s linear infinite;
}
 
.ba-testi-track:hover {
  animation-play-state: paused;
}
 
@keyframes testiScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
 
.ba-testi-card {
  width: 380px;
  background: #ffffff;
  border: 1px solid rgba(26,159,224,.16);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 8px 28px rgba(15,23,42,.07);
  flex-shrink: 0;
  transition: transform .3s var(--ease-spring),
              box-shadow .3s var(--ease-out);
}
 
.ba-testi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(15,23,42,.13);
}
 
.ba-stars {
  color: var(--gold);
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
 
.ba-quote {
  color: #334155;
  font-size: 14px;
  line-height: 1.76;
  margin-bottom: 22px;
  font-weight: 300;
}
 
.ba-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
 
.ba-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
 
.ba-author-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 3px;
}
 
.ba-author-role {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}
 
/* ── PROJELER CTA ── */
 
.projects-cta {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(26,159,224,.18), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(245,197,24,.12), transparent 45%),
    linear-gradient(145deg, #020b1a 0%, #0d1b3e 55%, #0a2a50 100%);
  text-align: center;
  padding: 96px 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
 
.projects-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--gold);
  margin-bottom: 16px;
}
 
.projects-cta p {
  color: rgba(255,255,255,.72);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.72;
  font-weight: 300;
}
 
.projects-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #ffffff;
  padding: 17px 36px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform var(--t-mid) var(--ease-spring),
              box-shadow var(--t-mid) var(--ease-out),
              background var(--t-mid);
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}
 
.projects-cta a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), #d4a010);
  opacity: 0;
  transition: opacity var(--t-mid);
}
 
.projects-cta a span,
.projects-cta a i {
  position: relative;
  z-index: 1;
}
 
.projects-cta a:hover {
  color: #020b1a;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
 
.projects-cta a:hover::before {
  opacity: 1;
}
 
/* ── TABLET ── */
 
@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
 
/* ── MOBİL ── */
 
@media (max-width: 768px) {
 
  .projects-hero {
    min-height: 78vh;
  }
 
  .projects-hero-content {
    padding: 150px 0 90px;
  }
 
  .projects-hero-eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
    padding: 7px 13px;
    margin-bottom: 20px;
  }
 
  .projects-hero h1 {
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.6px;
  }
 
  .projects-hero-sub {
    font-size: 15px;
    line-height: 1.6;
    margin: 18px auto 28px;
  }
 
  .projects-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 14px 6px;
  }
 
  .projects-hero-stat {
    padding: 10px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
 
  .projects-hero-stat:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,.08);
  }
 
  .projects-hero-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }
 
  .projects-hero-stat-num {
    font-size: 24px;
  }
 
  .projects-hero-stat-label {
    font-size: 9.5px;
  }
 
  .projects-wrap {
    padding: 64px 18px;
  }
 
  .projects-wrap .section-title {
    margin-bottom: 36px;
  }
 
  .projects-wrap .section-title h2 {
    font-size: 28px;
  }
 
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
 
  .project-box {
    border-radius: 22px;
  }
 
  .project-logo {
    height: 170px;
    padding: 22px;
  }
 
  .project-logo img {
    max-height: 130px;
  }
 
  .project-content {
    padding: 24px 22px;
  }
 
  .project-content h3 {
    font-size: 19px;
  }
 
  /* Testimonials — mobilde durağan liste */
  .ba-testi-section {
    margin-top: 60px;
  }
 
  .ba-testi-wrap {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
 
  .ba-testi-track {
    animation: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
 
  .ba-testi-card {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 24px;
    border-radius: 20px;
  }
 
  .ba-quote {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    font-size: 14px;
    line-height: 1.7;
  }
 
  .projects-cta {
    padding: 70px 18px;
  }
 
  .projects-cta h2 {
    font-size: 28px;
  }
 
  .projects-cta p {
    font-size: 15px;
  }
 
  .projects-cta a {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}
 
@media (max-width: 480px) {
 
  .projects-hero-content {
    padding: 140px 0 80px;
  }
 
  .projects-hero h1 {
    font-size: 28px;
  }
 
  .projects-hero-sub {
    font-size: 14px;
  }
}