:root {
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --border-color: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-color: #00ffcc;
    --accent-hover: #00ccaa;
    --gradient-primary: linear-gradient(135deg, #00ffcc 0%, #0099ff 100%);
    --gradient-hover: linear-gradient(135deg, #00ccaa 0%, #0077cc 100%);
    --glass-bg: rgba(22, 27, 34, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; 
    line-height: 1.6; 
    background-color: var(--bg-color); 
    color: var(--text-primary); 
    overflow-x: hidden;
}

.container {
    max-width: 1000px; 
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; 
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0; 
    border-bottom: 1px solid var(--glass-border); 
    position: sticky; 
    top: 0;
    z-index: 1000; 
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 24px;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 1px;
}

header nav ul {
    list-style: none; 
    display: flex; 
}

header nav li {
    margin-left: 35px; 
}

header nav a {
    text-decoration: none; 
    color: var(--text-secondary); 
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding-bottom: 5px; 
    transition: color 0.3s ease; 
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

header nav a:hover {
    color: var(--text-primary); 
}

header nav a:hover::after {
    width: 100%;
}

header nav a.active {
    color: var(--text-primary); 
}
header nav a.active::after {
    width: 100%;
}

/* --- MAIN CONTENT & HERO --- */
main {
    padding: 60px 0; 
    min-height: calc(100vh - 200px); /* Adjust to content */
    animation: fadeIn 0.8s ease-out forwards;
}

.hero {
    text-align: center;
    padding: 80px 0;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 10px auto;
}

.btn-cta {
    display: inline-block; 
    background: var(--gradient-primary);
    color: #0d1117;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700;
    text-decoration: none; 
    margin-top: 30px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.5);
    background: var(--gradient-hover);
}

/* --- SOBRE MIM --- */
.sobre-mim {
    display: flex; 
    align-items: center; 
    gap: 50px;
    margin-top: 30px;
    background: var(--surface-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.sobre-mim .profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%; 
    object-fit: cover;
    border: 3px solid var(--accent-color);
    padding: 5px;
    transition: transform 0.5s ease;
}

.sobre-mim .profile-pic:hover {
    transform: scale(1.05) rotate(3deg);
}

.sobre-mim .bio {
    flex: 1; 
}

.sobre-mim .bio p {
    margin-bottom: 20px; 
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- SKILLS --- */
.skills-container {
    margin-top: 50px;
}

.skills-container h3 {
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-item h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-bar {
    background-color: var(--bg-color); 
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 12px;
    overflow: hidden; 
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.skill-level {
    background: var(--gradient-primary); 
    height: 100%;
    border-radius: 10px; 
    position: relative;
    overflow: hidden;
}

/* Add a shimmer effect to the progress bars */
.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* --- PROJETOS --- */
h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.projetos-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px; 
}

.projeto-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    transition: all 0.4s ease; 
}

.projeto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.projeto-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0, 255, 204, 0.15); 
    border-color: rgba(0, 255, 204, 0.3);
}

.projeto-card img {
    width: 100%; 
    height: 200px;
    object-fit: cover;
    border-radius: 8px; 
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.projeto-card:hover img {
    transform: scale(1.03);
}

.projeto-card h3 {
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 20px;
    position: relative;
    z-index: 2;
}

.projeto-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* --- CONTATO --- */
.contato-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contato-form-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contato-form .form-group {
    margin-bottom: 25px; 
}

.contato-form label {
    display: block; 
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.contato-form input[type="text"],
.contato-form input[type="email"],
.contato-form textarea {
    width: 100%; 
    background-color: var(--bg-color); 
    border: 1px solid var(--border-color);
    color: var(--text-primary); 
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Roboto', sans-serif; 
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contato-form input:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.2);
}

.contato-form button {
    background: var(--gradient-primary); 
    color: #0d1117; 
    padding: 14px 24px;
    border: none; 
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contato-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.4);
}

/* --- FOOTER --- */
footer {
    background-color: var(--surface-color); 
    color: var(--text-secondary); 
    text-align: center; 
    padding: 30px 0; 
    border-top: 1px solid var(--border-color);
}

.social-links {
    margin-top: 20px;
}

.social-links ul {
    list-style: none;
    padding: 0;
    display: flex; 
    justify-content: center;
}

.social-links li {
    margin: 0 15px; 
}

.social-links a {
    color: var(--text-secondary); 
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease; 
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color); 
    transform: translateY(-3px);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }

    header nav li {
        margin: 5px 15px;
    }

    .sobre-mim {
        flex-direction: column;
        text-align: center; 
        padding: 30px 20px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .projetos-grid {
        grid-template-columns: 1fr;
    }
}