:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --dark-color: #1a1a2e;
    --light-color: #f4f4f9;
    --gray-color: #e0e0e0;
    --text-color: #dcdcdc;
    --card-bg: #1f1f3a;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
    overflow: hidden;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; color: var(--light-color); }
h3 { font-size: 1.5rem; color: var(--light-color); }

p { margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: var(--secondary-color);
}

section {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline {
    border-color: var(--secondary-color);
    color: var(--light-color);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Header */
#main-header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(37, 117, 252, 0.2);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

#main-header .logo span {
    color: var(--secondary-color);
}

#main-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

#main-header nav ul li a {
    color: #fff;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: var(--transition);
}

#main-header nav ul li a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: var(--transition);
}

/* Hero Section com Fundo Tecnológico */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0a0a1a;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Fundo Tecnológico */
.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Grid Lines */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(37, 117, 252, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 117, 252, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Circuit Lines */
.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(106, 17, 203, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(37, 117, 252, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(102, 126, 234, 0.2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Matrix Canvas */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Animação Glitch para o título */
.glitch-text {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    position: relative;
}

.glitch-line {
    display: block;
    animation: glitch 3s infinite;
    text-shadow: 
        2px 2px 0 rgba(102, 126, 234, 0.7),
        -2px -2px 0 rgba(118, 75, 162, 0.7);
}

.glitch-line:nth-child(2) {
    animation-delay: 0.5s;
}

.glitch-line:nth-child(3) {
    animation-delay: 1s;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
        text-shadow: 
            2px 2px 0 rgba(102, 126, 234, 0.7),
            -2px -2px 0 rgba(118, 75, 162, 0.7);
    }
    91% {
        transform: translate(-2px, 2px);
        text-shadow: 
            4px 0 0 rgba(102, 126, 234, 0.7),
            -4px 0 0 rgba(118, 75, 162, 0.7);
    }
    93% {
        transform: translate(2px, -2px);
        text-shadow: 
            0 4px 0 rgba(102, 126, 234, 0.7),
            0 -4px 0 rgba(118, 75, 162, 0.7);
    }
    95% {
        transform: translate(0);
    }
}

/* Container de digitação */
.typing-container {
    font-size: 1.5rem;
    color: var(--secondary-color);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
}

.typing-text {
    font-weight: 300;
    letter-spacing: 1px;
}

.cursor {
    font-weight: 300;
    animation: blink 1s infinite;
    color: var(--secondary-color);
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Partículas tecnológicas */
.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: float linear infinite;
    box-shadow: 0 0 10px var(--secondary-color);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

#about .about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

#about .about-intro {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

#about .bio-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #2a2a4a;
    transition: var(--transition);
}

#about .bio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 117, 252, 0.2);
    border-color: var(--secondary-color);
}

#about .bio-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--secondary-color);
    transition: var(--transition);
}

#about .bio-card:hover img {
    box-shadow: 0 0 20px rgba(37, 117, 252, 0.5);
}

#about .bio-card .role {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Social links nos cards de bio */
.social-links-card {
    margin-top: 15px;
}

.social-links-card a {
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: var(--transition);
    display: inline-block;
}

.social-links-card a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.2);
}

/* Seção de Projetos Modernizada */
#projects {
    background: var(--card-bg);
    position: relative;
}

.section-title-glow {
    text-align: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4rem;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(118, 75, 162, 0.6));
    }
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card-modern {
    background: linear-gradient(145deg, #1a1a2e 0%, #1f1f3a 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(37, 117, 252, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 117, 252, 0.1), transparent);
    transition: left 0.5s;
}

.project-card-modern:hover::before {
    left: 100%;
}

.project-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 117, 252, 0.3);
    border-color: var(--secondary-color);
}

.project-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--light-color);
}

.project-status {
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.status-badge.development {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid #f39c12;
}

.project-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(37, 117, 252, 0.1);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(37, 117, 252, 0.3);
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.project-link:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.project-link.disabled {
    background: rgba(100, 100, 100, 0.3);
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
}

.project-link i {
    font-size: 1.2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.skills-column h3 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.skills-column ul {
    list-style: none;
}

.skills-column li {
    background: var(--card-bg);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.skills-column li:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateX(5px);
    border-color: var(--primary-color);
}

#contact {
    text-align: center;
}

#contact .container {
    max-width: 800px;
}

.social-links a {
    font-size: 2rem;
    margin: 0 1rem;
    color: var(--light-color);
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

#contact p {
    margin: 2rem 0;
}

/* Seção de contato melhorada */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    border: 1px solid #2a2a4a;
    transition: var(--transition);
    min-width: 300px;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    border-color: var(--secondary-color);
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.linkedin-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.linkedin-links .separator {
    color: var(--gray-color);
    margin: 0 5px;
}

#main-footer {
    background: var(--card-bg);
    text-align: center;
    padding: 2rem 0;
    color: var(--text-color);
    border-top: 1px solid rgba(37, 117, 252, 0.2);
}

/* Media Queries para Responsividade */
@media(max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .menu-toggle {
        display: flex;
    }
    
    #main-header nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--card-bg);
        width: 100%;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }
    
    #main-header nav.active {
        max-height: 300px;
        padding: 1rem 0;
    }
    
    #main-header nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    #main-header nav ul li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    #about .about-content,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .glitch-text {
        font-size: 2.5rem;
        gap: 5px;
    }

    .typing-container {
        font-size: 1.1rem;
        height: 40px;
    }

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

    .section-title-glow {
        font-size: 2rem;
    }

    .contact-item {
        min-width: auto;
        width: 100%;
        font-size: 1rem;
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        font-size: 1.5rem;
    }

    .linkedin-links {
        flex-direction: column;
        gap: 5px;
    }

    .linkedin-links .separator {
        display: none;
    }
}

@media(max-width: 480px) {
    .glitch-text {
        font-size: 1.8rem;
    }

    .typing-container {
        font-size: 0.9rem;
    }

    .project-card-modern {
        padding: 1.5rem;
    }

    .project-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}