/* ============================================================
   TECHNOLOGY PAGE STYLES
   ============================================================ */

.section-center { text-align: center; }
.section-center .section-tag { justify-content: center; }

/* Hero */
.tech-hero {
  padding-top: var(--nav-h);
  padding-bottom: 0;
  min-height: calc(var(--nav-h) + 380px);
  position: relative;
  overflow: hidden;
  background: #0a1628;
}

.tech-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/techonology.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1px) brightness(0.65);
  transform: scale(1.04);
  z-index: 0;
}

.tech-hero .page-glow-red,
.tech-hero .page-glow-navy { z-index: 1; }

.tech-hero .page-hero-inner {
  padding: 3rem 3rem 3.5rem;
  position: relative;
  z-index: 2;
}

.tech-hero .page-hero-h1,
.tech-hero .page-hero-sub,
.tech-hero .page-hero-badge { color: #fff; }

.tech-hero .page-hero-sub { color: rgba(255,255,255,0.75); }

.tech-hero .page-hero-badge {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.tech-hero .page-hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  justify-content: center; margin-top: 24px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15);
}

.tech-hero .ph-stat-val,
.tech-hero .ph-stat-label { color: #fff; }
.tech-hero .ph-stat-label { color: rgba(255,255,255,0.65); }

/* Tech Layer Stack */
.tech-layers { padding: 24px 0; background: var(--white); }
.tech-layer-stack {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border-light); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.tl-layer {
  display: flex; gap: 2rem; padding: 2.2rem 2.5rem;
  align-items: flex-start; position: relative;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.25s;
}
.tl-layer:last-child { border-bottom: none; }
.tl-layer:hover { background: var(--gray-50); }

.tl-hardware { border-left: 4px solid var(--red); }
.tl-connectivity { border-left: 4px solid var(--navy); }
.tl-ai { border-left: 4px solid var(--teal); }
.tl-cloud { border-left: 4px solid #7B5CFA; }

.tl-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--gray-400); letter-spacing: 0.08em; min-width: 28px; padding-top: 4px;
}
.tl-icon { font-size: 28px; min-width: 40px; padding-top: 2px; }
.tl-body { flex: 1; }
.tl-title {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  color: var(--dark); margin-bottom: 0.5rem;
}
.tl-desc { font-size: 14.5px; color: var(--gray-600); line-height: 1.68; margin-bottom: 1rem; }
.tl-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tl-tag {
  background: var(--gray-100); border: 1px solid var(--border-light);
  color: var(--gray-600); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 100px; font-family: var(--font-mono);
}

/* AI Events */
.tech-ai { padding: 24px 0; background: var(--gray-50); }
.ai-events-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin-top: 24px;
}
.ai-event-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 1.8rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
  width: calc(25% - 12px); min-width: 200px;
}
.ai-event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.aie-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 1rem;
}
.aie-video-wrap {
  width: 100%; aspect-ratio: 16/9; border-radius: 12px;
  overflow: hidden; margin-bottom: 1rem; background: #0B0F19;
  position: relative;
}
.aie-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.aie-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--dark); margin-bottom: 0.5rem;
}
.aie-desc { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin-bottom: 1.2rem; }
.aie-badge {
  display: inline-flex; font-family: var(--font-mono); font-size: 10px;
  font-weight: 700; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.05em;
}
.aie-critical { background: #FEE8EC; color: var(--red); }
.aie-high { background: #FEF3C7; color: #B45309; }
.aie-medium { background: #EEF0FA; color: var(--navy); }

/* Integrations */
.tech-integrations { padding: 24px 0; background: var(--white); }
.int-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.int-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--gray-50); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 2rem 1.5rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.int-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.int-icon { font-size: 32px; margin-bottom: 0.8rem; }
.int-name {
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  color: var(--dark); margin-bottom: 0.4rem;
}
.int-desc { font-size: 13px; color: var(--gray-600); line-height: 1.55; }

/* Security */
.tech-security { padding: 24px 0; background: var(--gray-50); }
.tech-sec-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: center;
}
.sec-badges { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.sec-badge {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 1.4rem 1rem;
  transition: background 0.25s, box-shadow 0.25s; box-shadow: var(--shadow-card);
}
.sec-badge:hover { background: var(--gray-50); box-shadow: var(--shadow-lift); }
.sec-badge-icon { font-size: 24px; margin-bottom: 0.5rem; }
.sec-badge-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--gray-600); letter-spacing: 0.03em; line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
  .ai-event-card { width: calc(50% - 8px); }
  .int-grid { grid-template-columns: 1fr 1fr; }
  .tech-sec-inner { grid-template-columns: 1fr; gap: 3rem; }
  .sec-badges { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ai-event-card { width: 100%; }
  .int-grid { grid-template-columns: 1fr; }
  .tl-layer { flex-direction: column; gap: 1rem; }
}

/* ---- 480px: small phones ---- */
@media (min-width: 320px) and (max-width: 480px) {
  .tech-layers { padding: 24px 0; }
  .tl-layer { padding: 1.4rem 1.2rem; gap: 0.8rem; }
  .tl-title { font-size: 17px; }
  .tl-desc { font-size: 13.5px; }
  .tech-ai { padding: 24px 0; }
  .ai-events-grid { gap: 12px; margin-top: 16px; }
  .ai-event-card { width: 100%; min-width: 0; padding: 1.4rem 1.2rem; }
  .aie-title { font-size: 14px; }
  .aie-desc { font-size: 12.5px; }
  .tech-integrations { padding: 24px 0; }
  .int-card { padding: 1.4rem; }
  .int-grid { grid-template-columns: 1fr; }
  .sec-badges { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tech-sec-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---- 375px: iPhone SE/standard family ---- */
@media (min-width: 375px) and (max-width: 480px) {
  .tl-layer { padding: 1.3rem 1.1rem; }
  .tl-title { font-size: 16.5px; }
  .tl-desc { font-size: 13.5px; }
  .aie-title { font-size: 13.5px; }
  .int-card { padding: 1.3rem; }
}

/* ---- max 375px: iPhone SE and smaller ---- */
@media (max-width: 375px) {
  .tl-layer { padding: 1.2rem 1rem; }
  .tl-title { font-size: 16px; }
  .tl-desc { font-size: 13.2px; }
  .aie-title { font-size: 13.5px; }
  .int-card { padding: 1.2rem; }
}

/* ---- 360px: budget Androids ---- */
@media (max-width: 360px) {
  .tl-title { font-size: 15px; }
  .tl-desc { font-size: 13px; }
  .tl-layer { padding: 1.1rem 1rem; }
  .aie-title { font-size: 13px; }
  .int-card { padding: 1.2rem; }
  .sec-badges { grid-template-columns: 1fr; }
}

/* ---- 320px: legacy phones ---- */
@media (max-width: 320px) {
  .tl-layer { padding: 1rem; }
  .tl-icon { font-size: 22px; }
  .ai-event-card { padding: 1.1rem; }
  .int-card { padding: 1rem; }
}
