@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080c10;
  --bg2: #0d1117;
  --surface: #111820;
  --surface2: #182030;
  --accent: #00e5ff;
  --text: #f0f4fa;
  --text-muted: #8a97ab;
  --border: rgba(255,255,255,0.07);
  --radius: 16px;
  --font: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #7c3aed; border-radius: 2px; }

.container { width: min(90%, 1100px); margin: auto; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,16,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-content {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
}
header h1 {
  font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
nav ul { list-style: none; display: flex; gap: 4px; }
nav ul li a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 7px 13px; border-radius: 8px;
  transition: all 0.2s ease;
}
nav ul li a:hover { color: var(--text); background: var(--surface); }

/* ── HERO BANNER ── */
.project-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.project-hero::before {
  content: '';
  position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.back-link::before { content: '←'; }

.project-hero-tag {
  display: inline-block;
  background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.2);
  color: var(--accent); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 100px; margin-bottom: 20px;
}
.project-hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 18px;
}
.project-hero p.subtitle {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 620px; line-height: 1.8;
}

/* ── LAYOUT ── */
.project-body { padding: 60px 0 100px; }

.project-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ── SECTIONS ── */
.project-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 28px;
  transition: border-color 0.3s ease;
}
.project-section:hover { border-color: rgba(0,229,255,0.15); }

.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.project-section h2 {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 18px; letter-spacing: -0.01em;
}
.project-section p {
  font-size: 0.97rem; color: var(--text-muted);
  line-height: 1.8; font-weight: 400;
}

/* ── TECH SIDEBAR ── */
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky; top: 88px;
}
.tech-card h3 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.tech-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
}
.tech-list li {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem; font-weight: 600;
  padding: 7px 14px; border-radius: 8px;
  transition: all 0.2s ease; cursor: default;
}
.tech-list li:hover {
  border-color: rgba(0,229,255,0.3);
  color: var(--accent);
  background: rgba(0,229,255,0.06);
}

/* ── LIVE LINK BUTTON ── */
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; text-decoration: none;
  background: var(--accent); color: #000;
  font-weight: 700; font-size: 0.88rem;
  padding: 12px 24px; border-radius: 10px;
  transition: all 0.25s ease;
}
.project-link::after { content: '↗'; }
.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,229,255,0.3);
}

/* ── GALLERY ── */
#gallery { padding: 60px 0 100px; }
.gallery-header { margin-bottom: 32px; }
.gallery-header .section-label { display: block; }
.gallery-header h2 {
  font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: block;
}
.gallery img:hover {
  transform: scale(1.03);
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* ── FOOTER ── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 28px 20px; text-align: center;
  color: var(--text-muted); font-size: 0.85rem;
}
footer span { color: var(--accent); }

@media (max-width: 768px) {
  .project-grid { grid-template-columns: 1fr; }
  .tech-card { position: static; }
  nav ul li a { padding: 6px 8px; font-size: 0.78rem; }
}
