/* Reset e Variáveis CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* MODO ESCURO - padrão */
:root {
  --background: #0f172a;
  --background-card: #1e293b;
  --background-items: #020617;
  --text: #f1f5f9;
  --title: #f8fafc;

  --primary-blue: #1e40af;
  --secondary-blue: #60a5fa;
  --light-blue: #93c5fd;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --border-color: #334155;

  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  --gradient-bg: linear-gradient(180deg, var(--background) 0%, var(--background-card) 100%);
  --hero-gradient: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                   radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

/* MODO CLARO */
:root.light {
  --background: #ffffff;
  --background-card: #ffffff;
  --background-items: #d7d2d2;
  --text: #2b2b2b;
  --title: #2d2d2d;
}


/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navegação */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--gradient-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.change-theme-button {
    background-color: Transparent;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    overflow: hidden
}

/* Seção Hero */
.hero {
    min-height: 130vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-gradient);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
}

/* Animação de Código */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    width: 300px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.code-line {
    height: 20px;
    background: var(--gradient-primary);
    margin-bottom: 15px;
    border-radius: 4px;
    opacity: 0;
    animation: codeAnimation 2s ease-in-out infinite;
}

.code-line:nth-child(1) { width: 80%; animation-delay: 0s; }
.code-line:nth-child(2) { width: 60%; animation-delay: 0.5s; }
.code-line:nth-child(3) { width: 90%; animation-delay: 1s; }
.code-line:nth-child(4) { width: 70%; animation-delay: 1.5s; }

@keyframes codeAnimation {
    0%, 100% { opacity: 0; transform: translateX(-20px); }
    50% { opacity: 1; transform: translateX(0); }
}

/* Seção Sobre */
.about {
    padding: 100px 0;
    background: var(--gradient-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.skill-item {
    background: var(--card-bg);
    padding: 0.8rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(6, 182, 212, 0.1);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Seção de Projetos */
.projects {
    padding: 100px 0;
}

/* Menu de Filtros */
.menu-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.menu-item {
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-gray);
}

.menu-item:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}

.menu-item.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Cards de Conteúdo */
.content-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card.hidden {
    display: none;
}

.card-category {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.card-content {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-tech {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
}

/* CSS para Links dos Repositórios */

.card-link {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.repo-link:hover {
    color: var(--text-light);
    background: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.repo-link::before {
    content: '🔗';
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.repo-link:hover::before {
    transform: rotate(45deg);
}

/* Link para projetos em desenvolvimento */
.coming-soon {
    color: var(--text-muted) !important;
    background: rgba(148, 163, 184, 0.1) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    cursor: not-allowed;
    pointer-events: none;
}

.coming-soon::before {
    content: '⏳';
    font-size: 0.9rem;
}

/* Animação adicional para hover no card completo */
.card:hover .repo-link {
    border-color: var(--accent);
}

/* Responsividade para links */
@media (max-width: 768px) {
    .repo-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .card-link {
        margin-top: 1rem;
        padding-top: 0.8rem;
    }
}

/* Estilo alternativo para múltiplos links (caso você queira adicionar mais links por card) */
.card-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.card-links .repo-link {
    flex: 1;
    min-width: 120px;
    text-align: center;
    justify-content: center;
}

/* Efeito especial para destaque */
.repo-link.featured {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.repo-link.featured:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-list li:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsividade */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .menu-container {
        gap: 0.5rem;
    }
    
    .menu-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .content-container {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        flex: 1;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none; /* Aqui você pode implementar um menu hamburger */
    }
    
    .about-stats {
        flex-direction: column;
    }
}