/* ==========================================================================
   PROJECT.CSS - CASE STUDY DETAIL
   ========================================================================== */

.cs-hero { padding: 8rem 0 6rem; position: relative; overflow: hidden; margin-bottom: 4rem; border-bottom: 1px solid var(--border-color); }
.cs-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px); background-size: 30px 30px; opacity: 0.3; pointer-events: none; z-index: 1; }
.cs-hero::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, var(--bg) 0%, transparent 100%); z-index: 1; }

.cs-hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; text-align: center; }

.back-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 3rem; color: var(--fg-muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.5rem; border-radius: 9999px; background: rgba(1, 26, 45, 0.5); border: 1px solid var(--border-color); backdrop-filter: blur(10px); transition: all 0.3s ease; }
.back-btn:hover { color: white; border-color: var(--accent); transform: translateY(-2px); background: var(--accent); }

.cs-tags { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.cs-tag { padding: 0.5rem 1.2rem; border-radius: 8px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(1, 26, 45, 0.6); border: 1px solid var(--border-color); backdrop-filter: blur(5px); color: white; }
.client-tag { border-color: var(--accent); color: var(--fg-muted); }
.client-tag strong { color: white; }

.cs-title { font-size: clamp(3rem, 7vw, 5rem); font-weight: 900; margin-bottom: 1.5rem; line-height: 1.1; letter-spacing: -0.03em; color: #ffffff; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.cs-subtitle { font-size: 1.3rem; color: rgba(255,255,255,0.8); line-height: 1.6; max-width: 700px; margin: 0 auto; font-weight: 500; }

/* Main Layout */
.cs-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4rem; padding-bottom: 6rem; align-items: start; }
.cs-narrative { display: flex; flex-direction: column; gap: 4rem; }
.cs-section { position: relative; padding-left: 3rem; border-left: 2px solid var(--border-color); }

.section-icon { position: absolute; left: -1.4rem; top: -0.2rem; width: 2.8rem; height: 2.8rem; font-size: 1.2rem; background: var(--bg); border: 2px solid var(--border-color); display: grid; place-items: center; border-radius: 50%; z-index: 2; transition: all 0.3s ease; color: var(--fg); }
.cs-section:hover .section-icon { border-color: var(--accent); transform: scale(1.1); box-shadow: 0 0 15px var(--accent-glow); color: var(--accent); }

.cs-section h2 { font-size: 2rem; font-weight: 900; margin: 0 0 1.5rem 0; color: var(--fg); letter-spacing: -0.01em; }
.cs-section p { font-size: 1.15rem; line-height: 1.8; color: var(--fg-muted); margin: 0; }

.result-section { border-left-color: var(--success); background: linear-gradient(to right, rgba(16, 185, 129, 0.05), transparent); padding: 2rem 2rem 2rem 3rem; border-radius: 0 16px 16px 0; margin-left: -2px; }
.result-section .section-icon { border-color: var(--success); background: rgba(16, 185, 129, 0.1); color: var(--success); }
.result-section h2 { color: var(--success); }
.result-section p { color: var(--fg); font-weight: 500; }

/* Sidebar */
.cs-sidebar { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 2rem; }
.cs-info-card { padding: 2.5rem; border-radius: 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); }
.cs-info-card h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); color: var(--fg); }
.info-block { margin-bottom: 2rem; }
.info-block:last-child { margin-bottom: 0; }
.info-block strong { display: block; color: var(--fg-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-weight: 800; }

.tech-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tech-chip { padding: 0.5rem 1rem; background: var(--bg); border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.9rem; font-weight: 700; color: var(--fg); transition: all 0.2s; }
.tech-chip:hover { border-color: var(--accent); color: white; background: var(--accent); transform: translateY(-2px); }

.btn-visit-live { display: flex; align-items: center; justify-content: center; gap: 0.8rem; width: 100%; padding: 1.2rem; background: var(--accent); color: white; font-weight: 800; font-size: 1rem; text-decoration: none; border-radius: 12px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; box-shadow: 0 4px 15px var(--accent-glow); }
.btn-visit-live:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--accent-glow); }
.btn-visit-live svg { transition: transform 0.3s; }
.btn-visit-live:hover svg { transform: translate(4px, -4px); }

.cs-promo { padding: 2.5rem; border-radius: 16px; background: linear-gradient(145deg, var(--bg-secondary), rgba(238, 0, 90, 0.05)); border: 1px solid var(--border-color); text-align: center; position: relative; overflow: hidden; }
.cs-promo::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.cs-promo h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 1rem; color: var(--fg); }
.cs-promo p { color: var(--fg-muted); font-size: 1rem; line-height: 1.6; margin-bottom: 2rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.gallery-item { padding: 0.5rem !important; overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: auto; border-radius: 8px; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.03); }

@media (max-width: 1024px) { .cs-grid { grid-template-columns: 1fr; gap: 4rem; } .cs-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; } .cs-hero { padding: 6rem 1rem 4rem; } }
@media (max-width: 768px) { .cs-sidebar { grid-template-columns: 1fr; } .cs-section { padding-left: 2rem; } .section-icon { width: 2rem; height: 2rem; font-size: 1rem; left: -1rem; } .cs-title { font-size: 2.5rem; } }