/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  PHASE OMEGA — FINAL SPATIAL ENGINE                                ║
   ║  Vibe OS 4.0 × Awalim Group × Ahmed Ashraf                        ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

/* ── SECTION TAG VARIANTS ───────────────────────────────────────────────── */
.vision-tag {
  background: rgba(255,255,255,0.05) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.1) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.section-tag-lime {
  color: #a3cf2b !important;
  border-color: rgba(163,207,43,0.3) !important;
  background: rgba(163,207,43,0.08) !important;
}

.section-desc-light {
  max-width: 550px;
  margin: 0 auto;
  color: rgba(255,255,255,0.6);
}

/* ── TOOL META ACCENT ───────────────────────────────────────────────────── */
.tool-meta-accent {
  color: #a3cf2b !important;
  font-weight: 700;
}

/* ── INLINE-STYLE REPLACEMENTS ──────────────────────────────────────────── */
.section-tag-lime {
  color: #a3cf2b !important;
  border-color: rgba(163,207,43,0.3) !important;
  background: rgba(163,207,43,0.1) !important;
}

/* Contact availability badge */
.contact-avail-badge {
  background: rgba(163,207,43,0.1);
  border: 1px solid rgba(163,207,43,0.3);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 12px;
}

.avail-dot-lime {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #a3cf2b;
  box-shadow: 0 0 10px #a3cf2b;
  animation: avail-pulse 1.5s ease-in-out infinite;
}

@keyframes avail-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.avail-text-lime { color: #a3cf2b; font-size: 0.85rem; font-weight: 600; }

.contact-title-accent { color: var(--vs-lime, #a3cf2b); }

/* ── VIBE-WHAT-CARDS SPATIAL UPGRADE ───────────────────────────────────── */
.vibe-what-card {
  border-radius: 24px !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}

/* ── CONTACT BLACKOUT SECTION ───────────────────────────────────────────── */
.contact-blackout {
  background: #000 !important;
  position: relative;
  overflow: hidden;
}

.contact-blackout::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(163,207,43,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: cBlackoutPulse 4s ease-in-out infinite;
}

@keyframes cBlackoutPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Force dark text inside forms */
.contact-blackout .section-tag {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
}

/* ── OMEGA SUBMIT BUTTON ────────────────────────────────────────────────── */
.btn-submit-omega {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  background: #a3cf2b;
  color: #04060e;
  border: none;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  box-shadow: 0 0 0 rgba(163,207,43,0);
}

.btn-submit-omega::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  pointer-events: none;
}

.btn-submit-omega:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 50px rgba(163,207,43,0.45), 0 5px 15px rgba(163,207,43,0.25);
}

.btn-submit-omega:active {
  transform: scale(0.98);
}

.btn-submit-omega .fas {
  color: #04060e;
  font-size: 1.1rem;
}

.btn-submit-omega .submit-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(4,6,14,0.4);
  border-top-color: #04060e;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit-omega.loading .submit-spinner { display: block; }
.btn-submit-omega.loading .fas { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── VIBE FOOTER BLACKOUT TREATMENT ────────────────────────────────────── */
.vibe-footer-blackout {
  border-top: 1px solid rgba(163,207,43,0.1) !important;
  background: rgba(5, 8, 12, 0.95) !important;
  -webkit-backdrop-filter: blur(40px) !important;
  backdrop-filter: blur(40px) !important;
}

/* ── SECTION ECOSYSTEM ENHANCEMENT ─────────────────────────────────────── */
.vibe-sovereign-eco {
  background: linear-gradient(180deg,
    rgba(8,12,18,0) 0%,
    rgba(4,6,14,0.9) 50%,
    rgba(8,12,18,0) 100%
  );
  padding: 120px 0;
}

/* ── SPATIAL VIBE CODING SECTION ────────────────────────────────────────── */
#vibe-details .vibe-what-card {
  position: relative;
  z-index: 1;
}

#vibe-details .vibe-what-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(163,207,43,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

#vibe-details .vibe-what-card:hover::before { opacity: 1; }

/* ── SCROLL-DRIVEN REVEAL ENHANCEMENTS ──────────────────────────────────── */
@supports (animation-timeline: view()) {
  .spatial-timeline .timeline-item,
  .vibe-what-card,
  .eco-node {
    animation: spatialReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

@keyframes spatialReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ── RESPONSIVE TUNING ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-blackout::before {
    width: 400px;
    height: 400px;
  }

  .btn-submit-omega {
    font-size: 0.95rem;
    padding: 16px 24px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   OMEGA PORTFOLIO GRID — Real Works, Real Impact
════════════════════════════════════════════════════════════════════ */

/* Grid override to ensure 3-col layout with featured */
.omega-grid.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Featured card spans 2 cols */
.omega-grid .port-featured {
  grid-column: span 2;
}

/* ── Omega Card Base ── */
.omega-card {
  border-radius: 20px !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08) !important;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease !important;
}

.omega-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(163,207,43,0.25) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(163,207,43,0.07) !important;
}

/* ── Port image wrap height fix ── */
.omega-card .port-img-wrap {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.omega-grid .port-featured .port-img-wrap {
  height: 320px;
}

.omega-card .port-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.omega-card:hover .port-img-wrap img {
  transform: scale(1.06);
}

/* ── Overlay with badge + dual-button row ── */
.omega-card .port-overlay {
  background: rgba(4, 6, 14, 0.92) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}

.overlay-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a3cf2b;
  background: rgba(163,207,43,0.1);
  border: 1px solid rgba(163,207,43,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 4px;
}

.omega-card .port-overlay h3 {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 800;
  margin: 0;
}

.omega-card .port-overlay p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

/* Dual CTA row inside overlay */
.overlay-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

/* Drive (primary) button inside overlay */
.port-link-drive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #a3cf2b;
  color: #04060e !important;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.port-link-drive:hover {
  background: #b8e030;
  transform: scale(1.05);
}

.port-link-drive i { color: #04060e; }

/* Ghost (eye) icon button */
.port-link-ghost {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.port-link-ghost:hover {
  border-color: #a3cf2b;
  color: #a3cf2b !important;
}

/* ── Omega Meta Block ── */
.omega-meta {
  padding: 20px 22px !important;
  background: transparent !important;
}

.omega-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

/* Tool chips row */
.omega-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.omega-tools span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Project title */
.omega-proj-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.3 !important;
}

.omega-proj-sub {
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.4) !important;
  margin: 0 !important;
  font-family: var(--font-en, 'Inter', sans-serif) !important;
  letter-spacing: 0.5px;
}

/* ── Tag Variants ── */
.omega-tag-featured {
  background: #a3cf2b !important;
  color: #04060e !important;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.omega-tag-ui {
  background: rgba(163,207,43,0.12) !important;
  color: #a3cf2b !important;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 12px; border-radius: 8px;
  white-space: nowrap;
}

.omega-tag-brand {
  background: rgba(255, 183, 77, 0.12) !important;
  color: #ffb74d !important;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 12px; border-radius: 8px;
  white-space: nowrap;
}

.omega-tag-social {
  background: rgba(100,181,246,0.12) !important;
  color: #64b5f6 !important;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 12px; border-radius: 8px;
  white-space: nowrap;
}

/* ── Portfolio Drive CTA Row ── */
.omega-portfolio-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* Google Drive primary CTA */
.omega-drive-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #a3cf2b;
  color: #04060e !important;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 8px 30px rgba(163,207,43,0.25);
}

.omega-drive-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(163,207,43,0.4);
  background: #b8e030;
}

.omega-drive-btn i { font-size: 1.1rem; color: #04060e; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .omega-grid.portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .omega-grid .port-featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .omega-grid.portfolio-grid {
    grid-template-columns: 1fr;
  }
  .omega-grid .port-featured {
    grid-column: span 1;
  }
  .omega-portfolio-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
