/* ============ Root & Theme (Akira/Bebop Noir) ============ */

:root {
  /* backgrounds */
  --bg-main: #0e0e0e;            /* deep black */
  --bg-elevated: #161616;        /* charcoal cards */
  --bg-elevated-soft: #1c1c1c;   /* hover/elevated */
  --border-subtle: rgba(242, 230, 201, 0.12); /* warm subtle border */

  /* text */
  --text-main: #d8d5cc;   /* warm gray */
  --text-muted: #9a978f;  /* muted sand */
  --text-soft: #7f7b72;

  /* accents (derived from posters) */
  --accent-primary: #b11226;   /* Akira red */
  --accent-secondary: #e38b2d; /* Bebop orange (links, highlights) */
  --accent-danger: #c0392b;

  /* radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* shadows & motion (more cinematic, less neon) */
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
  --transition-fast: 140ms ease-out;
  --transition-med: 220ms ease;

  /* optional texture */
  --grain-opacity: 0.06;
}

/* Light theme (optional): keep warm poster paper look */
[data-theme="light"] {
  --bg-main: #f4efe2;              /* paper */
  --bg-elevated: #fffaf0;
  --bg-elevated-soft: #f7f0e2;
  --border-subtle: rgba(23, 18, 12, 0.12);

  --text-main: #1a1714;
  --text-muted: #4f4a43;
  --text-soft: #6a635b;

  --accent-primary: #8f0f1f;
  --accent-secondary: #c26a18;
  --accent-danger: #b43b2f;
}

/* ============ Base ============ */

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

html,
body {
  margin: 0;
  padding: 0;
}

body.site-body {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* subtle grain overlay */
body.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.05) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(255,255,255,0.04) 0 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
  z-index: 0;
}

/* Ensure content sits above grain */
.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Links: NO BLUE. Always readable. */
a {
  color: var(--accent-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-main {
  min-height: calc(100vh - 140px);
}

/* ============ Layout Helpers ============ */

.section {
  padding: 3.5rem 1.25rem;
}

.section__inner {
  max-width: 980px;
  margin: 0 auto;
}

.section__title {
  font-family: "Oswald", system-ui, sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  color: var(--text-main);
}

.section__text {
  margin: 0 0 2rem;
  color: var(--text-muted);
}

/* ============ Navbar ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 14, 0.92),
    rgba(14, 14, 14, 0.78)
  );
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__brand {
  flex: 0 0 auto;
}

.nav__logo {
  font-family: "Oswald", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

.nav__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.25rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.nav__link:hover {
  color: var(--text-main);
  border-color: var(--accent-secondary);
  text-decoration: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__icon-btn {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast);
}

.nav__icon-btn:hover {
  background: var(--bg-elevated-soft);
  border-color: rgba(227, 139, 45, 0.55);
  transform: translateY(-1px);
}

.nav__lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.nav__lang {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-soft);
}

.nav__lang--active {
  border-color: rgba(227, 139, 45, 0.65);
  color: var(--accent-secondary);
}

.nav__toggle {
  display: none;
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav__links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }
}

/* ============ Hero ============ */

.hero-section {
  padding-top: 3.5rem;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.hero__kicker {
  font-family: "Oswald", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin: 0 0 0.7rem;
}

.hero__title {
  font-family: "Oswald", system-ui, sans-serif;
  font-size: clamp(2.2rem, 2.6vw + 1.6rem, 3.1rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.7rem;
  color: var(--accent-primary);
}

.hero__subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__panel {
  align-self: stretch;
}

/* terminal becomes “film UI panel” */
.terminal-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(227,139,45,0.12), rgba(22,22,22,1));
  border: 1px solid rgba(227, 139, 45, 0.28);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.terminal-card__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to right, rgba(177,18,38,0.16), rgba(22,22,22,1));
  border-bottom: 1px solid rgba(242, 230, 201, 0.12);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red {
  background: var(--accent-primary);
}

.dot--yellow {
  background: var(--accent-secondary);
}

.dot--green {
  background: #6f7b55; /* muted olive for “analog UI” feel */
}

.terminal-card__title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}

.terminal-card__body {
  padding: 0.95rem 1.1rem 1.05rem;
  font-size: 0.82rem;
  color: var(--text-main);
}

.terminal-card__body pre {
  margin: 0;
  white-space: pre-wrap;
}

/* Hero responsive */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__panel {
    order: -1;
  }
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  hookup: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-med), border-color var(--transition-med),
    color var(--transition-med), transform var(--transition-med), box-shadow var(--transition-med);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-primary), rgba(227,139,45,0.92));
  color: #0e0e0e;
  box-shadow: 0 10px 26px rgba(177, 18, 38, 0.22);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(227, 139, 45, 0.22);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn--ghost:hover {
  border-color: rgba(227, 139, 45, 0.55);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
}

.btn--sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

/* ============ Skills ============ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem;
}

.skill-card__title {
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--accent-cream, var(--text-main));
}

.skill-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.skill-card__list li {
  margin-bottom: 0.25rem;
}

/* ============ Projects ============ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 139, 45, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
}

.project-card__title {
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  margin: 0;
}

.project-card__title a {
  color: var(--text-main);
}

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

.project-card__description {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0.8rem;
}

.project-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* tags become “poster chips” */
.tag-chip {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 230, 201, 0.18);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
}

.project-card__links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-card__link {
  font-size: 0.85rem;
  color: var(--accent-secondary);
}

/* ============ Posts list & post ============ */

.section--posts .post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.2rem;
}

.post-card__title {
  margin: 0 0 0.25rem;
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  color: var(--text-main);
}

.post-card__meta {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.post-card__excerpt {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.post-card__tags {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.post {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-title {
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.04em;
  font-size: 2.2rem;
  margin: 0 0 0.3rem;
  color: var(--accent-primary);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.post-subtitle {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}

.post-tags {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.post-content {
  font-size: 1rem;
  color: var(--text-main);
}

.post-content h2,
.post-content h3 {
  margin-top: 1.6rem;
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.03em;
}

.post-content pre {
  background: #121212;
  border-radius: var(--radius-md);
  padding: 0.9rem;
  overflow-x: auto;
  border: 1px solid rgba(242, 230, 201, 0.12);
}

.post-content code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88rem;
}

/* ============ Resume ============ */

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

.resume-name {
  margin: 0 0 0.2rem;
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.05em;
  font-size: 2.1rem;
  color: var(--accent-primary);
}

.resume-title {
  margin: 0 0 0.3rem;
  color: var(--text-muted);
}

.resume-location {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.resume-meta {
  text-align: right;
}

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

.resume-contact li {
  margin-bottom: 0.15rem;
}

.resume-section {
  margin-top: 2rem;
}

.resume-section__title {
  margin: 0 0 0.7rem;
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.35rem;
  color: var(--accent-cream, var(--text-main));
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  padding-left: 0.8rem;
  border-left: 2px solid rgba(227, 139, 45, 0.22);
}

.timeline-item__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: baseline;
}

.timeline-item__title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-main);
}

.timeline-item__company {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.timeline-item__period,
.timeline-item__location {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.timeline-item__description {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0.3rem 0;
}

.timeline-item__list {
  margin: 0.35rem 0 0.2rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.resume-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.resume-list li {
  margin-bottom: 0.35rem;
}

@media (max-width: 720px) {
  .section--resume .resume-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume-meta {
    text-align: left;
  }
}

/* ============ Contact ============ */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-link {
  font-size: 0.92rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

.contact-link:hover {
  border-color: rgba(227, 139, 45, 0.55);
  color: var(--text-main);
  text-decoration: none;
}

/* ============ Footer ============ */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.2rem 1.25rem;
  background: rgba(14, 14, 14, 0.98);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  font-size: 0.88rem;
}

.footer-title {
  margin: 0 0 0.15rem;
  color: var(--text-soft);
}

.footer-copy {
  margin: 0;
  color: var(--text-soft);
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

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

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

.footer-theme-toggle {
  margin-left: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Avatar estilo GitHub / social */
.hero__avatar {
  margin-bottom: 1rem;
}

.hero__avatar-inner {
  width: 250px;
  height: 250px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(227, 139, 45, 0.7);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.hero__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

