:root {
    --bg: #0a0a0a;
    --card-bg: #111;
    --primary: #00d2ff;
    --text: #fff;
    --text-dim: #a1a1aa;
    --border: #27272a;
}

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

body {
    background: radial-gradient(circle at top, #0f0f0f, #000);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

/* ================= NAV ================= */
#navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

#navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

#navbar a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
}

#navbar a:hover {
    color: var(--primary);
}

/* ================= HERO (AJUSTADO) ================= */

.hero-main-container {
    display: flex;
    flex-direction: column;
    min-height: 90vh;
    padding: 140px 10% 50px;
    gap: 20px; 
}

/* Lado Superior Esquerdo (Perfil) */
.profile-corner {
    align-self: flex-start;
    text-align: left;
    max-width: 500px;
}

.profile-corner .hero-image img {
    width: 180px; 
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.4);
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-corner .hero-btns {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 25px;
}

/* Lado Inferior Direito (Sobre Mim) */
.about-corner {
    align-self: flex-end;
    margin-top: -20px; 
}

.gradient-text {
    font-size: 3.5rem; 
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    background: linear-gradient(90deg, #00d2ff, #6b36c8, #ff4ecd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    text-align: left;
    transition: all 0.4s ease;
}

.about-card h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-family: 'Syne', sans-serif;
}

/* ================= BOTÕES ================= */

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(90deg,#00d2ff,#6b36c8);
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

/* ================= SEÇÕES ================= */

.section {
    padding: 100px 8%; 
}

/* ================= SOBRE MIM  ================= */

.about-container {
    align-self: flex-end;
    margin-top: -40px; 
    perspective: 1000px;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 50px;
    border-radius: 24px;
    max-width: 900px; 
    margin: 0 auto; 
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.about-card h2 {
    font-family: 'Syne', sans-serif;
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-card p {
   font-family: 'Inter', sans-serif;
    color: #e4e4e7; 
    line-height: 1.9; 
    font-size: 1.15rem; 
    font-weight: 400;
}

.about-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

/* ================= TECNOLOGIAS (CORRIGIDO) ================= */
.section-header-box {
    text-align: center;
    margin-bottom: 60px;
}

.title-large {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem; 
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 10px;
    color: var(--text);
}

.subtitle-gradient {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 20px;
    max-width: 1000px; 
    margin: 40px auto 0 auto;
    padding: 20px 0;
}

.tech-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    width: 140px; /* Largura fixa para manter o padrão */
    height: 140px; /* Altura fixa para ser um quadrado */
}

/* Regra essencial para as imagens SVG não estourarem */
.tech-box img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
}

.tech-box span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

.tech-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}


/* ================= PROJETOS ================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%; 
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 60px 40px rgba(0, 210, 255, 0.2);
}

.project-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;      
    font-weight: 700;       
    color: #ffffff;         
    margin-bottom: 15px;
    letter-spacing: 0.5px;  
}
.project-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;   
    font-weight: 400;       
    color: #e4e4e7;         
    line-height: 1.7;       
    margin-bottom: 20px;
}

/* ================= AJUSTE DE ESPAÇO NO RODAPÉ ================= */
.status-text {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 25px;    
    display: block;        
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-dim);
    opacity: 0.8;
    margin-top: 10px;     
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-badges span {
    font-size: 0.7rem;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.project-links img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: 0.3s;
}

.project-links img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.project-links a {
    font-size: 1.5rem;
    color: var(--text-dim);
    transition: 0.3s;
}

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

/* ================= SEÇÃO CONTATO ================= */
#contato {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o form e os botões */
    text-align: center;
}

.contact-subtitle {
    color: var(--text-dim);
    margin-top: -20px;
    margin-bottom: 30px;
}

.contato-container {
    width: 100%;
    max-width: 450px; 
    margin: 0 auto 50px;
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

#meu-formulario {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


#status-envio {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
}

/* BOTÕES DE REDES SOCIAIS */
.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px; 
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    transition: 0.3s;
}

.contact-btn img {
    width: 20px;
    height: 20px;
}

.btn-linkedin { background: #2b2c2b;}
.btn-github { background: #2b2c2b;}
.btn-gmail { background: #2b2c2b;}
.btn-whatsapp { background: #2b2c2b; }

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px rgba(0,210,255,0.4);
}

/* STATUS DE OPORTUNIDADES */
.status-text {
    font-size: 1.1rem;
    color: #ffffff;
    margin-top: 40px;    
    margin-bottom: 15px;    
    display: block;        
}

/* ================= FORMULÁRIO DE CONTATO ================= */
.contact-form-container {
    width: 100%;          /* Ocupa a largura disponível... */
    max-width: 450px;     /* ...mas para exatamente em 450px */
    margin: 0 auto 50px;  /* O 'auto' nas laterais é o que centraliza */
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    
    /* ADICIONE ESTA LINHA PARA GARANTIR */
    display: block; 
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px; 
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.3s;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical; 
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}


#status-envio {
    margin-top: 25px;   
    margin-bottom: 35px; 
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    min-height: 24px;   
}

.modern-form button {
    cursor: pointer;
    border: none;
    align-self: center;
    padding: 14px 50px;
    border-radius: 8px; 
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.modern-form button:hover {
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

/* ================= STATUS ================= */
.status {
    width: 10px;
    height: 12px;
    background: #9422a8;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(151, 163, 157, 0.7); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {
    .hero-main-container {
        padding-top: 100px;
    }
    .profile-corner {
        align-self: center;
        text-align: center;
    }
    .profile-corner .hero-btns {
        justify-content: center;
    }
    .about-corner {
        align-self: center;
        margin-top: 20px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .gradient-text {
        font-size: 2.5rem;
    }
}

/* ================= FUNDO ANIMADO ================= */
#bg-tech {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}