:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --border: #e2e8f0;

  --input-bg: #ffffff;
  --nav-bg: rgba(248, 250, 252, 0.9);
  
  --tag-bg: #eff6ff;
  --tag-text: #2563eb;
  --tag-border: #bfdbfe;
}

[data-theme="dark"] {
  --bg: #020617;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --border: rgba(56,189,248,0.25);

  --input-bg: #020617;
  --nav-bg: rgba(2, 6, 23, 0.85);

  --tag-bg: rgba(56,189,248,0.15);
  --tag-text: #38bdf8;
  --tag-border: rgba(56,189,248,0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  transition:
    background 0.7s ease,
    color 0.7s ease;
}

h1 {
  font-size: clamp(1.26rem, 1.75vw, 1.68rem);
}

h2 {
  font-size: clamp(0.91rem, 1.4vw, 1.12rem);
}

.role {
  font-size: 0.74rem;
  color: var(--muted);
}


.container.hero,
nav.menu,
.site-footer {
  transition: background 0.7s ease, border 0.7s ease;
}



.darkmodeLabel {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.darkmodeinput {
  position: absolute;
  opacity: 0;
}

.darkmodeSun {
  position: absolute;
  width: 20px;
  transition: transform 1s ease, opacity 0.6s ease;
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.darkmodeinput:checked ~ .darkmodeSun {
  transform: rotate(180deg) scale(0);
  opacity: 0;
}


.darkmodeMoon {
  position: absolute;
  width: 20px;
  transition: transform 1s ease, opacity 0.6s ease;
  transform: rotate(-180deg) scale(0);
  opacity: 0;
  fill: #eff6ff
}

.darkmodeinput:checked ~ .darkmodeMoon {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}



.darkmodeToggle {
  position: absolute;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 
    inset 0 8 60px rgba(0,0,0, .1),
    inset 0 8 8px rgba(0,0,0, .1),
    inset 0 -4 4px rgba(0,0,0, .1);
  z-index: -1;
  transition: 1s;
}

.darkmodeinput:checked~.darkmodeToggle {
  background: #1e2e54;
} 

.animatedBg {
  position: fixed;
  inset: 0;
  background: #020617; /* cor escura base */
  clip-path: circle(0% at 95% 5%);
  transition: clip-path 1.4s ease-in-out;
  z-index: -1;
  pointer-events: none;
}
  
.darkmodeinput:checked ~ .animatedBg {
  clip-path: circle(150% at 50% 50%);
}


/* ================= NAV ================= */
nav.menu {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}


.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.menu-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.42rem 0.84rem;
  border-radius: 999px;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

.menu-links a:hover {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

.menu-links .highlight {
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem .8rem;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
}

/* ================= NAV RESPONSIVE ================= */

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
}

/* Mobile */
@media (max-width: 900px) {
  .menu-links {
    position: absolute;
    top: 64px;
    right: 2rem;

    flex-direction: column;
    gap: 1rem;

    background: var(--bg);
    border-radius: 12px;
    padding: 0 1.5rem;

    max-height: 0;
    overflow: hidden;

    opacity: 0;
    transform: translateY(-10px);

    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .menu-links.open {
    max-height: 400px; /* suficiente para os links */
    opacity: 1;
    transform: translateY(0);
    padding: 1.5rem;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
}

/* Desktop */
@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }
}


/* ================= HERO ================= */
.site-header {
  padding-bottom: 4rem;
}

.container.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.08);

  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
}


/* ================= CONTENT ================= */
.content section {
  margin-bottom: 2.5rem;
}

.content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

/* ================= TAGS ================= */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.tag {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}




/* ================= FOOTER ================= */
.site-footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .container.hero {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .profile {
    margin-bottom: 2rem;
  }
}


/* ================= SOCIAL ICONS ================= */

.social-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-icon {
  width: 22px;
  height: 22px;
  fill: var(--text);
  transition: 
    transform 0.25s ease,
    fill 0.25s ease;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  transition: background 0.25s ease;
}

.social-links a:hover {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

.social-links a:hover .social-icon {
  fill: var(--accent);
  transform: scale(1.1);
}




