/* ============================================================
   PROJECTS SECTION
   ============================================================ */

#projects {
  max-width: 1300px;
  margin: 0 auto;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Card */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all .4s var(--ease);
  position: relative;
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow);
}

/* Featured card */
.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Visual area */
.project-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card.featured .project-visual {
  height: auto;
  min-height: 300px;
}

.project-visual-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 24px,
      rgba(0, 229, 255, 0.03) 24px, rgba(0, 229, 255, 0.03) 25px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 24px,
      rgba(0, 229, 255, 0.03) 24px, rgba(0, 229, 255, 0.03) 25px
    );
}

.project-visual-inner {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--cyan);
  padding: 1.5rem;
  width: 100%;
}

.pv-line          { margin-bottom: .3rem; opacity: .7; }
.pv-line .purple  { color: var(--purple); }
.pv-line .green   { color: var(--green);  }
.pv-line .white   { color: var(--white);  }
.pv-line .alert   { color: #ff5f56; }
.pv-line .warn    { color: #ffbd2e; }

/* Info area */
.project-info { padding: 2rem; }

.project-tags-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.proj-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .2rem .7rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--grey);
  transition: all .2s;
}
.proj-tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .8rem;
  letter-spacing: -.01em;
}

.project-desc {
  font-size: .9rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--cyan);
  text-decoration: none;
  transition: gap .2s;
}
.project-link:hover { gap: 1rem; }
.project-link-arrow { transition: transform .2s; }
.project-link:hover .project-link-arrow { transform: translateX(4px); }

/* Glow orb inside visuals */
.visual-orb {
  position: absolute;
  border-radius: 50%;
  animation: pulse 3s infinite;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .projects-grid            { grid-template-columns: 1fr; }
  .project-card.featured    { grid-column: auto; grid-template-columns: 1fr; }
  .project-card.featured .project-visual { height: 220px; }
}

@media (max-width: 768px) {
  .project-info { padding: 1.5rem; }
  .project-visual { min-height: 220px; }
  .project-tags-row { gap: .4rem; }
}

@media (max-width: 640px) {
  .project-card { border-radius: 0; }
  .project-info { padding: 1.2rem; }
  .project-name { font-size: 1.05rem; }
  .project-desc { font-size: .88rem; }
}
