/* Custom portfolio styling */
:root {
  --rt-bg: #f3f5f6;
  --rt-surface: #ffffff;
  --rt-text: #17212b;
  --rt-muted: #65727f;
  --rt-line: #d8dee3;
  --rt-accent: #2f6f73;
  --rt-accent-dark: #203a43;
  --rt-chip: #e8f1f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--rt-bg);
  color: var(--rt-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrapper {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

section {
  max-width: none;
}

a {
  color: var(--rt-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--rt-accent-dark);
}

h1, h2, h3 {
  letter-spacing: -0.02em;
}

.rt-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef2f2 62%, #e7efef 100%);
  border: 1px solid var(--rt-line);
  border-radius: 20px;
  padding: 2.25rem;
  margin: 1rem 0 2rem;
  box-shadow: 0 12px 32px rgba(23, 33, 43, 0.07);
}

.rt-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--rt-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.rt-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  line-height: 1.05;
  color: var(--rt-text);
}

.rt-role {
  margin: 0.8rem 0 1rem;
  color: var(--rt-accent-dark);
  font-size: 1.15rem;
  font-weight: 700;
}

.rt-lead {
  max-width: 850px;
  color: var(--rt-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.rt-actions,
.rt-tags {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.rt-button {
  display: inline-block;
  padding: 0.62rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--rt-accent);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rt-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(23, 33, 43, 0.08);
}

.rt-button.primary {
  background: var(--rt-accent);
  color: #ffffff;
}

.rt-button.primary:hover {
  background: var(--rt-accent-dark);
}

.rt-button.secondary {
  background: #ffffff;
}

.rt-tag {
  background: var(--rt-chip);
  border: 1px solid #cfdddd;
  color: var(--rt-accent-dark);
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.rt-section {
  margin: 2.7rem 0;
  scroll-margin-top: 1rem;
}

.rt-section > h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--rt-line);
  color: var(--rt-text);
  font-size: 1.55rem;
}

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

.rt-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rt-card {
  background: var(--rt-surface);
  border: 1px solid var(--rt-line);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.045);
}

.rt-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  color: var(--rt-text);
  font-size: 1.08rem;
}

.rt-card p,
.rt-card li {
  color: var(--rt-muted);
  line-height: 1.65;
}

.rt-card ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.rt-meta {
  color: var(--rt-accent);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.rt-project-image {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  background: #f8faf9;
  border: 1px solid var(--rt-line);
  border-radius: 12px;
  padding: 0.4rem;
  margin-top: 0.85rem;
}

.rt-highlight {
  border-left: 4px solid var(--rt-accent);
  background: #edf4f3;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.rt-publication {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rt-line);
  color: var(--rt-muted);
}

.rt-publication strong,
.rt-publication em {
  color: var(--rt-text);
}

.rt-publication:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rt-skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.rt-skill-block {
  background: var(--rt-surface);
  border: 1px solid var(--rt-line);
  border-radius: 14px;
  padding: 1rem;
  color: var(--rt-muted);
}

.rt-skill-block strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--rt-accent-dark);
}

.rt-contact {
  background: linear-gradient(135deg, #203a43 0%, #172a32 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.12);
}

.rt-contact h2,
.rt-contact p {
  color: #ffffff;
  border-bottom: 0;
}

.rt-contact a {
  color: #d6ecea;
  font-weight: 700;
}

@media (max-width: 760px) {
  .wrapper {
    width: min(94vw, 680px);
    padding-top: 1rem;
  }

  .rt-hero {
    padding: 1.4rem;
    border-radius: 16px;
  }

  .rt-grid,
  .rt-grid.three,
  .rt-skills {
    grid-template-columns: 1fr;
  }

  .rt-button {
    width: 100%;
    text-align: center;
  }
}
