/* ============================================================
   EMCE CEPHE SİSTEMLERİ — home.css
   SADECE anasayfa: hero slider, hakkımızda, neden biz, hizmetler,
   proje galerisi, özel lightbox, blog slider.
   ============================================================ */

/* ── HERO SLIDER ─────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--clr-dark);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }

/* JS yüklenmese bile ilk slayt görünsün */
.hero-slider:not(.is-ready) .hero-slide:first-child { opacity: 1; z-index: 1; }

.hero-slider:not(.is-ready) .hero-slide:first-child .hero-slide-bg { transform: scale(1); }

.hero-slider:not(.is-ready) .hero-slide:first-child .hero-span,
.hero-slider:not(.is-ready) .hero-slide:first-child .hero-h2,
.hero-slider:not(.is-ready) .hero-slide:first-child .hero-actions { opacity: 1; transform: none; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 7s ease;
}

.hero-slide.active .hero-slide-bg { transform: scale(1); }

/* Layered overlay */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.75) 40%, rgba(10,10,10,.15) 100%),
    linear-gradient(0deg, rgba(10,10,10,.4) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: var(--header-h);
}

.hero-span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-6);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease 0.3s;
}

.hero-span::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--clr-primary);
}

.hero-slide.active .hero-span { opacity: 1; transform: none; }

.hero-h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5.5vw, var(--fs-5xl));
  font-weight: var(--fw-light);
  line-height: 1.05;
  color: var(--clr-white);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-10);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.5s;
}

.hero-slide.active .hero-h2 { opacity: 1; transform: none; }

.hero-h2 em {
  font-style: italic;
  color: var(--clr-primary);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease 0.75s;
}

.hero-slide.active .hero-actions { opacity: 1; transform: none; }

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: var(--sp-12);
  right: var(--sp-12);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero-arrow {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  transition: all var(--transition-base);
  cursor: pointer;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
}

.hero-arrow:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  transform: scale(1.08);
}

.hero-arrow svg { width: 20px; height: 20px; }

.hero-counter {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.5);
  letter-spacing: 0.1em;
  min-width: 52px;
  text-align: center;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--sp-12);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,.4);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(200,169,110,.7), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

/* ── ABOUT + WHY SECTION ─────────────────────────────────────── */
#about {
  background: var(--clr-light);
  padding-block: var(--sp-32);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-img-badge {
  position: absolute;
  bottom: var(--sp-8);
  right: calc(-1 * var(--sp-8));
  background: var(--clr-primary);
  color: var(--clr-dark);
  padding: var(--sp-6) var(--sp-8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.about-img-badge .badge-num {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  line-height: 1;
  display: block;
}

.about-img-badge .badge-text {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--sp-1);
}

.about-content {}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
  padding-top: var(--sp-10);
  border-top: 1px solid rgba(0,0,0,.08);
}

.stat-item .stat-num {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-light);
  color: var(--clr-primary);
  display: block;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-top: var(--sp-1);
}

/* Why Choose Us — flows naturally after About */
#why {
  background: var(--clr-dark);
  padding-block: var(--sp-32);
  position: relative;
  overflow: hidden;
}

#why::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
}

.why-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

.why-header .section-label { justify-content: center; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.why-card {
  padding: var(--sp-10) var(--sp-8);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.03);
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,169,110,.06), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.why-card:hover {
  border-color: rgba(200,169,110,.3);
  transform: translateY(-4px);
}

.why-card:hover::before { opacity: 1; }

.why-icon {
  width: 60px;
  height: 60px;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg { width: 48px; height: 48px; }

.why-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-light);
  color: var(--clr-white);
  margin-bottom: var(--sp-3);
}

.why-card p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

/* ── FULL-WIDTH INFO SECTION ─────────────────────────────────── */
#info-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.info-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.info-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,.9) 0%,
    rgba(10,10,10,.6) 50%,
    rgba(200,169,110,.15) 100%
  );
}

.info-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-block: var(--sp-24);
}

.info-left {}

.info-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

.info-feature {
  padding: var(--sp-6);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.info-feature:hover {
  background: rgba(200,169,110,.12);
  border-color: rgba(200,169,110,.3);
}

.info-feature-num {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  color: var(--clr-primary);
  font-weight: var(--fw-light);
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-2);
}

.info-feature p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.6);
}

/* ── SERVICES GRID ───────────────────────────────────────────── */
#services {
  background: var(--clr-white);
  padding-block: var(--sp-32);
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-16);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--clr-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--clr-white);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.service-card:hover { z-index: 2; }

.service-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}

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

.service-card-body {
  padding: var(--sp-8);
}

.service-card-num {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-light);
  color: rgba(200,169,110,.15);
  line-height: 1;
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-6);
  z-index: 1;
  transition: color var(--transition-base);
  pointer-events: none;
}

.service-card:hover .service-card-num { color: rgba(200,169,110,.25); }

.service-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-light);
  color: var(--clr-dark);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.service-card .btn--outline-dark {
  font-size: var(--fs-xs);
  padding: var(--sp-2) var(--sp-5);
}

/* ── PROJECT GALLERY ─────────────────────────────────────────── */
#gallery {
  background: var(--clr-dark);
  padding-block: var(--sp-32);
}

.gallery-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

.gallery-header .section-label { justify-content: center; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: var(--sp-3);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

.gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-item-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}

.gallery-item:nth-child(1) .gallery-item-img { min-height: 460px; }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10,10,10,.85) 0%,
    rgba(10,10,10,.2) 50%,
    transparent 100%
  );
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: var(--sp-6);
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item:hover .gallery-item-img { transform: scale(1.08); }

.gallery-item-title {
  color: var(--clr-white);
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  text-align: center;
  margin-bottom: var(--sp-3);
}

.gallery-zoom {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  transition: all var(--transition-fast);
  margin-bottom: var(--sp-3);
}

.gallery-zoom svg { width: 18px; height: 18px; }

.gallery-zoom:hover { background: var(--clr-primary); border-color: var(--clr-primary); }

/* ── LIGHTBOX ────────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(8px);
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-size: var(--fs-xl);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.lightbox-close:hover { background: var(--clr-primary); color: var(--clr-dark); }

.lightbox-caption {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
}

/* ── BLOG SLIDER ─────────────────────────────────────────────── */
#blog {
  background: var(--clr-light);
  padding-block: var(--sp-32);
}

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-12);
}

.blog-slider {
  position: relative;
  overflow: hidden;
}

.blog-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.blog-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 70% 30%;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.blog-slide-img {
  position: relative;
  overflow: hidden;
}

.blog-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-slide:hover .blog-slide-img img { transform: scale(1.04); }

.blog-slide-content {
  background: var(--clr-white);
  padding: var(--sp-12) var(--sp-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-shadow: -8px 0 32px rgba(0,0,0,.08);
}

.blog-cat {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-4);
}

.blog-slide-content h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-light);
  color: var(--clr-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.blog-date {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.blog-slide-content p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-8);
}

.blog-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.blog-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark);
  cursor: pointer;
  transition: all var(--transition-base);
}

.blog-arrow:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-dark);
}

.blog-arrow svg { width: 18px; height: 18px; }

.blog-dots {
  display: flex;
  gap: var(--sp-2);
}

.blog-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,.2);
  transition: all var(--transition-base);
  cursor: pointer;
}

.blog-dot.active {
  width: 24px;
  background: var(--clr-primary);
}

/* ── RESPONSIVE — TABLET (≤1024px) ──────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .about-img-main { height: 400px; }
  .about-img-badge { right: var(--sp-4); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .info-content { grid-template-columns: 1fr; }
  .info-bg { background-attachment: scroll; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
  .blog-slide { grid-template-columns: 65% 35%; }
}

/* ── RESPONSIVE — LARGE TABLET / SMALL LAPTOP (≤860px) ──────── */
@media (max-width: 860px) {
  .blog-slide {
      grid-template-columns: 1fr;
      min-height: auto;
    }
  .blog-slide-img { height: 280px; }
  .blog-slide-content { padding: var(--sp-8); }
  .services-header { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .blog-header { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
}

/* ── RESPONSIVE — MOBILE (≤640px) ───────────────────────────── */
@media (max-width: 640px) {
  #hero { min-height: 100svh; }
  .hero-controls { bottom: var(--sp-6); right: var(--sp-5); }
  .hero-scroll { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 2; }
  .info-right { grid-template-columns: 1fr; }
  .about-img-badge { right: 0; position: static; margin-top: var(--sp-4); display: inline-block; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: fit-content; }
}

/* ── RESPONSIVE — XS MOBILE (≤380px) ────────────────────────── */
@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) { grid-column: span 1; }
}
