/* ==========================================
   PORTFÓLIO 2.0 — CSS ÚNICO
   Base visual + responsividade
========================================== */

:root {
    --roxo-escuro: #6a1e78;
    --roxo-claro: #b678e8;
    --lilas: #dfc3f7;
    --branco: #ffffff;
    --preto: #111111;
    --card-bg: #ffffffcc;
    --roxo-footer: #3b0f44;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--preto);
    line-height: 1.6;
    overflow-x: hidden;
}

body.home,
body.projetos-page {
    background: var(--roxo-escuro);
    color: var(--branco);
}

body.sobre-page-body,
body.contato-page-body,
body.servicos-page-body {
    background: var(--lilas);
}

/* ==========================================
   HEADER / NAVEGAÇÃO
========================================== */

header {
    width: 100%;
    padding: 25px 8%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    color: var(--branco);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

nav li {
    display: flex;
}

nav a {
    color: var(--branco);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav a:hover {
    color: var(--roxo-claro);
}

.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu summary {
    list-style: none;
    cursor: pointer;
    color: var(--branco);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary span {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.2s;
}

.mobile-menu[open] summary span {
    transform: rotate(180deg);
}

.mobile-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    padding: 8px;
    background: var(--roxo-footer);
    border: 1px solid rgba(182, 120, 232, 0.35);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.mobile-menu nav ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu nav li {
    display: block;
}

.mobile-menu nav a {
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
}

.mobile-menu nav a:hover {
    background: rgba(182, 120, 232, 0.15);
}

/* ==========================================
   FOOTER
========================================== */

footer {
    background: var(--roxo-footer);
    padding: 35px 10%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    color: var(--branco);
}

footer h3 {
    color: var(--roxo-claro);
    margin-bottom: 10px;
}

footer a {
    color: var(--branco);
    text-decoration: none;
    font-size: 0.95rem;
}

footer a:hover {
    color: var(--roxo-claro);
}

/* ==========================================
   PÁGINA INICIAL
========================================== */

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.shape1 {
    width: 300px;
    height: 300px;
    background: var(--lilas);
    top: -80px;
    left: -80px;
}

.shape2 {
    width: 350px;
    height: 350px;
    background: var(--roxo-claro);
    bottom: -100px;
    right: -100px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 130px 10% 60px;
    position: relative;
    z-index: 1;
    gap: 50px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-text h2 {
    font-size: 2.7rem;
    line-height: 1.25;
    margin-bottom: 18px;
}

.hero-text h2 span {
    color: var(--roxo-claro);
}

.hero-text p {
    max-width: 520px;
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: var(--roxo-claro);
    color: var(--preto);
}

.btn-outline {
    border: 2px solid var(--roxo-claro);
    color: var(--branco);
}

.btn:hover {
    opacity: 0.85;
}

.hero-sub {
    margin-top: 14px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-img img {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.code-mockup {
    background: var(--roxo-footer);
    color: var(--branco);
    padding: 34px 38px;
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
    font-size: 0.95rem;
    border: 1px solid rgba(182, 120, 232, 0.25);
}

.code-mockup .tag {
    color: var(--roxo-claro);
}

.code-mockup .attr {
    color: var(--lilas);
}

/* ==========================================
   PÁGINA SOBRE
========================================== */

.sobre-page {
    padding: 140px 10% 80px;
    max-width: 1200px;
    margin: auto;
    background: var(--lilas);
    border-radius: 30px;
}

.sobre-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.sobre-img {
    flex-shrink: 0;
}

.sobre-img img {
    width: 280px;
    max-width: 100%;
    display: block;
    border-radius: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 6px solid var(--lilas);
}

.sobre-text {
    min-width: 0;
}

.sobre-text h2 {
    font-size: 2.4rem;
    color: var(--roxo-escuro);
    margin-bottom: 15px;
}

.sobre-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.skill-box {
    background: var(--card-bg);
    border: 1px solid rgba(106, 30, 120, 0.12);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.skill-box h3 {
    color: var(--roxo-escuro);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-box ul {
    list-style: none;
    padding-left: 0;
}

.skill-box li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* ==========================================
   PÁGINA PROJETOS
========================================== */

.projetos-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 10% 50px;
}

.projetos-hero h2 {
    font-size: 2.6rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

.projetos-hero p {
    max-width: 620px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.projetos {
    padding: 90px 10%;
    background: var(--lilas);
    color: var(--preto);
}

.projetos h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--roxo-escuro);
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 22px;
    transition: 0.3s;
    min-width: 0;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    color: var(--roxo-escuro);
    margin-bottom: 8px;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.tags span {
    display: inline-block;
    background: var(--roxo-claro);
    color: var(--preto);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.acoes a {
    display: inline-block;
    margin-top: 15px;
    margin-right: 15px;
    color: var(--roxo-escuro);
    font-weight: 600;
    text-decoration: none;
}

.acoes a:hover {
    text-decoration: underline;
}

/* ==========================================
   PÁGINA CONTATO
========================================== */

.contato-page {
    padding: 140px 10% 80px;
    max-width: 1100px;
    margin: auto;
}

.contato-box {
    background: var(--lilas);
    border-radius: 30px;
    padding: 50px;
    display: flex;
    gap: 60px;
}

.contato-info,
.form-box {
    flex: 1;
    min-width: 0;
}

.contato-info h2 {
    font-size: 2.3rem;
    color: var(--roxo-escuro);
    margin-bottom: 15px;
}

.contato-info p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.contato-links a {
    display: block;
    margin-bottom: 12px;
    color: var(--roxo-escuro);
    font-weight: 600;
    text-decoration: none;
}

.contato-links a:hover {
    color: var(--roxo-claro);
}

.form-box {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(106, 30, 120, 0.12);
}

.form-box h3 {
    margin-bottom: 20px;
    color: var(--roxo-escuro);
}

form input,
form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
}

form textarea {
    resize: none;
    height: 120px;
}

form button {
    width: 100%;
    padding: 14px;
    background: var(--roxo-claro);
    color: var(--preto);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    opacity: 0.85;
}

/* ==========================================
   PÁGINA SERVIÇOS
========================================== */

.hero-servicos {
    padding: 140px 10% 60px;
    text-align: center;
}

.hero-servicos h2 {
    font-size: 2.6rem;
    color: var(--roxo-escuro);
    margin-bottom: 15px;
    line-height: 1.25;
}

.hero-servicos p {
    max-width: 720px;
    margin: auto;
    font-size: 1.1rem;
}

.servicos {
    padding: 60px 10%;
}

.servicos .card {
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.servicos .card h3 {
    margin-bottom: 12px;
}

.servicos .card p {
    line-height: 1.6;
}

.info {
    font-size: 0.85rem;
    color: #444;
}

.preco {
    margin-top: 15px;
    font-weight: 600;
    color: var(--roxo-escuro);
}

.infos {
    background: var(--lilas);
    margin: 80px 10%;
    padding: 50px;
    border-radius: 30px;
}

.infos h2 {
    color: var(--roxo-escuro);
    margin-bottom: 20px;
}

.infos ul {
    list-style: none;
    line-height: 2;
    font-size: 1rem;
}

.btn-exemplo {
    margin-top: 12px;
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--roxo-escuro), var(--roxo-claro));
    color: var(--branco);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn-exemplo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   RESPONSIVIDADE — TABLET
========================================== */

@media (max-width: 1024px) {
    header {
        padding: 20px 6%;
    }

    .hero {
        padding-left: 7%;
        padding-right: 7%;
        gap: 35px;
    }

    .logo {
        font-size: 1.85rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .hero-text h2 {
        font-size: 2.35rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .projetos-hero h2,
    .hero-servicos h2 {
        font-size: 2.35rem;
    }

    .projetos-hero p,
    .hero-servicos p {
        font-size: 1rem;
    }

    .sobre-text h2,
    .contato-info h2 {
        font-size: 2.15rem;
    }

    .sobre-text p,
    .contato-info p {
        font-size: 1rem;
    }

    .code-mockup {
        padding: 28px;
        font-size: 0.9rem;
    }

    .sobre-page,
    .contato-page {
        padding-left: 7%;
        padding-right: 7%;
    }

    .contato-box {
        gap: 35px;
        padding: 40px;
    }

    .projetos,
    .servicos {
        padding-left: 7%;
        padding-right: 7%;
    }
}

/* Texto específico para telas pequenas */
.mobile-text { display: none; }

/* ==========================================
   RESPONSIVIDADE — CELULAR
========================================== */

@media (max-width: 768px) {
    header {
        position: absolute;
        padding: 16px 20px;
        flex-direction: row;
        gap: 12px;
    }

    .logo {
        font-size: 1.55rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu summary {
        font-size: 0.85rem;
        padding: 7px 11px;
    }

    .hero {
        min-height: auto;
        flex-direction: column;
        text-align: center;
        padding: 180px 20px 60px;
        gap: 35px;
    }

    .hero-text,
    .hero-img {
        width: 100%;
    }

    .hero-text h2 {
        font-size: clamp(1.85rem, 8vw, 2.25rem);
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
    }

    .buttons {
        justify-content: center;
        gap: 12px;
    }

    .btn {
        width: min(100%, 300px);
        text-align: center;
        padding: 13px 20px;
    }

    .hero-sub {
        font-size: 0.85rem;
    }

    .hero-img {
        display: none;
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    /* Tipografia exclusiva do celular */
    .hero-text h2 {
        font-size: clamp(1.65rem, 7vw, 2rem);
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 0.88rem;
        line-height: 1.55;
        max-width: 340px;
    }

    .hero-sub {
        font-size: 0.78rem;
    }

    .sobre-text h2,
    .contato-info h2 {
        font-size: 1.65rem;
    }

    .sobre-text p,
    .contato-info p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .projetos-hero h2,
    .hero-servicos h2 {
        font-size: clamp(1.65rem, 7vw, 2rem);
    }

    .projetos-hero p,
    .hero-servicos p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .projetos h2 {
        font-size: 1.6rem;
    }

    .card h3,
    .servicos .card h3 {
        font-size: 1.05rem;
    }

    .card p,
    .servicos .card p,
    .infos li {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .shape1 {
        width: 220px;
        height: 220px;
    }

    .shape2 {
        width: 240px;
        height: 240px;
    }

    .sobre-page {
        padding: 150px 20px 60px;
        border-radius: 0;
    }

    .sobre-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .sobre-img img {
        width: 210px;
    }

    .sobre-text h2,
    .contato-info h2 {
        font-size: 1.8rem;
    }

    .sobre-text p,
    .contato-info p {
        font-size: 0.95rem;
    }

    .skills {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .projetos-hero {
        min-height: auto;
        padding: 170px 20px 70px;
    }

    .projetos-hero h2,
    .hero-servicos h2 {
        font-size: clamp(1.85rem, 8vw, 2.25rem);
    }

    .projetos-hero p,
    .hero-servicos p {
        font-size: 0.95rem;
    }

    .projetos {
        padding: 60px 20px;
    }

    .projetos h2 {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card img {
        height: auto;
        max-height: 220px;
    }

    .contato-page {
        padding: 150px 20px 60px;
    }

    .contato-box {
        flex-direction: column;
        gap: 30px;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .form-box {
        padding: 25px 20px;
    }

    .hero-servicos {
        padding: 150px 20px 50px;
    }

    .servicos {
        padding: 30px 20px 60px;
    }

    .servicos .card {
        padding: 24px;
    }

    .servicos .card h3 {
        font-size: 1.15rem;
    }

    .servicos .card p,
    .infos li {
        font-size: 0.95rem;
    }

    .infos {
        margin: 20px;
        padding: 30px 22px;
        border-radius: 22px;
    }

    footer {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ==========================================
   RESPONSIVIDADE — CELULARES PEQUENOS
========================================== */

@media (max-width: 400px) {
    .logo {
        font-size: 1.4rem;
    }

    .mobile-menu summary {
        font-size: 0.8rem;
    }

    .hero {
        padding-top: 175px;
    }

    .sobre-page,
    .contato-page {
        padding-top: 145px;
    }

    .projetos-hero,
    .hero-servicos {
        padding-top: 165px;
    }

    .btn {
        width: 100%;
    }
}
