/* ================================================
   index.css — Homepage Specific Styles
   Separated from styles.css for cleaner architecture
================================================ */

/* Hero Section */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: 80px; background-color: var(--tactical-green); border-bottom: 1px solid rgba(255,255,255,0.2); }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
}
.hero-overlay { position: absolute; inset: 0; background-color:#000;opacity:0.6; z-index: 1; }
.hero-content { position: relative; z-index: 10; width: 100%; display: flex; flex-direction: column; gap: 24px; }
.hero-label { display: inline-block; border: 1px solid rgba(255, 255, 255, 0.2); padding: 8px 16px; color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(4px); 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: 5px; 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 Bento Grid */
.srv-new-section { background-color: var(--tactical-green); position: relative; }
.srv-new-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.srv-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.srv-bento-card {
  position: relative;
  background-color: #061b0e;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: background-color 0.35s ease, border-top-color 0.35s ease;
  border-top: 3px solid transparent;
  min-height: 260px;
}
.srv-bento-card:hover {
  background-color: rgba(229, 72, 38, 0.07);
  border-top-color: var(--muted-gold);
}
.srv-bento-wide { grid-column: span 2; }
.srv-bento-num {
  font-family: var(--font-h-family);
  font-size: 96px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  position: absolute;
  top: 12px;
  right: 20px;
  letter-spacing: -0.05em;
  pointer-events: none;
  transition: color 0.35s ease;
  user-select: none;
}
.srv-bento-card:hover .srv-bento-num { color: rgba(229, 72, 38, 0.09); }
.srv-bento-icon { color: var(--muted-gold); transition: transform 0.35s ease; }
.srv-bento-icon .material-symbols-outlined { font-size: 34px; }
.srv-bento-card:hover .srv-bento-icon { transform: scale(1.15); }
.srv-bento-card h3 {
  font-family: var(--font-h-family);
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.srv-bento-card p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  line-height: 1.7;
}
.srv-bento-arrow {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono-family);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.srv-bento-card:hover .srv-bento-arrow {
  color: var(--muted-gold);
  transform: translateX(6px);
}
[dir="rtl"] .srv-bento-card:hover .srv-bento-arrow { transform: translateX(-6px); }
@media (max-width: 767px) {
  .srv-bento-grid { grid-template-columns: 1fr; }
  .srv-bento-wide { grid-column: span 1; }
  .srv-bento-card { min-height: 200px; padding: 28px 24px; }
  .srv-new-header { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .srv-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .srv-bento-wide { grid-column: span 2; }
}

/* 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); }

/* Platform Section */
.platform-container { display: flex; flex-direction: column; max-width: var(--container-max); margin: 0 auto; min-height: clamp(480px, 70vw, 700px); }
@media (min-width: 1024px) { .platform-container { flex-direction: row; } }
.platform-content { flex: 1; padding: 40px 24px; display: flex; flex-direction: column; justify-content: center; background-color: rgba(27, 48, 34, 0.9); backdrop-filter: blur(4px); border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
@media (min-width: 1024px) { .platform-content { padding: 80px; border-bottom: none; border-right: 1px solid rgba(255, 255, 255, 0.15); } }
.platform-specs { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 32px; }
.spec-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.spec-row:hover span:first-child { color: var(--muted-gold); }
.platform-image-area { flex: 1; position: relative; min-height: 400px; background-color: #121c2c; }
.platform-image { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.8; }
.crosshair-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; pointer-events: none; }
.crosshair-center::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background-color: rgba(255, 255, 255, 0.4); mix-blend-mode: overlay; }
.crosshair-center::after { content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background-color: rgba(255, 255, 255, 0.4); mix-blend-mode: overlay; }
.scan-line { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background-color: rgba(197, 160, 89, 0.5); box-shadow: 0 0 10px rgba(197, 160, 89, 0.8); animation: scan 4s ease-in-out infinite; opacity: 0.5; }
@keyframes scan { 0%, 100% { top: 0%; } 50% { top: 100%; } }

/* 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); }

/* CTA Section */
.cta-bg { z-index: 0; }
.cta-card {
  background: rgba(27, 48, 34, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--muted-gold);
  padding: 64px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) { .cta-card { padding: 80px 64px; } }
.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); }

/* References Section */
.refs-section { background-color: var(--tactical-green); position: relative; overflow: hidden; }
.refs-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.refs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) { .refs-layout { grid-template-columns: 1fr 1.6fr; gap: 80px; } }
.refs-left { display: flex; flex-direction: column; gap: 24px; }
.refs-stats { display: flex; flex-direction: column; gap: 0; margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.refs-stat {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s ease;
}
.refs-stat:hover { border-bottom-color: var(--muted-gold); }
.refs-stat-num {
  font-family: var(--font-h-family);
  font-size: 36px;
  font-weight: 900;
  color: var(--muted-gold);
  letter-spacing: -0.03em;
  min-width: 80px;
  line-height: 1;
}
.refs-stat-lbl {
  font-family: var(--font-mono-family);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.refs-right {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}
@media (max-width: 900px) { .refs-right { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .refs-right { grid-template-columns: 1fr; } }
.refs-platform-card {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
  border-top: 2px solid transparent;
  min-height: 170px;
}
.refs-platform-card:hover {
  background-color: rgba(229,72,38,0.06);
  border-top-color: var(--muted-gold);
}
.refs-platform-id {
  font-family: var(--font-mono-family);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted-gold);
  text-transform: uppercase;
  font-weight: 700;
}
.refs-platform-name {
  font-family: var(--font-h-family);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.refs-platform-type {
  font-family: var(--font-mono-family);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}
.refs-platform-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-family: var(--font-mono-family);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.refs-platform-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50% !important;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
