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

/* =========================
   BODY
========================= */
body {
    background: transparent; /* ESSENCIAL */
    color: #EAEAEA;
    font-family: 'Inter', sans-serif;
}

/* =========================
   CONTAINER
========================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

/* =========================
   TITLE
========================= */
.title {
    text-align: center;
    font-family: 'Orbitron';
    margin-bottom: 30px;

    text-shadow: 
        0 0 10px #EAEAEA,
        0 0 20px #EAEAEA,
        0 0 40px #EAEAEA;
}

/* =========================
   HERO GALLERY (NOVA)
========================= */
.hero-gallery {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.hero-gallery img {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    cursor: pointer;

    border: 1px solid rgba(255,255,255,0.2);

    box-shadow:
        0 0 15px rgba(255,255,255,0.3),
        0 0 40px rgba(255,255,255,0.1);

    transition: 0.3s ease;
}

.hero-gallery img:hover {
    transform: scale(1.03);
}

/* NAV BUTTONS */
.hero-gallery .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

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

    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    color: #EAEAEA;

    border-radius: 8px;
    cursor: pointer;

    transition: 0.25s ease;
}

.hero-gallery .nav:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.hero-gallery .left {
    left: -50px;
}

.hero-gallery .right {
    right: -50px;
}

/* =========================
   PROJECT BUTTONS
========================= */
.project-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 15px 0 40px;
    flex-wrap: wrap;
}

.project-actions .btn {
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #EAEAEA;
    background: rgba(255,255,255,0.05);

    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;

    display: flex;
    align-items: center;
    gap: 8px;

    transition: all 0.3s ease;

    /* Neon pulse contínuo mais intenso */
    box-shadow: 0 0 6px rgba(255,255,255,0.2),
                0 0 12px rgba(255,255,255,0.1);
    animation: neonPulseContinuous 1.5s infinite alternate;
}

/* Hover: glow branco em letras e ícone */
.project-actions .btn:hover {
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;

    box-shadow: 0 0 12px #fff,
                0 0 24px #fff,
                0 0 36px #fff,
                0 0 48px #fff;

    transform: translateY(-2px);
}

/* Ícone dentro do botão */
.project-actions .btn i {
    transition: all 0.3s ease;
}

/* Glow do ícone no hover */
.project-actions .btn:hover i {
    filter: drop-shadow(0 0 10px #fff);
    transform: scale(1.2);
}

/* Keyframes neon pulse contínuo mais forte */
@keyframes neonPulseContinuous {
    0% {
        box-shadow: 0 0 6px rgba(255,255,255,0.2),
                    0 0 12px rgba(255,255,255,0.1);
    }
    50% {
        box-shadow: 0 0 10px rgba(255,255,255,0.35),
                    0 0 20px rgba(255,255,255,0.2);
    }
    100% {
        box-shadow: 0 0 6px rgba(255,255,255,0.2),
                    0 0 12px rgba(255,255,255,0.1);
    }
}

/* =========================
   LAYOUT
========================= */
.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* =========================
   CONTENT SECTIONS
========================= */
.content section {
    border: 1px solid rgba(255,255,255,0.08);
    padding: 26px;
    margin-bottom: 20px;
    border-radius: 10px;

    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(6px);

    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    transition: 0.3s ease;
}

.content section:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 15px rgba(255,255,255,0.3),
        0 0 30px rgba(255,255,255,0.1);
}

/* TITLES */
.content h2 {
    font-family: 'Inter', sans-serif; /* Fonte disponível */
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #FFFFFF;

    /* Neon pulse */
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(0, 255, 255, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2),
        0 0 25px rgba(0, 255, 255, 0.1);
    
    animation: neonPulse 1.5s infinite alternate;
}

/* Animação para o efeito de pulso */
@keyframes neonPulse {
    0% {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.3),
            0 0 10px rgba(255, 255, 255, 0.2),
            0 0 15px rgba(0, 255, 255, 0.1),
            0 0 20px rgba(0, 255, 255, 0.1),
            0 0 25px rgba(0, 255, 255, 0.05);
    }
    100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 25px rgba(0, 255, 255, 0.1),
            0 0 30px rgba(0, 255, 255, 0.1),
            0 0 35px rgba(0, 255, 255, 0.3);
    }
}

/* TEXT */
.content p {
    line-height: 1.8;
    font-size: 15.5px;
    color: rgba(255,255,255,0.75);

    letter-spacing: 0.3px;
    font-weight: 400;

    max-width: 65ch;
}

.content p strong {
    color: #fff;
    font-weight: 600;
}

.content p + p {
    margin-top: 10px;
}

/* =========================
   TECH
========================= */
.tech-container {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.tech-item {
    width: 90px;
    height: 90px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;

    transition: 0.3s ease;
}

.tech-item i {
    font-size: 34px;
}

.tech-item span {
    font-size: 0.75rem;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.tech-item:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px currentColor);
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 22px;
    height: fit-content;

    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(8px);

    box-shadow:
        0 0 10px rgba(255,255,255,0.05),
        0 0 30px rgba(255,255,255,0.03);

    transition: 0.3s ease;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: rgba(255,255,255,0.7);

    display: block;
    padding: 10px 12px;
    border-radius: 8px;

    font-size: 14px;
    letter-spacing: 0.5px;

    transition: all 0.25s ease;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;

    transform: translateX(6px);

    box-shadow: 0 0 10px rgba(255,255,255,0.15);
}

.sidebar a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #fff;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.sidebar a:hover::before {
    transform: scaleY(1);
}

/* =========================
   LIGHTBOX
========================= */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.95);

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

    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;

    z-index: 9999;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

#close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #EAEAEA;
    cursor: pointer;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .hero-gallery .left {
        left: 10px;
    }

    .hero-gallery .right {
        right: 10px;
    }

    .tech-container {
        justify-content: center;
    }
}

#tsparticles {
    position: fixed;
    top: 0;          /* ADICIONA */
    left: 0;         /* ADICIONA */
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    position: relative;
    z-index: 1;
}

html, body {
    height: 100%;
}


.back-btn {
    display: inline-block;
    margin-bottom: 25px;

    text-decoration: none;
    color: #EAEAEA;

    padding: 10px 16px;

    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);

    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition: all 0.25s ease;
}

.back-btn:hover {
    transform: translateX(-5px);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}


.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

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

    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    color: #EAEAEA;

    border-radius: 8px;
    cursor: pointer;

    transition: 0.25s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.lightbox-nav.left {
    left: 30px;
}

.lightbox-nav.right {
    right: 30px;
}