/* ================================================
   index.css — Homepage Specific Styles
   Separated from styles.css for cleaner architecture
================================================ */

/* Hero Section — katmanlar styles.css .hero-backdrop icinde */
.hero-section .hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-content { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.hero-label { display: inline-block; border: 1px solid rgba(255, 255, 255, 0.2); padding: 8px 16px; color: rgba(255, 255, 255, 0.8); background-color: rgba(0, 0, 0, 0.25); align-self: flex-start; }
.hero-desc { font-size: 18px; color: rgba(255, 255, 255, 0.7); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.line-horizontal-bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background-color: rgba(255, 255, 255, 0.2); z-index: 20; }
.line-vertical-left { position: absolute; left: 40px; top: 0; width: 1px; height: 100%; background-color: rgba(255, 255, 255, 0.1); z-index: 20; display: none; }
.line-vertical-right { position: absolute; right: 40px; top: 0; width: 1px; height: 100%; background-color: rgba(255, 255, 255, 0.1); z-index: 20; display: none; }
@media (min-width: 768px) { .line-vertical-left, .line-vertical-right { display: block; } }

/* Stats Section */
.blueprint-grid { border: 1px solid rgba(27, 48, 34, 0.15); }
.stats-grid { display: grid; grid-template-columns: 1fr; border-left: none; border-right: none; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-item { position: relative; padding: 64px 0; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid rgba(27, 48, 34, 0.15); }
@media (min-width: 768px) { .stat-item { padding: 64px 40px; border-bottom: none; border-right: 1px solid rgba(27, 48, 34, 0.15); } .stat-item:last-child { border-right: none; } }
.stat-number { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.grid-crosshair { position: absolute; top: 50%; right: -6px; width: 11px; height: 11px; display: none; }
.grid-crosshair::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background-color: rgba(27, 48, 34, 0.3); }
.grid-crosshair::after { content: ''; position: absolute; top: 0; left: 5px; width: 1px; height: 100%; background-color: rgba(27, 48, 34, 0.3); }
@media (min-width: 768px) { .grid-crosshair { display: block; } }

/* About Section */
.about-container { display: flex; flex-direction: column; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .about-container { flex-direction: row; } }
.about-content { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.section-label { gap: 16px; }
.label-line { width: 32px; height: 1px; background-color: var(--muted-gold); }
.about-text { font-size: 18px; color: rgba(27, 48, 34, 0.7); }
.about-quote { margin-top: 16px; border-left: 2px solid var(--muted-gold); padding-left: 24px; font-style: italic; font-weight: 600; color: var(--tactical-green); }
.about-image-wrapper { flex: 1; width: 100%; position: relative; aspect-ratio: 16/9; background-color: var(--tactical-green); overflow: hidden; }
.about-image { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.8; transition: transform 1s ease; }
.about-image-wrapper:hover .about-image { transform: scale(1.05); }
.image-overlay-blueprint { position: absolute; inset: 0; border: 12px solid rgba(248, 249, 250, 0.1); mix-blend-mode: overlay; }
.image-label { position: absolute; bottom: 16px; right: 16px; font-size: 10px; color: rgba(255, 255, 255, 0.5); background-color: rgba(0, 0, 0, 0.4); padding: 4px 8px; backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.1); }

/* Services Section */
.srv-section {
  background-color: var(--tactical-green);
}

.srv-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}

.srv-section-mobile-cta { display: none; }

.srv-calm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.srv-calm-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.srv-calm-card:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(197, 160, 89, 0.35);
}

.srv-calm-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-gold);
}

.srv-calm-icon .material-symbols-outlined { font-size: 28px; }

.srv-calm-title {
  font-family: var(--font-h-family);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.srv-calm-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 640px) {
  .srv-calm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .srv-calm-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .srv-calm-title { font-size: 16px; }
}

@media (max-width: 767px) {
  .srv-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .srv-section-mobile-cta { display: block; }
}

/* Projects Section */
.section-center-header { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } .offset-card { margin-top: -32px; } }
.project-card { position: relative; min-height: 340px; height: clamp(340px, 45vw, 500px); background-color: var(--tactical-green); overflow: hidden; cursor: pointer; }
.project-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.7; transition: transform 0.7s ease, opacity 0.5s ease; }
.project-card:hover .project-bg { transform: scale(1.05); opacity: 0.4; }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--tactical-green), transparent); }
.project-content { position: absolute; bottom: 0; left: 0; padding: 32px; width: 100%; transform: translateY(0); transition: transform 0.5s ease; }
.project-card:hover .project-content { transform: translateY(-10px); }
.project-tag { display: inline-block; font-size: 11px; padding: 4px 8px; border: 1px solid rgba(197, 160, 89, 0.3); color: var(--muted-gold); margin-bottom: 8px; }
.corner-top-right { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-top: 2px solid rgba(255, 255, 255, 0.2); border-right: 2px solid rgba(255, 255, 255, 0.2); transition: border-color 0.3s ease; }
.corner-bottom-left { position: absolute; bottom: 16px; left: 16px; width: 24px; height: 24px; border-bottom: 2px solid rgba(255, 255, 255, 0.2); border-left: 2px solid rgba(255, 255, 255, 0.2); transition: border-color 0.3s ease; }
.project-card:hover .corner-top-right, .project-card:hover .corner-bottom-left { border-color: var(--muted-gold); }

/* Training Helicopter Section */
.plat-section {
  background-color: var(--tactical-green);
  position: relative;
}

.plat-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.plat-showcase-media {
  width: 100%;
}

.plat-showcase-frame {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background-color: rgba(0, 0, 0, 0.22);
}

.plat-showcase-frame::before,
.plat-showcase-frame::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.plat-showcase-frame::before {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--muted-gold);
  border-left: 2px solid var(--muted-gold);
}

.plat-showcase-frame::after {
  right: 10px;
  bottom: 10px;
  border-right: 2px solid var(--muted-gold);
  border-bottom: 2px solid var(--muted-gold);
}

.plat-showcase-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9) contrast(1.05);
}

.plat-showcase-tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
}

.plat-showcase-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plat-showcase-title {
  margin-top: 8px;
  line-height: 1.15;
}

.plat-showcase-desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.75;
  max-width: 520px;
}

.plat-showcase-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plat-showcase-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.plat-showcase-point-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--muted-gold);
  margin-top: 1px;
}

.plat-showcase-btn {
  align-self: flex-start;
  margin-top: 32px;
  text-decoration: none;
}

[dir="rtl"] .plat-showcase-points li {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .plat-showcase-tag {
  left: auto;
  right: 24px;
}

@media (min-width: 1024px) {
  .plat-showcase {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  .plat-showcase-image {
    aspect-ratio: 4 / 3;
    min-height: 380px;
  }
}

/* Gallery Section */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { aspect-ratio: 1/1; background-size: cover; background-position: center; border: 1px solid rgba(27, 48, 34, 0.1); transition: all 0.5s ease; }
.gallery-item.grayscale { filter: grayscale(0%); }
.gallery-item.grayscale:hover { filter: grayscale(100%); }
.group-hover:hover .group-icon-gold { color: var(--muted-gold); }

.hover-transparent:hover { background-color: transparent !important; color: var(--muted-gold) !important; }

/* News Section */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (min-width: 1200px) { .news-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.news-item { cursor: pointer; }
.news-title { transition: color 0.3s ease; }
.news-item:hover .news-title { color: var(--muted-gold); }

/* Product Categories Section */
.cats-section { background-color: #ffffff; }
.cats-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
@media (max-width: 767px) { .cats-header { flex-direction: column; align-items: flex-start; gap: 16px; } }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background-color: rgba(27,48,34,0.08);
  border: 2px solid rgba(27,48,34,0.08);
}
@media (min-width: 768px)  { .cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .cats-grid { grid-template-columns: repeat(6, 1fr); } }
.cats-card {
  position: relative;
  background-color: #ffffff;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.cats-card:hover { background-color: var(--tactical-green); border-bottom-color: var(--muted-gold); }
.cats-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27,48,34,0.12);
  color: var(--tactical-green);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.cats-card-icon .material-symbols-outlined { font-size: 26px; }
.cats-card:hover .cats-card-icon { border-color: var(--muted-gold); color: var(--muted-gold); background-color: rgba(229,72,38,0.08); }
.cats-card-label {
  font-family: var(--font-mono-family);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted-gold);
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.3s ease;
}
.cats-card-title {
  font-family: var(--font-h-family);
  font-size: 14px;
  font-weight: 700;
  color: var(--tactical-green);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.cats-card:hover .cats-card-title { color: rgba(255,255,255,0.9); }
.cats-card:hover .cats-card-label { color: rgba(229,72,38,0.8); }
.cats-card-arrow {
  margin-top: auto;
  color: rgba(27,48,34,0.2);
  transition: color 0.3s ease, transform 0.3s ease;
}
.cats-card-arrow .material-symbols-outlined { font-size: 18px; }
.cats-card:hover .cats-card-arrow { color: var(--muted-gold); transform: translateX(4px); }
[dir="rtl"] .cats-card:hover .cats-card-arrow { transform: translateX(-4px); }

/* Lightbox for Index Gallery */
.lightbox-modal { position: fixed; inset: 0; background: rgba(9, 20, 31, 0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; backdrop-filter: blur(5px); }
.lightbox-modal.active { opacity: 1; visibility: visible; }
.lightbox-content-wrapper { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transition: opacity 0.3s ease; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; color: white; cursor: pointer; z-index: 10000; transition: background 0.3s ease, transform 0.2s; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--muted-gold); transform: scale(1.1); }
.lightbox-close { top: 30px; right: 40px; font-size: 28px; }
.lightbox-prev { left: 40px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 40px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-caption { color: #fff; margin-top: 20px; font-family: var(--font-h-family); font-size: 18px; font-weight: 600; letter-spacing: 0.1em; text-align: center; }
@media (max-width: 768px) {
    .lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 24px; }
    .lightbox-prev { left: 10px; width: 40px; height: 40px; }
    .lightbox-next { right: 10px; width: 40px; height: 40px; }
    .lightbox-img { max-height: 70vh; }
    .lightbox-caption { font-size: 15px; }
}