
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;


    --bg-main-light: #F9F7FF;
    --bg-elements-light: #FFFFFF;
    --text-main-light: #1E1B26;
    --text-secondary-light: #5C5A61;
    --primary-vibrant-light: #9D00FF;
    --secondary-vibrant-light: #00BFFF; 

   
    --bg-main-dark: #0D1117; 
    --bg-elements-dark: #161B22;
    --text-main-dark: #E6EDF3;
    --text-secondary-dark: #8B949E; 
    --primary-vibrant-dark: #F000B8; 
    --secondary-vibrant-dark: #30C8F0; 


    --bg-main: var(--bg-main-light);
    --bg-elements: var(--bg-elements-light);
    --text-main: var(--text-main-light);
    --text-secondary: var(--text-secondary-light);
    --primary-vibrant: var(--primary-vibrant-light);
    --secondary-vibrant: var(--secondary-vibrant-light);

    --border-color: rgba(0,0,0,0.1);
    --shadow-color: rgba(0,0,0,0.08);

    --header-height: 70px;
    --border-radius-soft: 8px;
    --border-radius-medium: 12px;
    --transition-smooth: all 0.3s ease-in-out;
}


body.dark-mode {
    --bg-main: var(--bg-main-dark);
    --bg-elements: var(--bg-elements-dark);
    --text-main: var(--text-main-dark);
    --text-secondary: var(--text-secondary-dark);
    --primary-vibrant: var(--primary-vibrant-dark);
    --secondary-vibrant: var(--secondary-vibrant-dark);
    --border-color: rgba(255,255,255,0.1);
    --shadow-color: rgba(0,0,0,0.2);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; 
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    max-width: 70ch;
}

a {
    color: var(--primary-vibrant);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--secondary-vibrant);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}


.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-vibrant);
    margin: 10px auto 0;
    border-radius: 2px;
}

.btn {
    min-width: 150px;
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-soft);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-vibrant);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-vibrant);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-vibrant);
    border: 2px solid var(--primary-vibrant);
}

.btn-secondary:hover {
    background-color: var(--primary-vibrant);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    display: flex;
    align-items: center;
}

#main-header.scrolled {
    background-color: rgba(var(--bg-elements-rgb), 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px; 
    margin: 0 auto;
    height: 100%;
}

#main-header .logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}
#main-header .logo:hover {
    color: var(--primary-vibrant);
    text-decoration: none;
}

#main-header .nav-links {
    display: flex;
    align-items: center;
}

#main-header .nav-links li {
    margin-left: 25px;
}

#main-header .nav-links a {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 0;
    position: relative;
}

#main-header .nav-links a:hover,
#main-header .nav-links a.active {
    color: var(--primary-vibrant);
    text-decoration: none;
}

#main-header .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-vibrant);
    transition: width 0.3s ease;
}

#main-header .nav-links a.active::after,
#main-header .nav-links a:hover::after {
    width: 100%;
}

#main-header .controls {
    display: flex;
    align-items: center;
}

#theme-switcher {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    margin-right: 20px;
    transition: var(--transition-smooth);
}
#theme-switcher:hover {
    color: var(--primary-vibrant);
    transform: scale(1.1);
}

.language-switcher {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 0.9rem;
}
.language-switcher .lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    font-weight: 500;
}
.language-switcher .lang-btn.active,
.language-switcher .lang-btn:hover {
    color: var(--primary-vibrant);
    font-weight: 700;
}
.language-switcher span {
    color: var(--text-secondary);
    margin: 0 5px;
}

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden; 
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 90%;
    max-width: 1100px;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 5px solid var(--bg-elements); 
}

.hero-text {
    max-width: 600px;
}

.hero-text .greeting {
    font-size: 2.8rem;
    min-height: 50px;
    width: 100%;
    overflow: hidden;
    position: relative;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    min-height: 20px;
}
.hero-text .greeting #typed-greeting {
    border-right: 3px solid var(--primary-vibrant);
    animation: blinkCursor 0.7s infinite;
    white-space: nowrap;
    overflow: hidden;
}
@keyframes blinkCursor {
    from { border-right-color: var(--primary-vibrant); }
    to { border-right-color: transparent; }
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}
.hero-buttons .btn:last-child {
    margin-right: 0;
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0; 
    transition: opacity 0.5s ease;
}

.about-content {
    text-align: center;
    margin-bottom: 60px;
}

.about-content .about-block {
    margin-bottom: 0;
}

.about-content p,
.about-content h3[data-lang="aboutCareerGoalsTitle"] {
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.about-content p[data-lang="aboutDesc1"] {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-content h3[data-lang="aboutCareerGoalsTitle"] {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--primary-vibrant);
    margin-top: 0; 
    margin-bottom: 15px; 
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 20px 0;
}
.timeline-title {
    text-align: center;
    margin-bottom: 60px; 
    color: var(--primary-vibrant);
}


.timeline::before { 
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-vibrant);
    opacity: 0.3;
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px; 
    padding-left: 50px; 
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-marker {
    position: absolute;
    left: 10px; 
    top: 5px;   
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-vibrant);
    border: 3px solid var(--bg-main);
    z-index: 1;
}
.timeline-content h4 {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}
.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .timeline::before { 
        left: 50%;
        margin-left: -1.5px;
    }
    .timeline-item {
        padding-left: 0;
        width: 100%; 
    }
    .timeline-item::after { 
        content: "";
        display: table;
        clear: both;
    }
    .timeline-marker {
        left: 50%;
        transform: translateX(-50%); 
        
    }
    .timeline-content {
        width: calc(50% - 45px);
        position: relative; 
    }
    .timeline-item:nth-child(odd) .timeline-content {
        float: left;
        text-align: right;
        padding-right: 30px;
    }
    .timeline-item:nth-child(even) .timeline-content {
        float: right;
        text-align: left;
        padding-left: 30px; 
    }
}

@media (max-width: 480px) {

    .timeline::before {
        left: 15px; 
    }
    .timeline-item {
        padding-left: 40px; 
        margin-bottom: 30px;
    }
    .timeline-marker {
        left: 5px; 
        width: 18px;
        height: 18px;
    }
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    .timeline-content p {
        font-size: 0.9rem;
    }
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.skill-category h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-vibrant);
    padding-left: 10px;
}
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skill-tag {
    background-color: var(--bg-elements);
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: var(--border-radius-soft);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    cursor: default; 
}
.skill-tag:hover {
    background-color: var(--primary-vibrant);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow-color);
    border-color: var(--primary-vibrant);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.project-card {
    background-color: var(--bg-elements);
    border-radius: var(--border-radius-medium);
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}
.project-title {
    font-size: 1.4rem;
    color: var(--primary-vibrant);
    margin-bottom: 10px;
}
.project-description {
    font-size: 0.95rem;
    flex-grow: 1; 
    margin-bottom: 15px;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.tech-tag {
    background-color: var(--secondary-vibrant);
    color: #fff; 
    padding: 5px 10px;
    border-radius: var(--border-radius-soft);
    font-size: 0.8rem;
    font-weight: 500;
}
body.dark-mode .tech-tag {
    background-color: var(--secondary-vibrant-dark);
    color: var(--bg-main-dark);
}
.project-link {
    display: inline-flex; 
    align-items: center;
    color: var(--primary-vibrant);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}
.project-link i {
    margin-right: 8px;
    font-size: 1.2rem;
}
.project-link:hover {
    color: var(--secondary-vibrant);
    text-decoration: underline;
}
.projects-cta {
    text-align: center;
    margin-top: 40px;
}
.projects-cta .btn i {
    margin-right: 8px;
}


.certifications-list {
    max-width: 700px;
    margin: 0 auto;
}
.certifications-list li {
    background-color: var(--bg-elements);
    border-radius: var(--border-radius-soft);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px var(--shadow-color);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}
.certifications-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}
.certification-icon {
    font-size: 2rem;
    color: var(--primary-vibrant);
    margin-right: 20px;
    flex-shrink: 0;
}
.certification-title {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 5px;
}
.certification-issuer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.certification-link {
    margin-left: auto;
    font-size: 1.5rem; 
    color: var(--text-secondary);
}
.certification-link:hover {
    color: var(--primary-vibrant);
}


#contato .container {
    max-width: 600px;
}
#contato .email-link {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-vibrant);
    margin: 20px 0;
    word-break: break-all;
}
#contato .email-link:hover {
    text-decoration: underline;
    color: var(--secondary-vibrant);
}
.social-links {
    margin: 30px 0;
}
.social-links a {
    font-size: 2.2rem; 
    color: var(--text-secondary);
    margin: 0 15px;
    transition: var(--transition-smooth);
}
.social-links a:hover {
    color: var(--primary-vibrant);
    transform: scale(1.1);
}
.closing-message {
    font-size: 1.1rem;
    font-style: italic;
}


footer {
    background-color: var(--bg-elements);
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

footer .container {
    text-align: center;
}

.footer-quote, .copyright {
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: auto;
    max-width: 70ch; 
}

.footer-quote {
    font-style: italic;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.85rem;
    margin-bottom: 0;
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--text-secondary-light);
    border-top-color: var(--primary-vibrant-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

body.dark-mode #preloader .spinner {
     border-color: var(--text-secondary-dark);
     border-top-color: var(--primary-vibrant-dark);
}



@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-image { margin-bottom: 30px; }
    .hero-image img { width: 250px; height: 250px; }
    .hero-text .greeting {
        font-size: 2.2rem;
        min-height: 20px;}
    .hero-text .tagline { font-size: 1.3rem; }

    
    .timeline::before { left: 20px; margin-left: 0; }
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }
    .timeline-item .timeline-content {
        width: auto;
        float: none;
        padding-left: 0;
        padding-right: 0;
        text-align: left;
    }
    .timeline-marker {
        left: 10px; 
        transform: none;
    }
        #main-header.logo {
        font-size: 1.0rem;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    #main-header .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-elements);
        box-shadow: 0 5px 10px var(--shadow-color);
        padding: 10px 0;
    }

    .hero-text .greeting {
        font-size: 2.2rem;
        min-height: 5px;}

    #main-header .logo {
        font-size: 1.4rem;
    }

    
    #main-header .nav-links.active {
        display: flex;
    }
    #main-header .nav-links li {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }
    #main-header .nav-links a {
         display: block;
         padding: 10px;
         width: 100%;
    }
    #main-header .nav-links a::after {
        display: none; 
    }
     #main-header .nav-links a.active,
     #main-header .nav-links a:hover {
        background-color: var(--primary-vibrant);
        color: #fff;
    }
    #mobile-menu-toggle {
        display: block; 
    }

    .hero-section { padding-top: calc(var(--header-height) + 20px); }
    .hero-image img { width: 200px; height: 200px; }

    .skills-grid, .projects-grid {
        grid-template-columns: 1fr; 
    }
    .section-padding { padding: 60px 0; }

    .language-switcher .lang-btn {
        font-size: 0.85rem; 
        padding: 4px; 
    }

    .language-switcher span { 
        margin: 0 2px; 
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.9rem; 
    }

    #theme-switcher {
        font-size: 1.0rem; 
        padding: 4px; 
    }
}
@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-text .greeting { font-size: 2rem; }
    .hero-text .tagline { font-size: 1.1rem; }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 10px auto; 
    }
    .social-links a { font-size: 1.8rem; margin: 0 10px; }
    #contato .email-link { font-size: 1.2rem; }
}


body {

    --bg-elements-rgb: 255, 255, 255;

    --bg-elements-dark-rgb: 22, 27, 34;
}
body.dark-mode {
    --bg-elements-rgb: var(--bg-elements-dark-rgb);
}