:root {
  --accent-blue: #60a5fa;
  --accent-indigo: #a855f7;
  --accent-bg-dark: #181a23;
  --accent-bg-gradient: linear-gradient(135deg, #181a23 0%, #232339 100%);
  --accent-card-bg: rgba(24, 26, 35, 0.92);
  --accent-card-border: #232339;
  --accent-secondary: #cbd5e1;
}

/* Footer-title styling for Services page main title - LARGER SIZE */
.services-title,
.footer-title.services-title {
  font-size: 3.5rem !important; /* Increased size */
  font-weight: 800 !important;
  margin-bottom: 1rem !important;
  background: linear-gradient(135deg, #60a5fa, #a855f7) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  border-bottom: none !important;
}

/* Responsive: decrease size on smaller screens */
@media (max-width: 600px) {
  .services-title,
  .footer-title.services-title {
    font-size: 2rem !important;
  }
}

.services-root {
  min-height: 100vh;
  width: 100vw;
  position: relative;
  font-family: var(--font-sans, Inter, ui-sans-serif, system-ui);
  color: #fff;
  background: var(--accent-bg-gradient);
  overflow-x: hidden;
  overflow-y: auto;
}

.services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(30,30,40,0.32) 0%, rgba(30,30,40,0.22) 100%),
    url('/services-bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.services-hero {
  position: relative;
  z-index: 2;
  padding: 6rem 1rem 2rem;
  text-align: center;
}

.services-subtitle {
  color: var(--accent-secondary);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
}
.services-hints {
  color: var(--accent-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.services-display {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 370px;
  padding-bottom: 5rem;
}

/* Cube styles */
.services-cube-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  perspective: 1200px;
  touch-action: pan-x pan-y;
}
.services-cube-tap-hint {
  position: absolute;
  top: 50%;
  left: -190px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: 5;
}
.services-cube-tap-hint.visible {
  opacity: 1;
}
.services-cube-hand {
  font-size: 4rem;
  animation: bounce 1.6s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}
.services-cube-label {
  margin-top: 0.5em;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--accent-secondary);
  text-shadow: 0 1px 6px #232339;
}
.services-cube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.54,.12,.44,.99);
  will-change: transform;
}
.services-cube.no-transition {
  transition: none;
}
.services-cube-face {
  position: absolute;
  width: 88%;
  height: 88%;
  left: 6%;
  top: 6%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-card-bg);
  border-radius: 1.2em;
  box-shadow: 0 6px 32px rgba(24,26,35,0.22);
  border: 1px solid var(--accent-card-border);
  text-align: center;
  padding: 2rem 1.2rem;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.3s, background 0.3s;
}

/* Card styles */
.services-cards,
.services-burst {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
@media (min-width: 800px) {
  .services-burst {
    grid-template-columns: repeat(2, 1fr);
    max-width: 970px;
  }
}
@media (min-width: 1200px) {
  .services-burst {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1300px;
  }
}
.services-card {
  background: var(--accent-card-bg);
  border-radius: 1.2em;
  box-shadow: 0 6px 32px rgba(24,26,35,0.22);
  border: 1px solid var(--accent-card-border);
  text-align: center;
  padding: 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  align-items: center;
}
.services-icon {
  font-size: 2.6em;
  margin-bottom: 0.5em;
}
.services-card-title {
  font-size: 1.3em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-decoration: none !important;
  border-bottom: none !important;
}
.services-card-desc {
  color: var(--accent-secondary);
  font-size: 1em;
  margin-bottom: 1em;
}
.services-card-btn {
  margin-top: auto;
  padding: 0.85em 2.2em;
  font-size: 1em;
  border-radius: 99em;
  background: linear-gradient(90deg, var(--accent-blue) 55%, var(--accent-indigo) 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(24,26,35,0.15);
  cursor: pointer;
  transition: background 0.19s, transform 0.19s;
}
.services-card-btn:hover,
.services-card-btn:focus {
  background: linear-gradient(90deg, var(--accent-indigo) 55%, var(--accent-blue) 100%);
  transform: scale(1.05);
}

.services-burst-close {
  position: absolute;
  top: 1.2em;
  right: 2em;
  padding: 0.7em 2em;
  background: #232339;
  color: #fff;
  border: none;
  border-radius: 2em;
  font-size: 1em;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(24,26,35,0.19);
  cursor: pointer;
  transition: background 0.18s;
  z-index: 10;
}
.services-burst-close:hover {
  background: var(--accent-indigo);
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .services-cube-container {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 600px) {
  .services-root {
    padding-top: 4rem;
    padding-bottom: 1rem;
  }
  .services-hero {
    padding: 3rem 0.7rem 1.3rem;
  }
  .services-title,
  .footer-title.services-title {
    font-size: 2rem !important;
  }
  .services-display {
    padding-bottom: 2rem;
  }
  .services-cards {
    gap: 1.2rem;
    padding: 1.2rem 0.5rem;
  }
  .services-card {
    padding: 1.2rem 0.7rem;
  }
  .services-cube-tap-hint {
    left: -100px;
  }
}