.projects-hero {
padding: 120px 1.5rem 5rem;
background: var(--bg);
position: relative;
overflow: hidden;
text-align: center;
}
.projects-hero-orb-1 {
position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
width: 500px; height: 300px;
background: radial-gradient(circle, rgba(78,154,26,0.18) 0%, transparent 70%);
top: 0; left: 50%; transform: translateX(-50%);
}
.projects-hero h1 {
font-family: 'Sora', sans-serif;
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 800; color: #fff; line-height: 1.15;
margin-bottom: 1rem; position: relative; z-index: 1;
}
.projects-hero h1 span { color: #34D399; }
.projects-hero p {
color: rgba(255,255,255,0.45); font-size: 16px;
max-width: 520px; margin: 0 auto; position: relative; z-index: 1;
}

/* FILTER BAR */
.filter-bar {
display: flex; gap: 10px; flex-wrap: wrap;
justify-content: center; margin-bottom: 3rem;
}
.filter-btn {
padding: 8px 20px; border-radius: 50px; font-size: 13px;
font-weight: 600; cursor: pointer; transition: all 0.2s;
font-family: 'Sora', sans-serif; border: 1px solid rgba(255,255,255,0.15);
background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.5);
}
.filter-btn:hover { border-color: rgba(52,211,153,0.4); color: #34D399; background: rgba(52,211,153,0.08); }
.filter-btn.active { background: rgba(52,211,153,0.15); border-color: rgba(52,211,153,0.45); color: #34D399; }

/* PROJECTS GRID */
.projects-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
}

/* PROJECT CARD */
.proj-card {
border-radius: 20px; overflow: hidden;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
backdrop-filter: blur(16px);
position: relative;
transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
cursor: pointer; display: block; text-decoration: none;
}
.proj-card::before {
content: ''; position: absolute; inset: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
pointer-events: none; z-index: 0;
}
.proj-card::after {
content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.proj-card:hover {
transform: translateY(-6px) scale(1.02);
box-shadow: 0 24px 60px rgba(78,154,26,0.25), 0 0 0 1px rgba(52,211,153,0.3);
}

/* THUMBNAIL */
.proj-thumb {
width: 100%; aspect-ratio: 16/9;
background: rgba(52,211,153,0.08);
border-bottom: 1px solid rgba(255,255,255,0.07);
display: flex; align-items: center; justify-content: center;
position: relative; overflow: hidden;
}
.proj-thumb img {
width: 100%; height: 100%; object-fit: cover; display: block;
transition: transform 0.4s ease;
}
.proj-card:hover .proj-thumb img { transform: scale(1.05); }
.proj-thumb-icon {
font-size: 3rem; color: rgba(52,211,153,0.4);
position: absolute; /* shown when no image */
}
.proj-thumb-overlay {
position: absolute; inset: 0;
background: linear-gradient(to top, rgba(8,15,8,0.7) 0%, transparent 55%);
opacity: 0; transition: opacity 0.3s;
}
.proj-card:hover .proj-thumb-overlay { opacity: 1; }
.proj-view-hint {
position: absolute; bottom: 12px; right: 14px;
background: rgba(52,211,153,0.85); color: #fff;
font-size: 12px; font-weight: 700; font-family: 'Sora', sans-serif;
padding: 5px 12px; border-radius: 20px;
opacity: 0; transform: translateY(6px); transition: all 0.25s;
}
.proj-card:hover .proj-view-hint { opacity: 1; transform: translateY(0); }

/* CARD BODY */
.proj-body {
padding: 1.5rem; position: relative; z-index: 1;
}
.proj-tags {
display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.85rem;
}
.proj-tag {
font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
font-family: 'Sora', sans-serif; padding: 3px 10px; border-radius: 20px;
background: rgba(52,211,153,0.15); color: #34D399;
border: 1px solid rgba(52,211,153,0.3);
}
.proj-tag.tag-amber { background: rgba(245,158,11,0.15); color: #FBB840; border-color: rgba(245,158,11,0.3); }
.proj-tag.tag-blue  { background: rgba(56,132,255,0.15); color: #82AAFF; border-color: rgba(56,132,255,0.3); }
.proj-tag.tag-purple{ background: rgba(167,139,250,0.15); color: #C4B5FD; border-color: rgba(167,139,250,0.3); }

.proj-body h3 {
font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 800;
color: #fff; margin-bottom: 0.5rem; line-height: 1.35;
}
.proj-body p {
font-size: 13px; color: rgba(255,255,255,0.5);
line-height: 1.7; margin-bottom: 1.25rem;
}
.proj-footer {
display: flex; align-items: center; justify-content: space-between;
border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1rem;
}
.proj-level {
font-size: 12px; color: rgba(255,255,255,0.35);
font-family: 'Sora', sans-serif;
display: flex; align-items: center; gap: 6px;
}
.proj-level i { color: rgba(52,211,153,0.6); font-size: 11px; }
.proj-arrow {
width: 32px; height: 32px; border-radius: 50%;
background: rgba(52,211,153,0.15); color: #34D399;
display: flex; align-items: center; justify-content: center;
transition: transform 0.2s;
}
.proj-card:hover .proj-arrow { transform: translateX(4px); }

/* DIFFICULTY DOTS */
.diff-dots { display: flex; gap: 3px; align-items: center; }
.diff-dot {
width: 7px; height: 7px; border-radius: 50%;
background: rgba(255,255,255,0.15);
}
.diff-dot.lit { background: #34D399; }
.diff-dot.lit-amber { background: #FBB840; }
.diff-dot.lit-red   { background: #F87171; }

/* SECTION LABEL */
.projects-section { padding: 3rem 1.5rem 4rem 1.5rem; }
.proj-section-head { text-align: center; margin-bottom: 3rem; }

/* COMING SOON CARD */
.proj-card.coming-soon {
opacity: 0.55; pointer-events: none;
}
.proj-card.coming-soon .proj-thumb {
background: rgba(255,255,255,0.04);
}
.soon-badge {
position: absolute; top: 1rem; left: 1rem;
background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4);
font-size: 10px; font-weight: 700; font-family: 'Sora', sans-serif;
padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.15);
z-index: 2;
}
.new-badge {
position: absolute; top: 1rem; left: 1rem;
background: rgba(52,211,153,0.2); color: #34D399;
font-size: 10px; font-weight: 700; font-family: 'Sora', sans-serif;
padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(52,211,153,0.4);
z-index: 2;
}

/* RESPONSIVE */
@media (max-width: 1024px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .projects-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px)  { .projects-hero { padding: 100px 1.25rem 3rem; } }


/* ── PROJECT DETAIL PAGE STYLES ── */

.proj-detail-hero {
padding: 110px 1.5rem 4rem;
background: var(--bg);
position: relative; overflow: hidden;
}
.proj-detail-orb {
position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
width: 600px; height: 400px;
background: radial-gradient(circle, rgba(78,154,26,0.15) 0%, transparent 70%);
top: -100px; right: -100px;
}
.proj-detail-hero-inner {
max-width: 800px; margin: 0 auto; position: relative; z-index: 1;
}
.proj-back {
display: inline-flex; align-items: center; gap: 8px;
color: rgba(255,255,255,0.35); font-size: 13px; font-weight: 600;
font-family: 'Sora', sans-serif; text-decoration: none;
margin-bottom: 1.75rem; transition: color 0.2s;
}
.proj-back:hover { color: #34D399; }
.proj-meta-row {
display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
margin-bottom: 1.25rem;
}
.proj-meta-tag {
font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
font-family: 'Sora', sans-serif; padding: 4px 12px; border-radius: 20px;
background: rgba(52,211,153,0.15); color: #34D399;
border: 1px solid rgba(52,211,153,0.3);
}
.proj-meta-tag.amber { background: rgba(245,158,11,0.15); color: #FBB840; border-color: rgba(245,158,11,0.3); }
.proj-meta-level {
font-size: 12px; color: rgba(255,255,255,0.35);
font-family: 'Sora', sans-serif;
display: flex; align-items: center; gap: 6px;
}
.proj-detail-hero h1 {
font-family: 'Sora', sans-serif;
font-size: clamp(1.75rem, 4vw, 2.6rem);
font-weight: 800; color: #fff; line-height: 1.2;
margin-bottom: 1rem;
}
.proj-detail-hero p.lead {
font-size: 16px; color: rgba(255,255,255,0.5); line-height: 1.75;
max-width: 640px;
}

/* HERO IMAGE */
.proj-cover {
max-width: 800px; margin: 2.5rem auto 0;
border-radius: 20px; overflow: hidden;
border: 1px solid rgba(255,255,255,0.1);
position: relative; z-index: 1;
}
.proj-cover img {
width: 100%; display: block; max-height: 420px; object-fit: cover;
}

/* STAT PILLS */
.proj-stats {
display: flex; flex-wrap: wrap; gap: 12px;
margin-top: 1.75rem;
}
.proj-stat {
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 10px; padding: 8px 16px;
font-size: 13px; font-family: 'Sora', sans-serif;
}
.proj-stat i { color: #34D399; font-size: 14px; }
.proj-stat span { color: rgba(255,255,255,0.55); }
.proj-stat strong { color: #fff; font-weight: 700; }

/* CONTENT AREA */
.proj-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

/* SECTION BLOCKS */
.proj-section {
margin-bottom: 3.5rem;
}
.proj-section-label {
display: flex; align-items: center; gap: 10px;
margin-bottom: 1.25rem;
}
.proj-section-icon {
width: 36px; height: 36px; border-radius: 10px;
background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.3);
display: flex; align-items: center; justify-content: center;
color: #34D399; font-size: 14px; flex-shrink: 0;
}
.proj-section-label h2 {
font-family: 'Sora', sans-serif; font-size: 1.15rem; font-weight: 800; color: #fff;
}

.proj-body-text {
font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.8;
}
.proj-body-text p { margin-bottom: 0.75rem; }
.proj-body-text strong { color: rgba(255,255,255,0.8); }

/* APPARATUS / PARTS TABLE */
.parts-table { width: 100%; border-collapse: collapse; }
.parts-table th {
font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700;
letter-spacing: 0.08em; text-transform: uppercase;
color: rgba(255,255,255,0.35); padding: 0 1rem 10px 0; text-align: left;
border-bottom: 1px solid rgba(255,255,255,0.08);
}
.parts-table td {
padding: 10px 1rem 10px 0;
font-size: 14px; color: rgba(255,255,255,0.65);
border-bottom: 1px solid rgba(255,255,255,0.05);
vertical-align: top;
}
.parts-table td:first-child { color: #fff; font-weight: 500; }
.parts-table td .qty-badge {
display: inline-block; background: rgba(52,211,153,0.15);
color: #34D399; border: 1px solid rgba(52,211,153,0.3);
font-size: 11px; font-weight: 700; font-family: 'Sora', sans-serif;
padding: 2px 8px; border-radius: 6px;
}
.parts-table tr:last-child td { border-bottom: none; }

/* STEPS */
.steps-list { display: flex; flex-direction: column; gap: 1.5rem; }
.step-item {
display: flex; gap: 1.25rem; align-items: flex-start;
}
.step-num-circle {
width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.35);
color: #34D399; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 800;
display: flex; align-items: center; justify-content: center;
margin-top: 2px;
}
.step-item-body h4 {
font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700;
color: #fff; margin-bottom: 0.35rem;
}
.proj-section h3 {
font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700;
color: #fff; margin-bottom: 0.35rem;
}
.step-item-body p {
font-size: 16px; color: #A8B4C0; line-height: 1.7; margin: 0;
}

/* IMAGE GRID */
.proj-img-grid {
display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
margin-top: 1.5rem;
}
.proj-img-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.proj-img-item {
border-radius: 14px; overflow: hidden;
border: 1px solid rgba(255,255,255,0.1);
background: rgba(255,255,255,0.04);
}
.proj-img-item img {
width: 100%; display: block; object-fit: cover;
aspect-ratio: 4/3; transition: transform 0.3s;
}
.proj-img-item:hover img { transform: scale(1.04); }
.proj-img-caption {
padding: 8px 12px; font-size: 12px;
color: rgba(255,255,255,0.35); font-style: italic;
border-top: 1px solid rgba(255,255,255,0.06);
}

/* DIAGRAM PLACEHOLDER */
.diagram-placeholder {
border-radius: 16px; border: 1px dashed rgba(52,211,153,0.3);
background: rgba(52,211,153,0.04);
padding: 3rem; text-align: center; margin-top: 1.5rem;
}
.diagram-placeholder i { font-size: 2.5rem; color: rgba(52,211,153,0.3); margin-bottom: 0.75rem; display: block; }
.diagram-placeholder p { font-size: 13px; color: rgba(255,255,255,0.25); margin: 0; }

/* VIDEO EMBED */
.video-wrap {
border-radius: 16px; overflow: hidden;
border: 1px solid rgba(255,255,255,0.1);
margin-top: 1.5rem;
background: #000;
}
.video-wrap iframe {
width: 100%; height: 420px; display: block; border: none;
}

/* DIVIDER */
.proj-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 3rem 0; }

/* NEXT / PREV NAV */
.proj-nav-footer {
display: flex; justify-content: space-between; align-items: center;
padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.08);
gap: 1rem; flex-wrap: wrap;
}
.proj-nav-btn {
display: flex; align-items: center; gap: 10px;
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
border-radius: 12px; padding: 12px 18px; text-decoration: none;
transition: all 0.2s; font-family: 'Sora', sans-serif;
}
.proj-nav-btn:hover { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.3); }
.proj-nav-btn-label { font-size: 11px; color: rgba(255,255,255,0.3); display: block; margin-bottom: 2px; }
.proj-nav-btn-title { font-size: 14px; font-weight: 700; color: #fff; }
.proj-nav-btn i { color: #34D399; }
pre {
  background: #0f172a;
  color: #34D399;
  padding: 1rem;
  border-radius: 14px;
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
}
pre code {
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
.proj-detail-hero { padding: 100px 1.25rem 3rem; }
.proj-content { padding: 2rem 1.25rem 4rem; }
.video-wrap iframe { height: 240px; }
.proj-img-grid { grid-template-columns: 1fr; }
.proj-img-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
.proj-nav-footer { flex-direction: column; }
.proj-nav-btn { width: 100%; }
}
@media (max-width: 480px) {
.proj-stats { flex-direction: column; }
.proj-img-grid.cols-3 { grid-template-columns: 1fr; }
}

/* SUBSCRIPTION GATE */
.gate-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; backdrop-filter: blur(6px); padding: 1.5rem;
}
.gate-modal {
  background: #0f1a0f; border: 1px solid rgba(52,211,153,0.25);
  border-radius: 24px; padding: 2rem; width: 100%; max-width: 400px; position: relative;
}
.gate-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #34D399; font-size: 20px; margin-bottom: 1.25rem;
}
.gate-modal h2 { font-family:'Sora',sans-serif; font-size:1.1rem; font-weight:800; color:#fff; margin-bottom:0.5rem; }
.gate-modal p  { font-size:13px; color:rgba(255,255,255,0.45); line-height:1.65; margin-bottom:1.5rem; }
.gate-modal input {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 11px 14px; color: #fff;
  font-size: 14px; font-family:'Sora',sans-serif; outline: none; margin-bottom: 1rem;
}
.gate-modal input:focus { border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.05); }
.gate-modal input::placeholder { color: rgba(255,255,255,0.25); }
.gate-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  background: rgba(52,211,153,0.2); border: 1px solid rgba(52,211,153,0.4);
  color: #34D399; font-family:'Sora',sans-serif; font-weight:700; font-size:14px;
  cursor: pointer; transition: all 0.2s;
}
.gate-btn:hover { background: rgba(52,211,153,0.3); }
.gate-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.gate-spinner {
  display: none; width: 18px; height: 18px; margin: 0.75rem auto 0;
  border: 2px solid rgba(52,211,153,0.3); border-top-color: #34D399;
  border-radius: 50%; animation: gspin 0.7s linear infinite;
}
@keyframes gspin { to { transform: rotate(360deg); } }
.gate-msg { margin-top: 1rem; padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; font-family:'Sora',sans-serif; }
.gate-msg.success { background:rgba(52,211,153,0.12); border:1px solid rgba(52,211,153,0.3); color:#34D399; }
.gate-msg.error   { background:rgba(239,68,68,0.1);   border:1px solid rgba(239,68,68,0.25);  color:#F87171; }
.gate-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.08); border: none; color: rgba(255,255,255,0.4);
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.gate-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.gate-footer { margin-top: 1.25rem; text-align: center; font-size: 12px; color: rgba(255,255,255,0.25); }
.gate-footer a { color: rgba(52,211,153,0.7); text-decoration: none; }

.lock-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: red; color: white;
  font-size: 10px; font-weight: 700; font-family: 'Sora', sans-serif;
  padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(245,158,11,0.3);
  z-index: 2; display: flex; align-items: center; gap: 5px;
}

.proj-section a {
  text-decoration: none; color: #34D399;
}

.proj-content ul {
  padding-left: 40px;
}

/* COMPARE TABLE */
.proj-table {
width: 100%; border-collapse: collapse; margin: 2rem 0;
border-radius: 16px; overflow: hidden;
}
.proj-table thead tr { background: rgba(52,211,153,0.12); }
.proj-table th {
font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
letter-spacing: 0.06em; text-transform: uppercase;
color: #34D399; padding: 12px 16px; text-align: left;
}
.proj-table td {
padding: 11px 16px; font-size: 14px; color: rgba(255,255,255,0.6);
border-bottom: 1px solid rgba(255,255,255,0.05);
vertical-align: top;
}
.proj-table td:first-child { color: rgba(255,255,255,0.85); font-weight: 500; }
.proj-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.proj-table tbody tr:last-child td { border-bottom: none; }