*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0f;
    color: #c5c8d3;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 240px;
    background-color: rgba(18, 18, 22, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    display: flex;
    align-items: center;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-indicator {
    position: absolute;
    left: 0;
    width: 4px;
    height: 50px;
    background-color: #00aeff;
    border-radius: 0 3px 3px 0;
    transition: top 0.5s ease-in-out, height 0.3s ease-in-out;
    box-shadow: 0 0 8px rgba(0, 174, 255, 0.7);
}

.sidebar-menu {
    list-style: none;
    width: 100%;
}

.sidebar-menu .sidebar-link {
    color: #b0bac9;
    text-decoration: none;
    font-size: 1.05em;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 20px 30px;
    transition: color 0.25s ease, background-color 0.25s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.sidebar-menu .sidebar-link .sidebar-icon-placeholder {
    width: 22px;
    height: 22px;
    margin-right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #778295;
    transition: color 0.25s ease;
}
.sidebar-menu .sidebar-link:hover .sidebar-icon-placeholder,
.sidebar-menu .sidebar-link.active .sidebar-icon-placeholder {
    color: #00aeff;
}


.sidebar-menu .sidebar-link .sidebar-text {
    flex-grow: 1;
}

.sidebar-menu .sidebar-link.active {
    color: #00aeff;
    font-weight: 600;
    background-color: rgba(0, 174, 255, 0.12);
}

.sidebar-menu .sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #00aeff;
    border-radius: 50%;
}

.sidebar-menu .sidebar-link:hover {
    color: #ffffff;
    background-color: rgba(0, 174, 255, 0.07);
}

.content-area {
    margin-left: 240px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 60px 30px;
    position: relative;
    z-index: 1;
    background-image: linear-gradient(rgba(10, 10, 15, 0.92), rgba(10, 10, 15, 0.98)), url('images/bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.8em, 7vw, 4.5em);
    color: #ffffff;
    margin-bottom: 0.25em;
    font-weight: 700;
    letter-spacing: -1.5px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1.3em, 3.5vw, 2em);
    color: #00aeff;
    margin-bottom: 1em;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: clamp(1em, 2.2vw, 1.2em);
    color: #e0e6f0;
    line-height: 1.8;
    margin-bottom: 2.8em;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-button {
    display: inline-block;
    background-color: #00aeff;
    color: #0a0a0f;
    padding: 15px 40px;
    font-size: 1.15em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 5px 20px rgba(0, 174, 255, 0.25);
}

.hero-cta-button:hover {
    background-color: #0098e0;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 174, 255, 0.35);
}

.content-section {
    min-height: 60vh;
    padding: 80px 50px;
    background-color: #0f111a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}
.content-section:last-child {
    border-bottom: none;
    min-height: auto;
    padding-bottom: 100px;
}

.content-section h2 {
    text-align: center;
    font-size: clamp(2.2em, 5vw, 3em);
    margin-bottom: 60px;
    color: #e5e9f0;
    font-weight: 600;
}
.content-section p, .content-section li {
    font-size: 1.05em;
    color: #adb5bd;
}
.content-section p + p {
    margin-top: 1em;
}

.experience-item {
    background-color: rgba(30, 33, 46, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-left: 4px solid #00aeff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}
.experience-item h3 {
    color: #00aeff;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3em;
}
.experience-item .company-name {
    font-size: 1em;
    font-weight: 500;
    color: #cad0d9;
    margin-bottom: 5px;
}
.experience-item .experience-dates {
    font-style: italic;
    color: #8a94a6;
    margin-bottom: 15px;
    font-size: 0.9em;
}
.experience-item ul {
    list-style-position: outside;
    padding-left: 20px;
    margin-top: 10px;
}
.experience-item ul li {
    margin-bottom: 8px;
    font-size: 0.95em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px; /* Maior espaçamento */
}
.project-card {
    background-color: rgba(30, 33, 46, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-left: 4px solid #00aeff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}
.project-icon-placeholder {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 174, 255, 0.15);
    border: 1px solid rgba(0, 174, 255, 0.3);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00aeff;
    font-size: 1.3em;
}
.project-card h3 {
    color: #00aeff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25em;
}
.project-card p.card-text {
    margin-bottom: 15px;
    color: #adb5bd;
    font-size: 0.9em;
    flex-grow: 1;
}
.project-card small {
    font-size: 0.8em;
    color: #8a94a6;
    display: block;
    margin-bottom: 15px;
}
.project-card a.project-link {
    color: #00aeff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
    margin-top: auto;
}
.project-card a.project-link:hover {
    text-decoration: underline;
}
.loading-text {
    text-align: center;
    font-style: italic;
    color: #8a94a6;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
}
.skills-list li {
    background-color: rgba(0, 174, 255, 0.08);
    color: #00aeff;
    padding: 10px 22px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95em;
    border: 1px solid rgba(0, 174, 255, 0.25);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.skills-list li:hover {
    background-color: rgba(0, 174, 255, 0.2);
    color: #1cf2ff;
    transform: translateY(-2px);
}

.contact-intro {
    text-align: center;
    font-size: 1.15em;
    margin-bottom: 35px;
    color: #adb5bd;
}
.contact-methods {
    text-align: center;
}
.contact-methods p {
    margin-bottom: 20px;
}
.contact-link {
    color: #00aeff;
    text-decoration: none;
    font-size: 1.15em;
    font-weight: 500;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.contact-link i {
    margin-right: 10px;
}
.contact-link:hover {
    color: #1cf2ff;
    background-color: rgba(0, 174, 255, 0.1);
    border-color: rgba(0, 174, 255, 0.4);
}

@media (max-width: 768px) {
    .sidebar-nav {
        width: 100%;
        height: auto;
        position: fixed;
        top:0; left: 0;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
        background-color: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    .sidebar-indicator {
        display: none;
    }
    .sidebar-menu {
        display: flex;
        justify-content: flex-start;
    }
    .sidebar-menu .sidebar-link {
        padding: 15px 20px;
        font-size: 0.9em;
        border-left: none;
        white-space: nowrap;
    }
     .sidebar-menu .sidebar-link.active::before {
        display: none;
    }
    .sidebar-menu .sidebar-link .sidebar-icon-placeholder {
        margin-right: 8px;
        width: 18px;
        height: 18px;
    }
    .content-area {
        margin-left: 0;
        padding-top: 60px;
    }
    .hero-section {
        min-height: 80vh;
        padding-top: 20px;
    }
    .content-section {
        padding: 70px 25px;
    }
    .content-section h2 {
        font-size: clamp(2em, 5vw, 2.8em);
        margin-bottom: 45px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}
.project-card {
    background-color: rgba(30, 33, 46, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-left: 4px solid #00aeff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}
.project-icon-placeholder {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 174, 255, 0.15);
    border: 1px solid rgba(0, 174, 255, 0.3);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00aeff;
    font-size: 1.3em;
}
.project-card h3 {
    color: #00aeff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25em;
}
.project-card p.card-text {
    margin-bottom: 15px;
    color: #adb5bd;
    font-size: 0.9em;
    flex-grow: 1;
}
.project-card small {
    font-size: 0.8em;
    color: #8a94a6;
    display: block;
    margin-bottom: 15px;
}
.project-card a.project-link {
    color: #00aeff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
    margin-top: auto;
    margin-right: 10px;
}
.project-card a.project-link:hover {
    text-decoration: underline;
}
.loading-text {
    text-align: center;
    font-style: italic;
    color: #8a94a6;
    width: 100%;
}

.github-profile-link-container {
    text-align: center;
    margin-top: 40px;
}

.github-profile-button {
    display: inline-flex;
    align-items: center;
    background-color: #24292e;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.github-profile-button i.fab.fa-github {
    margin-right: 10px;
    font-size: 1.2em;
}

.github-profile-button:hover {
    background-color: #3e444a;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
}
.skills-list li {
    background-color: rgba(0, 174, 255, 0.08);
    color: #00aeff;
    padding: 10px 22px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95em;
    border: 1px solid rgba(0, 174, 255, 0.25);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.skills-list li:hover {
    background-color: rgba(0, 174, 255, 0.2);
    color: #1cf2ff;
    transform: translateY(-2px);
}

.contact-intro {
    text-align: center;
    font-size: 1.15em;
    margin-bottom: 35px;
    color: #adb5bd;
}
.contact-methods {
    text-align: center;
}
.contact-methods p {
    margin-bottom: 20px;
}
.contact-link {
    color: #00aeff;
    text-decoration: none;
    font-size: 1.15em;
    font-weight: 500;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.contact-link i {
    margin-right: 10px;
}
.contact-link:hover {
    color: #1cf2ff;
    background-color: rgba(0, 174, 255, 0.1);
    border-color: rgba(0, 174, 255, 0.4);
}

@media (max-width: 768px) {
    .sidebar-nav {
        width: 100%;
        height: auto;
        position: fixed;
        top:0; left: 0;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
        background-color: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    .sidebar-indicator {
        display: none;
    }
    .sidebar-menu {
        display: flex;
        justify-content: flex-start;
    }
    .sidebar-menu .sidebar-link {
        padding: 15px 20px;
        font-size: 0.9em;
        border-left: none;
        white-space: nowrap;
    }
     .sidebar-menu .sidebar-link.active::before {
        display: none;
    }
    .sidebar-menu .sidebar-link .sidebar-icon-placeholder {
        margin-right: 8px;
        width: 18px;
        height: 18px;
    }
    .content-area {
        margin-left: 0;
        padding-top: 60px;
    }
    .hero-section {
        min-height: 80vh;
        padding-top: 20px;
    }
    .content-section {
        padding: 70px 25px;
    }
    .content-section h2 {
        font-size: clamp(2em, 5vw, 2.8em);
        margin-bottom: 45px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .github-profile-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}