/* ═══════════════════════════════════════════════════════════ */
/*  PROJECT DETAILS PAGE STYLES                                  */
/* ═══════════════════════════════════════════════════════════ */

/* ── Hero Section ─────────────────────────────────────────────── */
.project-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.project-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.05);
  animation: heroZoomIn 15s ease-out forwards;
}

@keyframes heroZoomIn {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

.project-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: 1;
}

.project-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
}

.project-hero__status {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  padding: 6px 16px;
  border-radius: 30px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-hero__title {
  font-family: var(--font-secondary);
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 400;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.project-hero__subtitle {
  font-family: var(--font-primary);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  line-height: 1.6;
}

.project-hero__website-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-white) !important;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  margin-top: 24px;
  text-decoration: none;
}

.project-hero__website-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.project-hero__website-btn:hover {
  background: var(--color-white);
  color: var(--color-brand-primary) !important;
  border-color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

.project-hero__website-btn:hover i {
  transform: rotate(15deg) scale(1.1);
}

.project-hero__website-btn:active {
  transform: translateY(-1px);
}

/* ── Main Content Layering ────────────────────────────────────── */
.project-content-wrap {
  position: relative;
  z-index: 10;
  margin-top: -40px;
  padding-bottom: 80px;
}

.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Project Overview (Centered & Flex) ──────────────────────────────── */
.project-overview {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  padding: 45px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
}

@media (max-width: 991px) {
  .project-overview {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .project-overview {
    padding: 25px 20px;
  }
}

/* Stats Layout (2-2-1 Premium Cards) */
.project-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.stat-box {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              border-color 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
}

.stat-box:nth-child(5) {
  grid-column: 2 / span 2;
}

@media (max-width: 768px) {
  .project-stats {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .stat-box, .stat-box:nth-child(5) {
    grid-column: span 1;
  }
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px -8px rgba(20, 61, 141, 0.15), 0 4px 10px -4px rgba(20, 61, 141, 0.08);
  border-color: var(--color-brand-light);
}

.stat-box__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 61, 141, 0.07);
  color: var(--color-brand-primary);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.stat-box:hover .stat-box__icon-wrap {
  background-color: var(--color-brand-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.stat-box__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-box__label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-box__value {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
}

/* Right: Description Text */
.project-desc__title {
  font-family: var(--font-secondary);
  font-size: 2.2rem;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.project-desc__text {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 24px;
}

.project-desc__text:last-child {
  margin-bottom: 0;
}

/* ── Project Features ─────────────────────────────────────────── */
.project-section-title {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  color: var(--color-dark);
  margin-bottom: 40px;
  text-align: center;
}

.project-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

/* Hide entire features block (title + grid) if container has no children */
.project-features:empty {
  display: none;
  margin-bottom: 0;
}

/* Hide the section title that immediately precedes an empty features container */
:has(+ .project-features:empty) {
  display: none;
}

.feature-card {
  background: var(--color-light);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.05);
}

.feature-card__icon {
  font-size: 2.5rem;
  color: var(--color-brand);
  margin-bottom: 16px;
}

.feature-card__title {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* ═══════════════════════════════════════════════════════════════════
   GALLERY — Premium Ornamental Frame
   Layout: [corner | line] ◆ G A L E R İ ◆ [line | corner]
            [left-wing] ← btn ← │  3 slides  │ → btn → [right-wing]
           [corner | line] ────── [⬡] ──── [line | corner]
   ═══════════════════════════════════════════════════════════════════ */

.gallery-ornament-section {
  margin: 0 0 90px;
  user-select: none;
}

/* ─── Top & Bottom Bars ──────────────────────────────────────────── */
.gallery-frame__top,
.gallery-frame__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

/* Double-line rule on left and right */
.gallery-frame__line {
  height: 3px;
  background:
    linear-gradient(to right,
      transparent 0%,
      var(--color-brand) 20%,
      var(--color-brand) 80%,
      transparent 100%);
  opacity: 0.18;
  position: relative;
}
/* Second inner line */
.gallery-frame__line::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0; right: 0;
  height: 1px;
  background: inherit;
  opacity: 0.5;
}

/* ─── Title Badge ─────────────────────────────────────────────────── */
.gallery-frame__title-badge {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  position: relative;
}

/* The diamond ornaments flanking the text */
.gallery-frame__corner-dot {
  width: 8px;
  height: 8px;
  background: var(--color-brand);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.7;
}

.gallery-frame__label {
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-brand);
  letter-spacing: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.75;
}

/* ─── Bottom Ornament ─────────────────────────────────────────────── */
.gallery-frame__bottom {
  margin-top: 0;
}

.gallery-frame__corner-piece {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
}

.gallery-frame__corner-dot--sm {
  width: 5px;
  height: 5px;
  background: var(--color-brand);
  transform: rotate(45deg);
  opacity: 0.45;
  flex-shrink: 0;
}

.gallery-frame__corner-inner {
  width: 28px;
  height: 1px;
  background: var(--color-brand);
  opacity: 0.3;
}

/* ─── Body: left wing | center | right wing ──────────────────────── */
.gallery-frame__body {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  border-left:  1px solid rgba(20, 61, 141, 0.12);
  border-right: 1px solid rgba(20, 61, 141, 0.12);
  min-height: 380px;
  position: relative;
}

/* Top & bottom double border of the body */
.gallery-frame__body::before,
.gallery-frame__body::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(20, 61, 141, 0.12);
}
.gallery-frame__body::before { top: -1px; }
.gallery-frame__body::after  { bottom: -1px; }

/* ─── Side Wing Panels ───────────────────────────────────────────── */
.gallery-frame__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg,
    rgba(20, 61, 141, 0.03) 0%,
    rgba(20, 61, 141, 0.01) 100%
  );
}

/* Subtle cross-hatch texture on the wings */
.gallery-frame__side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,61,141,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,61,141,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

/* ─── Ornament dots + line in the wings ─────────────────────────── */
.gallery-frame__vert-ornament {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.gallery-frame__vdot {
  width: 5px;
  height: 5px;
  background: var(--color-brand);
  transform: rotate(45deg);
  opacity: 0.35;
  display: block;
}

.gallery-frame__vline {
  width: 1px;
  height: 36px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(20, 61, 141, 0.4) 30%,
    rgba(20, 61, 141, 0.4) 70%,
    transparent
  );
  display: block;
}

/* ─── Arrow Buttons ──────────────────────────────────────────────── */
.gallery-nav-btn {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(20, 61, 141, 0.3);
  background: var(--color-white);
  color: var(--color-brand);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow:
    0 2px 8px rgba(20, 61, 141, 0.08),
    inset 0 0 0 0 rgba(20, 61, 141, 0);
}

.gallery-nav-btn:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  transform: scale(1.08);
  box-shadow:
    0 6px 20px rgba(20, 61, 141, 0.22),
    0 2px 8px rgba(20, 61, 141, 0.12);
}

.gallery-nav-btn:active {
  transform: scale(0.96);
}

/* ─── Center Image Track ─────────────────────────────────────────── */
.gallery-frame__center {
  overflow: hidden;
  padding: 20px 12px;
  background: var(--color-white);
  display: flex;
  align-items: center;
}

.gallery-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 12px;
  height: 340px;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.gallery-slider__track:active {
  cursor: grabbing;
}
.gallery-slider__track::-webkit-scrollbar {
  display: none;
}

/* 3 images visible at once */
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  flex: 0 0 calc(33.333% - 8px);
  scroll-snap-align: start;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 8px 30px rgba(20, 61, 141, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

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

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 24, 64, 0.55) 0%,
    rgba(9, 24, 64, 0.1) 60%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-item__overlay i {
  color: rgba(255,255,255,0.9);
  font-size: 2rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay i {
  transform: scale(1);
}

/* ─── Dot Indicators ─────────────────────────────────────────────── */
.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(20, 61, 141, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.gallery-dot.is-active {
  width: 20px;
  border-radius: 3px;
  background: var(--color-brand);
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .gallery-frame__body {
    grid-template-columns: 60px 1fr 60px;
  }
  /* 2 images on tablet */
  .gallery-item {
    flex: 0 0 calc(50% - 6px);
  }
  .gallery-slider__track {
    height: 280px;
  }
}

@media (max-width: 576px) {
  .gallery-frame__body {
    grid-template-columns: 48px 1fr 48px;
    min-height: 260px;
  }
  .gallery-frame__vert-ornament {
    display: none;
  }
  .gallery-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .gallery-frame__label {
    font-size: 0.65rem;
    letter-spacing: 4px;
  }
  /* 1 image on mobile */
  .gallery-item {
    flex: 0 0 calc(100% - 6px);
  }
  .gallery-slider__track {
    height: 220px;
  }
  .gallery-frame__center {
    padding: 12px 6px;
  }
}

