/* Variáveis de Cor - Startup Style */
:root {
    --bg-dark: #0a0a0c;
    --card-bg: #16161a;
    --accent-color: #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --gradient: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   AQUI ESTÁ A ALTERAÇÃO (BLOBS)
   Adicionado: will-change e animações otimizadas
   ========================================= */
.blob-portal {
    position: fixed;
    width: 500px;
    height: 500px;
    background: var(--accent-glow);
    filter: blur(130px);
    border-radius: 50%;
    z-index: -1;
    top: -100px;
    right: -100px;

    /* Otimização de GPU */
    will-change: transform;
    animation: float-blob-1 20s ease-in-out infinite alternate;
}

.blob-portal-2 {
    position: fixed;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.2);
    filter: blur(110px);
    border-radius: 50%;
    z-index: -1;
    bottom: -50px;
    left: -50px;

    /* Otimização de GPU */
    will-change: transform;
    animation: float-blob-2 25s ease-in-out infinite alternate-reverse;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: 0.3s;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-nav {
    background: var(--gradient);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: white !important;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15%;
}

.badge {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

h1 {
    font-display: swap;
    contain: layout;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.4s;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    border: 1px solid #333;
    color: white;
}

.btn-secondary:hover {
    background: #333;
}

/* Seções Gerais */
section {
    padding: 100px 10%;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    text-align: center;
}

/* Skills Cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #222;
    transition: 0.3s;
}

.skill-card:hover {
    border-color: var(--accent-color);
}

.skill-card.highlighted {
    background: linear-gradient(145deg, #16161a 0%, #1e1e24 100%);
    border-color: #333;
}

.status {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Projetos */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #222;
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.85));
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
    transition: transform 0.9s ease-in-out;
}

.project-img.imc-img {
    background-image:
        linear-gradient(rgba(10, 10, 12, 0.75),
            rgba(10, 10, 12, 0.9)),
        url("img/imc-master.webp");
}

.project-img.dashboard-img {
    background:
        linear-gradient(135deg, #16161a, #1e1e24);
}

.project-info {
    padding: 30px;
}

.tags {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.tags span {
    font-size: 0.7rem;
    background: #222;
    padding: 4px 10px;
    border-radius: 5px;
}

.project-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.project-links a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-box {
    background: var(--gradient);
    padding: 80px 40px;
    border-radius: 30px;
    text-align: center;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
    scale: 40px;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

footer {
    padding: 40px 10%;
    border-top: 1px solid #222;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ================= GLASS LOADING ================= */
#loading {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.glass-loader {
    background: rgba(22, 22, 26, 0.55);
    border-radius: 28px;
    padding: 50px 60px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 70px rgba(124, 58, 237, 0.35);
    text-align: center;
}

/* ================= SVG LOGO ================= */
.logo-svg {
    margin-bottom: 20px;
}

#logo-circle {
    fill: none;
    stroke: url(#grad);
    stroke-width: 4;
    stroke-dasharray: 380;
    stroke-dashoffset: 380;
    transition: stroke-dashoffset 0.15s linear;
}

#logo-text {
    fill: none;
    stroke: white;
    stroke-width: 1;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 5px;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.15s linear, fill 0.3s ease;
}

/* Barra */
.loading-bar {
    width: 220px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.loading-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--gradient);
    transition: width 0.15s linear;
}

/* Conteúdo escondido */
.content-hidden {
    display: none;
}

/* ================= ANIMAÇÕES ================= */
@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawText {
    to {
        stroke-dashoffset: 0;
        fill: white;
    }
}

@keyframes loadBar {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Keyframes de Animação de Entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse base (somente texto) */
.pulse {
    animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
    0% {
        color: var(--text-secondary);
    }

    50% {
        color: var(--accent-color);
    }

    100% {
        color: var(--text-secondary);
    }
}

/* Badge pulsando com glow */
.badge.pulse {
    animation: pulse-badge 2.5s infinite;
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 0 0 rgba(124, 58, 237, 0);
        border-color: rgba(124, 58, 237, 0.4);
    }

    50% {
        box-shadow: 0 0 18px rgba(124, 58, 237, 0.6);
        border-color: var(--accent-color);
    }

    100% {
        box-shadow: 0 0 0 rgba(124, 58, 237, 0);
        border-color: rgba(124, 58, 237, 0.4);
    }
}

/* =========================================
   AQUI ESTÁ A ALTERAÇÃO (KEYFRAMES)
   Novos movimentos otimizados substituindo os antigos
   ========================================= */

@keyframes float-blob-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(10px, -10px) scale(1.05);
    }
}

@keyframes float-blob-2 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(30px, 30px) rotate(45deg) scale(0.9);
    }

    66% {
        transform: translate(-20px, 50px) rotate(90deg) scale(1.1);
    }

    100% {
        transform: translate(0, 0) rotate(120deg) scale(1);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 5%;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}