:root {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --text-primary: #343a40;
  --text-secondary: #6c757d;
  --accent-primary: #007bff;
  --accent-hover: #0056b3;
  --border-color: #dee2e6;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #e9ecef;
  --text-secondary: #adb5bd;
  --accent-primary: #4dabf7;
  --accent-hover: #339af0;
  --border-color: #495057;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: all 0.3s ease;
}

.navbar {
  background-color: var(--bg-secondary) !important;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  font-weight: 700;
  color: var(--accent-primary) !important;
  font-size: 1.2rem;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent-primary) !important;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 1rem;
  transition: color 0.3s;
}

.theme-toggle:hover {
  color: var(--accent-primary);
}

main {
  padding: 2rem 0;
  background-color: var(--bg-primary);
}

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-primary {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Tech Grid - Layout Híbrido (Fiel + Inovador) */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 12px;
    margin: 25px 0 0 0;
    padding: 0;
}

.tech-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent-primary);
}

.tech-icon {
    font-size: 1.1rem;
    margin-right: 8px;
    min-width: 24px;
    text-align: center;
}

.tech-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 4px;
}

.tech-separator {
    color: var(--text-secondary);
    margin: 0 4px;
    font-weight: 300;
}

.tech-comment {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.85rem;
}

/* Remove CSS anterior conflitante */
.skills-grid {
    display: none;
}

/* Garante compatibilidade com o layout original */
.about-section .content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Responsividade - Mobile First */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .tech-item {
        padding: 10px 15px;
    }
}

/* Para telas maiores - mais colunas */
@media (min-width: 1200px) {
    .tech-grid {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}