/* Importando fontes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-color: #050619;
    --card-bg: #0b0e29;
    --accent: #00dff0;
    --accent-glow: rgba(0, 223, 240, 0.3);
    --text-main: #e0e0e0;
    --text-dim: #94a3b8;
    --nav-bg: rgba(6, 14, 35, 0.8);
}

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

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

/* Header Moderno com Glassmorphism */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-link {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -1px;
}

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

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background-color: rgba(0, 223, 240, 0.1);
    color: var(--accent);
}

/* Layout Principal */
.main {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA para guests na home */
.guest-cta {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    border: 1px solid rgba(0, 223, 240, 0.25);
    border-radius: 12px;
    background: rgba(0, 223, 240, 0.04);
    text-align: center;
    max-width: 600px;
}
.guest-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.guest-cta p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.guest-cta-tools {
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    color: rgba(0, 223, 240, 0.6);
    margin-bottom: 1.5rem !important;
}
.cta-btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: var(--accent);
    color: #0a0a0a;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.cta-btn:hover {
    background: #00e5f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 223, 240, 0.3);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Estilização do Portfólio (Quem Sou) */
.portfolio h2 {
    color: var(--accent);
    margin: 3rem 0 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio h2::after {
    content: "";
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, rgba(0, 223, 240, 0.5), transparent);
}

.summary {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 800px;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

/* Grid de Skills */
.skills-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease;
}

.skills-section:hover {
    transform: translateX(10px);
    border-color: var(--accent);
}

.skills-section h3 {
    color: #fff;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-section p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Responsividade Básica */
@media (max-width: 1000px) {
    h1 { font-size: 2rem; }
    .main { padding: 2rem 1rem; }
}
/* ─── Hamburger button ──────────────────────────────────────────────────── */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
    padding: 0.4rem;
    line-height: 1;
    transition: color 0.2s;
}
.hamburger-btn:hover { color: var(--accent); }

/* ─── Mobile nav overlay ───────────────────────────────────────────────── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 25, 0.97);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: navOverlayIn 0.2s ease;
}
.nav-overlay.open { display: flex; }

@keyframes navOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-overlay .nav-link {
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    width: 80%;
    max-width: 320px;
    text-align: center;
}
.nav-overlay .nav-link:hover {
    background: rgba(0, 223, 240, 0.1);
    color: var(--accent);
}
.nav-overlay .lang-btn {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}
.nav-overlay .auth-nav-widget {
    margin: 0.5rem 0 0;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.nav-overlay .auth-nav-widget .auth-nav-divider { display: none; }
.nav-overlay .auth-nav-user {
    font-size: 0.9rem;
    max-width: 200px;
    text-align: center;
}
.nav-overlay .auth-nav-link {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
}
.nav-overlay .auth-nav-logout {
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
}
.nav-overlay-close {
    position: absolute;
    top: 1.2rem;
    right: 5%;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.4rem;
    transition: color 0.2s;
}
.nav-overlay-close:hover { color: var(--accent); }

/* ─── Responsive nav (≤ 1000px) ─────────────────────────────────────────── */
@media (max-width: 1000px) {
    .nav { display: none; }
    .hamburger-btn { display: block; }
    .header { padding: 1rem 5%; }
}

/* ─── Lang toggle button ─────────────────────────────────────────────────── */
.lang-btn {
    background: transparent;
    border: 1px solid rgba(0, 223, 240, 0.35);
    color: var(--text-dim);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 223, 240, 0.07);
}

/* ─── Site footer ────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 8%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: auto;
}
.site-footer a {
    color: var(--accent);
    text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer-left { display: flex; flex-direction: column; gap: 4px; }
.site-footer-right { text-align: right; }
.site-footer-copy {
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* make body a column flex so footer sticks to bottom on short pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > main, body > .main { flex: 1; }
