/* Project details standalone page styles */
/* Google Fonts (optional): Inter for modern UI) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
  --primary: #6366f1;
  --primary-2: #ec4899;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --ring: rgba(99,102,241,0.25);
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #fff);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Offset for fixed site header from style.css (7rem high) */
  padding-top: 7rem;
}
img { max-width: 100%; display: block; }

/* Let header grow if nav wraps so items are not clipped by fixed height */
header { min-height: 7rem; height: auto; }

/* Header */
.project-header {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.live-demo-btn {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 12px 16px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 22px rgba(99,102,241,0.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.live-demo-btn:hover { transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 18px 34px rgba(99,102,241,0.45); }

/* Container */
.project-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  gap: 28px;
}

/* Only one column for now, but keep structure for future media section */
.project-details {
  flex: 1 1 auto;
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.project-details h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  font-weight: 800;
}

.project-details h3 {
  margin: 24px 0 12px;
  font-size: 1.4rem;
  font-weight: 800;
}

.project-details p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.project-details ul {
  margin: 0 0 8px 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Screenshots block */
.project-screenshots {
  margin-top: 18px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-screenshots p {
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin: 2px 0 6px;
}

.project-image-gallery {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  border: 1px solid #e5e7eb;
}

/* Tech tags */
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.tech-tag {
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,0.10);
  color: #1f2937;
  border: 1px solid var(--ring);
  font-weight: 600;
}

/* Links */
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link-btn {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.2rem;
  padding: 10px 14px; border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.github-btn { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 22px rgba(99,102,241,0.35); }
.github-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(99,102,241,0.45); }
.back-btn { color: #0f172a; background: #fff; border: 1px solid #e5e7eb; }
.back-btn:hover { background: #f8fafc; box-shadow: var(--shadow); }

/* Footer */
.project-footer { max-width: 1100px; margin: 20px auto 40px; padding: 0 20px; color: var(--muted); text-align: center; }

/* Responsive */
@media (max-width: 1100px) {
  /* Let desktop nav wrap if space is tight */
  header .navbar ul { flex-wrap: wrap; gap: 12px; }
  header .navbar ul li a { font-size: 1.45rem; padding: 0.6rem 1rem; }
  /* Bump content offset a bit if header grows */
  body { padding-top: 9rem; }
}

@media (max-width: 900px) {
  .project-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .project-container { flex-direction: column; }
}

@media (max-width: 768px) {
  /* Slightly smaller logo on small screens to keep navbar visible */
  header .logo img { height: 32px; margin-right: 8px; }
  /* Keep header offset a touch larger when mobile nav toggles */
  body { padding-top: 7.5rem; }
}

@media (max-width: 600px) {
  .project-details { padding: 18px; }
  .live-demo-btn { width: 100%; text-align: center; }
}