/* -------------------- Global -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: 0.3s;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ---------- Cores ---------- */
:root {
    --bg: #f5f8ff;
    --text: #1a1a1a;
    --card: rgba(255,255,255,0.55);
    --highlight: #4e8cff;
    --header-bg: rgba(255,255,255,0.15);
}

.dark {
    --bg: #0f0f12;
    --text: #f1f1f1;
    --card: rgba(255,255,255,0.09);
    --highlight: #70a5ff;
    --header-bg: rgba(0,0,0,0.3);
}

/* -------------------- Header -------------------- */
.header {
    position: fixed;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background: var(--header-bg);
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--highlight);
}

/* ---------- Dark Mode Button ---------- */
.dark-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* -------------------- Hero -------------------- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #4e8cff22, transparent);
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    max-width: 700px;
    animation: fadeUp 1s ease forwards;
}

.hero span.highlight {
    color: var(--highlight);
}

.subtext {
    margin-top: 10px;
    opacity: 0.85;
}

.btn {
    margin-top: 25px;
    padding: 12px 30px;
    background: var(--highlight);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* -------------------- Sections -------------------- */
.section {
    padding: 100px 60px;
    max-width: 1100px;
    margin: auto;
}

h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

/* -------------------- Sobre -------------------- */
.sobre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.sobre-text {
    flex: 1 1 300px;
    font-size: 16px;
    line-height: 1.6;
}

.sobre-image {
    flex: 1 1 300px;
    text-align: center;
}

.sobre-image img {
    max-width: 250px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* -------------------- Projetos -------------------- */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-item {
    display: flex;
    flex-wrap: wrap;
    background: var(--card);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-info {
    flex: 2 1 300px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 15px;
    margin-bottom: 8px;
}

.project-widget {
    flex: 1 1 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.github-btn {
    padding: 10px 20px;
    background: var(--highlight);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.github-btn:hover {
    transform: scale(1.05);
}

/* ---------- Skills Circulares ---------- */
.skills-circles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.skill-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
}

.skill-circle p {
    margin-top: 15px;
    font-size: 16px;
}

/* Círculo */
.circle {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 50%;
    background: var(--card);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    font-size: 18px;
}

.inside-circle {
    position: absolute;
    text-align: center;
    font-weight: 600;
}

/* Máscaras para animação circular */
.mask {
    width: 120px;
    height: 120px;
    position: absolute;
    border-radius: 50%;
    clip: rect(0px, 120px, 120px, 60px);
}

.full, .half {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--highlight);
    transform: rotate(0deg);
    transition: transform 1s linear;
}

.mask.full {
    clip: rect(0px, 60px, 120px, 0px);
}

.mask.half {
    clip: rect(0px, 120px, 120px, 60px);
}

/* -------------------- Footer -------------------- */
.footer {
    background: var(--header-bg);
    text-align: center;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    width: 100%;
}

.footer p {
    margin-bottom: 15px;
    color: var(--text);
    font-size: 14px;
}

.main__socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.main__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--card);
    border-radius: 50%;
    box-shadow: rgba(0,0,0,0.1) 0px 2px 5px;
    transition: 0.3s;
}

.main__socials a:hover {
    transform: scale(1.15);
    background: var(--highlight);
}

.main__socials a svg {
    fill: currentColor;
}

.Link__instagram:hover svg {
    fill: white;
}

.Link__github:hover svg {
    fill: white;
}


/* -------------------- Fade Animation -------------------- */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.7s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------- Keyframes -------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------- Responsividade -------------------- */
@media(max-width: 900px){
    .sobre-grid {
        flex-direction: column;
    }
    .sobre-image img {
        max-width: 200px;
    }

    .project-item {
        flex-direction: column;
        text-align: center;
    }
    .project-widget {
        margin-top: 15px;
    }
    .skills-circles {
        gap: 25px;
    }
    .circle {
        width: 100px;
        height: 100px;
    }
}

@media(max-width: 600px){
    header {
        padding: 10px 20px;
    }
    .section {
        padding: 60px 20px;
    }
    h2 {
        font-size: 28px;
    }
}

.cursor {
    display: inline-block;
    font-weight: 600;
    animation: blink 0.7s infinite;
    color: var(--highlight);
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}




