/* =========================
   JeviAudio Base Theme
   Heavy, compact, anelastic
   ========================= */

/* ---- Variables ---- */
:root {
  --bg: #0f0f10;
  --bg-alt: #17171a;
  --fg: #e6e6ea;
  --muted: #b0b0b6; /* lifted for readability */
  --accent: #c89b3c;
  --accent-soft: rgba(200, 155, 60, 0.25);

  --border: #2a2a30;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.55);

  --radius-sm: 4px;
  --radius-md: 8px;

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;
}

/* ---- Global ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background: #121217; /* fallback base */
  background: radial-gradient(circle at top left, #202028 0%, #0a0a0d 55%);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Layout ---- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* ---- Header / Nav ---- */
header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, #101015, #15151a);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- Hero / Intro ---- */
.hero {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
}

.hero-main h1 {
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero-main p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.9);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.hero-panel {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-panel-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero-panel-line {
  font-size: 0.95rem;
  color: var(--fg);
}

/* ---- Section ---- */
.section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Cards / Projects ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.card-body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--fg);
}

.card-link {
  margin-top: 0.6rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ---- Contact / Footer ---- */
.contact-block {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.5rem;
}

.contact-block p {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.contact-list li + li {
  margin-top: 0.4rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  height: 140px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

/* Placeholder style for images not yet uploaded */
.placeholder {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 6px, transparent 6px 12px);
  color: #bdbdc1;
}

/* Project gallery preview */
.project-gallery-preview {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.gallery-thumb {
  width: 56px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---- Utility ---- */
.mono {
  font-family: var(--font-mono);
}

.accent {
  color: var(--accent);
}

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

/* NEW: Collapse earlier for tablets + large phones */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-block {
    grid-template-columns: 1fr;
  }

  .page-inner {
    padding: 2rem 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Strengthened 900px breakpoint */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Existing 600px breakpoint, tightened */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .page-inner {
    padding: 1.75rem 1rem 2.5rem;
  }

  .hero-main h1 {
    font-size: 1.6rem;
  }

  .hero-main p {
    font-size: 0.95rem;
  }

  .gallery-item {
    height: 110px;
  }
}

/* Android and mobile readability patch */
@media (max-width: 900px) {
  body {
    background: #14141a;
  }

  .hero-panel,
  .card,
  .contact-block {
    background: #1d1d24;
  }

  .hero-main p,
  .card-body,
  .contact-block p {
    color: #d0d0d6;
  }

  .brand-subtitle,
  .section-subtitle {
    color: #c0c0c6;
  }
}
