:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.6);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: radial-gradient(circle at top left, #111827 0, #020617 55%, #000 100%);
}

body.home .hero-kicker {
  display: none;
}

body.home .hero-text h1 {
  font-size: var(--home-hero-h1-size, 4rem);
  min-height: var(--home-hero-title-height, 4rem);
  display: flex;
  align-items: center;
  margin-top: 0;
}

/* Layout de base */

.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

.container-list {
  margin: 0.6rem 0 0.8rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.container-list li {
  margin: 0.35rem 1.5em;
  color: inherit;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #000 100%);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.9rem, 2.4vw, 2.2rem);
}

p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

/* HEADER & NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(2, 6, 23, 0.78); /*background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), transparent);*/
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;

  text-decoration: none;
  color: #f9fafb;

  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.02rem;
}

.brand:hover {
  color: #ffffff;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 999px;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.brand-name {
  line-height: 1;
}

.main-nav a {
  color: rgba(229, 231, 235, 0.82); /*color: var(--muted);*/
  text-decoration: none;
  margin-left: 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: #e5e7eb;
}

.main-nav a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.hero-photo {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.96);
  transform-origin: center;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.download-actions {
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.download-actions + h3 {
  margin-top: 1.6rem;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn.primary {
  background: var(--accent);
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

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

.btn.ghost:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.08);
}

.btn.project {
  background: transparent;
  border-color: var(--border-subtle);
  border-radius: var(--radius-lg);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.05rem;
}

.btn.project:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.08);
}

/* HERO CARD */

.hero-card {
  justify-self: end;
}

.hero-card-inner {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.hero-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.hero-role {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.hero-meta li {
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-meta li:last-child {
  border-bottom: none;
}

/* ABOUT */

.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.7rem;
  margin-top: 1.5rem;
}

/* SECTION INTRO */

.section-intro {
  margin-bottom: 2rem;
}

/* PROJECTS */

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

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.project-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.project-card h3 {
  font-size: 1.05rem;
}

.project-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.project-badges li {
  font-size: 0.75rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.project-links a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

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

.project-links a:hover {
  text-decoration: underline;
}

.link:hover {
  text-decoration: underline;
}

/* SKILLS */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.skills-block {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem;
  background: rgba(15, 23, 42, 0.8);
}

.skills-block h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.skills-block ul {
  list-style: none;
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}

.skills-block li {
  margin: 0.25rem 0;
}

.skills-subline {
  padding-left: 1.1rem;
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  margin-top: 1.3rem;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.9rem 0 1.2rem;
  background: rgba(2, 6, 23, 0.96);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  gap: 0.7rem;
}

/* DEBUG */
.red {
  color: #ef4444;
}

/* RESPONSIVE */

@media (max-width: 750px) {
  body.home .hero-text h1 {
    min-height: 0;
    display: block;
  }

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

  .hero-card {
    justify-self: stretch;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}