:root {
    --bg-dark: #0a0a0a;
    --text-primary: #ffffff;
    --neon-blue: #00f7ff;
    --neon-purple: #bc13fe;
    --card-bg: #111111;
}

* {
    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;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--neon-blue);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.hero-img {
    width: 200px;
    height: auto;
    border-radius: 2%;
    margin-top: 1rem;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
}

.typing-text {
    position: relative;
    display: inline-block;
    text-align: left;
    font-size: 1rem;
    

}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 12%;
    background: var(--neon-blue);
    pointer-events: none;
    opacity: 0.4;
    animation: explode 900ms forwards;
}

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

    to {
        transform: translate(var(--dx), var(--dy)) scale(0.3);
        opacity: 0;
    }
}

.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Sections */
section {
    padding: 6rem 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.1);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.skill-items {
    display: grid;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-item i {
    color: var(--neon-blue);
    font-size: 1.5rem;
}

/* Projects Section */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.projeto-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    text-align: center;
    align-items: center;
}

.tech-stack span {
    background: rgba(0, 247, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-neon {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-neon:hover {
    background: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-blue);
}

/* Contact Section */
.contato-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.email-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.email-text {
    font-size: 1.2rem;
    color: var(--neon-blue);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.copy-btn:hover .tooltip {
    opacity: 1;
}

.copy-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--neon-blue);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 9999;
    /* Ensure it's above all other elements */
    box-shadow: 0 4px 15px rgba(0, 247, 255, 0.3);
    /* Optional: adds depth */
}

.copy-alert.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--card-bg);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-btn:hover {
    transform: translateY(-3px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
}

.email-btn:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}

.github-btn:hover {
    border-color: #6e5494;
    box-shadow: 0 0 15px rgba(110, 84, 148, 0.3);
}

.linkedin-btn:hover {
    border-color: #0077b5;
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--card-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    #hero h1 {
        font-size: 3rem;
    }

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

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

    .contato-content {
        flex-direction: column;
    }

    .email-container {
        flex-direction: column;
        padding: 1rem;
    }

    .social-links {
        flex-direction: column;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }
}