:root {
    --bg-color: #f8fafc; /* Branco Off-white */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #0ea5e9;
    --border-color: #e2e8f0;
    --topbar-border: #cbd5e1;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color);
    --glow-color: #38bdf8;
}

.dark-mode {
  --bg-color: #121212;
  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #bb86fc;
  --card-bg: #202020;
  --border-color: #333;
  --topbar-border: #555;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --shadow: 0 20px 25px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color);
  --glow-color: #00f0ff;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.topbar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 15px 20px;
}

.topbar-right {
  display: flex;
  margin-right: 30px;
  gap: 10px;
}

.topbar button {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--topbar-border);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.topbar button:hover {
    background: var(--card-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.topbar-right a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.card{
    padding: 20px;
    background: var(--card-bg);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.hero{
    text-align: justify;
    hyphens: auto;
    margin: 0 auto;
}

.container {
    max-width: 800px;
    margin: 20px auto; 
    padding: 20px 20px 60px;
}

h1 {
    font-size: clamp(32px, 5vw, 42px);
    text-align: center;
    margin-bottom: 5px;
    color: var(--text-main);
    letter-spacing: -1px;
}

h2 {
    text-align: left;
    font-size: 24px;
    color: var(--accent);
}

h3 {
    margin: 0 0 10px 0;
}

h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project:hover h3 a {
    color: var(--accent);
}

.subtitle {
    color: var(--accent);
    margin-bottom: 30px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    text-align: center;
}

p {
    font-size: 16px;
    color: var(--text-muted);
}

.links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.links a {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.links a:hover {
    background: var(--card-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.project {
    margin-bottom: 25px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.project::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--glow-color), var(--accent), var(--glow-color));
    z-index: -1;
    filter: blur(25px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project:hover {
    transform: translateY(-5px);
    border-color: var(--glow-color);
}

.project:hover::before {
    opacity: 0.6;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill {
    background-color: transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.skill:hover {
    border-color: var(--accent);
    color: var(--text-main);
}

.main-skills {
    /*alinhar itens no centro*/
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    text-align: center;
}