/* ============================================
   NABIATEC - QHSE, Projects, Presence, Testimonials
   ============================================ */

/* ─── QHSE ─── */
.qhse { background: linear-gradient(180deg, var(--black-secondary) 0%, var(--black-primary) 100%); padding: var(--section-pad) 0; position: relative; }
.qhse::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-primary), transparent); opacity: 0.2; }
.qhse-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.qhse-card { background: rgba(255,255,255,0.03); border: 1.5px solid var(--border-subtle); border-radius: 8px; padding: 40px 28px; text-align: center; transition: all 0.5s var(--ease-smooth); position: relative; overflow: hidden; backdrop-filter: blur(8px); }
.qhse-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: linear-gradient(180deg, var(--gold-primary), var(--gold-light)); transition: height 1.2s var(--ease-smooth); }
.qhse-card:hover::before { height: 100%; }
.qhse-card:hover { border-color: var(--border-gold); background: rgba(200,155,60,0.05); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.qhse-icon { width: 60px; height: 60px; background: rgba(200,155,60,0.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; transition: all 0.4s var(--ease-smooth); position: relative; }
.qhse-icon::after { content: ''; position: absolute; inset: -4px; border: 1.5px solid var(--gold-primary); border-radius: 14px; opacity: 0; transition: opacity 0.4s; }
.qhse-card:hover .qhse-icon::after { opacity: 0.3; }
.qhse-icon i { color: var(--gold-primary); font-size: 1.5rem; }
.qhse-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.qhse-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.65; }

/* ─── Projects ─── */
.projects { background: var(--black-primary); padding-bottom: 80px; position: relative; }
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 40px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 16px; }
.project-card { position: relative; overflow: hidden; cursor: pointer; background: var(--black-secondary); border-radius: 8px; transition: all 0.5s var(--ease-smooth); }
.project-card:first-child { grid-column: span 2; height: 400px; }
.project-card:not(:first-child) { height: 300px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-smooth), filter 0.8s; filter: brightness(0.6) saturate(0.9); }
.project-card:hover { box-shadow: var(--shadow-dark); }
.project-card:hover img { transform: scale(1.1); filter: brightness(0.45) saturate(1); }
.project-overlay { position: absolute; inset: 0; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(0deg, rgba(7,17,31,0.92) 0%, rgba(7,17,31,0.3) 50%, transparent 100%); transition: all 0.5s; }
.project-card:hover .project-overlay { background: linear-gradient(0deg, rgba(7,17,31,0.95) 0%, rgba(7,17,31,0.5) 60%, transparent 100%); }
.p-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)); color: var(--black-primary); font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px; width: fit-content; border-radius: 4px; transition: all 0.3s; }
.project-card:hover .p-tag { transform: translateY(-4px); }
.project-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 6px; transition: transform 0.3s; }
.project-card:hover h3 { transform: translateY(-4px); }
.project-card .p-meta { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255,255,255,0.5); letter-spacing: 1px; transition: transform 0.3s; }
.project-card:hover .p-meta { transform: translateY(-4px); }
.p-arrow { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); opacity: 0; transform: translate(10px, -10px); transition: all 0.4s var(--ease-smooth); backdrop-filter: blur(8px); }
.project-card:hover .p-arrow { opacity: 1; transform: translate(0, 0); background: var(--gold-primary); border-color: var(--gold-primary); color: var(--black-primary); }

/* ─── Presence ─── */
.presence { background: var(--off-white); padding: var(--section-pad) 0; }
.presence-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.world-map-wrap { position: relative; background: linear-gradient(135deg, rgba(7,17,31,0.4), rgba(15,32,53,0.5)); border-radius: 12px; padding: 40px; overflow: hidden; border: 1.5px solid var(--border-subtle); box-shadow: var(--shadow-dark); backdrop-filter: blur(12px); transition: all 0.6s var(--ease-smooth); }
.world-map-wrap:hover { transform: translateY(-8px); box-shadow: 0 40px 80px rgba(0,0,0,0.15); border-color: var(--border-gold); }
.world-map-svg { width: 100%; opacity: 0.85; transition: opacity 0.6s; }
.world-map-wrap:hover .world-map-svg { opacity: 1; }
.map-dot { animation: pulse 2.5s infinite; }
.map-dot:nth-child(2n) { animation-delay: 0.5s; }
.map-dot:nth-child(3n) { animation-delay: 1s; }
.presence-list { display: flex; flex-direction: column; margin-top: 40px; }
.presence-country { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.06); transition: all 0.35s var(--ease-smooth); cursor: default; }
.presence-country:hover { padding-left: 12px; border-bottom-color: var(--gold-primary); }
.pc-left { display: flex; gap: 14px; align-items: center; }
.pc-flag { font-size: 1.4rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.pc-info strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--black-primary); transition: color 0.3s; }
.pc-info span { font-size: 0.78rem; color: var(--gray-light); font-weight: 400; line-height: 1.4; display: block; margin-top: 2px; transition: color 0.3s; }
.presence-country:hover .pc-info strong { color: var(--gold-primary); }
.presence-country:hover .pc-info span { color: var(--black-primary); }
.pc-mw { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold-primary); font-weight: 600; padding: 4px 10px; background: var(--gold-glow); border-radius: 4px; transition: all 0.3s; }
.presence-country:hover .pc-mw { background: var(--gold-primary); color: var(--black-primary); }

/* ─── Testimonials ─── */
.testimonials { background: linear-gradient(180deg, var(--black-primary) 0%, var(--black-deep) 100%); padding: var(--section-pad) 0; position: relative; }
.testimonials::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-primary), transparent); opacity: 0.15; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.testi-card { background: rgba(255,255,255,0.03); border: 1.5px solid var(--border-subtle); border-radius: 8px; padding: 36px 28px; transition: all 0.5s var(--ease-smooth); position: relative; overflow: hidden; backdrop-filter: blur(8px); }
.testi-card::before { content: '"'; position: absolute; top: 12px; right: 24px; font-family: var(--font-display); font-size: 4.5rem; color: rgba(200,155,60,0.1); line-height: 1; font-weight: 800; }
.testi-card:hover { background: rgba(200,155,60,0.06); border-color: var(--border-gold); transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.2); }
.testi-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testi-stars i { color: var(--gold-primary); font-size: 0.85rem; }
.testi-card p { color: var(--text-muted); line-height: 1.8; font-size: 0.92rem; margin-bottom: 24px; position: relative; z-index: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-primary), var(--teal-accent)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--black-primary); font-size: 0.9rem; flex-shrink: 0; box-shadow: 0 4px 12px rgba(200,155,60,0.3); }
.testi-meta strong { display: block; font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 0.85rem; }
.testi-meta span { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,0.35); letter-spacing: 1px; }

@media (max-width: 1100px) {
  .qhse-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card:first-child { grid-column: span 2; }
  .presence-layout { grid-template-columns: 1fr; gap: 48px; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .qhse-grid { grid-template-columns: 1fr; }
  .qhse-card { padding: 32px 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:first-child { grid-column: span 1; height: 300px; }
  .project-card:not(:first-child) { height: 280px; }
  .world-map-wrap { padding: 24px; }
  .presence-country { padding: 14px 0; }
  .testi-card { padding: 28px 20px; }
}
