/* Base Styles */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #dbeafe;
    --hero-start: #dbeafe;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --background: #ffffff;
    --background-alt: #f9fafb;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 0.375rem;
}

body[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-hover: #93c5fd;
    --primary-light: rgba(96, 165, 250, 0.16);
    --hero-start: #0f172a;
    --text-dark: #f8fafc;
    --text-light: #cbd5e1;
    --text-lighter: #94a3b8;
    --background: #020617;
    --background-alt: #0f172a;
    --border-color: #1e293b;
    --card-bg: #111827;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 32px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--background);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    margin: 30px 0 15px 0;
    font-size: 1.4rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle i {
    color: #3b82f6; /* Azul para combinar com o restante do site */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn i {
    margin-right: 0.5rem;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--background-alt);
}

.btn-block {
    display: inline-flex;
    width: 100%;
}

/* Badges & Tags */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    background-color: var(--background-alt);
    color: var(--text-light);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.card-accent {
    height: 0.25rem;
    background-color: var(--primary-color);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header i {
    color: var(--primary-color);
}

/* Avatar */
.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.avatar-xl {
    width: 8rem;
    height: 8rem;
    font-size: 2rem;    
}

.avatar img, .avatar-xl img{
    border-radius: 50%;
}


/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.logo i {
    color: var(--primary-color);
}

.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    gap: 1.5rem;
}

.desktop-nav a {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--primary-color);
}

.header-actions {
    display: none;
}

.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background-color: var(--background-alt);
    color: var(--text-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
    background-color: var(--primary-light);
}

.theme-toggle-mobile {
    width: 100%;
    height: auto;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 500;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 20rem;
    height: 100dvh;
    background-color: var(--background);
    z-index: 200;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mobile-nav-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-profile h2 {
    font-size: 1rem;
}

.mobile-nav-profile p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-nav nav {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem;
    color: var(--text-dark);
    border-radius: var(--radius);
}

.mobile-nav a:hover {
    background-color: var(--background-alt);
}

.mobile-nav-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-footer .btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mobile-nav-footer .btn-block:hover {
    color: white;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--hero-start), var(--background));
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Tech Stack */
.tech-stack {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    padding: 10px;
    border-radius: 8px; 
}

.tech-icon:hover {
background-color: rgba(107, 114, 128, 0.2);
}

.tech-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tech-icon span {
    font-size: 0.75rem;
    color: var(--text-light);
}




/* Experience Section */
.experience {
    padding: 4rem 0;
}

.experience-list {
    max-width: 48rem;
    margin: 0 auto;
}

.job-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.job-header h3 {
    font-size: 1.125rem;
}

.company {
    color: var(--primary-color);
    font-weight: 500;
}

.job-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Skills Section */
.skills {
    padding: 4rem 0;
    background-color: var(--background-alt);
}

.tabs {
    max-width: 48rem;
    margin: 0 auto;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-detail {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: 8px;
}

.skill-header i {
    color: #3b82f6; /* Cor azul para destacar os ícones */
    margin-right: 10px;
    font-size: 1.2rem;
}

.skill-header h3 {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-header img {
    width: 24px;
    object-fit: contain;
}

.progress-bar {
    height: 0.5rem;
    background-color: var(--background-alt);
    border-radius: 9999px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-institution {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.course-description {
    color: var(--text-light);
    font-size: 0.875rem;
}

.education-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.education-header h3 {
    font-size: 1.125rem;
}

.institution {
    color: var(--primary-color);
    font-weight: 500;
}

.education-description {
    color: var(--text-light);
}

.education-card {
    margin-bottom: 30px; 
}

/* Projects Section */
.projects {
    padding: 4rem 0;
  
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

.projects .card {
    display: flex;
    flex-direction: column;
}

.project-image {
    aspect-ratio: 21 / 10;
    background-color: var(--background-alt);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem;
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.projects .card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.project-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.project-links .btn {
    width: 100%;
}

.repo-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.8125rem;
}

.repo-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-dark);
    background-color: var(--background-alt);
    font-weight: 500;
}

.repo-links a:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
    background-color: var(--primary-light);
}

/* Practice Areas Section */
.practice-areas {
    padding: 4rem 0;
    background-color: var(--background-alt);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-form h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Media Queries */
@media (min-width: 640px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }
    
    .desktop-nav {
        display: block;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .job-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .education-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-logo {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact .card-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .contact-form h3 {
        padding-top: 0;
        border-top: none;
    }
}

/* Container para as notificações */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #3b82f6; /* Azul padrão que você está usando */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
}

.toast.error {
    background: #ef4444; /* Vermelho para erros */
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
