*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #0D0D0D;
    --bg-secondary: #1A1A1A;
    --color-main: #7C3AED;
    --color-glow: #A78BFA;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- UTILITÁRIOS ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }

/* ---- BOTÕES ---- */
.btn-primary {
    background: var(--color-main);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary:hover {
    background: var(--color-glow);
    box-shadow: 0 0 25px rgba(167,139,250,0.4);
    transform: translateY(-2px);
}
.btn-secondary {
    border: 2px solid var(--color-main);
    color: var(--color-glow);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
}
.btn-secondary:hover {
    background: rgba(124,58,237,0.15);
    box-shadow: 0 0 25px rgba(124,58,237,0.3);
    transform: translateY(-2px);
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(13,13,13,0.95);
    border-bottom: 1px solid rgba(124,58,237,0.15);
    backdrop-filter: blur(10px);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-glow);
    text-decoration: none;
}
.navbar-logo span { color: #fff; }
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-link:hover, .nav-active { color: var(--color-glow); }
.nav-cta {
    background: var(--color-main);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-cta:hover { background: var(--color-glow); }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-glow);
    font-size: 1.3rem;
    cursor: pointer;
}
.mobile-menu {
    display: none;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(124,58,237,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

/* ---- SECÇÕES ---- */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-glow);
    margin-bottom: 0.75rem;
}
.section-tag::before {
    content: '';
    display: inline-block;
    width: 24px; height: 2px;
    background: var(--color-main);
    border-radius: 2px;
}
.section-title { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-secondary); }

/* ---- HERO ---- */
#inicio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.3);
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-glow);
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse-dot 2s infinite;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.hero-title .name { color: var(--color-glow); text-shadow: 0 0 30px rgba(167,139,250,0.6); }
.hero-typed {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.hero-typed span { color: var(--text-secondary); }
#typed-text {
    color: var(--color-glow);
    min-width: 260px;
    text-align: left;
    border-right: 3px solid var(--color-main);
    padding-right: 4px;
    display: inline-block;
}
.hero-desc { color: var(--text-secondary); max-width: 500px; margin: 0 auto 2.5rem; font-size: 1rem; line-height: 1.8; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 700; color: var(--color-glow); }
.hero-stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce-slow 2s infinite;
}
.scroll-box {
    width: 26px; height: 42px;
    border: 2px solid rgba(124,58,237,0.5);
    border-radius: 13px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
}
.scroll-dot {
    width: 4px; height: 8px;
    background: var(--color-glow);
    border-radius: 2px;
    animation: scroll-dot 2s infinite;
}

/* ---- CARDS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.card {
    background: var(--bg-secondary);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}
.card:hover {
    border-color: var(--color-main);
    box-shadow: 0 0 25px rgba(124,58,237,0.15);
    transform: translateY(-4px);
}
.card-icon { font-size: 2rem; color: var(--color-glow); margin-bottom: 1rem; }
.card-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ---- SOBRE ---- */
#sobre { background: var(--bg-secondary); }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.sobre-img-wrap { display: flex; justify-content: center; }
.sobre-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: visible;
    border: 3px solid var(--color-main);
    box-shadow: 0 0 40px rgba(124,58,237,0.4);
    position: relative;
}

.sobre-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}
.sobre-badge {
    position: absolute;
    bottom: 0px;
    right: -20px;
    background: var(--bg-primary);
    border: 2px solid var(--color-main);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}
.sobre-badge p:first-child { font-size: 0.75rem; font-weight: 700; color: var(--color-glow); }
.sobre-badge p:last-child { font-size: 0.75rem; color: var(--text-secondary); }
.sobre-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.tag {
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.4);
    color: var(--color-glow);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---- PROCESSO ---- */
#processo { background: var(--bg-secondary); }
.processo-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.processo-item { display: flex; align-items: flex-start; gap: 1.5rem; }
.processo-icon {
    min-width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(124,58,237,0.15);
    border: 2px solid var(--color-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-glow);
    font-size: 1.1rem;
}
.processo-num { font-size: 0.75rem; font-weight: 700; color: var(--color-main); margin-bottom: 0.25rem; }
.processo-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; }
.processo-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ---- PORTFÓLIO ---- */
#portfolio { background: var(--bg-secondary); }
.portfolio-card { background: var(--bg-secondary); border: 1px solid rgba(124,58,237,0.2); border-radius: 1rem; overflow: hidden; transition: all 0.3s; }
.portfolio-card:hover { border-color: var(--color-main); box-shadow: 0 0 25px rgba(124,58,237,0.15); transform: translateY(-4px); }
.portfolio-img { width: 100%; height: 200px; object-fit: cover; }
.portfolio-img-placeholder { width: 100%; height: 200px; background: rgba(124,58,237,0.1); display: flex; align-items: center; justify-content: center; color: rgba(124,58,237,0.4); font-size: 3rem; }
.portfolio-body { padding: 1.5rem; }
.portfolio-cat { font-size: 0.75rem; color: var(--color-glow); text-transform: uppercase; letter-spacing: 0.05em; }
.portfolio-title { font-weight: 700; font-size: 1.05rem; margin: 0.25rem 0 0.5rem; }
.portfolio-desc { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }
.portfolio-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--color-glow); text-decoration: none; }

/* ---- TECNOLOGIAS ---- */
.tech-card { background: var(--bg-secondary); border: 1px solid rgba(124,58,237,0.2); border-radius: 1rem; padding: 1.5rem 1rem; text-align: center; transition: all 0.3s; }
.tech-card:hover { border-color: var(--color-main); box-shadow: 0 0 20px rgba(124,58,237,0.15); transform: translateY(-4px); }
.tech-icon { font-size: 2.5rem; color: var(--color-glow); }
.tech-name { font-weight: 600; font-size: 0.9rem; margin-top: 0.75rem; }
.tech-bar { width: 60%; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; margin: 0.5rem auto 0; }
.tech-bar-fill { height: 100%; background: var(--color-main); border-radius: 2px; }

/* ---- CONTACTO ---- */
.contact-card { background: var(--bg-secondary); border: 1px solid rgba(124,58,237,0.2); border-radius: 1rem; padding: 2rem; max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-label { display: block; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.375rem; }
.form-input {
    background: #0D0D0D;
    border: 1px solid rgba(124,58,237,0.3);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-input:focus { outline: none; border-color: #7C3AED; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.form-input.error { border-color: #dc2626; }
.form-error { color: #f87171; font-size: 0.75rem; margin-top: 0.25rem; }
.form-submit { text-align: right; margin-top: 1rem; }
.alert-success {
    background: rgba(124,58,237,0.15);
    border: 1px solid var(--color-main);
    color: var(--color-glow);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

/* ---- FOOTER ---- */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(124,58,237,0.2);
    padding: 4rem 1.5rem 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-logo { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.footer-title { font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--color-glow); }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-contact-item i { color: var(--color-main); }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-glow);
    text-decoration: none;
    transition: all 0.3s;
}
.social-btn:hover { background: rgba(124,58,237,0.3); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(124,58,237,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { color: var(--text-secondary); font-size: 0.85rem; }

/* ---- BACK TO TOP ---- */
#back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-main);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(124,58,237,0.5);
    transition: all 0.3s;
    z-index: 999;
    display: none;
}
#back-to-top.visible { display: flex; align-items: center; justify-content: center; }
#back-to-top:hover { background: var(--color-glow); }

/* ---- ANIMAÇÕES ---- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes bounce-slow { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--color-main); border-radius: 3px; }

/* ---- RESPONSIVO ---- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu, .nav-cta { display: none; }
    .menu-toggle { display: block; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .sobre-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-stats { gap: 1.5rem; }
    #inicio { padding-top: 140px; }
    .sobre-img {
    overflow: visible;
}
.sobre-badge {
    right: -5px;
    bottom: -20px;
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
}
}
