/* ============================================
   PROJECT DETAIL PAGE STYLES
   ============================================ */

/* CSS Variables Fallback */
:root {
  --color-bg: #0a0e27;
  --color-white: #ffffff;
  --color-primary: #36b8cc;
  --color-secondary: #43D4B6;
  --color-accent: #53E0E7;
}

/* Fix for body and container */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ensure proper spacing for fixed header */
.project-hero {
  margin-top: 0;
}

/* Fix container max-width if needed */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Project Hero Section */
.project-hero {
  padding: 160px 0 60px;
  background: linear-gradient(135deg, #0a1128 0%, #1a2332 100%);
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(54, 184, 204, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(67, 212, 182, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #43D4B6;
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb .current {
  color: var(--color-white);
  font-weight: 600;
}

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

.project-category-tag {
  margin-bottom: 1.5rem;
}

.category-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(67, 212, 182, 0.15), rgba(83, 224, 231, 0.15));
  border: 1px solid rgba(67, 212, 182, 0.3);
  border-radius: 50px;
  color: #43D4B6;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #43D4B6, #53E0E7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.project-hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
}

/* Project Image Section */
.project-image-section {
  padding: 60px 0;
  background: var(--color-bg);
}

.project-main-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-main-image .image-placeholder {
  width: 100%;
  height: 600px;
  background: linear-gradient(135deg, #36b8cc 0%, #43D4B6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-main-image .placeholder-icon {
  font-size: 8rem;
}

/* Project Sections */
.project-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.section-gray {
  background: linear-gradient(135deg, #0a1128 0%, #151e32 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #43D4B6, #53E0E7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Project Overview */
.project-overview {
  max-width: 900px;
  margin: 0 auto;
}

.overview-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

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

.requirement-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.requirement-card:hover {
  background: rgba(67, 212, 182, 0.05);
  border-color: rgba(67, 212, 182, 0.3);
  transform: translateY(-5px);
}

.requirement-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.requirement-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.requirement-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Tech Stack */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.tech-category {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.tech-category-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tech-category-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #43D4B6, #53E0E7);
  border-radius: 2px;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Features Section */
.features-category {
  margin-bottom: 4rem;
}

.features-category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(67, 212, 182, 0.3);
}

.category-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(67, 212, 182, 0.2), rgba(83, 224, 231, 0.2));
  border-radius: 12px;
  border: 1px solid rgba(67, 212, 182, 0.3);
}

.category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
}

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

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(67, 212, 182, 0.05);
  border-color: rgba(67, 212, 182, 0.3);
  transform: translateX(5px);
}

.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* User Roles */
.user-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.role-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.role-card:hover {
  background: rgba(67, 212, 182, 0.05);
  border-color: rgba(67, 212, 182, 0.3);
  transform: translateY(-5px);
}

.role-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.role-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(67, 212, 182, 0.2), rgba(83, 224, 231, 0.2));
  border-radius: 10px;
  flex-shrink: 0;
}

.role-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  flex: 1;
}

.role-badge {
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, rgba(67, 212, 182, 0.2), rgba(83, 224, 231, 0.2));
  border: 1px solid rgba(67, 212, 182, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #43D4B6;
}

.role-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.role-features li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.role-features li:last-child {
  border-bottom: none;
}

.role-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #43D4B6;
  font-weight: bold;
}

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

.result-card {
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.result-card:hover {
  background: rgba(67, 212, 182, 0.05);
  border-color: rgba(67, 212, 182, 0.3);
  transform: scale(1.05);
}

.result-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #43D4B6, #53E0E7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.result-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a1128 0%, #1a2332 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(67, 212, 182, 0.1) 0%, transparent 70%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #43D4B6, #53E0E7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .requirements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .project-hero-title {
    font-size: 2.5rem;
  }
  
  .project-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .tech-categories {
    grid-template-columns: 1fr;
  }
  
  .user-roles {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .project-hero {
    padding: 100px 0 40px;
  }
  
  .project-hero-title {
    font-size: 2rem;
  }
  
  .project-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .project-meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .requirements-grid {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}
