
/* Project-specific overrides and additions */
.project-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
}

.back-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-home:hover {
  color: var(--text-primary);
  transform: translateX(-3px);
}

.nav-arrows {
  display: flex;
  gap: 0.8rem;
}

.nav-arrow {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-arrow:hover {
  color: var(--accent-secondary);
  transform: scale(1.1);
}

/* Header */
.project-header {
  text-align: center;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s 0.2s forwards;
}

.project-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-title .gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--text-primary);
}

/* Typing effect */
.typing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  min-height: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s 0.6s forwards;
}

.typing-text {
  font-size: 1.2rem;
  color: var(--accent-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.3em;
  background-color: var(--accent-secondary);
  margin-left: 3px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Override any conflicting cursor styles from main CSS */
.typing-cursor::after {
  content: none !important;
}

/* Glass card */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* Project details */
.project-page-details {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.4s forwards;
}

/* Keyframe for fade in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Project description */
.project-description-group {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.project-description-group p {
  margin-bottom: 1.5rem;
  text-align: center;
}

.project-description-group p:last-child {
  margin-bottom: 0;
}

.project-description-group strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Tech badges */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--accent-secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: var(--accent-secondary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

/* Demo Section */
.demo-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.8s forwards;
}

.demo-section h2 {
  font-size: 2rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
}

.demo-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.demo-item {
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  padding: 1rem;
}

/* Stagger animation for demo items */
.demo-item:nth-child(1) {
  animation-delay: 1s;
}

.demo-item:nth-child(2) {
  animation-delay: 1.2s;
}

.demo-item:nth-child(3) {
  animation-delay: 1.4s;
}

.demo-item img,
.demo-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: var(--bg-primary);
}

.demo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.3);
  border-color: var(--accent-secondary);
}

/* Placeholder for missing images/videos */
.demo-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border-radius: 10px;
  font-size: 3rem;
  color: var(--text-secondary);
}

/* Related Projects Section */
.related-projects {
  max-width: 1000px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
}

.related-projects h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.related-project-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.related-project-card:nth-child(1) {
  animation-delay: 1.6s;
}

.related-project-card:nth-child(2) {
  animation-delay: 1.7s;
}

.related-project-card:nth-child(3) {
  animation-delay: 1.8s;
}

.related-project-card:nth-child(4) {
  animation-delay: 1.9s;
}

.related-project-card:nth-child(5) {
  animation-delay: 2s;
}

.related-project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-secondary);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.related-project-icon {
  font-size: 3rem;
  line-height: 1;
}

.related-project-name {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .project-topbar {
    padding: 1rem;
  }

  .project-header {
    margin: 2rem auto 1rem;
  }

  .project-page-details {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
  }

  .demo-section {
    padding: 0 1rem;
  }

  .demo-gallery {
    gap: 1.5rem;
  }

  .demo-item {
    padding: 0.75rem;
  }

  .typing-text {
    font-size: 1rem;
  }

  .nav-arrows {
    gap: 0.5rem;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .related-project-icon {
    font-size: 2.5rem;
  }

  .related-project-name {
    font-size: 0.9rem;
  }
}

