/* ===========================
   RESET E VARIÁVEIS GLOBAIS
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ea5e9;
    --secondary-color: #06b6d4;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-border: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===========================
   NAVEGAÇÃO
   =========================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.14em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.75rem;
    }
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 0.5) 100%);
    padding: 5rem 1rem;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.1);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image {
        display: none;
    }
}

/* ===========================
   SEÇÕES GERAIS
   =========================== */

.section {
    padding: 5rem 1rem;
}

.section-dark {
    background-color: rgba(30, 41, 59, 0.5);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    text-align: center;
}

/* ===========================
   SEÇÃO SOBRE
   =========================== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(30, 41, 59, 0.9);
}

.about-card.full-width {
    grid-column: 1 / -1;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.tech-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tech-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.tech-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===========================
   TABELA DE COMPETÊNCIAS
   =========================== */

.table-responsive {
    overflow-x: auto;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(30, 41, 59, 0.3);
}

.skills-table thead {
    background-color: rgba(30, 41, 59, 0.7);
}

.skills-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--dark-border);
}

.skills-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-secondary);
}

.skills-table tbody tr:hover {
    background-color: rgba(14, 165, 233, 0.05);
}

.level {
    color: var(--secondary-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .skills-table {
        font-size: 0.875rem;
    }

    .skills-table th,
    .skills-table td {
        padding: 0.75rem;
    }
}

/* ===========================
   SEÇÃO PROJETOS
   =========================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(30, 41, 59, 0.9);
    transform: translateY(-5px);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-details {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.project-details p {
    margin: 0.5rem 0;
}

/* ===========================
   SEÇÃO ESTUDOS
   =========================== */

.studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.study-card {
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    padding: 2rem;
}

.study-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.study-item {
    margin-bottom: 1.5rem;
}

.study-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.study-item p:last-child {
    color: var(--text-secondary);
    line-height: 1.8;
}

.certification {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.cert-dot {
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.cert-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cert-status {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===========================
   SEÇÃO BLOG
   =========================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(30, 41, 59, 0.9);
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--secondary-color);
}

/* ===========================
   SEÇÃO CONTATO
   =========================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(30, 41, 59, 0.9);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===========================
   RODAPÉ
   =========================== */

.footer {
    background-color: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--dark-border);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===========================
   RESPONSIVIDADE
   =========================== */

@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .about-grid,
    .projects-grid,
    .blog-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-card.full-width {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}