/* 
  Project-specific styles that extend the main site styles
  Works seamlessly with your existing style.css
  Use with: <link rel="stylesheet" href="/static/project-styles.css">
*/

/* Project Breadcrumb - matches your main page style */
.project-breadcrumb {
  margin-bottom: 30px;
}

.project-breadcrumb .breadcrumb {
  background: rgba(255,255,255,0.9);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  margin-bottom: 0;
}

.project-breadcrumb .breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-breadcrumb .breadcrumb-item a:hover {
  color: var(--accent-color);
}

.project-breadcrumb .breadcrumb-item.active {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Project Title and Hero Content */
.project-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.project-subtitle {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Technology Stack Badges - Enhanced version of your badge-skill */
.project-tech-stack {
  margin-bottom: 30px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 5px 8px 5px 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.3);
}

.tech-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 27, 42, 0.4);
}

.tech-badge:hover::before { 
  left: 100%; 
}

/* Technology-specific colors */
.tech-python { 
  background: linear-gradient(135deg, #3776ab, #ffd43b); 
  color: #fff;
}

.tech-fastapi { 
  background: linear-gradient(135deg, #009688, #00bcd4); 
}

.tech-postgresql { 
  background: linear-gradient(135deg, #336791, #4db8ff); 
}

.tech-docker { 
  background: linear-gradient(135deg, #0db7ed, #2496ed); 
}

.tech-ai { 
  background: linear-gradient(135deg, #ff6b6b, #ee5a24); 
}

.tech-mcp {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* ===================== */
/* Extra Technology Colors */
/* ===================== */

/* --- Java & Spring Boot --- */
.tech-java {
  background: linear-gradient(135deg, #f89820, #b07219);
  color: #fff;
}

.tech-springboot {
  background: linear-gradient(135deg, #6db33f, #4caf50);
  color: #fff;
}

.tech-maven {
  background: linear-gradient(135deg, #c71a36, #911c24);
  color: #fff;
}

.tech-restapi {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
}

.tech-oop {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  color: #fff;
}

/* --- Portfolio Website --- */
.tech-html {
  background: linear-gradient(135deg, #e34c26, #f06529);
  color: #fff;
}

.tech-css {
  background: linear-gradient(135deg, #264de4, #2965f1);
  color: #fff;
}

.tech-js {
  background: linear-gradient(135deg, #f7df1e, #f39c12);
  color: #000;
}

.tech-bootstrap {
  background: linear-gradient(135deg, #563d7c, #7952b3);
  color: #fff;
}

.tech-aws {
  background: linear-gradient(135deg, #ff9900, #ff6600);
  color: #fff;
}

/* --- BST Parser --- */
.tech-datastructures {
  background: linear-gradient(135deg, #16a085, #1abc9c);
  color: #fff;
}

.tech-algorithms {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  color: #fff;
}

.tech-csv {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
}

.tech-cli {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #fff;
}

/* --- Inventory Tracker --- */
.tech-sqlite {
  background: linear-gradient(135deg, #003b57, #00758f);
  color: #fff;
}

.tech-sql {
  background: linear-gradient(135deg, #006699, #0099cc);
  color: #fff;
}

.tech-flask {
  background: linear-gradient(135deg, #000000, #333333);
  color: #fff;
}

.tech-jinja {
  background: linear-gradient(135deg, #b52e31, #e34f26);
  color: #fff;
}

/* Project Links - matches your btn-custom style */
.project-links {
  margin-bottom: 40px;
}

.project-links .btn {
  margin-right: 15px;
  margin-bottom: 10px;
}

/* Project Image Container */
.project-image-container {
  text-align: center;
}

.project-image-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.project-image-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-color: var(--accent-color);
}

/* Content Sections - using your section-container styling */
.content-section {
  margin-bottom: 50px;
  margin-top: 60px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  position: relative;
  display: block;
  text-align: left;
  width: 100%;
}


.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Content Cards - enhanced version of your card styling */
.content-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Problem Highlight */
.problem-highlight {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
}

.problem-highlight h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Challenge Items */
.challenge-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.challenge-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.challenge-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.challenge-content h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
}

.feature-content h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-content p {
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Roadmap */
.roadmap-list {
  margin-top: 20px;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  margin-bottom: 20px;
  background: white;
  border-radius: 15px;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.roadmap-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.roadmap-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.roadmap-content h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Impact Statistics */
.conclusion-content {
  text-align: left;
}

.impact-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
  flex-wrap: wrap;
  text-align: center;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* Project Sidebar */
.project-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.sidebar-card h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

/* Project Info List */
.project-info-list {
  margin-top: 15px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--secondary-color);
}

.info-value {
  color: var(--primary-color);
  font-weight: 500;
}

.project-status-active {
  background: linear-gradient(135deg, var(--success-color), #20c997);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Tech Categories */
.tech-category {
  margin-bottom: 20px;
}

.tech-category h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  border-left: 3px solid var(--accent-color);
  padding-left: 10px;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-item {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Navigation Links */
.nav-links {
  margin-top: 15px;
}

.nav-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.nav-link-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.nav-link-item i {
  width: 16px;
  text-align: center;
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
}

.cta-card h3 {
  color: white;
  border-bottom: 2px solid rgba(255,255,255,0.3);
}

.cta-card p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.cta-card .btn {
  background: white;
  color: var(--primary-color);
  border: none;
  font-weight: 600;
}

.cta-card .btn:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  
  .project-breadcrumb {
    display: none !important;
  }

  .project-title {
    font-size: 2.2rem;
    text-align: center;
  }
  
  .project-subtitle {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .project-tech-stack {
    text-align: center;
  }
  
  .tech-badge {
    font-size: 0.8rem;
    padding: 8px 15px;
    margin: 4px;
  }
  
  .project-links {
    text-align: center;
  }
  
  .project-links .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-item {
    padding: 15px;
  }
  
  .impact-stats {
    gap: 30px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .project-sidebar {
    position: static;
    top: auto;
    margin-top: 30px;
  }
  
  .sidebar-card {
    padding: 20px;
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .challenge-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 20px 15px;
  }

  .challenge-item .challenge-icon {
    margin: 0;
  }

  .challenge-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .challenge-content h4 {
    font-size: 1.3rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .challenge-content p {
    text-align: center;
    width: 100%;
    margin: 0;
  }
  
  .roadmap-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 20px 15px;
  }

  .roadmap-item .roadmap-icon {
    margin: 0;
  }

  .roadmap-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .roadmap-content h4 {
    font-size: 1.3rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .roadmap-content p {
    text-align: center;
    width: 100%;
    margin: 0;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.7rem;
    text-align: left;
  }

  .roadmap-item {
    flex-direction: row;  
    align-items: center;
    gap: 6px;
  }

  .roadmap-content h4 {
    font-size: 0.9rem;     
    white-space: normal;
    word-break: break-word;
  }

  .content-card {
    padding: 20px;
  }
  
  .project-image-placeholder {
    height: 200px;
  }
  
  .tech-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .sidebar-card {
    padding: 15px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  .project-links,
  .nav-links {
    display: none !important;
  }
  
  .content-card,
  .sidebar-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}