:root {
    --bg: #0a0a0c;
    --primary: #0077b6;
    --accent: #00f5ff;
    --text: #e0e0e0;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

#stars {
    position: fixed; top: 0; left: 0; z-index: -1;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 10%; position: sticky; top: 0; background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px); z-index: 100;
}

.logo { font-weight: bold; letter-spacing: 2px; color: var(--accent); }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { color: var(--text); text-decoration: none; transition: 0.3s; }
nav a:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent); }

#hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; background: radial-gradient(circle at center, #001d3d 0%, #0a0a0c 70%);
}

h1 { font-size: 4rem; text-transform: uppercase; }
h1 span { color: var(--accent); text-shadow: 0 0 20px var(--accent); }

.glass-card {
    background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem; border-radius: 15px; backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

section { padding: 100px 10% 50px; }
h2 { margin-bottom: 2rem; color: var(--accent); border-left: 4px solid var(--accent); padding-left: 15px; }

.btn {
    display: inline-block; margin-top: 20px; padding: 12px 30px;
    border: 1px solid var(--accent); color: var(--accent);
    text-decoration: none; border-radius: 5px; transition: 0.4s;
}

.btn:hover { background: var(--accent); color: var(--bg); font-weight: bold; }
/* Layout da Seção Sobre */
.about-container {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* Garante que fique bom no celular */
}

/* Estilização da Foto */
.photo-container {
    position: relative;
    width: 280px;
    height: 350px;
    border: 2px solid var(--accent);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta a foto sem distorcer */
    filter: grayscale(40%) contrast(110%);
    transition: 0.5s;
}

.photo-container:hover .profile-img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.05);
}

/* Overlay futurista sobre a foto */
.photo-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(0, 119, 182, 0.2), transparent);
    z-index: 1;
    pointer-events: none;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

/* Grade de Linguagens/Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.skill-item {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.skill-item:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 15px var(--accent);
}

/* Responsividade para Telas Pequenas */
@media (max-width: 768px) {
    .about-container {
        justify-content: center;
        text-align: center;
    }
    .photo-container {
        width: 200px;
        height: 200px;
        border-radius: 50%; /* Foto redonda no mobile se preferir */
    }
}
/* Títulos das Seções */
.section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.code-text { color: var(--accent); font-family: 'Courier New', monospace; font-weight: bold; }

/* Grid de Projetos */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,245,255,0.05) 100%);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.15);
}

.project-card:hover::before { transform: scaleX(1); }

.project-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; opacity: 0.8; }
.project-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
.project-card p { font-size: 0.95rem; line-height: 1.6; color: #b0b0b0; margin-bottom: 20px; }

.project-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; }
.project-tags span {
    font-size: 0.75rem; background: rgba(0, 245, 255, 0.15);
    color: var(--accent); padding: 5px 12px; border-radius: 50px; font-weight: bold;
}

.project-links { display: flex; gap: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.project-links a { color: #fff; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.project-links a:hover { color: var(--accent); }

/* Seção de Contato - Layout Moderno */
#contact {
    background: radial-gradient(circle at bottom right, rgba(0, 119, 182, 0.1), transparent);
    padding: 100px 10%;
}

.contact-wrapper {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}

.contact-info h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-info p { color: #b0b0b0; font-size: 1.1rem; }

.contact-grid { display: grid; gap: 20px; }

.contact-item {
    display: flex; flex-direction: column;
    padding: 20px; border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    text-decoration: none; color: #fff;
    transition: 0.3s;
}

.contact-item i { font-size: 1.5rem; color: var(--accent); margin-bottom: 10px; }
.contact-item span { font-weight: bold; font-size: 1.1rem; }
.contact-item small { color: #888; margin-top: 4px; }

.contact-item:hover {
    background: rgba(0, 245, 255, 0.08);
    border-color: var(--accent);
    transform: translateX(10px);
}

@media (max-width: 850px) {
    .contact-wrapper { grid-template-columns: 1fr; text-align: center; }
    .contact-item:hover { transform: translateY(-5px); }
}