/* ============================================================
   SINGER GROUP — Responsive Styles (supplementary)
   ============================================================ */

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--lowvolt), #005AF0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ---------- Timeline / Milestones ---------- */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue) 0%, rgba(0,90,240,0.4) 85%, rgba(255,199,44,0.6) 100%);
  border-radius: 2px;
}
.timeline-item {
  padding-left: 32px;
  position: relative;
  margin-bottom: 26px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
  transition: transform 0.2s;
}
.timeline-item:hover::before { transform: scale(1.25); }
/* Industry context milestone */
.timeline-item--industry {
  margin-bottom: 18px;
}
.timeline-item--industry::before {
  background: transparent;
  border: 2px solid #94A3B8;
  box-shadow: none;
  width: 10px; height: 10px;
  left: -4px; top: 6px;
  border-radius: 2px;
  transform: rotate(45deg);
  transition: none;
}
.timeline-item--industry:hover::before { transform: rotate(45deg) scale(1.1); }
.timeline-item--industry .timeline-year { color: #64748B; }
.timeline-item--industry h4 {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748B;
  font-style: italic;
}
.timeline-item--industry p { font-size: 0.78rem; color: #94A3B8; }
.timeline-industry-label {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94A3B8;
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 3px;
  padding: 1px 5px;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
/* Current / active milestone */
.timeline-item--current::before {
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--amber), 0 0 10px rgba(255,199,44,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px var(--amber), 0 0 8px rgba(255,199,44,0.4); }
  50%       { box-shadow: 0 0 0 4px var(--amber), 0 0 18px rgba(255,199,44,0.6); }
}
.timeline-item--current .timeline-year { color: var(--amber); }
.timeline-item--current h4 { color: var(--navy); }
.timeline-item h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 3px; line-height: 1.4; }
.timeline-item p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; margin: 0; }
.timeline-year {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* ---------- Values Grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(17,35,54,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.value-item {
  background: var(--white);
  padding: 40px 32px;
  transition: background var(--transition);
}
.value-item:hover { background: rgba(0,90,240,0.03); }
.value-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.5;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.value-item h4 { font-size: 1.1rem; margin-bottom: 10px; }
.value-item p { font-size: 0.875rem; color: var(--text-mid); }

/* ---------- Team Cards ---------- */
.team-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(17,35,54,0.08);
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--lowvolt));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 16px;
}
.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.82rem; color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 0.82rem; color: var(--text-mid); }

/* ---------- Apollo EMS Dashboard Illustration ---------- */
.ems-visual {
  background: #0A1520;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.ems-visual::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 120%;
  background: radial-gradient(ellipse, rgba(0,90,240,0.15) 0%, transparent 65%);
}
.ems-bar { width: 100%; height: 2px; background: rgba(255,255,255,0.05); border-radius: 2px; margin-bottom: 20px; }
.ems-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--lowvolt)); animation: expandBar 2s ease-out forwards; }
@keyframes expandBar { from { width: 0; } to { width: var(--fill-w, 70%); } }
.ems-nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.ems-node {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.ems-node-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2ECC71;
  margin: 0 auto 8px;
  box-shadow: 0 0 6px #2ECC71;
  animation: pulse 2s infinite;
}
.ems-node-dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.ems-node-label { font-size: 0.65rem; color: rgba(255,255,255,0.4); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.ems-node-value { font-size: 1rem; font-weight: 700; color: var(--white); margin: 4px 0; }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0,90,240,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; color: var(--blue); }
.contact-info-text h5 { margin-bottom: 4px; }
.contact-info-text p, .contact-info-text a { font-size: 0.9rem; color: var(--text-mid); }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(17,35,54,0.08);
  box-shadow: var(--shadow-md);
}

.apollo-portal-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 32px;
  border: 1px solid rgba(0,90,240,0.2);
  position: relative;
  overflow: hidden;
}
.apollo-portal-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--amber));
}
.apollo-portal-cta h4 { color: var(--white); margin-bottom: 8px; }
.apollo-portal-cta p { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: 20px; }

/* ---------- Qualification Dropdown ---------- */
.qual-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0,90,240,0.06);
  border: 1px solid rgba(0,90,240,0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.qual-badge svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.qual-badge span { font-size: 0.8rem; color: var(--navy); font-weight: 500; }

/* ---------- Sector Tags ---------- */
.sector-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sector-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--grey);
  color: var(--text-mid);
  border: 1.5px solid transparent;
  transition: all var(--transition);
}
.sector-tag:hover, .sector-tag.selected {
  background: rgba(0,90,240,0.1);
  color: var(--blue);
  border-color: var(--blue);
}

/* ---------- Sticky aside panels ---------- */
.sticky-top { position: sticky; top: 100px; }

/* ---------- Loading States ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--grey) 25%, #e0e0e8 50%, var(--grey) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Success State ---------- */
.success-message {
  display: none;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  margin-top: 16px;
}
.success-message.show { display: block; animation: fadeIn 0.4s ease; }
.success-message svg { width: 32px; height: 32px; color: #2ECC71; margin: 0 auto 12px; display: block; }
.success-message h4 { color: var(--navy); margin-bottom: 8px; }
.success-message p { font-size: 0.875rem; color: var(--text-mid); }

/* ---------- Mobile Nav Logo Fix ---------- */
.site-nav.nav-white .nav-hamburger span { background: var(--navy); }

/* ---------- Responsive Additions ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .sticky-top { position: static; }
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .ems-nodes { grid-template-columns: 1fr 1fr; }
}
