/* Enhanced Project Page Styles */

.page {
  width: 100%;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.project-hero {
  position: relative;
  text-align: center;
  padding: 60px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin: 0 20px 40px;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(126, 240, 193, 0.08), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(244, 191, 114, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.project-hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(126, 240, 193, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.project-hero > * {
  position: relative;
  z-index: 1;
}

.project-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 20px 0 16px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 700px;
  line-height: 1.6;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.back-link:hover {
  background: rgba(126, 240, 193, 0.1);
  transform: translateX(-4px);
}

.project-hero-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.project-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  padding: 0 20px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(126, 240, 193, 0.15), rgba(126, 240, 193, 0.08));
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(126, 240, 193, 0.15);
  position: relative;
  overflow: hidden;
}

.project-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(126, 240, 193, 0.25), transparent);
  transition: left 0.6s ease;
}

.project-links a:hover::before {
  left: 100%;
}

.project-links a:hover {
  background: linear-gradient(135deg, rgba(126, 240, 193, 0.3), rgba(126, 240, 193, 0.15));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(126, 240, 193, 0.3);
  border-color: var(--accent);
}

.project-links a i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.project-links a:hover i {
  transform: scale(1.15) rotate(5deg);
}

.project-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 20px;
}

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-top: 50px;
  margin-bottom: 24px;
  color: var(--text);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 12px;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  font-size: 1.4em;
  color: var(--accent);
  opacity: 0.9;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 40%;
  height: 3px;
  background: var(--accent-2);
  transition: width 0.3s ease;
}

.section-title:hover::after {
  width: 100%;
}

.mentor-info {
  text-align: center;
  padding: 30px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(126, 240, 193, 0.05), rgba(244, 191, 114, 0.03));
  border-radius: 12px;
  border: 1px solid rgba(126, 240, 193, 0.15);
}

.mentor-info h3 {
  font-size: 1.3rem;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 600;
}

.mentor-info p {
  color: var(--muted);
  margin: 6px 0;
  font-size: 1rem;
}

.project-content p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.team-member {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(126, 240, 193, 0.08), rgba(126, 240, 193, 0.03));
  border-radius: 12px;
  border: 1px solid rgba(126, 240, 193, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.team-member:hover::before {
  transform: scaleX(1);
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(126, 240, 193, 0.25);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(126, 240, 193, 0.12), rgba(126, 240, 193, 0.06));
}

.team-member h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.team-member p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

video {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(126, 240, 193, 0.2);
  transition: all 0.3s ease;
}

video:hover {
  box-shadow: 0 25px 60px rgba(126, 240, 193, 0.3);
  transform: translateY(-2px);
}

/* Light theme adjustments */
html[data-theme="light"] .project-hero {
  background: linear-gradient(135deg, rgba(45, 155, 108, 0.08), rgba(217, 119, 6, 0.05) 100%);
}

html[data-theme="light"] .project-hero::before {
  background: radial-gradient(circle at 20% 50%, rgba(45, 155, 108, 0.1), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(217, 119, 6, 0.08), transparent 50%);
}

html[data-theme="light"] .project-links a {
  background: linear-gradient(135deg, rgba(45, 155, 108, 0.12), rgba(45, 155, 108, 0.06));
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(45, 155, 108, 0.15);
}

html[data-theme="light"] .project-links a:hover {
  background: linear-gradient(135deg, rgba(45, 155, 108, 0.25), rgba(45, 155, 108, 0.12));
  box-shadow: 0 8px 24px rgba(45, 155, 108, 0.3);
}

html[data-theme="light"] .team-member {
  background: linear-gradient(135deg, rgba(45, 155, 108, 0.06), rgba(45, 155, 108, 0.02));
  border-color: rgba(45, 155, 108, 0.15);
}

html[data-theme="light"] .team-member:hover {
  background: linear-gradient(135deg, rgba(45, 155, 108, 0.1), rgba(45, 155, 108, 0.05));
  box-shadow: 0 12px 30px rgba(45, 155, 108, 0.2);
}

html[data-theme="light"] .mentor-info {
  background: linear-gradient(135deg, rgba(45, 155, 108, 0.04), rgba(217, 119, 6, 0.02));
  border-color: rgba(45, 155, 108, 0.15);
}

html[data-theme="light"] video {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-hero {
    padding: 40px 24px;
    margin: 0 12px 30px;
  }

  .project-hero-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }

  .project-hero h1 {
    font-size: 1.8rem;
    margin: 16px 0 12px;
  }

  .project-hero .subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-links {
    gap: 10px;
  }

  .project-links a {
    padding: 10px 16px;
    font-size: 14px;
  }

  .project-content {
    padding: 30px 16px;
  }

  video {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .project-hero h1 {
    font-size: 1.5rem;
  }

  .project-hero .subtitle {
    font-size: 0.95rem;
  }

  .back-link {
    font-size: 14px;
    padding: 6px 12px;
  }

  .team-member {
    padding: 20px 16px;
  }
}
