/* projects.css - Shiny, glittering, detailed project showcases */

.project-showcase {
  position: relative;
  background: rgba(18, 22, 26, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  margin-bottom: 4rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.project-showcase:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.15), inset 0 0 30px rgba(212, 175, 55, 0.05);
  transform: translateY(-5px);
}

.project-showcase__glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.project-showcase:hover .project-showcase__glow {
  opacity: 1;
  animation: rotateGlow 15s linear infinite;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.project-showcase__content {
  position: relative;
  z-index: 1;
}

.project-showcase__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.project-tag {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.project-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.3);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.project-showcase:hover .project-number {
  color: rgba(212, 175, 55, 0.1);
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.8);
  opacity: 1;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.project-showcase h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.project-showcase__body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .project-showcase__body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.project-showcase__main-text h4 {
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-weight: 600;
}

.project-showcase__main-text h4:first-child {
  margin-top: 0;
}

.project-showcase__main-text p {
  color: var(--color-gray-200);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.project-showcase__sidebar {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-info-box {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.project-info-box:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.project-info-box h5 {
  color: var(--color-gray-400);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.project-info-box p {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.project-showcase__footer {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
  border-left: 4px solid var(--color-gold);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-top: 2rem;
}

.project-showcase__footer h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-gray-200);
  font-size: 0.95rem;
  line-height: 1.4;
}

.check-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 1rem;
  text-shadow: 0 0 10px var(--color-gold);
}

/* --- Homepage Mini Grid --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.project-card { 
  background: rgba(27, 31, 38, 0.7); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.15); 
  border-radius: var(--radius-xl); 
  padding: 2rem; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  position: relative; 
  overflow: hidden; 
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0);
  transition: all 0.3s ease;
  pointer-events: none;
}
.project-card:hover { 
  transform: translateY(-5px); 
  border-color: rgba(212, 175, 55, 0.6); 
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(212, 175, 55, 0.1); 
  background: rgba(27, 31, 38, 0.85);
}
.project-card:hover::before {
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
}
.project-card__link-overlay { position: absolute; inset: 0; z-index: 10; }
.project-card__content { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.project-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.project-card__icon { 
  width: 48px; 
  height: 48px; 
  background: rgba(255,255,255,0.03); 
  border: 1px solid rgba(255,255,255,0.08); 
  border-radius: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--color-gold); 
  transition: all 0.15s ease-out; 
}
.project-card__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.project-card:hover .project-card__icon { 
  transform: scale(1.1); 
  background: rgba(212,175,55,0.1); 
  border-color: rgba(212,175,55,0.4); 
  color: #fff;
}
.project-card__tag { 
  display: inline-block; 
  padding: 0.3rem 0.8rem; 
  background: rgba(212, 175, 55, 0.1); 
  border: 1px solid rgba(212, 175, 55, 0.2); 
  color: var(--color-gold); 
  border-radius: var(--radius-full); 
  font-size: 0.75rem; 
  font-weight: 600; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
  margin-bottom: 0; 
}
.project-card h3 { font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.4; color: var(--color-gold); transition: color 0.15s ease-out; }
.project-card:hover h3 { text-shadow: 0 0 10px rgba(212,175,55,0.3); }
.project-card p { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; flex-grow: 1; margin-bottom: 1.5rem; }
.project-card__footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; margin-top: auto; transition: border-color 0.15s ease-out;}
.project-card:hover .project-card__footer { border-color: rgba(212,175,55,0.2); }
.mini-tech-list { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.mini-tech { 
  font-size: 0.7rem; 
  color: var(--color-gold); 
  background: rgba(212,175,55,0.05); 
  border: 1px solid rgba(212,175,55,0.2); 
  padding: 0.2rem 0.5rem; 
  border-radius: 4px; 
  font-weight: 500;
  transition: all 0.15s ease-out;
}
.project-card:hover .mini-tech {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.4);
}
.card-arrow { font-size: 0.85rem; font-weight: 500; color: var(--color-gold); opacity: 0; transform: translateX(-10px); transition: all 0.15s ease-out; }
.project-card:hover .card-arrow { opacity: 1; transform: translateX(0); }
