/* ─── Portfolio Selection Page ─── */
.header {
    text-align: center;
    padding: 5rem 2rem 4rem;
    background: linear-gradient(160deg, #07070b 0%, #0d0d14 40%, #111118 100%);
    color: #f0f0f5;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.header > * {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.subtitle {
    font-size: 1.05rem;
    color: rgba(165, 180, 252, 0.6);
    margin: 0;
    letter-spacing: 0.02em;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ─── Portfolio Cards ─── */
.portfolio-option {
    background: rgba(15, 15, 22, 0.8);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-option .portfolio-description {
    flex: 1;
}

.portfolio-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-option::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-option:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

.portfolio-option:hover::before {
    opacity: 1;
}

.portfolio-option:hover::after {
    opacity: 1;
}

.portfolio-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.portfolio-patrick .portfolio-icon {
    color: #818cf8;
}

.portfolio-dioce .portfolio-icon {
    color: #a78bfa;
}

.portfolio-option:hover .portfolio-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.portfolio-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f0f0f5;
    letter-spacing: -0.02em;
}

.portfolio-role {
    color: #818cf8;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.portfolio-description {
    color: rgba(200, 200, 220, 0.5);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.portfolio-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.portfolio-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.portfolio-link:hover::before {
    left: 100%;
}

.portfolio-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .portfolio-option {
        padding: 2rem;
    }

    .portfolio-icon {
        font-size: 2rem;
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }
}
