/* =============================================
   neeko — portfolio
   ============================================= */

:root {
  --bg-0: #09090B;
  --bg-1: #0F0F11;
  --bg-2: #141416;
  --bg-3: #1C1C1F;
  --bg-light: #F2F1EE;
  --text-1: #ECECEC;
  --text-2: #7A7A7A;
  --text-3: #4A4A4A;
  --on-light-1: #1A1A1A;
  --on-light-2: #5A5A5A;
  --accent: #C8964A;
  --accent-h: #B8883F;
  --border: rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.14);
  --border-l: rgba(0,0,0,0.06);
  --heading: 'Space Grotesk', sans-serif;
  --body: 'DM Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max-w: 1100px;
  --radius: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg-1);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: 48px; letter-spacing: -0.025em; }
h2 { font-size: 36px; letter-spacing: -0.02em; }
h3 { font-size: 22px; letter-spacing: -0.01em; }

/* ---- Layout ---- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 16px;
}

section { padding: 120px 0; }

.section-light {
  background: var(--bg-light);
  color: var(--on-light-1);
}
.section-light .section-label { color: var(--on-light-2); }
.section-light h2 { color: var(--on-light-1); }
.section-light p,
.section-light li { color: var(--on-light-2); }
.section-light a:not(.btn) { color: var(--accent); }

/* ---- Navigation ---- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(9,9,11,0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 24px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-1); }

.lang-toggle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
  flex-shrink: 0;
}
.lang-toggle:hover {
  border-color: var(--border-h);
  color: var(--text-1);
}

/* ---- Hero ---- */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-0);
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 420px;
  width: 100%;
  padding: 0 32px;
}

.hero-logo { width: 100%; height: auto; margin-bottom: 28px; }

.hero-tagline {
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: -0.01em;
  line-height: 1.5;
  text-align: center;
}

.scroll-line {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  opacity: 0.4;
}

/* ---- About ---- */

.about-content { max-width: 620px; }
.about-content p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-content p:last-child { margin-bottom: 0; }

/* ---- Project Grid ---- */

.projects-heading { margin-bottom: 48px; }

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
  display: block;
}
.project-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}

.card-image {
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 6px; }

.card-tagline {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.55;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Badges ---- */

.badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-platform {
  border: 1px solid var(--border);
  color: var(--text-2);
}

.badge-available { background: rgba(74,222,128,0.10); color: #4ADE80; }
.badge-beta { background: rgba(200,150,74,0.12); color: var(--accent); }
.badge-coming { background: rgba(136,136,136,0.10); color: #888; }

/* ---- Services ---- */

.services-content { max-width: 580px; }
.services-content h2 { margin-bottom: 20px; }
.services-content > p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.services-list {
  list-style: none;
  margin: 24px 0 36px;
}
.services-list li {
  font-size: 15px;
  padding: 8px 0 8px 20px;
  position: relative;
}
.services-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  opacity: 0.35;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); }

.btn-outline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-1);
}
.btn-outline:hover { border-color: var(--border-h); }

.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Updates / Blog ---- */

.updates-heading { margin-bottom: 48px; }

.blog-list { display: flex; flex-direction: column; }

.blog-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.blog-entry:first-child { border-top: 1px solid var(--border); }

.blog-title {
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 500;
}
.blog-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

/* ---- Footer ---- */

footer {
  background: var(--bg-0);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
}

.footer-logo { height: 20px; width: auto; opacity: 0.5; margin-bottom: 12px; }

.footer-tagline { font-size: 14px; color: var(--text-3); }

.footer-links { display: flex; gap: 64px; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 13px; color: var(--text-3); }
.footer-email a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-email a:hover { color: var(--accent); }

/* ---- Project Detail ---- */

.project-hero {
  padding: 140px 0 80px;
  background: var(--bg-0);
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 32px;
  transition: color 0.2s;
}
.project-back:hover { color: var(--text-2); }

.project-title {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-icon-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.project-tagline {
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-2);
  margin-bottom: 24px;
}

.project-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.project-screenshot { padding: 60px 0; }

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.carousel-dots {
  flex-basis: 100%;
}

.carousel-track {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-inner {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-btn:hover {
  border-color: var(--border-h);
  color: var(--text-1);
  background: var(--bg-3);
}
.carousel-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.carousel-dot.active {
  background: var(--text-1);
  transform: scale(1.3);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.screenshot-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 0;
}

.detail-block { margin-bottom: 40px; }
.detail-block:last-child { margin-bottom: 0; }

.detail-block h3 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 400;
  margin-bottom: 16px;
}

.detail-block p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
}

.feature-list { list-style: none; }
.feature-list li {
  font-size: 15px;
  color: var(--text-2);
  padding: 6px 0 6px 18px;
  position: relative;
  line-height: 1.6;
}
.feature-list li::before {
  content: '\203A';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tech-tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
}

.project-cta {
  padding: 40px 0 100px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.design-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(200,150,74,0.06);
  border: 1px solid rgba(200,150,74,0.12);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---- TMDB Attribution ---- */

.tmdb-attribution { padding: 0 0 80px; }

.tmdb-notice {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tmdb-logo {
  height: 20px;
  width: auto;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

.tmdb-text p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

.tmdb-text .tmdb-note {
  margin-top: 6px;
  font-size: 12px;
  font-style: italic;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  section { padding: 80px 0; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .project-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; }
  .details-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-hero { padding-top: 110px; }
  .blog-entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  h1 { font-size: 30px; }
  .hero-logo { height: 36px; }
  .hero-tagline { font-size: 17px; }
  .footer-links { flex-direction: column; gap: 32px; }
  .project-cta { flex-direction: column; align-items: flex-start; }
}
