.tech {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

/* Code rain */
.tech-code-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  overflow: hidden;
}

.tech .container {
  position: relative;
  z-index: 1;
}

.tech-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* Project card */
.tech-project {
  background: var(--surface-2);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.tech-project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--pop), var(--accent));
  background-size: 200% 100%;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.tech-project:hover {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(201, 168, 76, 0.08);
  transform: translateY(-4px);
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.project-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--light-dim);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.ptag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-3);
  border: 1px solid rgba(107, 140, 120, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.project-impact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--light-dim);
}

.impact-icon {
  font-size: 1rem;
}

/* Skills */
.tech-skills {
  padding: 0.5rem 0;
}

.skills-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 1.25rem;
}

.hex-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1rem;
  margin-top: 1rem;
}

.hex-skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hex-icon {
  width: 70px;
  height: 70px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all var(--transition);
  color: var(--accent);
  position: relative;
}

.hex-icon::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--surface-2);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
}

.hex-skill:hover .hex-icon {
  transform: translateY(-5px);
  color: var(--light);
}

.hex-skill:hover .hex-icon::before {
  background: var(--accent);
}

.hex-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--light-dim);
  text-align: center;
  line-height: 1.3;
}

/* Soft skills grid */
.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.soft-skill {
  background: var(--surface-2);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--light-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
}

.soft-skill:hover {
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--light);
  transform: translateY(-2px);
}

/* Ticker */
.tech-ticker {
  overflow: hidden;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  padding: 1rem 0;
  background: rgba(201, 168, 76, 0.03);
}

.ticker-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 20s linear infinite;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.ticker-dot {
  color: var(--accent);
  font-size: 0.5rem;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .tech-inner {
    grid-template-columns: 1fr;
  }
  .soft-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
