:root {
  --primary: #0EA5E9;
  --secondary: #F8FAFC;
  --accent: #0F172A;
  --hero-overlay: rgba(15,23,42,0.85);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ================= HERO ================= */
.portfolio-hero {
  min-height: 85vh;
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
              url('services bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  color: #fff;
}
.portfolio-hero h1 { 
  font-size: 48px; 
  font-weight: 700; 
  line-height: 1.2; 
  margin-bottom: 20px; 
  font-family: var(--font-heading);
}
.portfolio-hero p { 
  font-size: 18px; 
  line-height: 1.8; 
  margin-bottom: 30px; 
  color: #CBD5E1; 
  font-family: var(--font-body);
}
.hero-btn { 
  display: inline-block; 
  padding: 14px 32px; 
  background: var(--primary); 
  color: #fff; 
  border-radius: 8px; 
  text-decoration: none; 
  font-weight: 600; 
  box-shadow: 0 8px 25px rgba(14,165,233,0.4); 
  transition: 0.3s ease;
}
.hero-btn:hover { background: #0284C7; }

/* ================= TREND PORTFOLIO ================= */
.trend-portfolio { width: 100%; }

/* Portfolio Block Layout */
.portfolio-block {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 100px 20px;
}

.portfolio-block.even-block { 
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('services bg.png') center/cover no-repeat;
  color: #fff;
}

.portfolio-content {
  max-width: 900px;
  width: 100%;
  padding: 60px 40px 40px; /* added top padding to avoid badge overlap */
  border-radius: 12px;
  position: relative;
}

/* Project Top Right Status Badge */
.project-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.project-top-right.active { background: #22c55e; }
.project-top-right.closed { background: #ef4444; }
.project-top-right.coming { background: #facc15; color: #000; }

/* ================= Left Status Bar ================= */
.status-bar {
  position: absolute;
  left: 10px;  
  top: 10px;   /* start lower to avoid overlap */
  bottom: 0;
  width: 6px;
  display: flex;
  align-items: flex-start; 
}

.status-line {
  width: 6px;
  flex: 1;
  background: #e5e7eb;
  position: relative;
  border-radius: 3px;
}

.status-point {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
}

.status-point.active { background: #22c55e; }
.status-point.closed { background: #ef4444; }
.status-point.coming { background: #facc15; }

/* ================= Headings and Paragraphs ================= */
.content-inner h2 { font-size: 32px; margin-bottom: 20px; font-family: var(--font-heading);}
.content-inner p { font-size: 16px; line-height: 1.8; margin-bottom: 30px;}

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
.tech-box { 
  background: rgba(255,255,255,0.1); 
  padding: 15px; 
  border-radius: 10px; 
  transition: 0.3s ease; 
}
.portfolio-block:not(.even-block) .tech-box { 
  background: #F1F5F9; 
  color: #334155;
}
.tech-box:hover { background: rgba(255,255,255,0.2);}
.tech-box strong { display: block; font-size: 13px; color: var(--primary); margin-bottom: 5px; }

/* Buttons */
.btn-primary { display: inline-block; padding: 12px 28px; background: var(--primary); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.3s ease;}
.btn-primary:hover { background: #0284C7; }
.btn-light { background: rgba(255,255,255,0.3); }
.btn-light:hover { background: rgba(255,255,255,0.5); }

/* Project Duration */
.project-duration {
  display: flex;
  gap: 20px;
  font-size: 14px;
  margin-top: 20px;
  font-weight: 500;
  color: #64748b;
}
.portfolio-block.even-block .project-duration { color: #fff; }

/* ================= Responsive Adjustments ================= */
@media(max-width: 992px){
  .portfolio-block { padding: 60px 20px; }
  .content-inner h2 { font-size: 28px; }
  .content-inner p { font-size: 15px; }
  .status-bar { left: 15px; top: 30px; }
}

@media(max-width: 576px){
  .portfolio-block { padding: 40px 15px; }
  .content-inner h2 { font-size: 24px; }
  .content-inner p { font-size: 14px; }
  .tech-grid { grid-template-columns: 1fr; }
  .status-bar { left: 15px; top: 40px; }
  .project-top-right { top: 10px; right: 10px; font-size: 12px; padding: 4px 10px; }
}
