/*
  RudiMakes Editorial Dark Theme
  Author: Rudi Willock
  Bold, cinematic, editorial. Dark by default
*/

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

/* =====================
   CSS Custom Properties
   ===================== */
:root {
  --bg: #0a0a0a;
  --bg-card: #111318;
  --bg-card-hover: #161a22;
  --text: #f1faee;
  --text-muted: #8b9ab0;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --blue: #457b9d;
  --border: rgba(255,255,255,0.08);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --max-width: 1100px;
  --transition: all 0.2s ease;
}

html[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f0;
  --text: #111318;
  --text-muted: #555e6e;
  --border: rgba(0,0,0,0.10);
}

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================
   Layout
   ===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
}

/* =====================
   Navigation
   ===================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

html[data-theme="light"] nav {
  background: rgba(245,245,245,0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

  nav ul.is-open { display: flex; }
}

/* =====================
   Hero Sections
   ===================== */
.hero {
  padding: 7rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

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

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.section-note {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 1rem;
}

/* =====================
   Project Cards
   ===================== */
.projects {
  padding: 5rem 0;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(230,57,70,0.15);
  background: var(--bg-card-hover);
}

.project-thumb {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1.75rem;
}

.project-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.project-open {
  display: inline-block;
  margin: 0.5rem 0.5rem 0.5rem 0;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.project-open:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.bullets {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.bullets li {
  color: var(--text-muted);
  padding: 0.2rem 0;
  font-size: 0.95rem;
}

.bullets li::before {
  content: "→ ";
  color: var(--accent);
}

/* =====================
   Status Badges
   ===================== */
.status-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.status-complete {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.25);
}

.status-progress {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.25);
}

.status-archived {
  background: rgba(148,163,184,0.15);
  color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.25);
}

/* =====================
   Tag Chips & Filters
   ===================== */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.tag-chip {
  display: inline-block;
  background: rgba(69,123,157,0.2);
  color: var(--blue);
  border: 1px solid rgba(69,123,157,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.filter-bar {
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search:focus {
  border-color: var(--accent);
}

.search::placeholder {
  color: var(--text-muted);
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-filter {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition);
}

.tag-filter:hover {
  border-color: var(--accent);
  color: var(--text);
}

.tag-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =====================
   Gallery
   ===================== */
.gallery-toggle {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition);
}

.gallery-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.gallery {
  margin-top: 0.75rem;
  display: none;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gallery.is-open { display: flex; }

.gallery img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* =====================
   Repair Cards
   ===================== */
.repair-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.repair-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(230,57,70,0.1);
}

.repair-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.repair-card .repair-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.repair-field {
  margin-bottom: 0.75rem;
}

.repair-field strong {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.2rem;
}

.repair-field p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =====================
   Project Detail Page
   ===================== */
.project-detail {
  padding: 3rem 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--border);
}

.project-detail-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.project-steps {
  margin-top: 3rem;
}

.project-steps h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.project-step {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.project-step h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.project-step p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.step-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-top: 1rem;
}

/* =====================
   About Section
   ===================== */
.about {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.about p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tags span {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* =====================
   Contact Section
   ===================== */
.contact {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.contact p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* =====================
   Repair Contact Form
   ===================== */
.repair-contact {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.repair-contact p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.form-note strong {
  color: var(--text);
}

/* =====================
   Inquiry Layout
   ===================== */
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

@media (max-width: 860px) {
  .inquiry-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.inquiry-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.inquiry-info-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.inquiry-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.inquiry-info-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.inquiry-info-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.inquiry-direct {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1.6;
}

.inquiry-direct a {
  color: var(--accent);
  font-weight: 600;
}

/* =====================
   Feature Cards (ARIA/Music)
   ===================== */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =====================
   Tech Stack Tags
   ===================== */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tech-tag {
  background: rgba(230,57,70,0.12);
  color: var(--accent);
  border: 1px solid rgba(230,57,70,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* =====================
   Demo Box
   ===================== */
.demo-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  margin: 2rem 0;
}

.demo-box p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* =====================
   CTA Section
   ===================== */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* =====================
   Footer
   ===================== */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-muted);
  margin: 0 0.75rem;
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* =====================
   Brand Logo
   ===================== */
.brand-logo {
  height: 40px;
  width: auto;
}

/* =====================
   Muted Text
   ===================== */
.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =====================
   Links Block
   ===================== */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.links a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}

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

/* =====================
   Project Bullets (detail page)
   ===================== */
.project-bullets {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.project-bullets li {
  color: var(--text-muted);
  padding: 0.3rem 0;
}

.project-bullets li::before {
  content: "→ ";
  color: var(--accent);
}

/* =====================
   Quick Nav (legacy compat)
   ===================== */
.quick {
  display: none;
}

/* =====================
   Subtitle (legacy compat)
   ===================== */
.subtitle {
  color: var(--text-muted);
}
