* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --bg-color: #fff;
  --text-color: #222;
  --primary-color: #2b3a67;
  --secondary-color: #1e2b56;
  --card-bg: #fff;
  --accent-color: #5aa9e6;
}

body.dark {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --primary-color: #1e2b56;
  --secondary-color: #111827;
  --card-bg: #1e293b;
  --accent-color: #38bdf8;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}


header {
  background: var(--primary-color);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
}

header .logo {
  font-weight: 600;
}


header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.8rem;
}


.icon-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.menu-btn {
  display: none;
}


.habilidades {
  text-align: center;
  padding: 4rem 1rem;
}

.habilidades h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

body.dark .habilidades h2 {
  color: var(--accent-color);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.item:hover {
  transform: translateY(-5px);
}

.item i {
  width: 40px;
  height: 40px;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.item p {
  font-weight: 600;
  color: var(--text-color);
}

footer {
  background: var(--secondary-color);
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  header nav {
    display: none;
    flex-direction: column;
    background: var(--secondary-color);
    position: absolute;
    top: 60px;
    right: 10px;
    border-radius: 10px;
  }

  header nav.active {
    display: flex;
  }

  .menu-btn {
    display: inline;
  }
}