/* ==========================================================================
   SEMANTIC SEO SERVICES CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   ANIMATIONS & REVEALS
   -------------------------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.semantic-hero {
  padding: 180px 0 100px;
  background: radial-gradient(circle at 50% 0%, rgba(181,36,106,0.06), var(--clr-surface));
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border);
}

.semantic-hero-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.semantic-hero-label {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-accent);
  background: var(--clr-accent-pale);
  border: 1px solid rgba(181, 36, 106, 0.15);
  border-radius: 40px;
  margin-bottom: 28px;
  box-shadow: 0 4px 15px rgba(181, 36, 106, 0.08);
}

.semantic-hero-title {
  font-family: var(--font-headings);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--clr-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(26,46,68,0.05);
  opacity: 1 !important; /* Force visible */
}

.semantic-hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
  margin-bottom: 40px;
  max-width: 680px;
  margin-inline: auto;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   SECTION 1: ENTITY ARCHITECTURE (Map Layout)
   -------------------------------------------------------------------------- */
.semantic-entity {
  padding: 120px 0;
  position: relative;
  background: var(--clr-surface-2);
}

.semantic-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.semantic-header h2 {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--clr-primary);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.semantic-header p {
  color: var(--clr-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.entity-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 24px;
  align-items: center;
}

.entity-col-left, .entity-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.entity-node {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 32px 24px;
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 20px rgba(26,46,68,0.04);
  position: relative;
  z-index: 1;
}

.entity-node:hover {
  border-color: var(--clr-accent-light);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(26,46,68,0.08), 0 0 0 1px var(--clr-accent-pale);
}

.entity-node h4 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  color: var(--clr-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.entity-node p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.entity-core {
  background: linear-gradient(145deg, var(--clr-surface), var(--clr-surface-2));
  border: 1px solid var(--clr-accent-light);
  padding: 56px 40px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(181, 36, 106, 0.08);
  transition: all 0.4s var(--ease-out);
}

.entity-core:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 60px rgba(181, 36, 106, 0.12);
}

.entity-core-icon {
  width: 80px;
  height: 80px;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(181, 36, 106, 0.3);
}

.entity-core h3 {
  font-family: var(--font-headings);
  font-size: 1.85rem;
  color: var(--clr-primary);
  margin-bottom: 16px;
  font-weight: 800;
}

.entity-core p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   SECTION 2: SEARCH INTENT & NLP (Dark Panels)
   -------------------------------------------------------------------------- */
.semantic-intent {
  padding: 120px 0;
  background: var(--clr-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.semantic-intent .semantic-header h2 {
  color: #ffffff;
}

.semantic-intent .semantic-header p {
  color: #a0aec0;
}

.intent-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.intent-panel {
  background: #111e2f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.4s var(--ease-out);
}

.intent-panel:hover {
  border-color: rgba(181, 36, 106, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(181, 36, 106, 0.1);
}

.intent-panel.visual-panel {
  background: linear-gradient(135deg, #16253b, #0c1524);
  align-items: center;
  text-align: center;
}

.intent-panel h3 {
  font-family: var(--font-headings);
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 800;
}

.intent-panel p {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.intent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: auto;
}

.intent-tag {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 500;
  transition: all 0.3s ease;
}

.intent-tag:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(181, 36, 106, 0.3);
}

.nlp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nlp-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
}

.nlp-list li i {
  color: var(--clr-accent-light);
  font-size: 24px;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   SECTION 3: TOPIC CLUSTERS (Layered Structure)
   -------------------------------------------------------------------------- */
.semantic-cluster {
  padding: 120px 0;
  background: var(--clr-surface);
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cluster-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: 48px 32px;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 8px 30px rgba(26,46,68,0.03);
}

.cluster-card:hover {
  background: var(--clr-surface);
  border-color: var(--clr-accent-pale);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(26,46,68,0.08), 0 0 0 1px var(--clr-accent-pale);
}

.cluster-icon {
  font-size: 44px;
  color: var(--clr-accent);
  margin-bottom: 28px;
  display: inline-block;
  padding: 16px;
  background: var(--clr-accent-pale);
  border-radius: 16px;
  transition: transform 0.4s var(--ease-out);
}

.cluster-card:hover .cluster-icon {
  transform: scale(1.1) rotate(-5deg);
}

.cluster-card h4 {
  font-family: var(--font-headings);
  font-size: 1.45rem;
  color: var(--clr-primary);
  margin-bottom: 16px;
  font-weight: 800;
}

.cluster-card p {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   SECTION 4: COMPACT CTA
   -------------------------------------------------------------------------- */
.semantic-cta {
  padding: 60px 0 120px;
  background: var(--clr-surface);
}

.cta-box {
  background: linear-gradient(135deg, var(--clr-primary), #0c1627);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 30px 60px rgba(26,46,68,0.15);
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(181, 36, 106, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-box-content {
  position: relative;
  z-index: 2;
}

.cta-box-content h2 {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-box-content p {
  color: #a0aec0;
  font-size: 1.15rem;
  margin: 0;
  max-width: 500px;
}

.cta-box-action {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .entity-grid {
    grid-template-columns: 1fr;
  }
  
  .entity-core {
    order: -1;
  }
  
  .intent-layout {
    grid-template-columns: 1fr;
  }
  
  .cluster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }
  
  .cta-box-content p {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .semantic-hero {
    padding: 140px 0 80px;
  }

  .semantic-header {
    margin-bottom: 48px;
  }

  .cluster-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box-content h2 {
    font-size: 2rem;
  }
}
