/* Tech space section styling */
.tech-space-section {
  font-family: var(--font-family-1);
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 60px 0;
}

/* Floating stars background */
.tech-space-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: repeat;
  animation: starsFloat 60s linear infinite;
  opacity: 0.4;
  z-index: 0;
  will-change: transform;
}

@keyframes starsFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

/* Container and text */
.tech-space-section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.tech-space-section .section-title {
  color: #00f7ff;
  font-size: 36px;
  text-align: center;
  word-spacing: normal;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 576px) {
  .tech-space-section .section-title {
    font-size: 24px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.tech-space-section .intro {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 60px;
  color: #ccc;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Content blocks */
.tech-space-section .content-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.tech-space-section .block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-space-section .block:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.tech-space-section .block h3 {
  color: #00e0ff;
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.8);
}

.tech-space-section .block p {
  font-size: 1rem;
  color: #cfcfcf;
  line-height: 1.6;
}

@supports not (backdrop-filter: blur(1px)) {
  .tech-space-section .block { background: rgba(255, 255, 255, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .tech-space-section::before { animation: none; }
}

@media (max-width: 768px) {
  .tech-space-section .block { backdrop-filter: none; }
  .tech-space-section .section-title { font-size: 2rem; text-align: center; }
  .tech-space-section .intro { font-size: 1rem; }
}

@media (min-width: 768px) and (max-width: 983px) {
  .tech-space-section .content-blocks .block:nth-child(3) {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: center;
  }
  .tech-space-section .content-blocks .block:nth-child(1),
  .tech-space-section .content-blocks .block:nth-child(2),
  .tech-space-section .content-blocks .block:nth-child(3) {
    background-color: #1f1f2e;
    border: 2px solid #5e5eff;
    box-shadow: 0 0 20px #5e5eff88;
  }
}
