:root {
  --primary-color: #58a6ff;
  --secondary-color: #1f6feb;
  --background-color: #0d1117;
  --secondary-background-color: #161B22;
  --text-color: #c9d1d9;
  --border-color: #30363d;

  --brand-primary: #0ea5e9;
  --brand-secondary: #14b8a6;
  --bg-color: #0f172a;
  --text-primary: #cbd5e1;
  --text-secondary: #94a3b8;
  --surface-color: #1e293b;
  --border-color-card: #334155;
  --white-color: #ffffff;
  --red-color: #f87171;
  --red-bg-color: rgba(239, 68, 68, 0.1);
  --emerald-color: #34d399;
  --emerald-bg-color: rgba(16, 185, 129, 0.2);
  --amber-color: #fbbd23;
  --amber-bg-color: rgba(245, 158, 11, 0.2);
  --sky-hover: #0284c7;
  --sky-badge-text: #38bdf8;
  --sky-badge-bg: rgba(14, 165, 233, 0.1);
}

body {
  margin: 0;
  background: var(--background-color);
  font-family: 'Inter', sans-serif;
}

/* Hero Section (no changes needed) */
.main-container {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.grid-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.2;
  background-image: linear-gradient(#2d333b 1px, transparent 1px), linear-gradient(to right, #2d333b 1px, transparent 1px);
  background-size: 40px 40px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent, #0d1117 70%);
  animation: pulse-slow 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  text-align: center;
}

.name-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  position: relative;
  color: var(--text-color);
  font-weight: bold;
  z-index: 1;
  font-size: calc(3rem + 1vw);
  text-align: center;
  margin: 0;
}

.subtitle {
  color: var(--primary-color);
  font-weight: 300;
  letter-spacing: 0.05em;
  font-size: calc(1rem + 1vw);
  margin: 0;
}

.tecnologies-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  padding: 1rem 0;
}

.tec-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
}

.tec-item {
  padding: 0.25rem 0.75rem;
  background-color: #1A1F2B;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #D1D5DB;
  border: 1px solid #2D333B;
  transition: border-color 0.2s ease;
}

.tec-item:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.view-my-work {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  padding: 0 1rem;
}

.view-my-work-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 180px;
  height: 50px;
  border-radius: 9999px;
}

.button-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  border-radius: 9999px;
  filter: blur(8px);
  opacity: 0.75;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.view-my-work-button:hover .button-glow {
  opacity: 1;
}

.button-content {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: #161B22;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.button-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
}

/* Projects Section */
.projects-section {
  background-color: var(--bg-color);
  padding: 80px 20px;
  color: var(--text-primary);
}

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

.projects-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--white-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  row-gap: 5rem;
  column-gap: 1rem;
}

/* Project Card */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--surface-color);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color-card);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.project-status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
}

.project-status.done {
  background-color: var(--emerald-bg-color);
  color: var(--emerald-color);
}

.project-status.in-progress {
  background-color: var(--amber-bg-color);
  color: var(--amber-color);
}

.status-text {
  margin-left: 0.25rem;
  font-weight: 600;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-card-footer {
  margin-top: auto;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  background-color: var(--sky-badge-bg);
  color: var(--sky-badge-text);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--text-secondary);
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-links a:hover {
  color: var(--brand-primary);
}

.project-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.project-links span {
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Keyframe Animations */
@keyframes pulse-slow {
  50% {
    opacity: 0.5;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}