/* Project Detail Page Styles */
#project-hero {
  padding: 120px 5% 80px;
  background: var(--bg1);
  position: relative;
  z-index: 1;
}

#project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 25% 75%, rgba(249, 115, 22, .05) 0%, transparent 50%);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.project-hero-visual {
  position: relative;
}

.project-hero-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16 / 9;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.project-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 39, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-hero-img-wrap:hover .project-hero-overlay {
  opacity: 1;
}

.project-hero-img-wrap:hover .project-hero-img {
  transform: scale(1.05);
}

.project-hero-play-btn {
  width: 70px;
  height: 70px;
  background: rgba(16, 185, 129, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-play-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.project-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-breadcrumb a:hover {
  color: var(--coral);
}

.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
  position: relative;
}

.project-hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.project-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.project-tag:hover {
  background: var(--accent);
  color: var(--bg0);
  transform: translateY(-2px);
}

.project-hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.project-hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.project-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-meta-value {
  font-size: 0.95rem;
  color: var(--text);
}

/* Project Details Section */
#project-details {
  padding: 80px 5%;
  background: var(--bg0);
  position: relative;
  z-index: 1;
}

#project-details::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 75% 25%, rgba(16, 185, 129, .04) 0%, transparent 50%);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.project-detail-main {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-bottom: 12px;
}

.project-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.project-detail-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}

.tech-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Sidebar Styles */
.project-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.sidebar-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.sidebar-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-info-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-info-value {
  font-size: 0.9rem;
  color: var(--text);
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-member {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.team-member:hover {
  background: var(--bg1);
  transform: translateX(5px);
}

.member-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.member-info {
  flex: 1;
}

.member-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.member-role {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(5px);
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  width: 40px;
  height: 40px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
}

/* Related Projects Section */
#related-projects {
  padding: 80px 5%;
  background: var(--bg1);
  position: relative;
  z-index: 1;
}

#related-projects::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 30% 70%, rgba(139, 92, 246, .05) 0%, transparent 50%);
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.related-project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.related-project-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.related-project-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-project-card:hover .related-project-img {
  transform: scale(1.05);
}

.related-project-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-project-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.related-project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.related-project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: auto;
  transition: all 0.3s ease;
}

.related-project-link:hover {
  color: var(--coral);
  transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .project-hero-grid,
  .project-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .project-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  #project-hero,
  #project-details,
  #related-projects {
    padding: 60px 3%;
  }
  
  .project-hero-title {
    font-size: 2rem;
  }
  
  .project-section-title {
    font-size: 1.5rem;
  }
  
  .tech-stack {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .related-projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .project-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-va {
    width: 100%;
    justify-content: center;
  }
  
  .tech-stack {
    grid-template-columns: 1fr;
  }
  
  .share-buttons {
    justify-content: center;
  }
}