:root {
    --primary-color: #00ff88; 
    --primary-dark: #00cc6a;
    --bg-color: #0f1014;
    --card-bg: rgba(30, 30, 30, 0.6);
    --text-color: #f0f0f0;
    --text-secondary: #a0a0a0;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --navbar-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 20%);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 16, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: var(--glass-border);
    height: var(--navbar-height);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s;
}

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

.main {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding-top: var(--navbar-height);
}

section {
    margin-bottom: 6rem;
    scroll-margin-top: 100px; 
}

h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
    min-height: 80vh;
    justify-content: center;
}

.home .startimg img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.home .startimg img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.home h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block; 
}

.home p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.typed-cursor {
    color: var(--primary-color);
    font-weight: 300;
    display: inline-block;
}

.links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    font-weight: bold;
}

.social-btn img {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.social-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}
.social-btn:hover img {
    filter: invert(0);
}

.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.aboutme {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.aboutimg img {
    max-width: 200px;
    filter: drop-shadow(0 0 10px rgba(0,255,136,0.2));
}

.abouttxt h3 {
    text-align: left;
}

.abouttxt p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #d1d1d1;
}

.conhecimento h4 {
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
    text-align: center;
    color: var(--text-secondary);
}

.icons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.conhecimento img {
    width: 65px;
    height: 65px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.conhecimento img:hover {
    transform: translateY(-10px) scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(0, 255, 136, 0.4));
}

.subtitle {
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

#projlist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card img {
    width: 100%;
    border-radius: 12px;
    border: var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover img {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.15);
    border-color: var(--primary-color);
}

.contato {
    background: linear-gradient(180deg, rgba(15,16,20,0) 0%, rgba(0,255,136,0.05) 100%);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.contato p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.contato-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        height: auto;
    }
    
    .main {
        padding-top: 140px;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .aboutme {
        flex-direction: column;
        text-align: center;
    }
    
    .abouttxt h3 {
        text-align: center;
    }

    .home h2 {
        font-size: 2rem;
    }
}
