/* VARIÁVEIS E RESET */
:root {
    --primary: #1a1c2c;
    --secondary: #2d3250;
    --accent: #6c5ce7;
    --light: #f8fafc;
    --dark: #0d1117;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #ff7675;
    --card-bg: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* TIPOGRAFIA */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, var(--accent), #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.2rem;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* HEADER */
header {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-icon {
    color: var(--accent);
    font-size: 2.2rem;
}

img {
    opacity: 1;
}

img.loaded {

}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.4rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
}

.highlight {
    color: var(--accent);
    font-weight: 700;
}

/* FILTROS */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent);
    color: var(--light);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

/* PROGRAMS GRID */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.program-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/*.program-card:hover {
    transform: translateY(-10px);


}*/

@media (hover: hover) and (pointer: fine) {
    .program-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        border-color: rgba(108, 92, 231, 0.5);
    }
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.java { color: #f89820; }
.cpp { color: #649ad2; }
.rust { color: #dea584; }
.python { color: #4584b6; }
.shell { color: #89e051; }
.card-body {
    padding: 1.5rem;
}

.card-body p.primeiro-paragrafo {
    height: 13rem;
    min-height: 8rem;
}

.card-footer {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    border: none;
}

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

.btn-primary:hover {
    background: #5d4fcf;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(108, 92, 231, 0.1);
}

/* ABOUT SECTION */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--accent);
}

.skill-icon {
    font-size: 2rem;
    color: var(--accent);
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

/* FOOTER */
footer {
    background: rgba(13, 17, 23, 0.95);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Melhorar estilo da paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--light);
    border-radius: 4px;
    cursor: pointer;
    min-width: 40px;
    transition: var(--transition);
}

.pagination button.active {
    background: var(--accent);
    font-weight: bold;
}

.pagination button:hover:not(.active) {
    background: rgba(108, 92, 231, 0.2);
}

/* Adicionar seção organizada */
/* ===== COMPONENTES ===== */
.btn { /* ... */ }
.program-card { /* ... */ }
.skill-card { /* ... */ }

/* ===== LAYOUT ===== */
.container { /* ... */ }
.programs-grid { /* ... */ }

/* ===== PÁGINAS ===== */
section.hero { /* ... */ }
section#programs { /* ... */ }

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.shell { color: #89e051; }

/* MELHORIAS DE RESPONSIVIDADE */
/* Ajustar altura do card em mobile */
@media (max-width: 768px) {
    .card-body p.primeiro-paragrafo {
        height: auto !important;
        min-height: 100px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .filters {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, 0.98);
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


/* ANIMAÇÕES OTIMIZADAS */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ESTILOS ADICIONAIS PARA MOBILE MENU */
.mobile-menu-btn {
    display: none;
    color: var(--light);
    background: transparent;
    border: none;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}
