/* --- PORTFOLIO HUB PAGE --- */

html {
    scroll-behavior: smooth;
}

body {
    background-image: none;
}

.portfolio-hub {
    position: relative;
    z-index: 1;
    padding: 0 20px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-hub::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('img/Backgorund-portfolio.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.02;
    z-index: -1;
    pointer-events: none;
}

/* Header (logo + título + tagline) — ocupa a primeira tela sozinho */
.hub-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 100vh;
    width: 100%;
}

.scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid #c59d5f;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-cue-dot {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: #c59d5f;
    animation: scroll-cue-move 1.6s ease-in-out infinite;
}

@keyframes scroll-cue-move {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

.hub-logo-wrap {
    width: clamp(340px, 82vw, 800px);
    aspect-ratio: 800 / 381;
    overflow: hidden;
}

.hub-logo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 544.29;
    transform: translateY(-12%);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.hub-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.6rem, 9vw, 4rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c59d5f 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hub-tagline {
    font-size: 1.4rem;
    color: #e6e0d4;
}

.hub-tagline strong {
    font-weight: 700;
    background: linear-gradient(135deg, #c59d5f 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Intro (pergunta + subtexto) */
.hub-intro {
    max-width: 700px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.hub-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: clamp(20px, 3.6vw, 54px);
    line-height: 1.3;
    margin-bottom: 20px;
    white-space: nowrap;
    background: linear-gradient(135deg, #c59d5f 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hub-heading em {
    font-style: italic;
    font-weight: 900;
}

.hub-subheading {
    font-size: clamp(17px, 4.2vw, 24px);
    color: #ffffff;
    line-height: 1.6;
}

/* Grid de cards */
.portfolio-cards {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 1100px;
}

/* Moldura com o degradê #C59D5F -> #FFFFFF */
.portfolio-card {
    display: flex;
    text-decoration: none;
    width: 100%;
    aspect-ratio: 1100 / 320;
    border-radius: 60px;
    padding: 2px;
    background: linear-gradient(135deg, #c59d5f 0%, #ffffff 100%);
    transition: transform 0.35s ease;
}

.portfolio-card:hover {
    transform: scale(1.05);
}

/* Face interna do card, onde a imagem entra manualmente via background-image */
.portfolio-card-face {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    border-radius: 58px;
    overflow: hidden;
    background-color: #0d0d0d;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 24px;
}

.portfolio-card-content h3 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 42.67px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #c59d5f 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portfolio-card-content p {
    font-size: 21.33px;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 16px;
}

.portfolio-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21.33px;
    font-weight: 600;
    background: linear-gradient(135deg, #c59d5f 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-arrow {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .cta-arrow {
    transform: rotate(45deg);
}

.portfolio-card:active .cta-arrow {
    transform: rotate(90deg);
}

/* RESPONSIVIDADE */
@media (max-width: 640px) {
    .hub-intro { padding: 0 32px; }

    .hub-heading {
        font-size: clamp(22px, 7vw, 36px);
        white-space: normal;
    }

    .portfolio-card {
        aspect-ratio: auto;
        min-height: 220px;
    }
    .portfolio-card-content h3 { font-size: 32px; }
    .portfolio-card-content p,
    .portfolio-card-cta { font-size: 18px; }
}
