:root {
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --bg: #0f172ac6;
    --card-bg: #1e293bbd;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --neon-x: 50vw;
    --neon-y: 50vh;


}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}


body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}


@keyframes neonMove {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(80px, 60px) scale(1.2);
    }
}

body::before {
    top: calc(var(--neon-y) - 210px);
    left: calc(var(--neon-x) - 210px);
}

body::after {
    top: calc(var(--neon-y) - 100px);
    left: calc(var(--neon-x) - 100px);
}



.profile-img-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 50%;
    animation-delay: .3s;
    animation: flutuar 2s ease-in-out infinite;

}


@keyframes flutuar {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* O elemento que cria o efeito de brilho giratório */
.profile-img-container::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(transparent, var(--primary), transparent 30%);
    animation: rotate 2.5s linear infinite;
}


.profile-img {
    width: 194px;
    height: 194px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    background-color: #fff;

    border: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}


header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
}

.typewriter {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    overflow: hidden;
    color: var(--primary);
    border-right: 0.15em solid var(--primary);
    animation: blink-cursor 700ms steps(1) infinite;
}

@keyframes blink-cursor {
    50% {
        border-color: transparent;
    }
}

.bio {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 320px;
    margin: 10px auto;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
}

.secondary-button:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
    transform: scale(1.05);
}

.social-links-list {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-bottom: 30px;
}

.social-item {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    transition: 0.3s;
}

.social-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}


.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);

    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;

}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
    transform: translateY(-5px) !important;
}


header section h2,
.project-card {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}


.skills-slider {
    opacity: 1;
    transform: none;
}



.project-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.project-info {
    padding: 15px;
}

.project-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.project-info p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.btn-view {
    font-size: 0.8rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
}

.skills-slider {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    display: flex;
}

.skills-track {
    display: flex;
    gap: 20px;
    animation: scroll 20s linear infinite;
    width: calc(150px * 12);
}

.skill-item {
    flex-shrink: 0;
    width: 100px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;

}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-120px * 6));
    }


}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.507);
    align-items: center;
    justify-content: center;

    transition: background-color 0.4s ease;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    margin: auto;


}

.modal-content::-webkit-scrollbar {
    display: none;
}


.modal-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: -10px;
    font-size: 40px;
    cursor: pointer;
    color: var(--primary);
}

.modal-img,
video.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--card-bg);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.social-links a {
    color: var(--text-dim);
}

.social-links a:hover {
    color: #00d2ff;
}


.modal-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.thumb {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.thumb:hover {
    border-color: var(--primary);
}

.profile-img {
    cursor: pointer;
    transition: 0.3s;
}

.profile-img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

#modalMediaContainer {
    width: 100%;
    height: 250px;
    background: #020617;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;
}


@media (min-width: 768px) {

    body::before,
    body::after {
        content: "";
        position: fixed;
        width: 450px;
        height: 450px;
        border-radius: 50%;
        filter: blur(130px);
        opacity: 0.55;
        z-index: -1;
        pointer-events: none;
        transition: transform 0.15s ease-out;
    }

    body::before {
        background: radial-gradient(circle, var(--primary), transparent 65%);
        top: calc(var(--neon-y) - 225px);
        left: calc(var(--neon-x) - 225px);
    }

    body::after {
        background: radial-gradient(circle, var(--secondary), transparent 65%);
        top: calc(var(--neon-y) - 120px);
        left: calc(var(--neon-x) - 120px);
    }
}

@media (max-width: 767px) {

    body::before,
    body::after {
        content: "";
        position: fixed;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        filter: blur(100px);
        opacity: 0.4;
        z-index: -1;
        pointer-events: none;
        animation: neonPulse 10s ease-in-out infinite alternate;
    }

    body::before {
        background: radial-gradient(circle, var(--primary), transparent 65%);
        top: 10%;
        left: -30%;
    }

    body::after {
        background: radial-gradient(circle, var(--secondary), transparent 65%);
        bottom: 5%;
        right: -30%;
        animation-delay: 3s;
    }
}

@keyframes neonPulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.25);
    }
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #0f172a;
}

.modal-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-link {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;

    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-link.demo {
    background: var(--primary);
    color: var(--bg);
}

.btn-link.codigo {
    background: #334155;
    color: white;
}

.btn-link:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}