/* ==================== */
/* VARIÁVEIS GLOBAIS */
/* ==================== */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --accent-color: #fd79a8;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --container-width: 1200px;
}

/* ==================== */
/* RESET E ESTILOS BASE */
/* ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

/* ==================== */
/* FUNDO ANIMADO */
/* ==================== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    z-index: -1;
    animation: gradientBG 15s ease infinite;
    will-change: background-position;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== */
/* NAVEGAÇÃO */
/* ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 500;
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1001;
    background: none;
    border: none;
    color: var(--dark-color);
    padding: 10px;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* ==================== */
/* SEÇÃO HERO */
/* ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary-color);
    display: inline-block;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 1/1;
}

.profile-photo:hover {
    transform: scale(1.03) rotate(1deg);
}

/* ==================== */
/* BOTÕES */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    text-align: center;
    gap: 10px;
    font-size: 1rem;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
    background-color: #5d4de0;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: rgba(108, 92, 231, 0.1);
}

/* ==================== */
/* SEÇÕES */
/* ==================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ==================== */
/* RECURSOS */
/* ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.feature-card ul {
    text-align: left;
    margin-top: 20px;
}

.feature-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--text-light);
}

.feature-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ==================== */
/* SOBRE MIM */
/* ==================== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.7;
}

.about-list {
    margin: 30px 0;
}

.about-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
}

.about-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-width: 500px;
}

/* ==================== */
/* GALERIA DA ROTINA */
/* ==================== */
.daily-life {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.image-container {
    height: 220px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover .image-container img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.card-tags span {
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ==================== */
/* FORMULÁRIO DE CONTATO */
/* ==================== */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
    min-height: 100px;
}

/* ==================== */
/* CURRÍCULO */
/* ==================== */
.resume-container {
    padding: 100px 0 50px;
    position: relative;
    z-index: 1;
}

.resume-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.header-title {
    flex: 2;
    min-width: 300px;
}

.header-title h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

.header-subtitle {
    margin-top: 10px;
}

.header-title h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--dark-color);
    margin: 0;
}

.header-info {
    flex: 1;
    min-width: 250px;
    background-color: rgba(108, 92, 231, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
}

.header-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    color: var(--dark-color);
}

.header-info a {
    transition: var(--transition);
}

.header-info a:hover {
    color: var(--primary-color);
}

.header-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.resume-section {
    margin-bottom: 50px;
}

.resume-section h2 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.resume-section h2 i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.resume-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}

.resume-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.resume-item h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
}

.resume-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.institution {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-block;
}

.resume-item ul {
    margin-top: 15px;
}

.resume-item ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-light);
}

.resume-item ul li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.skill-category h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-item span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.certification-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.certification-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.certification-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.certification-header h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-techs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.project-techs span {
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: #5d4de0;
}

.download-container {
    text-align: center;
    margin-top: 50px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* ==================== */
/* RODAPÉ */
/* ==================== */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li i {
    width: 20px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==================== */
/* ANIMAÇÕES */
/* ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==================== */
/* RESPONSIVO */
/* ==================== */
@media (max-width: 1200px) {
    .hero .container {
        gap: 30px;
    }
    
    .about-content {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero p {
        max-width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, 
    .about-image {
        width: 100%;
    }
    
    .about-image {
        margin-top: 30px;
        max-width: 100%;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    /* Ajustes Gerais */
    section {
        padding: 80px 0;
    }
    
    /* Navegação */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        padding: 12px 0;
        display: block;
        width: 100%;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    /* Cards */
    .feature-card,
    .gallery-card {
        padding: 30px 20px;
    }
    
    .image-container {
        height: 180px;
    }
    
    /* Sobre Mim */
    .profile-photo {
        height: 350px;
    }
    
    /* Currículo */
    .resume-container {
        padding: 80px 0 30px;
    }
    
    .resume-header {
        padding: 20px;
    }
    
    .header-title h1 {
        font-size: 2rem;
    }
    
    .header-title h2 {
        font-size: 1.2rem;
    }
    
    .header-info {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    /* Tipografia */
    h2 {
        margin-bottom: 30px;
    }
    
    h2::after {
        bottom: -10px;
    }
    
    /* Espaçamentos */
    section {
        padding: 60px 0;
    }
    
    /* Botões */
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Formulário */
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
    
    /* Reset Mobile */
    body {
        overflow-x: hidden;
        width: 100vw;
    }
    
    section {
        padding: 40px 15px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}