/* rmontes.com — portfolio */

:root {
  --bg: #0b0d12;
  --bg-elevated: #12151c;
  --bg-card: #14171f;
  --border: #22262f;
  --border-hover: #343a47;
  --text: #eef0f4;
  --text-muted: #9aa1af;
  --text-faint: #666d7b;
  --accent: #7c8cff;
  --accent-2: #5eead4;
  --accent-soft: rgba(124, 140, 255, 0.12);
  --radius: 14px;
  --max-width: 960px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% -10%, rgba(124, 140, 255, 0.14), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(94, 234, 212, 0.08), transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 13, 18, 0.75);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  appearance: none;
  background: none;
  border: none;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button.active {
  background: var(--text);
  color: var(--bg);
}

.lang-switch button:not(.active):hover {
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 88px 0 56px;
}

.eyebrow {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

.hero .role {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.hero .tagline {
  margin-top: 18px;
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #d7dae2;
  border-color: #d7dae2;
}

.btn-ghost {
  color: var(--text-muted);
}

/* Section headings */

.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 1.5rem;
}

.section-head .count {
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* Project grid + cards */

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

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

.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.thumb-strava { background: linear-gradient(135deg, #fc4c02 0%, #7c1a00 100%); }
.thumb-westive { background: linear-gradient(135deg, #7c8cff 0%, #2a2470 100%); }
.thumb-spotiboard { background: linear-gradient(135deg, #1ed760 0%, #0a4023 100%); }
.thumb-football { background: linear-gradient(135deg, #38bdf8 0%, #0b3a5c 100%); }
.thumb-spotify-recap { background: linear-gradient(135deg, #1ed760 0%, #103821 100%); }

.card-body {
  padding: 18px 20px 20px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.08rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.badge-live {
  color: var(--accent-2);
  border-color: rgba(94, 234, 212, 0.3);
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  font-size: 0.74rem;
  color: var(--text-faint);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Project detail page */

.detail-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
}

.detail-thumb {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-top: 24px;
}

.detail-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}

.detail-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 6px;
}

.detail-summary {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.detail-body {
  padding: 40px 0;
  display: grid;
  gap: 40px;
}

.block h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text);
}

.block p {
  color: var(--text-muted);
  max-width: 680px;
}

.placeholder {
  color: var(--text-faint);
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 14px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-list .tag {
  font-size: 0.82rem;
  padding: 5px 11px;
  color: var(--text-muted);
}

.stack-group {
  margin-bottom: 18px;
}

.stack-group:last-child {
  margin-bottom: 0;
}

.stack-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-links a:hover {
  color: var(--text-muted);
}
