/* ======================================
   THE CINEMATIC REDESIGN (Unreal Style)
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  /* Cinematic Black & White */
  --bg-dark: #000000;
  --bg-accent: #0a0a0a;
  --border-dim: #1a1a1a;
  --border-active: #333333;

  /* Text */
  --text-main: #ffffff;
  --text-dim: #888888;
  --text-muted: #444444;

  /* Accents - Strictly Limited */
  --accent-main: #ffffff;

  /* Dimensions */
  --container: 1400px;
  --section-pad: clamp(4rem, 10vw, 8rem);
  --radius: 2px;
  /* Sharp corners */

  /* Typography - Fluid */
  --fs-h1: clamp(2.5rem, 12vw, 3.5rem);
  --fs-h2: clamp(1.8rem, 8vw, 3.5rem);
  --fs-base: 1rem;
}

/* Base Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Clear background */
.aurora-bg,
.blob {
  display: none !important;
}

/* Cinematic Transitions */
.fade-in {
  opacity: 0;
  filter: blur(10px);
  animation: cinematicFade 1.2s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes cinematicFade {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 4rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

.section {
  padding: var(--section-pad) 0;
}

/* Typography Enhancements */
h1,
h2,
h3 {
  letter-spacing: -.02em;
  line-height: 1.1;
  font-size: 32px;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

p {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 75ch;
}

/* Navigation - Sharp & Minimal */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--border-dim);
  z-index: 1000;
  display: flex;
  align-items: center;
  backdrop-filter: grayscale(1) blur(10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img {
  height: 45px;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.nav-brand:hover img {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

/* Mobile Menu Button - Minimal Burger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1100;
  padding: 0.5rem;
}

/* Buttons - Brutalist Style */
.btn-cinematic {
  padding: 1.2rem 3rem;
  background: var(--text-main);
  color: var(--bg-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  font-size: 0.8rem;
  border: none;
  display: inline-flex;
  transition: all 0.4s;
}

.btn-cinematic:hover {
  background: var(--text-dim);
  transform: translateX(5px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-active);
}

.btn-outline:hover {
  background: var(--text-main);
  color: var(--bg-dark);
}

/* Hero Section - Cinematic Split */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4rem;
  width: 100%;
}

.hero-text {
  flex: 1;
  padding-bottom: 5vh;
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.85;
  margin-bottom: 2rem;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  height: 70vh;
}

.hero-img-container {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-dim);
  overflow: hidden;
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: all 1s cubic-bezier(0.2, 0, 0.2, 1);
  opacity: 0.8;
}

.hero-img-container:hover .hero-img {
  filter: grayscale(0.2);
  opacity: 1;
  transform: scale(1.02);
}

/* Card - Cinematic Block */
.content-card {
  border: 1px solid var(--border-dim);
  background: var(--bg-accent);
  padding: 3rem;
  transition: border-color 0.4s;
}

.content-card:hover {
  border-color: var(--border-active);
}

/* About Section Specifics */
.about-divider {
  border-top: 1px solid var(--border-dim);
  padding-top: 4rem;
}

.about-grid {
  grid-template-columns: 1fr 1fr;
}

.tag-container {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.about-stat-value {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.about-stat-label {
  letter-spacing: 0.5em;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Cards - Cinematic Wide */
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-accent);
  border: 1px solid var(--border-dim);
  cursor: pointer;
  transition: border-color 0.4s;
}

@media (min-width: 1200px) {
  .project-card.featured {
    grid-column: span 2;
    aspect-ratio: 21/9;
  }
}

.project-card:hover {
  border-color: var(--border-active);
}

.project-card img {
  width: 100%;
  height: 100%;
  /**object-fit: cover;
  opacity: 0.5;
  filter: grayscale(1);**/
  transition: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.project-card:hover img {
  opacity: 1;
  filter: grayscale(0.2);
  transform: scale(1.05);
}

.project-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2rem;
  z-index: 2;
  width: 100%;
  background: linear-gradient(0deg, black 0%, transparent 100%);
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid var(--border-active);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.8rem;
  margin-right: 0.5rem;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  display: inline-block;
}

.tag:hover {
  background: var(--text-main);
  color: var(--bg-dark);
  border-color: var(--text-main);
}

/* Page & Section Titles */
.page-header {
  padding-top: 10rem;
  padding-bottom: 5rem;
}

.page-title {
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 0.9;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: 2rem;
}

/* Blog List Styles */
.blog-item {
  border-bottom: 1px solid var(--border-dim);
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  cursor: pointer;
}

.blog-item-img {
  height: auto;
  background: var(--bg-accent);
  border: 1px solid var(--border-dim);
  overflow: hidden;
}

.blog-item-img img {
  width: 100%;
  height: 100%;
  /*object-fit: cover;
  filter: grayscale(1);*/
}

.blog-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.project-card-title {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}

@media (max-width: 768px) {
  .page-header {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .blog-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .blog-item-img {
    height: 180px;
  }
}

/* Grid - Spacious Editorial */
.grid {
  display: grid;
  gap: 4rem;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.grid>* {
  background: transparent;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .header .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 4rem;
    transition: 0.5s cubic-bezier(0.2, 0, 0.2, 1);
    z-index: 1050;
    border-left: 1px solid var(--border-dim);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hero {
    justify-content: center;
    padding-bottom: 5vh;
    padding-top: 100px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .hero-visual {
    width: 100%;
    height: 40vh;
    order: -1;
  }

  .hero-text {
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
    line-height: 1;
  }

  .content-card {
    padding: 2rem;
  }

  /* Project Detail Responsive */
  .detail-split {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  aside {
    border-left: none !important;
    border-top: 1px solid var(--border-dim);
    padding-left: 0 !important;
    padding-top: 3rem !important;
  }

  /* Blog Responsive */
  .blog-item {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 3rem 0 !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-active);
}

/* Footer - Restored "Contact" Aesthetic */
.footer {
  border-top: 1px solid var(--border-dim);
  padding: 8rem 0;
  margin-top: 4rem;
  text-align: right;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-brand {
  font-size: 6rem;
  font-weight: 900;
  opacity: 0.05;
  line-height: 0.8;
  letter-spacing: -2px;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 4rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .footer-brand {
    font-size: 4rem;
  }

  .footer-links {
    gap: 2rem;
  }
}

/* Utilities */
.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 4rem;
}

.details-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  text-underline-offset: 2px;
  transition: color .25s, opacity .25s;
}

/* ======================================
   ARTICLE COMPREHENSIVE STYLING
   ====================================== */

article {
  margin-top: 4rem;
  margin-bottom: 8rem;
}

/* Header */
.article-header {
  margin-bottom: 6rem;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 4rem;
}

.article-meta {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.article-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

/* Typography */
article h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 0.95;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
}

article h2 {
  font-size: 2rem;
  margin-top: 5rem;
  margin-bottom: 2rem;
  border-left: 1px solid var(--text-muted);
  padding-left: 2rem;
}

article h3 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

article p {
  margin-bottom: 2.5rem;
}

article strong {
  color: var(--text-main);
  font-weight: 800;
}

/* Lists */
article ul,
article ol {
  margin-bottom: 3rem;
  padding-left: 1.5rem;
}

article li {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* Code Blocks (VitePress Literal Design) */
.code-block {
  margin: 3rem 0;
  background: #0d0d0d;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.code-header {
  height: 48px;
  background: #161618;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, 0.05);
}

.code-header span:first-child {
  font-size: 0.85rem;
  font-weight: 500;
  color: #a1a1aa;
}

/* Language tag - absolute positioned top-right of pre */
.code-block span:last-child {
  position: absolute;
  top: 60px;
  /* Below the header line */
  right: 16px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.2);
  text-transform: lowercase;
  pointer-events: none;
  z-index: 5;
}

.code-block pre {
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  /* Space for gutter */
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
  position: relative;
  background: transparent !important;
  color: #ccc;
}

/* Line Number Gutter */
.code-block pre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Copy Button (on parent hover) */
.code-block::after {
  content: " ";
  position: absolute;
  top: 85px;
  /* Below the header and language label */
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.code-block:hover::after {
  opacity: 1;
}


article code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: #fff;
  border: 1px solid var(--border-dim);
}

/* Images */
.article-img-container {
  margin: 4rem 0;
  border: 1px solid var(--border-dim);
  background: var(--bg-accent);
  overflow: hidden;
}

.article-img-container img {
  width: 100%;
  display: block;
  filter: grayscale(1);
  transition: filter 0.8s, transform 0.8s;
}

.article-img-container:hover img {
  filter: grayscale(0);
  transform: scale(1.02);
}

.article-img-caption {
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-dim);
  text-align: center;
  font-style: italic;
}

/* Blockquotes */
blockquote {
  margin: 4rem 0;
  padding: 3rem;
  background: var(--bg-accent);
  border-left: 4px solid var(--text-main);
  position: relative;
}

blockquote p {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0;
  max-width: 100%;
}

blockquote cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-style: normal;
}

/* Divider */
article hr {
  border: none;
  border-top: 1px solid var(--border-dim);
  margin: 5rem 0;
}

/* ======================================
   SCREENSHOT CAROUSEL (APP STORE STYLE)
   ====================================== */

/* ======================================
   NATIVE STORE UI (AUTHENTIC RECREATION)
   ====================================== */

.store-app-container {
  max-width: 900px !important;
  margin: 0 auto;
}

.store-header-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: var(--bg-accent);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-main-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.app-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  letter-spacing: -0.01em;
}

.app-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-store-get {
  background: #007aff;
  color: #fff;
  padding: 0.5rem 1.8rem;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}

/* Store Metadata Grid */
.store-meta-grid {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-bottom: 3rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.meta-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-item:last-child {
  border-right: none;
}

.meta-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.meta-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Carousel Refinement */
.store-screenshots-header {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.store-carousel-wrapper {
  margin: 0 -2rem 4rem -2rem;
  padding: 0 2rem;
  overflow-x: auto;
  display: flex;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.store-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.store-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
}

.store-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 4rem 0 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.store-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-line;
}

@media (max-width: 768px) {
  .store-header-row {
    gap: 1.2rem;
  }

  .app-icon {
    width: 100px;
    height: 100px;
  }

  .app-title {
    font-size: 1.4rem;
  }

  .app-subtitle {
    margin-bottom: 1rem;
  }

  .store-carousel-wrapper {
    margin: 0 -1rem 2rem -1rem;
    padding: 0 1rem;
  }

  .store-card {
    flex: 0 0 75vw;
  }
}





/* Tables */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 3rem 0;
  border: 1px solid var(--border-dim);
  background: var(--bg-accent);
}

article th {
  text-align: left;
  padding: 1.2rem;
  border-bottom: 2px solid var(--border-dim);
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  background: #111;
}

article td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--border-dim);
  color: var(--text-dim);
  font-size: 0.95rem;
}

article tr:last-child td {
  border-bottom: none;
}

/* Callouts */
.callout {
  padding: 2rem 2.5rem;
  background: var(--bg-accent);
  border: 1px solid var(--border-dim);
  border-left: 4px solid var(--text-main);
  margin: 4rem 0;
}

.callout-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
  color: var(--text-muted);
}

.callout p {
  margin-bottom: 0;
  font-size: 1rem;
}