:root {
  --bg: #0b0f14;
  --card-bg: #161b22;
  --text: #e6edf3;
  --text-light: #8b949e;
  --accent: #58a6ff;
  --border: #30363d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

.container {
  max-width: 850px;
  margin: 0 auto;
}

/* Header */
header {
  margin-top: 4rem;
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.role {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* About Section */
#about {
  margin-bottom: 4rem;
}

#about p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #fff;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.card-image img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.5s;
}

.project-card:hover .card-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  color: var(--accent);
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.tech {
  font-size: 0.8rem;
  font-family: monospace;
  background: rgba(88, 166, 255, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
}

/* CTA */
.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.github-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #238636; /* Verde GitHub */
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.github-btn:hover {
  background: #2ea043;
}

footer {
  margin-top: 6rem;
  padding-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  body { padding: 1rem; }
  h1 { font-size: 2.2rem; }
  .project-grid { grid-template-columns: 1fr; }
}