/*
  Global cyberpunk-inspired styles
  - Dark base with neon accent colors
  - Smooth spacing inspired by Apple design language
  - Shared by landing and app detail template
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Orbitron:wght@500;700&display=swap');

:root {
  --bg: #05010A;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ebf0;
  --muted: #b1b8c6;
  --cyan: #00FFF6;
  --magenta: #FF00E6;
  --purple: #9B00FF;
  --gradient: linear-gradient(135deg, rgba(0, 255, 246, 0.1), rgba(255, 0, 230, 0.08), rgba(155, 0, 255, 0.12));
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 255, 246, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(0, 255, 246, 0.08), transparent 25%),
              radial-gradient(circle at 85% 10%, rgba(255, 0, 230, 0.07), transparent 25%),
              radial-gradient(circle at 50% 80%, rgba(155, 0, 255, 0.06), transparent 25%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 32px 0 72px;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav-brand {
  font-family: 'Orbitron', 'Inter', sans-serif;
  letter-spacing: 1px;
  color: var(--cyan);
  font-size: 1rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-links .nav-label {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 160ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.nav-links a:hover {
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 255, 246, 0.5), 0 0 24px rgba(0, 255, 246, 0.25);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 44px 0 64px;
  text-align: center;
}

.hero h1 {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 1px;
  margin: 0 0 16px;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 255, 246, 0.35);
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Section heading */
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: 'Orbitron', 'Inter', sans-serif;
  letter-spacing: 1px;
  color: var(--text);
}

.section-title::before {
  content: '';
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px rgba(0, 255, 246, 0.4);
}

/* Projects grid */
.projects {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 246, 0.5);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 255, 246, 0.25);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(0, 255, 246, 0.15), rgba(255, 0, 230, 0.12));
  opacity: 0;
  transition: opacity 200ms ease;
}

.card:hover::after {
  opacity: 0.4;
}

.placeholder-img {
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(0, 255, 246, 0.2), rgba(155, 0, 255, 0.2), rgba(255, 0, 230, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 1.15rem;
  color: var(--text);
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.meta-label {
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: 600;
}

.meta-copy {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.card a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: color 160ms ease, text-shadow 200ms ease;
}

.card a:hover {
  color: var(--magenta);
  text-shadow: 0 0 14px rgba(255, 0, 230, 0.4);
}

.card-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease, text-shadow 200ms ease;
}

.card-link:hover {
  color: var(--magenta);
  text-shadow: 0 0 14px rgba(255, 0, 230, 0.4);
}

/* App detail template */
.detail-hero {
  padding: 52px 0 32px;
}

.detail-title {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin: 0 0 12px;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 255, 246, 0.35);
}

.detail-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.7;
}

.detail-section {
  margin: 32px 0;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.detail-section h3 {
  font-family: 'Orbitron', 'Inter', sans-serif;
  margin: 0 0 10px;
  color: var(--text);
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease, text-shadow 200ms ease;
}

.back-link:hover {
  color: var(--purple);
  text-shadow: 0 0 14px rgba(155, 0, 255, 0.45);
}

/* Utility */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, var(--cyan), var(--magenta), var(--purple));
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  pointer-events: none;
  opacity: 0.45;
}

@media (max-width: 640px) {
  nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero {
    text-align: left;
  }
}
