:root {
    --primary-color: #00aaff;
    --background-color: #0d1117;
    --text-color: #c9d1d9;
    --card-background: rgba(22, 27, 34, 0.8);
    --border-color: #30363d;
}

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

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

.hamburger {
    font-size: 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
}

.video-fundo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
    overflow: hidden;
}

.video-fundo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    z-index: 2;
}

header {
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

header ul {
    list-style: none;
    display: flex;
}

header ul li a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

header ul li a:hover {
    color: var(--primary-color);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.profile-pic {
    width: clamp(120px, 15vw, 150px);
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.bio {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(240, 242, 243, 0.418);
}

.content-section {
    padding: 3rem 0;
    background: var(--card-background);
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 2rem 0;
}

.content-section h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    color: #fff;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

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

.project-card {
    background: rgba(36, 41, 47, 0.5);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    text-align: center;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.6;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.project-link:hover {
    color: #fff;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

.paragrafo-contact {
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.social-links {
    text-align: center;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    transition: color 0.3s ease;
}

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

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background: #0d1117;
}

footer p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Media Queries para Tablets */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .content-section {
        padding: 2.5rem 0;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Media Queries para Dispositivos Móveis */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        display: none;
        gap: 1rem;
        padding: 1.5rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.show {
        display: flex !important;
    }
    
    .nav-links li a {
        margin-left: 0;
        padding: 0.5rem 1rem;
        color: var(--text-color);
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0;
        min-height: 90vh;
    }
    
    .content-section {
        padding: 2rem 0;
        margin: 1rem 0;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .social-links a {
        margin: 0 0.75rem;
    }
    
    /* Ocultar vídeo de fundo em telas menores para melhor performance */
    .video-fundo {
        display: none;
    }
}

/* Media Queries para Dispositivos Móveis Pequenos */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 1.5rem 0;
        min-height: 85vh;
    }
    
    .content-section {
        padding: 1.5rem 0;
        margin: 0.5rem 0;
    }
    
    .content-section h2 {
        margin-bottom: 2rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .social-links a {
        margin: 0 0.5rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
    }
}

/* Media Queries para Telas Muito Pequenas */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .project-card {
        padding: 0.75rem;
    }
    
    .social-links a {
        margin: 0 0.25rem;
        font-size: 1.25rem;
    }
}

/* Media Queries para Telas Grandes */
@media screen and (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .content-section {
        padding: 6rem 0;
    }
    
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

