/* ===== SERVICES PAGE ===== */

/* --- HERO --- */
#services-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.services-hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 2;
  pointer-events: none;
}

.services-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
}

.services-hero-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.services-hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 80px;
  line-height: 1.1;
  margin-bottom: 28px;
}

.services-hero-heading .white-line {
  display: block;
  color: var(--text-primary);
}

.services-hero-heading .blue-line {
  display: block;
  color: var(--accent-blue);
}

.services-hero-body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-subtle);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(12px); opacity: 1; }
}

/* --- NAV ACTIVE --- */
.nav-active {
  color: var(--text-primary) !important;
}

/* --- SERVICES GRID SECTION --- */
#services-grid {
  padding: 100px 80px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.services-grid-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-grid-header .section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.services-grid-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 52px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.heading-glow-line {
  width: 200px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), var(--accent-blue));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Cards grid */
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- SERVICE CARD --- */
.service-card {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.97) 30%, transparent 70%);
  z-index: 1;
  transition: background 0.4s ease;
}

.service-card:hover .card-overlay {
  background: rgba(17, 17, 17, 0.92);
}

/* Card front */
.card-front {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-number {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent-blue);
  opacity: 0.5;
}

.card-bottom {
  margin-top: auto;
}

.card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.card-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--text-subtle);
  line-height: 1.5;
}

/* Card reveal panel */
.card-reveal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 32px 28px;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.98) 60%, rgba(17, 17, 17, 0.85));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .card-reveal {
  transform: translateY(0);
}

.reveal-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.reveal-list {
  list-style: none;
  padding: 0;
}

.reveal-list li {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.reveal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* --- TRUST NOTE --- */
#trust-note {
  position: relative;
  background: var(--bg-surface);
  padding: 80px 24px;
}

.trust-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-cyan), var(--accent-blue), transparent);
}

.trust-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  color: var(--accent-blue);
  animation: glowPulse 2.5s ease-in-out infinite;
}

.trust-icon svg {
  width: 48px;
  height: 48px;
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.3)); }
  50% { filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.7)); }
}

.trust-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 36px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.trust-body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-subtle);
  line-height: 1.8;
}

/* --- MINI CTA --- */
#services-cta {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 48px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-subtle);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-hero-heading {
    font-size: 56px;
  }

  #services-grid {
    padding: 80px 40px 100px;
  }

  .services-grid-heading {
    font-size: 42px;
  }

  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-heading {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .services-hero-heading {
    font-size: 40px;
  }

  .services-hero-body {
    font-size: 16px;
  }

  #services-grid {
    padding: 60px 20px 80px;
  }

  .services-grid-heading {
    font-size: 34px;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
  }

  .service-card:hover {
    transform: none;
  }

  .card-bg {
    position: absolute;
    inset: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .card-front {
    position: relative;
    min-height: 280px !important;
    height: auto !important;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
  }

  .card-overlay {
    position: absolute;
    inset: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .card-reveal {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: 3;
    background: var(--bg-surface) !important;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .trust-heading {
    font-size: 28px;
  }

  .cta-heading {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .services-hero-heading {
    font-size: 32px;
  }

  .services-hero-label {
    font-size: 11px;
  }

  #services-grid {
    padding: 48px 16px 60px;
  }
}
